5D Library › 双人相位耦合、双线性相容张量与时空网格博弈 · English

第七章 咸与恒、「二至还乡」与纵横图

为什么在这里读《周易》

《周易》下经以咸、恒两卦开篇,传统上把它们读作人伦之始:咸讲感应,恒讲长久。这两个主题恰好是本书前四章的两个主题——第一、二章的「相容与锁相」,第四章的「能维持多久」。本章把两卦的《彖传》与前面的模型并读,再回到第五章的九宫与杨辉的纵横图,并清楚标明何处由阅读变成了诠释。

原文

原典

《周易·咸·彖》

咸,感也。柔上而剛下,二氣感應以相與,止而說,男下女,是以亨利貞,取女吉也。天地感而萬物化生,聖人感人心而天下和平。觀其所感,而天地萬物之情可見矣。

《周易·恒·彖》

恒,久也。剛上而柔下,雷風相與,巽而動,剛柔皆應,恒。……日月得天而能久照,四時變化而能久成,聖人久於其道而天下化成。觀其所恒,而天地萬物之情可見矣。

《周易·系辞上》

二人同心,其利斷金;同心之言,其臭如蘭。

(Lynn 1994; Wilhelm 1967)

「柔上而刚下」是关于三画卦的精确陈述

八个三画卦中,一阳二阴的震、坎、艮为「刚」(阳卦),一阴二阳的巽、离、兑为「柔」(阴卦)。咸卦是兑上艮下:上卦兑为柔,下卦艮为刚,正是「柔上而刚下」;恒卦是震上巽下:上刚下柔,正是「刚上而柔下」。第十四段程序检查这两句话,并说明两卦的关系。

推导

# Chapter 7. Xian and Heng as a transposed pair; the two solstice paths.
# A hexagram is six lines read from the bottom (1 = yang, 0 = yin); its
# lower trigram is lines 1-3, its upper trigram lines 4-6. A trigram with
# one yang line is a "yang" (firm) trigram, one with one yin line "yin"
# (soft). The Tuan commentary says of Xian (31) "the soft above, the firm
# below" and of Heng (32) "the firm above, the soft below".
# Part 1 checks these words, shows that Heng is Xian read upside down
# (reversal: lower and upper trigrams swap and each is turned over), and
# counts the hexagrams of each kind. Part 2 lists the flying order through
# the nine palaces in the yang half-year (forward from palace 1, winter
# solstice) and the yin half-year (backward from palace 9, summer solstice).
TRI = {(1, 1, 1): "Qian", (0, 0, 0): "Kun", (1, 0, 0): "Zhen",
       (0, 1, 0): "Kan", (0, 0, 1): "Gen", (0, 1, 1): "Xun",
       (1, 0, 1): "Li", (1, 1, 0): "Dui"}

def kind(t):
    s = sum(t)
    return "firm" if s == 1 else "soft" if s == 2 else "pure"

def describe(h):
    lo, up = tuple(h[:3]), tuple(h[3:])
    return "{} over {} ({} above, {} below)".format(
        TRI[up], TRI[lo], kind(up), kind(lo))

if __name__ == "__main__":
    xian = [0, 0, 1, 1, 1, 0]       # Gen below, Dui above
    heng = [0, 1, 1, 1, 0, 0]       # Xun below, Zhen above
    print("   Xian: " + describe(xian))
    print("   Heng: " + describe(heng))
    print("   Heng is Xian reversed: {}".format(heng == xian[::-1]))
    print("   Xian complemented: " + describe([1 - b for b in xian]))
    soft_up = firm_up = mapped = 0
    for n in range(64):
        h = [(n >> i) & 1 for i in range(6)]
        k_up, k_lo = kind(tuple(h[3:])), kind(tuple(h[:3]))
        if (k_up, k_lo) == ("soft", "firm"):
            soft_up += 1
            r = h[::-1]
            mapped += (kind(tuple(r[3:])), kind(tuple(r[:3]))) == \
                ("firm", "soft")
        firm_up += (k_up, k_lo) == ("firm", "soft")
    print("   soft above firm: {} hexagrams; firm above soft: {};"
          " reversal maps".format(soft_up, firm_up))
    print("   every soft-over-firm one to a firm-over-soft one: {}".format(
        mapped == soft_up))
    fwd = [k % 9 + 1 for k in range(9)]
    bwd = [9 - k for k in range(9)]
    print("\n   yang half-year, from palace 1: " + " ".join(map(str, fwd)))
    print("   yin half-year,  from palace 9: " + " ".join(map(str, bwd)))
    print("   each path is the other read backwards: {}".format(
        bwd == fwd[::-1]))
    print("\nReading: the two Tuan sentences are exact statements about the")
    print("trigrams, and turning Xian upside down gives Heng - the same two")
    print("roles with the giver and receiver exchanged, which in the")
    print("bilinear model of Chapter 1 is M against its transpose M'.")
