What does Liuyao Multiple Motion, Hidden Spirits and Timing conclude, in numbers, about “Several Lines Moving: Clash, Combine, Lone Mover and Lone Still Line”?

Answer: A clash requires exactly two lines of the same trigram to move together, and is impossible with one moving line or with all six; a combine can arise from a single line. Of the 4096 combinations of hexagram and moving lines, 252 contain a clash (0.0615) and 496 a combine (0.1211); weighted by coins, a clash appears in only 0.0233 of casts. Wealth turning into a combine is the most common cell (0.0740), Siblings and the World line turning into a clash the rarest (0.0195). The lone mover and the lone still line are symmetric in combinations but far apart in real casting: 0.3560 against 0.0044. In every row the key line is prosperous in the month about four times in ten. The verdicts and timing hints of the twenty-four cells are interpretations, and this chapter has set out a test that can be pre-registered.

Scope of the numbers: All calculations are generated by the programs printed in the book; it is not investment, legal, psychological or marital advice. 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. printed values that match the answer: 0.0195, 0.0233, 0.0615, 0.0740, 0.1211, 252

hexagram x moving-set casts: 4096; with days and months: 2949120
rowmovecastssharelinescoin
FuMuChong1110.02711120.0102
FuMuHe2000.04882000.0139
XiongDiChong800.0195800.0073
XiongDiHe1830.04471840.0134
ZiSunChong880.0215880.0081
ZiSunHe1440.03521440.0142
QiCaiChong870.0212880.0080
QiCaiHe3030.07403120.0384
GuanGuiChong1420.03471440.0131
GuanGuiHe1830.04471840.0134
ShiChong800.0195800.0073
ShiHe1760.04301760.0171
any Chong: 252 casts (0.0615, coin 0.0233); by number of moving lines 0-6: [0, 0, 32, 96, 92, 32, 0]
any He: 496 casts (0.1211, coin 0.0766); by number of moving lines 0-6: [0, 32, 92, 128, 120, 96, 28]
Show the full program
# Chapter 2. p10: Exact shares of the twelve clash / combine cells over every cast.
# A cast = one of 64 hexagrams x one of 64 sets of moving lines (the empty set
# included), on one of 60 days in one of 12 month branches: 64*64*60*12 cases.
# A moving line changes branch o into branch c (najia of the changed hexagram on
# the same line). HuaChong: (c - o) mod 12 = 6. HuaHe: o and c form a six-combine
# pair (zi-chou, yin-hai, mao-xu, chen-you, si-shen, wu-wei), i.e. (o + c) mod 12
# = 1. The row is the moving line's relation (read against the original palace),
# or "Shi" when the moving line holds the world mark. Day and month do not enter
# either test, so every count below is the hexagram-and-set count times 720.
# coin: the same cells weighted as three-coin casting weights them (each line
# moves with probability 1/4 independently, all 64 hexagrams equally likely).
TRI = {"Qian": (1, 1, 1), "Dui": (1, 1, 0), "Li": (1, 0, 1), "Zhen": (1, 0, 0),
       "Xun": (0, 1, 1), "Kan": (0, 1, 0), "Gen": (0, 0, 1), "Kun": (0, 0, 0)}
START = {"Qian": 0, "Zhen": 0, "Kan": 2, "Gen": 4, "Kun": 7, "Xun": 1, "Li": 3, "Dui": 5}
TEL = {"Qian": 3, "Dui": 3, "Li": 1, "Zhen": 0, "Xun": 0, "Kan": 4, "Gen": 2, "Kun": 2}
YANG = {"Qian", "Zhen", "Kan", "Gen"}
BEL = (4, 2, 0, 0, 2, 1, 1, 2, 3, 3, 2, 4)
REL = ("XiongDi", "ZiSun", "QiCai", "GuanGui", "FuMu")
ROWS = ("FuMu", "XiongDi", "ZiSun", "QiCai", "GuanGui", "Shi")
MASKS = ((), (1,), (1, 2), (1, 2, 3), (1, 2, 3, 4), (1, 2, 3, 4, 5), (1, 2, 3, 5), (5,))
SHI = (6, 1, 2, 3, 4, 5, 4, 3)
NAME = {v: k for k, v in TRI.items()}

def flip(h, lines):
    return tuple(b ^ (i + 1 in lines) for i, b in enumerate(h))

PAL = {flip(b + b, m): (t, g) for t, b in TRI.items() for g, m in enumerate(MASKS)}

def najia(h):
    out = []
    for t, base in ((NAME[h[:3]], 0), (NAME[h[3:]], 6)):
        step = 2 if t in YANG else -2
        out += [(START[t] + base + step * k) % 12 for k in range(3)]
    return out

if __name__ == "__main__":
    casts = {(r, m): 0 for r in ROWS for m in ("Chong", "He")}
    lines = dict(casts)
    coin = {k: 0.0 for k in casts}
    by_k = {m: [0] * 7 for m in ("Chong", "He")}
    anyc = {m: 0.0 for m in ("Chong", "He")}
    for h in PAL:
        pal, gen = PAL[h]
        ob = najia(h)
        for s in range(64):
            mv = [i for i in range(6) if s >> i & 1]
            cb = najia(flip(h, [i + 1 for i in mv]))
            hit = set()
            for i in mv:
                o, c = ob[i], cb[i]
                rel = REL[(BEL[o] - TEL[pal]) % 5]
                for m, ok in (("Chong", (c - o) % 12 == 6), ("He", (o + c) % 12 == 1)):
                    if ok:
                        for r in [rel] + (["Shi"] if SHI[gen] == i + 1 else []):
                            lines[(r, m)] += 1
                            hit.add((r, m))
            for key in hit:
                casts[key] += 1
                coin[key] += 3 ** (6 - len(mv)) / 4 ** 6 / 64
            for m in ("Chong", "He"):
                if any(k[1] == m for k in hit):
                    by_k[m][len(mv)] += 1
                    anyc[m] += 3 ** (6 - len(mv)) / 4 ** 6 / 64
    n = 64 * 64
    print("   hexagram x moving-set casts: {}; with days and months: {}".format(n, n * 720))
    print("   row      move   casts  share   lines  coin")
    for r in ROWS:
        for m in ("Chong", "He"):
            k = (r, m)
            print("   {:8s} {:5s} {:6d}  {:.4f} {:6d}  {:.4f}".format(r, m, casts[k], casts[k] / n, lines[k], coin[k]))
    for m in ("Chong", "He"):
        tot = sum(by_k[m])
        print("   any {:5s}: {} casts ({:.4f}, coin {:.4f}); by number of moving lines 0-6: {}".format(
            m, tot, tot / n, anyc[m], by_k[m]))

Single source and citation

Fan, Y. (2026). The Liuyao Codex of Multiple Moving Lines, Hidden Motion, Hidden Spirits and Timing (Version 1.0.0), Chapter 2: Several Lines Moving: Clash, Combine, Lone Mover and Lone Still Line. 5D Library. DOI pending

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

BibTeX
@book{fan2026125,
  author    = {Fan, Yafu},
  title     = {The Liuyao Codex of Multiple Moving Lines, Hidden Motion, Hidden Spirits and Timing},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book