The Original I Ching
esenfr
← all experiments
宮 · 2nd century BCE

Jing Fang's Eight Palaces

Paths on the hypercube, described in the 2nd century BCE

Tap a house in the table to see which lines separate it from the pure hexagram of its palace.

Jing Fang (78–37 BCE) ordered the 64 hexagrams into 8 palaces. Each palace is born from a pure hexagram (a trigram repeated above and below) and begets 7 descendants by changing lines in a fixed order: 1, 2, 3, 4, 5, one line per step. Then the wandering soul (游魂) reverts line 4, and the returning soul (歸魂) recovers the lower trigram of origin.

Translated into bits, it is a directed walk over the hypercube Q6. And something remarkable happens: the 8 × 8 = 64 hexagrams all come out different. The palaces partition the whole set, without planning it with set theory.

There is also a bridge to another Han system: the 12 sovereign hexagrams of the calendar are exactly the first 6 generations of the palace of Qian and the 6 of Kun (6 and 6; zero in the other 6 palaces), a theorem the suite asserts.

8 × 8
Pure → Returning soul
64/64
distinct, a partition ✓
1·1·1·1·1·1·3
profile of jumps (Hamming)
游魂 · 歸魂
wandering soul · returning soul
本宮
Pure
一世
1st generation
二世
2nd generation
三世
3rd generation
四世
4th generation
五世
5th generation
游魂
Wandering soul
歸魂
Returning soul
☰Qian
Heaven
☳Zhen
Thunder
☵Kan
Water
☶Gen
Mountain
☷Kun
Earth
☴Xun
Wind
☲Li
Fire
☱Dui
Lake

Each row is a palace; each column, a stage of the generation. The last column (returning soul) changes only line 5 with respect to the pure hexagram, hence the jump of 3 lines in the profile 1·1·1·1·1·1·3.

pure · Qián
→
本宮 · Pure
䷀ 1. Qián
111111₂ = 63

the palace in its original state.

Lines changed from the pure hexagram
none, it is the pure hexagram