5D Library › Dyadic Phase Coupling, Bilinear Compatibility Tensors and Spatiotemporal Grid Games · 中文

Chapter 7. Xian and Heng, “the Two Solstices Return Home”, and Magic Squares

Why read the Zhouyi here

The second part of the Zhouyi opens with the hexagrams Xian and Heng, traditionally read as the beginning of human relations: Xian is about mutual influence, Heng about lasting. These are exactly the two themes of the first four chapters of this book — “compatibility and locking” in Chapters 1 and 2, and “how long it lasts” in Chapter 4. This chapter reads the Tuan commentary on the two hexagrams alongside the models, returns to the nine palaces of Chapter 5 and Yang Hui’s magic squares, and marks clearly where reading becomes interpretation.

The texts

Source text

Tuan commentary on Xian (31)

咸,感也。柔上而剛下,二氣感應以相與,止而說,男下女,是以亨利貞,取女吉也。天地感而萬物化生,聖人感人心而天下和平。觀其所感,而天地萬物之情可見矣。 “Xian means influence. The soft is above and the firm below; the two vital forces stimulate and respond to each other and so join together … Heaven and Earth stimulate each other and the ten thousand things are transformed and born … Observe what they are influenced by, and the nature of Heaven, Earth and the ten thousand things can be seen.”

Tuan commentary on Heng (32)

恒,久也。剛上而柔下,雷風相與,巽而動,剛柔皆應,恒。……日月得天而能久照,四時變化而能久成,聖人久於其道而天下化成。觀其所恒,而天地萬物之情可見矣。 “Heng means lasting. The firm is above and the soft below; thunder and wind join each other … Sun and moon, holding to Heaven, can shine for ever; the four seasons change and can complete for ever … Observe what they persist in, and the nature of Heaven, Earth and the ten thousand things can be seen.”

Appended Statements, part one

二人同心,其利斷金;同心之言,其臭如蘭。 “When two people are of one mind, their sharpness cuts through metal; words of one mind are fragrant as orchids.”

(Lynn 1994; Wilhelm 1967)

“The soft above, the firm below” is an exact statement about trigrams

Of the eight trigrams, Zhen, Kan and Gen, with one yang and two yin lines, are “firm” (yang trigrams); Xun, Li and Dui, with one yin and two yang lines, are “soft” (yin trigrams). Xian is Dui above Gen: the upper trigram Dui is soft and the lower Gen firm — exactly “the soft above, the firm below”. Heng is Zhen above Xun: firm above, soft below — exactly “the firm above, the soft below”. The fourteenth program checks both sentences and shows how the two hexagrams are related.

Calculation

# 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'.

Both Tuan sentences are exact statements about the trigrams. More interesting is the third line: Xian turned upside down is Heng — the two are each other’s “reversed hexagram”. Turning a hexagram upside down exchanges the places of its two trigrams and turns each over; Gen turned over is Zhen and Dui turned over is Xun, so Xian, “the youngest son below and the youngest daughter above”, becomes Heng, “the eldest daughter below and the eldest son above”. Among the sixty-four hexagrams 9 have the soft above the firm and 9 the firm above the soft, and reversal maps the first set one to one onto the second.

Hypothesis · not established

The author’s interpretation (not established; a hypothesis about the text): in the bilinear model of Chapter 1, exchanging the two roles in a pair — giver and receiver swapped — replaces the matrix MM by its transpose M⊤M^{\top}. Xian and Heng, each the other upside down, can be read as two arrangements of the same roles: “influence” is action in one direction, and “lasting” is what still holds once the roles are exchanged. In the decomposition of Chapter 1 the part unchanged by the exchange is the symmetric part SS, and the part that changes sign is the antisymmetric part KK; reading “lasting” as SS and “the direction of influence” as KK is this book’s interpretation, not the meaning of the Tuan commentary. What would show the reading to be inapt: if the commentators across the centuries agree in explaining the relation of Xian and Heng as something unconnected with an exchange of roles (merely succession in time, say), the reading is only a modern gloss.

Note

“Two people of one mind” and Chapter 1. The Appended Statements say that when two people are of one mind their sharpness cuts through metal. In the language of Chapter 1, “one mind” is closest to K=0K = 0: the scores in both directions are equal and nothing flows one way. The conclusion of Chapter 3 is a reminder that even with complete symmetry two equal oscillators coupled together both pay amplitude — in the model, “the sharpness that cuts metal” is not free. All of this is analogy.

“The two solstices return home to palaces one and nine”

The Qimen Dunjia verse known as the Rhapsody of the Old Fisherman of Mist and Waves opens “阴阳顺逆妙难穷,二至还乡一九宫”: “Yin and yang, forwards and back, are endlessly subtle; at the two solstices they return home to palaces one and nine” (the usual text; tradition differs on its author and date; the wording has been checked against the standard printed edition). The line describes the flying of Chapter 5: after the winter solstice comes the yang period, flying forwards from palace one; after the summer solstice the yin period, flying backwards from palace nine. The last three lines of the program write out the two paths: the yang path is 1, 2, …, 9 and the yin path 9, 8, …, 1, each the other reversed — in the language of permutations, the yin path is the inverse f−1f^{-1} of the yang path. The two solstices are the only two moments in the year at which the direction changes; in the language of Chapter 4 they are exactly a kind of fixed-date “outside event” — except that what changes here is the direction of flight, not the phase of a relationship.

Magic squares

Chapter 5 has already carried out Yang Hui’s “nine numbers in slanting rows”. In his Xugu zhaiqi suanfa of 1275 Yang Hui gave not only the square of order three but magic squares of orders four to ten and rules for building them; Cammann and Swetz have studied how this tradition developed in China (Cammann 1960; Swetz 2008). The calculation of Chapter 5 adds one modern remark: in order three there is only one solution up to symmetry, so Yang Hui’s rule does not pick one square among many but gives the square.

Summary

The Tuan sentences on Xian and Heng, “the soft above, the firm below” and “the firm above, the soft below”, are exact statements about trigrams, and Xian turned upside down is Heng. In the model of Chapter 1 exchanging roles is transposing the matrix; reading lasting as the symmetric part and the direction of influence as the antisymmetric part is an interpretation, and marked as one. The line “at the two solstices they return home to palaces one and nine” describes the flying of Chapter 5: the yin path is the inverse permutation of the yang path. Yang Hui’s rule gives the unique magic square of order three up to symmetry.

References

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).