关于「格局的频率、约定的分歧与相邻时辰」,《纳甲与奇门的组合计算》给出的定量结论是什么?

结论:第六章计算格局:天盘击刑出现在 0.5296 的局时中,三种通行的入墓规则对同一张盘两两意见不一的比例在 0.1944 与 0.4046 之间;五不遇时的歌诀漏列了己日与庚日的第二个解;相邻时辰之间,伏吟、击刑、入墓的标记有四成到五成半会改变。

数据口径:书中以标注框区分证据、16 段可运行的 Python 程序、原典与假说。

English version

对照数据表

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

1,080 bureau-hours
six yi punish somewhere on the heaven plate0.5296
a qi in the tomb, common rule0.3426
a qi in the tomb, same-life rule0.3361
a qi in the tomb, yang-dies rule0.3315
tomb verdict differs, common vs same-life0.2102
tomb verdict differs, common vs yang-dies0.1944
tomb verdict differs, same-life vs yang-dies0.4046
Reading: some 'punishment' is on the heaven plate in more
than half of all charts and a qi is in a tomb in about a third.
The three printed tomb rules disagree about a given chart for
between a fifth and two fifths of all bureau-hours.
查看完整验算程序
# Chapter 6. How often the named patterns occur, and under which rules.
# Heaven plate as in p08: each outer star carries the earth-plate symbol
# of its home palace round the ring; the centre's symbol rides with Rui.
# Patterns read on the heaven plate (palace numbers):
#   "six yi punish" (ji xing): wu on 3, ji on 2, geng on 8, xin on 9,
#     ren on 4, gui on 4;
#   "three qi in the tomb" (ru mu), three printed conventions:
#     common      yi on 2, bing on 6, ding on 8
#     same-life   yi on 2, bing on 6, ding on 6  (yin and yang stems
#                 share their tomb)
#     yang-dies   yi on 6, bing on 6, ding on 8  (yin stems take the
#                 tomb of the opposite cycle)
SYMBOLS = ("wu", "ji", "geng", "xin", "ren", "gui", "ding", "bing", "yi")
STEMS = ("jia", "yi", "bing", "ding", "wu", "ji", "geng", "xin", "ren",
         "gui")
RING = (1, 8, 3, 4, 9, 2, 7, 6)
LEADER = ("wu", "ji", "geng", "xin", "ren", "gui")
PUNISH = {"wu": 3, "ji": 2, "geng": 8, "xin": 9, "ren": 4, "gui": 4}
TOMB = {"common": {"yi": 2, "bing": 6, "ding": 8},
        "same-life": {"yi": 2, "bing": 6, "ding": 6},
        "yang-dies": {"yi": 6, "bing": 6, "ding": 8}}

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

def outer(p):
    return 2 if p == 5 else p

def heaven(b, yang, k):
    e = {s: nine(b + i) if yang else nine(b - i)
         for i, s in enumerate(SYMBOLS)}
    lead, stem = LEADER[k // 10], STEMS[k % 10]
    r = (RING.index(outer(e[lead if stem == "jia" else stem]))
         - RING.index(outer(e[lead]))) % 8
    where = {}
    for s, p in e.items():
        src = 2 if p == 5 else p
        where[s] = RING[(RING.index(src) + r) % 8]
    return where

def flags(where):
    punish = any(where[s] == p for s, p in PUNISH.items())
    tomb = {c: any(where[s] == p for s, p in t.items())
            for c, t in TOMB.items()}
    return punish, tomb

if __name__ == "__main__":
    rows = [flags(heaven(b, y, k)) for b in range(1, 10) for y in (1, 0)
            for k in range(60)]
    n = len(rows)
    print("   {:,d} bureau-hours".format(n))
    print("   six yi punish somewhere on the heaven plate: {:.4f}".format(
        sum(p for p, _ in rows) / n))
    for c in TOMB:
        print("   a qi in the tomb, {:9s} rule: {:.4f}".format(
            c, sum(t[c] for _, t in rows) / n))
    names = list(TOMB)
    for i in range(3):
        for j in range(i + 1, 3):
            d = sum(t[names[i]] != t[names[j]] for _, t in rows) / n
            print("   tomb verdict differs, {} vs {}: {:.4f}".format(
                names[i], names[j], d))
    print("\nReading: some 'punishment' is on the heaven plate in more")
    print("than half of all charts and a qi is in a tomb in about a third.")
    print("The three printed tomb rules disagree about a given chart for")
    print("between a fifth and two fifths of all bureau-hours.")

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《纳甲装卦与奇门遁甲排盘的组合计算》第 6 章「格局的频率、约定的分歧与相邻时辰」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090182

DOI: 10.5281/zenodo.24090182 · 阅读本章所在专著 · 5DL-B-067 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026067,
  author    = {Fan, Yafu},
  title     = {Najia Hexagram Encoding and Qimen Dunjia Combinatorial Engines},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.24090182},
  url       = {https://doi.org/10.5281/zenodo.24090182}
}

本书其他章节结论