What does Rotating Qimen and Liuyao Business Verdicts conclude, in numbers, about “Stem Overlays (II): Xin, Ren and Gui over the Nine Stems”?

Answer: This chapter has written out the twenty-seven cells in which heaven-plate xin, ren or gui sits over the nine earth-plate stems. Xin is the Heavenly Court and reads where a fault lands; ren is the Heavenly Jail and reads what catches the flow or snares it; gui is the Heavenly Net and reads where concealment falls. Enumerating the 131,496 double-hour charts from 2000 to 2029 shows that any cross cell occurs about once every eight or nine double-hours (0.1074 to 0.1249), that same-stem cells occur only in double-hours when the plate does not turn (0.2222), and that the six three-step cells are slightly more frequent because of the lodging rule. By palace, as charts are usually drawn all twenty-seven cells cluster in Kun 2 (0.224 to 0.316), but counting main stems only Kun 2 falls to 0.074 to 0.155 and the eight palaces are almost even: "always lands in a certain palace" is mainly an artefact of the lodging convention. These verdicts are interpretations; the chapter has given a pre-registrable test with contract disputes as its outcome, and the sample size it needs.

Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations, classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.1074, 0.1249, 0.2222, 131496, 2000

double-hour charts 2000-2029: 131,496
heaven over earth: charts, share, lowest and highest year
xinover wu163210.12410.1226 0.1257
xinover ji144920.11020.1088 0.1114
xinover geng148720.11310.1123 0.1143
xinover xin292220.22220.2215 0.2227
xinover ren150850.11470.1136 0.1162
xinover gui144800.11010.1087 0.1116
xinover ding160750.12220.1211 0.1235
xinover bing145960.11100.1098 0.1121
xinover yi148450.11290.1119 0.1144
renover wu149750.11390.1132 0.1148
renover ji164250.12490.1228 0.1268
renover geng148470.11290.1120 0.1137
renover xin147340.11200.1105 0.1132
renover ren292220.22220.2215 0.2227
renover gui151040.11490.1136 0.1158
renover ding144830.11010.1091 0.1110
renover bing159420.12120.1185 0.1231
renover yi142560.10840.1073 0.1096
guiover wu143780.10930.1084 0.1107
guiover ji150860.11470.1135 0.1159
guiover geng161960.12320.1218 0.1244
guiover xin147300.11200.1110 0.1129
guiover ren141280.10740.1062 0.1087
guiover gui292220.22220.2215 0.2227
guiover ding151010.11480.1130 0.1161
guiover bing149820.11390.1128 0.1152
Show the full program
# Chapter 4. p20: How often each of the 27 overlays with xin, ren or gui
# on the heaven plate occurs, over every double-hour chart of 2000-2029,
# and how much that share moves from one calendar year to the next.
# Method. Solar terms from the low-accuracy solar theory (Meeus ch. 25,
# Delta T 69 s, UTC+8). Split-supplement (chai bu) bureau: the last term
# before the moment; the yuan from the latest jia or ji day (zi wu mao
# you -> upper, yin shen si hai -> middle, others -> lower). Earth plate:
# wu ji geng xin ren gui ding bing yi from palace b forward (yang) or
# backward (yin). Rotating heaven plate: the duty star carries the decade
# leader to the palace of the hour stem (jia hours: no turn); the eight
# outer palaces turn as one ring, each carrying its earth symbol; the
# centre symbol rides with Kun 2. A chart "contains" heaven X over earth
# Y if X sits over Y in any outer palace. Charts: midpoints of all
# 131,496 double-hours from 2000-01-01 to 2029-12-31 (10,958 days).
import math

SYM = ("wu", "ji", "geng", "xin", "ren", "gui", "ding", "bing", "yi")
RING = (1, 8, 3, 4, 9, 2, 7, 6)
DAYS = 10958

def nine(x):
    return (x - 1) % 9 + 1

def sun_lon(jd):
    t = (jd - 2451545.0) / 36525
    l0 = 280.46646 + 36000.76983 * t + 0.0003032 * t * t
    m = math.radians(357.52911 + 35999.05029 * t - 0.0001537 * t * t)
    c = ((1.914602 - 0.004817 * t) * math.sin(m) + 0.019993 * math.sin(2 * m)
         + 0.000289 * math.sin(3 * m))
    om = math.radians(125.04 - 1934.136 * t)
    return (l0 + c - 0.00569 - 0.00478 * math.sin(om)) % 360