#    Xian: Dui over Gen (soft above, firm below)
#    Heng: Zhen over Xun (firm above, soft below)
#    Heng is Xian reversed: True
#    Xian complemented: Gen over Dui (firm above, soft below)
#    soft above firm: 9 hexagrams; firm above soft: 9; reversal maps
#    every soft-over-firm one to a firm-over-soft one: True
#
#    yang half-year, from palace 1: 1 2 3 4 5 6 7 8 9
#    yin half-year,  from palace 9: 9 8 7 6 5 4 3 2 1
#    each path is the other read backwards: True
#
# Reading: the two Tuan sentences are exact statements about the
# trigrams, and turning Xian upside down gives Heng - the same two
# roles with the giver and receiver exchanged, which in the
# bilinear model of Chapter 1 is M against its transpose M'.

两句《彖传》都是对三画卦的精确陈述。更有意思的是第三行:把咸卦倒过来,就是恒卦——两卦互为「综卦」。颠倒一个六画卦,上下两个三画卦交换位置,各自也上下翻转;艮翻过来是震,兑翻过来是巽,所以「少男在下、少女在上」的咸,颠倒后成为「长女在下、长男在上」的恒。在六十四卦中,柔上刚下的卦有 9 个,刚上柔下的也是 9 个,颠倒把前者一一映到后者。

假说 · 尚未验证

作者的诠释(尚未验证,关于文本的假说): 在第一章的双线性模型中,颠倒一对关系中的两个角色——给予者与接受者对调——就是把矩阵 MM 换成它的转置 M⊤M^{\top}。咸与恒互为颠倒,可以读作同一组角色的两种排列:「感」是一个方向的作用,「恒」是角色对调之后仍然成立的那一部分。按照第一章的分解,对调前后都不变的是对称部分 SS,随对调变号的是反对称部分 KK;把「恒久」读作 SS、把「感应的方向」读作 KK,是本书的诠释,不是《彖传》的本义。什么会证明这一读法不当:如果历代注疏一致把咸、恒的关系解释为与角色对调无关的另一种关系(例如只是时间先后),这一读法就只是现代的附会。

注

「二人同心」与第一章。 《系辞》说「二人同心,其利断金」。在第一章的语言中,「同心」最接近 K=0K = 0:两个方向的分数相同,不存在单向流动。第三章的结论则提醒,即使完全对称,相同的两个振子耦合起来也都要付出振幅——「断金之利」在模型里并不是免费的。这些都是类比。

「二至还乡一九宫」

奇门遁甲的歌诀《烟波钓叟赋》以「阴阳顺逆妙难穷,二至还乡一九宫」开篇(通行本;作者与成书年代传统上有不同说法,字句已据通行刻本核对一致)。这一句说的是第五章的飞宫:冬至以后为阳遁,从一宫起顺飞;夏至以后为阴遁,从九宫起逆飞。程序的最后三行把两条路径写了出来:阳遁是 1, 2, …, 9,阴遁是 9, 8, …, 1,两者互为逆序——在置换的语言中,阴遁是阳遁的逆元 f−1f^{-1}。「二至」是一年中仅有的两个改变方向的时刻;在第四章的语言中,它们正是一类固定日期的「外部事件」——只不过在这里改变的是飞行的方向,而不是关系的相位。

纵横图

第五章已经执行了杨辉的「九子斜排」法。杨辉在 1275 年的《续古摘奇算法》里不止给出了三阶幻方,还给出了四阶到十阶的纵横图及其构造规则;卡曼与斯韦茨对这一传统在中国的演变作过系统的研究 (Cammann 1960; Swetz 2008)。第五章的计算补充了一点现代的说明:三阶的情形在对称意义下只有一个解,所以杨辉的规则不是在许多幻方中挑出一个,而是给出了唯一的那一个。

小结

咸、恒两卦的《彖传》「柔上而刚下」「刚上而柔下」是关于三画卦的精确陈述,而且咸卦颠倒过来就是恒卦。在第一章的模型中,颠倒角色对应矩阵的转置;把恒久读作对称部分、把感应的方向读作反对称部分,是本书标明的诠释。《烟波钓叟赋》的「二至还乡一九宫」描述的是第五章的飞宫:阴遁是阳遁的逆置换。杨辉的纵横图规则给出的是三阶幻方在对称意义下的唯一解。

参考文献

Cammann, Schuyler. 1960. “The Evolution of Magic Squares in China.” Journal of the American Oriental Society 80 (2): 116–24.
Lynn, Richard John. 1994. The Classic of Changes: A New Translation of the i Ching as Interpreted by Wang Bi. Columbia University Press.
Swetz, Frank J. 2008. Legacy of the Luoshu: The 4,000 Year Search for the Meaning of the Magic Square of Order Three. A K Peters.
Wilhelm, Richard. 1967. The i Ching or Book of Changes. 3rd ed. Translated by Cary F. Baynes. Princeton University Press.

Fan, Y. (2026). Dyadic Phase Coupling, Bilinear Compatibility Tensors and Spatiotemporal Grid Games: Asymmetric Kuramoto Locking, Stopping-Time Separation Hazards and Magic-Square Permutation Operators [双人相位耦合、双线性相容张量与时空网格博弈] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090172 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).