5D Library › 纳甲装卦与奇门遁甲排盘的组合计算 · English
第七章 《京氏易传》与《烟波钓叟赋》
为什么在这里读这些原典
纳甲与八宫题为西汉京房所传,奇门的局数与转盘之法以《烟波钓叟赋》为通行的总诀。本章回到这两部文本,核对前面的模型所依据的说法,并标明何处由阅读变成了诠释。
《京氏易传》:八宫与纳甲
今本《京氏易传》三卷,旧题京房撰、吴陆绩注,按八宫排列六十四卦,并以纳甲、世应、飞伏论卦 (Jing Fang (attributed) and Lu Ji (commentary), n.d.)。第一章的掩码描述把它的八宫序变成了一句话:纯卦异或八个固定的掩码。程序还统计了世爻在六爻上的分布。
推导
# Chapter 7. The numbers of the classics, recomputed.
# (1) The Rhapsody of the Old Fisherman (Yanbo diaosou fu) says Qimen
# once had 1,080 charts, cut to 72 and then to 18. We factor the three
# numbers in the terms of Chapter 3: bureaus, double-hours, solar terms
# and yuan.
# (2) Jing Fang's eight palaces (Chapter 1) put the world line on lines
# 6, 1, 2, 3, 4, 5, 4, 3 for the eight generations; we count how the 64
# hexagrams share the six lines.
SHI = (6, 1, 2, 3, 4, 5, 4, 3)
if __name__ == "__main__":
bureaus, hours, terms, yuan = 18, 60, 24, 3
print(" 1,080 = {} bureaus x {} double-hours of a bureau: {}".format(
bureaus, hours, bureaus * hours == 1080))
print(" 72 = {} solar terms x {} yuan: {}".format(
terms, yuan, terms * yuan == 72))
print(" 18 = 9 bureau numbers x 2 duns: {}".format(9 * 2 == 18))
print(" 72 term-yuan labels fall on 18 bureaus, {} labels each".format(
72 // 18))
print(" double-hours in a year of 72 five-day yuan: {:,d}".format(
72 * 60))
count = {line: 8 * SHI.count(line) for line in range(1, 7)}
print(" world line of the 64 hexagrams (line: hexagrams):")
print(" " + " ".join("{}: {}".format(k, v)
for k, v in count.items()))
print("\nReading: 1,080 counts bureau-hours, 72 counts term-yuan labels")
print("and 18 counts bureaus: three different units, not one list cut")
print("down twice. In the eight palaces the world line sits on line 3")
print("or 4 for half of all hexagrams.")
# 1,080 = 18 bureaus x 60 double-hours of a bureau: True
# 72 = 24 solar terms x 3 yuan: True
# 18 = 9 bureau numbers x 2 duns: True
# 72 term-yuan labels fall on 18 bureaus, 4 labels each
# double-hours in a year of 72 five-day yuan: 4,320
# world line of the 64 hexagrams (line: hexagrams):
# 1: 8 2: 8 3: 16 4: 16 5: 8 6: 8
#
# Reading: 1,080 counts bureau-hours, 72 counts term-yuan labels
# and 18 counts bureaus: three different units, not one list cut
# down twice. In the eight palaces the world line sits on line 3
# or 4 for half of all hexagrams.64 卦的世爻落在第三爻与第四爻的各有 16 卦,其余四爻各 8 卦:一半的卦,世爻在卦的中间两爻。这是八代掩码的直接结果(三世与归魂都在三爻,四世与游魂都在四爻)。文本没有说明为什么游魂、归魂要这样排;程序只能说明,这样排使上下卦之异或的八个值各不相同,世代因而可以由卦形直接读出。
《烟波钓叟赋》:一千八十、七十二、十八
这几句常被读作奇门的局数由一千零八十删为七十二、再删为十八。程序把三个数按第三章的单位分解:1,080 等于 18 局乘每局 60 个时辰;72 等于 24 个节气乘三元;18 等于九个局数乘阴阳二遁。三个数用的是三种不同的单位:局时、节气元、局。所以它们不是同一张表被删了两次,而是同一套系统的三种计数方式;72 个「节气—元」恰好四个一组落到 18 个局上(第三章)。
假说 · 尚未验证
作者的诠释(尚未验证): 赋中「删成」的说法,可以读作把以时辰计的组合(1,080)依次归并为以节气元计(72)与以局计(18)的过程,而不是历史上真有过三套不同的奇门。什么会证明这一读法不当:若有早期文献记载过一套真正以 1,080 个独立规则运作、互不归并的奇门体系,这一读法就不成立。
注
文本核对。 上面的赋文为通行文字,已据通行刻本核对一致;第 62 本所引首句「阴阳顺逆妙难穷,二至还乡一九宫」亦同。《京氏易传》的八宫序与纳甲表以通行本为准。
小结
《京氏易传》的八宫序使一半的卦世爻落在中间两爻,并使世代可由上下卦之异或直接读出。《烟波钓叟赋》的 1,080、72、18 是同一系统的三种计数单位:局时、节气元与局,不是同一张表的两次删减。
参考文献
Fan, Y. (2026). Najia Hexagram Encoding and Qimen Dunjia Combinatorial Engines: Eight-Palace Group Actions, Sexagenary Void Cosets, Split-Supplement versus Intercalation Divergences and Nine-Palace Rotor Permutations [纳甲装卦与奇门遁甲排盘的组合计算] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090182 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).