关于「田宅一行:共同的家、领地与关上的门」,《钦天双人合盘飞化》给出的定量结论是什么?

结论:本章写完了田宅一行的十六格。田宅宫在两人之间是共同的家:领地、作息、规矩,以及吵架后关上的那扇门。十六格每一格都恰好是十二分之一(0.0833)。田宅与子女两行的宫干永远不同,相差四位与六位各占一半,所以 A 的床与家用两种语言说话;A 的八支箭至少有一支进到 B 田宅宫的占 0.4965,两只忌同落 B 的田宅只有 0.0028,双向关门占 0.0070。读这一行的关键,是把「家」读成领地与秩序,把冷战读成具体的门、具体的账;本章给出了一项可以预先登记的检验,以及检验最戏剧化的一格需要多大的规模。

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

English version

对照数据表

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

pairs1866240000
0 of A's eight arrows land in B's Property palace0.5035
1 of A's eight arrows land in B's Property palace0.3527
2 of A's eight arrows land in B's Property palace0.1189
3 of A's eight arrows land in B's Property palace0.0237
4 of A's eight arrows land in B's Property palace0.0012
5 of A's eight arrows land in B's Property palace0.0001
at least one arrow there0.4965
A's two ji in the same palace of B0.0333
Children lu and Property ji both in B's Property palace0.0160
both of A's ji in B's Property palace0.0028
closed door both ways12972096 pairs = 0.0070 (1/144 = 0.0069)
closed door at least one way0.1597
查看完整验算程序
# Chapter 5. p26: The home row together with the bed row, and the closed door from both sides.
# Over all 43200 x 43200 pairs: (1) of A's eight arrows (four from its Children stem,
# four from its Property stem), how many land in B's Property palace; (2) A's two ji
# (from Children and from Property) landing in the same palace of B; (3) "one hand gives,
# the other hooks": A's Children lu and A's Property ji both in B's Property palace;
# (4) both of A's ji in B's Property palace; (5) the two-sided closed door: A's Property
# ji lands in B's Property palace AND B's Property ji lands in A's Property palace.
# For (5), K[s][t] = charts whose Property stem is s and whose Property palace holds the
# ji star of stem t; the count is sum over s, t of K[s][t] * K[t][s].
NAYIN = "310231423042104" * 2
BUREAU = {4: 2, 0: 3, 3: 4, 2: 5, 1: 6}
SIHUA = [["LianZhen", "PoJun", "WuQu", "TaiYang"], ["TianJi", "TianLiang", "ZiWei", "TaiYin"],
         ["TianTong", "TianJi", "WenChang", "LianZhen"], ["TaiYin", "TianTong", "TianJi", "JuMen"],
         ["TanLang", "TaiYin", "YouBi", "TianJi"], ["WuQu", "TanLang", "TianLiang", "WenQu"],
         ["TaiYang", "WuQu", "TaiYin", "TianTong"], ["JuMen", "TaiYang", "WenQu", "WenChang"],
         ["TianLiang", "ZiWei", "ZuoFu", "WuQu"], ["PoJun", "JuMen", "TaiYin", "TanLang"]]
HUA = ["lu", "quan", "ke", "ji"]
TARGET = {0: "Self", 2: "Spouse", 3: "Children", 9: "Property"}

def charts():
    """Yield (stem of the Yin palace, Ming branch, {star: palace index}) for all 43200 cases."""
    for ys in range(10):
        y0 = (ys % 5 * 2 + 2) % 10
        for month in range(1, 13):
            for hour in range(12):
                ming = (2 + month - 1 - hour) % 12
                st = (y0 + (ming - 2) % 12) % 10
                bu = BUREAU[int(NAYIN[((6 * st - 5 * ming) % 60) // 2])]
                for day in range(1, 31):
                    k = 0
                    while (day + k) % bu:
                        k += 1
                    zw = (2 + (day + k) // bu - 1 + (k if k % 2 == 0 else -k)) % 12
                    tf = (4 - zw) % 12
                    pos = {"ZiWei": zw, "TianJi": zw - 1, "TaiYang": zw - 3, "WuQu": zw - 4,
                           "TianTong": zw - 5, "LianZhen": zw - 8, "TianFu": tf, "TaiYin": tf + 1,
                           "TanLang": tf + 2, "JuMen": tf + 3, "TianXiang": tf + 4, "TianLiang": tf + 5,
                           "QiSha": tf + 6, "PoJun": tf + 10, "WenChang": 10 - hour, "WenQu": 4 + hour,
                           "ZuoFu": 4 + month - 1, "YouBi": 10 - (month - 1)}
                    yield y0, ming, {s: (ming - b) % 12 for s, b in pos.items()}

def stem_of(y0, ming, palace):
    """Five-tiger stem of the palace that sits `palace` steps counter-clockwise from Ming."""
    return (y0 + ((ming - palace) % 12 - 2) % 12) % 10

PROP, CHILDREN = 9, 3

if __name__ == "__main__":
    cb = list(charts())
    n, t = len(cb), len(cb) ** 2
    pair_n, K = {}, [[0] * 10 for _ in range(10)]
    for y0, ming, pal in cb:
        key = (stem_of(y0, ming, CHILDREN), stem_of(y0, ming, PROP))
        pair_n[key] = pair_n.get(key, 0) + 1
        for s in range(10):
            K[key[1]][s] += pal[SIHUA[s][3]] == PROP
    dist, ji_same, give_hook, two_ji = [0] * 9, 0, 0, 0
    for y0, ming, pal in cb:
        for (c, p), w in pair_n.items():
            pc = [pal[SIHUA[c][h]] for h in range(4)]
            pp = [pal[SIHUA[p][h]] for h in range(4)]
            dist[sum(x == PROP for x in pc + pp)] += w
            ji_same += w * (pc[3] == pp[3])
            give_hook += w * (pc[0] == PROP and pp[3] == PROP)
            two_ji += w * (pc[3] == PROP and pp[3] == PROP)
    print("   pairs: {}".format(t))
    for k in range(9):
        if dist[k]:
            print("   {} of A's eight arrows land in B's Property palace: {:.4f}".format(k, dist[k] / t))
    print("   at least one arrow there: {:.4f}".format(1 - dist[0] / t))
    print("   A's two ji in the same palace of B: {:.4f}".format(ji_same / t))
    print("   Children lu and Property ji both in B's Property palace: {:.4f}".format(give_hook / t))
    print("   both of A's ji in B's Property palace: {:.4f}".format(two_ji / t))
    mutual = sum(K[s][u] * K[u][s] for s in range(10) for u in range(10))
    print("   closed door both ways: {} pairs = {:.4f}   (1/144 = {:.4f})".format(
        mutual, mutual / t, 1 / 144))
    print("   closed door at least one way: {:.4f}".format(2 / 12 - mutual / t))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《钦天双人合盘与宿命情缘飞化母典》第 5 章「田宅一行:共同的家、领地与关上的门」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-120 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026120,
  author    = {Fan, Yafu},
  title     = {The Qintian Synastry Codex of Cross-Flying Transformations},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论