def term_start(i, guess):
    jd = guess
    for _ in range(40):
        jd += ((270 + 15 * i - sun_lon(jd) + 180) % 360 - 180) / 0.9856
    return jd - 69 / 86400 + 8 / 24                  # local (UTC+8)

def charts():
    """Yield (day offset, [(heaven, earth, palace), ...]) per double-hour."""
    jd_a = 2451544.5                                 # 2000-01-01 00:00 local
    starts = [term_start(i, jd_a - 30 + 15.22 * i) for i in range(30 * 24 + 4)]
    k = 0
    for slot in range(DAYS * 12):
        t = jd_a + slot / 12
        while starts[k + 1] <= t:
            k += 1
        term, day = k % 24, int(t + 0.5)
        fu = next(day - s for s in range(10) if (day - s + 49) % 10 in (0, 5))
        yuan = {0: 0, 6: 0, 3: 0, 9: 0, 2: 1, 8: 1, 5: 1, 11: 1}.get(
            (fu + 49) % 12, 2)
        g, j = divmod(term, 3)
        p, yang = (1, 8, 3, 4, 9, 2, 7, 6)[g], term < 12
        b = nine(nine(p + j) + 6 * yuan) if yang else nine(nine(p - j) + 3 * yuan)
        pal = {s: nine(b + i) if yang else nine(b - i) for i, s in enumerate(SYM)}
        at = {v: s for s, v in pal.items()}
        hs = (2 * ((day + 49) % 10) + slot % 12) % 10
        hk = next(x for x in range(60) if x % 10 == hs and x % 12 == slot % 12)
        lead = SYM[hk // 10]
        dst = lead if hs == 0 else SYM[9 - hs if hs < 4 else hs - 4]
        o = lambda q: 2 if q == 5 else q
        r = (RING.index(o(pal[dst])) - RING.index(o(pal[lead]))) % 8
        out = []
        for i, q in enumerate(RING):
            src = RING[(i - r) % 8]
            heav = [at[src]] + ([at[5]] if src == 2 else [])
            erth = [at[q]] + ([at[5]] if q == 2 else [])
            out += [(h, e, q) for h in heav for e in erth]
        yield slot // 12, out

def year_of(d):
    y = 2000
    while d >= (366 if y % 4 == 0 else 365):
        d -= 366 if y % 4 == 0 else 365
        y += 1
    return y

if __name__ == "__main__":
    mine = [(h, e) for h in ("xin", "ren", "gui") for e in SYM]
    seen = dict.fromkeys(mine, 0)
    per = {y: [0, dict.fromkeys(mine, 0)] for y in range(2000, 2030)}
    n = 0
    for d, c in charts():
        n += 1
        y = per[year_of(d)]
        y[0] += 1
        for pair in {(h, e) for h, e, q in c} & seen.keys():
            seen[pair] += 1
            y[1][pair] += 1
    print("   double-hour charts 2000-2029: {:,d}".format(n))
    print("   heaven over earth: charts, share, lowest and highest year")
    for h, e in mine:
        ys = [v[1][h, e] / v[0] for v in per.values()]
        print("     {:4s} over {:4s} {:6d}  {:.4f}   {:.4f} {:.4f}".format(
            h, e, seen[h, e], seen[h, e] / n, min(ys), max(ys)))
    cross = sorted((v / n, h + "/" + e) for (h, e), v in seen.items() if h != e)
    print("   24 cross overlays: rarest {} {:.4f}, commonest {} {:.4f}".format(
        cross[0][1], cross[0][0], cross[-1][1], cross[-1][0]))
    print("   rarest cross overlay: about one chart in {:.1f}".format(
        1 / cross[0][0]))

Single source and citation

Fan, Y. (2026). The Rotating Qimen Chaibu and Liuyao Najia Codex of Business Verdicts (Version 1.0.0), Chapter 4: Stem Overlays (II): Xin, Ren and Gui over the Nine Stems. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-121 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026121,
  author    = {Fan, Yafu},
  title     = {The Rotating Qimen Chaibu and Liuyao Najia Codex of Business Verdicts},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book