What does Liuyao Multiple Motion, Hidden Spirits and Timing conclude, in numbers, about “Flying and Hidden Spirits: Twenty Cells of What Is Missing and What Sits on It”?

Answer: The rule for hidden spirits is a single one: take the missing relation from the same line of the palace's head hexagram, and the cast hexagram's line on top of it is the flying spirit. The 64 hexagrams hold 56 hidden spirits in 44 hexagrams; the missing relation always appears exactly once in the head hexagram, so each hidden spirit has a unique seat, and the top line never hides one. Eighteen of the twenty cells actually occur; Offspring hidden under Parents is the most frequent (8 times), and Siblings hidden under Wealth and Officer hidden under Offspring are zero under this book's rule. The bond between flying and hidden is fixed by the two relations, not by the hexagram. At the day level every hidden spirit is opened and injured on equally many days out of sixty, and true out days take only 0.0899; Offspring hidden under Siblings comes out most easily (0.1333), Parents hidden under Officer least easily (0.0333). A good structure and a way out are two different things; that is the sentence to take from this chapter. Its timing readings are interpretation, and a way to test them has been given above.

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: 44, 56, 64

56 hidden spirits in 44 hexagrams
Siblings under Offspring 1 (hidden feeds flying)
KW23 Boline 5: hidden shenflying zi
Siblings under Wealth 0 (hidden controls flying)
Siblings under Officer 1 (flying controls hidden)
KW20 Guanline 5: hidden shenflying si
Siblings under Parents 4 (flying feeds hidden)
KW28 DaGuoline 2: hidden yinflying hai
KW32 Hengline 2: hidden yinflying hai
KW46 Shengline 2: hidden yinflying hai
KW48 Jingline 2: hidden yinflying hai
Offspring under Siblings3(flying feeds hidden)
KW26 DaXuline 3: hidden shenflying chen
KW41 Sunline 3: hidden shenflying chou
KW61 ZhongFuline 3: hidden shenflying chou
Offspring under Wealth2(hidden feeds flying)
KW22 Biline 3: hidden shenflying hai
KW46 Shengline 4: hidden wuflying chou
Offspring under Officer3(hidden controls flying)
KW48 Jingline 4: hidden wuflying shen
KW54 GuiMeiline 4: hidden haiflying wu
KW62 XiaoGuoline 4: hidden haiflying wu
Offspring under Parents8(flying controls hidden)
KW12 Piline 1: hidden ziflying wei
KW17 Suiline 4: hidden wuflying hai
KW18 Guline 5: hidden siflying zi
KW20 Guanline 1: hidden ziflying wei
KW27 Yiline 5: hidden siflying zi
Show the full program
# Chapter 4. p20: Every hidden spirit in the 64 hexagrams, by hidden relation and flying relation.
# Najia (Jing Fang): each trigram starts at a fixed branch and steps +2 (yang
# trigrams) or -2 (yin trigrams); the outer trigram starts six branches later.
# Palaces: a pure hexagram XOR one of eight masks. Relation = line element -
# palace element (mod 5), wood 0 fire 1 earth 2 metal 3 water 4, giving
# 0 Siblings 1 Offspring 2 Wealth 3 Officer 4 Parents. A relation missing from
# the six lines is taken from the PURE hexagram of the palace at the same line
# (the hidden spirit) and sits under the actual line there (the flying spirit).
# Since relation = element - palace element, (flying - hidden) mod 5 fixes the
# bond: 1 hidden feeds flying, 2 hidden controls flying, 3 flying controls
# hidden, 4 flying feeds hidden.
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)}
EL = {"Qian": 3, "Dui": 3, "Li": 1, "Zhen": 0, "Xun": 0, "Kan": 4, "Gen": 2, "Kun": 2}
START = {"Qian": 0, "Zhen": 0, "Kan": 2, "Gen": 4, "Kun": 7, "Xun": 1, "Li": 3, "Dui": 5}
YANG = {"Qian", "Zhen", "Kan", "Gen"}
MASKS = ((), (1,), (1, 2), (1, 2, 3), (1, 2, 3, 4), (1, 2, 3, 4, 5), (1, 2, 3, 5), (5,))
BEL = (4, 2, 0, 0, 2, 1, 1, 2, 3, 3, 2, 4)
BR = "zi chou yin mao chen si wu wei shen you xu hai".split()
REL = ("Siblings", "Offspring", "Wealth", "Officer", "Parents")
BOND = {1: "hidden feeds flying", 2: "hidden controls flying",
        3: "flying controls hidden", 4: "flying feeds hidden"}
ORDER = "Qian Zhen Kan Gen Kun Xun Li Dui".split()
KW = ((1, 25, 6, 33, 12, 44, 13, 10), (34, 51, 40, 62, 16, 32, 55, 54),
      (5, 3, 29, 39, 8, 48, 63, 60), (26, 27, 4, 52, 23, 18, 22, 41),
      (11, 24, 7, 15, 2, 46, 36, 19), (9, 42, 59, 53, 20, 57, 37, 61),
      (14, 21, 64, 56, 35, 50, 30, 38), (43, 17, 47, 31, 45, 28, 49, 58))
NAMES = ("Qian Kun Zhun Meng Xu Song Shi Bi XiaoXu Lu Tai Pi TongRen DaYou Qian "
         "Yu Sui Gu Lin Guan ShiHe Bi Bo Fu WuWang DaXu Yi DaGuo Kan Li Xian Heng "
         "Dun DaZhuang Jin MingYi JiaRen Kui Jian Xie Sun Yi Guai Gou Cui Sheng "
         "Kun Jing Ge Ding Zhen Gen Jian GuiMei Feng Lu Xun Dui Huan Jie ZhongFu "
         "XiaoGuo JiJi WeiJi").split()
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))

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

def hidden_spirits():
    """Yield (hidden rel, flying rel, King Wen no., line, hidden br, flying br)."""
    for t, bits in TRI.items():
        pure = najia(bits + bits)
        for m in MASKS:
            h = flip(bits + bits, m)
            ob = najia(h)
            rel = [(BEL[b] - EL[t]) % 5 for b in ob]
            kw = KW[ORDER.index(NAME[h[3:]])][ORDER.index(NAME[h[:3]])]
            for i in range(6):
                x = (BEL[pure[i]] - EL[t]) % 5
                if x not in rel:
                    yield x, rel[i], kw, i + 1, pure[i], ob[i]

if __name__ == "__main__":
    rows = list(hidden_spirits())
    print("   %d hidden spirits in %d hexagrams" % (len(rows), len({r[2] for r in rows})))
    for x in range(5):
        for y in range(5):
            if x == y:
                continue
            hit = sorted(r for r in rows if r[0] == x and r[1] == y)
            print("   %-9s under %-9s %2d  (%s)" % (REL[x], REL[y], len(hit), BOND[(y - x) % 5]))
            for r in hit:
                print("        KW%-2d %-8s line %d: hidden %-5s flying %s"
                      % (r[2], NAMES[r[2] - 1], r[3], BR[r[4]], BR[r[5]]))
    for b in (4, 1, 3, 2):
        print("   %-24s %2d of %d" % (BOND[b], sum((r[1] - r[0]) % 5 == b for r in rows), len(rows)))

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 4: Flying and Hidden Spirits: Twenty Cells of What Is Missing and What Sits on It. 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