关于「方法:三枚铜钱、月建日辰与全书共用的定义」,《六爻多爻同动、暗动伏神与应期》给出的定量结论是什么?

结论:第一章算出:两爻以上齐动的起卦占 0.4661,独静只占 0.0044;化冲只有坤巽互变、中上两爻齐动一条来路,所以单爻永远不化冲,全部动爻中化冲只占 0.0312,带化冲的卦占 0.0233;静爻被日辰冲到时,暗动占 0.0347,日破占 0.0486,二者从不在一卦并见;六十四卦中六亲俱全的只占 0.3125,二十种伏神飞神组合中有两种从不出现;一卦平均点亮 2.9642 个条目,一个都不点亮的只占 0.0090。

数据口径:全部计算由书中程序生成;本书不是投资、法律、心理或婚姻建议。 书中以标注框区分已发表的证据、可运行的 Python 计算、原典与作者的假说。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 与结论吻合的打印值: 0.0044, 0.0233, 0.0312

k P(k) clash/line comb/line P(cast has a clash)
10.3560 0.0000 0.0833 0.0000
20.2966 0.0333 0.0500 0.0333
30.1318 0.0500 0.0500 0.0750
40.0330 0.0500 0.0833 0.0958
50.0044 0.0333 0.1500 0.0833
60.0002 0.0000 0.2500 0.0000
all moving lines: clash 0.0312, combination 0.0625
casts with a clash0.0233 of all casts, 0.0283 of moving casts
single moving line, 384 cases32 combine, 0 clash
moving lines in its trigram clash combination
10.0000 0.0833
20.0833 0.0000
30.0000 0.2500
every clash comes from: Kun -> Xun, trigram lines (2, 3) moving; Xun -> Kun, trigram lines (2, 3) moving
查看完整验算程序
# Chapter 1. p02: Clash and combination between a moving line and its change.
# Najia (Jing Fang): a trigram starts at a fixed branch and steps +2
# (yang trigrams Qian Zhen Kan Gen) or -2 (yin trigrams Kun Xun Li Dui);
# the outer trigram starts six branches later. A moving line takes the
# branch the changed hexagram puts on the same line. Shared definitions:
# into clash = the changed branch is six branches from the original
# (zi-wu, chou-wei, ...); into combination = the pair is one of the six
# harmonies zi-chou, yin-hai, mao-xu, chen-you, si-shen, wu-wei, i.e.
# (original + changed) mod 12 = 1. Every original hexagram (64) and
# every non-empty set of moving lines (63) is weighted by its three-coin
# probability (1/64) (1/4)^k (3/4)^(6-k). Shares are of moving lines.
START = {(1, 1, 1): 0, (1, 0, 0): 0, (0, 1, 0): 2, (0, 0, 1): 4,
         (0, 0, 0): 7, (0, 1, 1): 1, (1, 0, 1): 3, (1, 1, 0): 5}
YANG = {(1, 1, 1), (1, 0, 0), (0, 1, 0), (0, 0, 1)}
NAME = {(1, 1, 1): "Qian", (1, 0, 0): "Zhen", (0, 1, 0): "Kan", (0, 0, 1): "Gen",
        (0, 0, 0): "Kun", (0, 1, 1): "Xun", (1, 0, 1): "Li", (1, 1, 0): "Dui"}

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

if __name__ == "__main__":
    by_k = {k: [0.0, 0.0, 0.0, 0.0, 0] for k in range(1, 7)}
    by_t = {j: [0.0, 0.0, 0.0] for j in (1, 2, 3)}
    routes = set()
    for code in range(64):
        h = tuple((code >> i) & 1 for i in range(6))
        o = najia(h)
        for mask in range(1, 64):
            mv = [i for i in range(6) if mask >> i & 1]
            k = len(mv)
            w = 0.25 ** k * 0.75 ** (6 - k) / 64
            c = najia(tuple(b ^ (i in mv) for i, b in enumerate(h)))
            cl = [i for i in mv if (c[i] - o[i]) % 12 == 6]
            co = [i for i in mv if (c[i] + o[i]) % 12 == 1]
            for i in cl:
                t = i // 3 * 3
                routes.add((NAME[h[t:t + 3]], NAME[tuple(b ^ (x in mv) for x, b
                            in enumerate(h))[t:t + 3]], tuple(x % 3 + 1 for x
                            in mv if x // 3 == i // 3)))
            row = by_k[k]
            row[0] += w * k
            row[1] += w * len(cl)
            row[2] += w * len(co)
            row[3] += w * bool(cl)
            if k == 1:
                row[4] += len(co)
            for i in mv:
                j = sum(1 for x in mv if x // 3 == i // 3)
                by_t[j][0] += w
                by_t[j][1] += w * (i in cl)
                by_t[j][2] += w * (i in co)
    print("   k   P(k)    clash/line  comb/line  P(cast has a clash)")
    tot = [0.0, 0.0, 0.0, 0.0]
    for k, r in by_k.items():
        pk = r[0] / k
        print("   {}   {:.4f}   {:.4f}      {:.4f}     {:.4f}".format(
            k, pk, r[1] / r[0], r[2] / r[0], r[3] / pk))
        tot = [tot[0] + r[0], tot[1] + r[1], tot[2] + r[2], tot[3] + r[3]]
    print("   all moving lines: clash {:.4f}, combination {:.4f}".format(
        tot[1] / tot[0], tot[2] / tot[0]))
    print("   casts with a clash: {:.4f} of all casts, {:.4f} of moving"
          " casts".format(tot[3], tot[3] / (1 - 0.75 ** 6)))
    print("   single moving line, 384 cases: {} combine, 0 clash".format(
        by_k[1][4]))
    print("   moving lines in its trigram   clash   combination")
    for j, r in by_t.items():
        print("     {}                           {:.4f}  {:.4f}".format(
            j, r[1] / r[0], r[2] / r[0]))
    print("   every clash comes from: " + "; ".join(
        "{} -> {}, trigram lines {} moving".format(a, b, l)
        for a, b, l in sorted(routes)))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《六爻多爻同动暗动伏神与精准应期母典》第 1 章「方法:三枚铜钱、月建日辰与全书共用的定义」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 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}
}

本书其他章节结论