Six-Line Hexagram Matrix: Deterministic Liu Yao Engine

Given a 6-bit hexagram and a timestamp, every line below is calculated. Nothing is generated.

Zero-LLM Deterministic (v1) SHA-256: 77aec407 Free, No Login
The .ai in our domain is where the app happens to be hosted — not what computes your reading. Jing Fang's Najia system (77–37 BC) is a deterministic symbolic compiler: given a hexagram and a casting time, the stem-branch pillars, the Self/Other pointers, the Six Relatives and the Void are all derived by fixed rules. There is no language model anywhere in the calculation path.
Four Pillars (Solar Longitude 214.8369°)
Y: Bing-Wu · M: Wu-Xu · D: Yi-Hai · H: Gui-Wei
Palace & Ruling Pointers
Kan Palace (Water) · 3rd Generation (San Shi)
Self (Shi): Line 3 · Other (Ying): Line 6
Day Void (Xun Kong) & Solar Offset
Void: Shen, You
Solar Offset: 0.0 min (EoT: false)
RFC-8785 SHA-256 Fingerprint (v1)
77aec407670e1a9f… (77aec407)
seed: none
Line (Top → Bottom) Value & State Role Najia Stem-Branch Six Relative Six Beast Void (Xun Kong) Month / Day Score Transformed Line
Line 6 8 · Yin (0) Other (Ying) Wu-Zi (Water Rat) Siblings (Xiong Di) Black Tortoise (Xuan Wu) Active -1 · Balanced (Ping) (Controlled (Ke), Prosperous (Wang)) Static
Line 5 7 · Yang (1) — Wu-Xu (Earth Dog) Officer (Guan Gui) White Tiger (Bai Hu) Active +3 · Prosperous (Wang) (Coinciding (Lin), Neutral (Ping)) Static
Line 4 8 · Yin (0) — Wu-Shen (Metal Monkey) Parents (Fu Mu) Flying Serpent (Teng She) VOID +2 · Prosperous (Wang) (Supported (Sheng), Neutral (Ping)) Static
Line 3 7 · Yang (1) Self (Shi) Ji-Hai (Water Pig) Siblings (Xiong Di) Hook Chen (Gou Chen) Active +1 · Balanced (Ping) (Controlled (Ke), Coinciding (Lin)) Static
Line 2 8 · Yin (0) — Ji-Chou (Earth Ox) Officer (Guan Gui) Vermilion Bird (Zhu Que) Active +1 · Balanced (Ping) (Prosperous (Wang), Neutral (Ping)) Static
Line 1 7 · Yang (1) — Ji-Mao (Wood Rabbit) Offspring (Zi Sun) Azure Dragon (Qing Long) Active +4 · Prosperous (Wang) (Harmonized (He), Supported (Sheng)) Static

Primary Hexagram #63: Ji Ji (After Completion)

Plain Meaning: the part after the win, which is harder.

Open Full #63 Text & Six Lines →

Resulting Hexagram #63: Ji Ji (After Completion)

Zero Moving Lines (Static Cast): Resulting figure equals Primary Hexagram #63.

Changing Lines Precedence Rules →
# Verify byte-level idempotency from any terminal:
curl -s "https://hexsage.ai/six-lines-najia?hex=101010&t=2026-10-28T14:08:00%2B08:00&format=json" | sha256sum

# Canonical SHA-256 Fingerprint (RFC 8785 sorted keys, excluding render timestamp):
77aec407670e1a9fd52fe019f7675164873c3ce6f8101f828ee515638569bd69

How Deterministic Six-Line Hexagram Matrix Works After the Cast

Most digital I Ching tools stop once six lines appear. In traditional six-line hexagram matrix modeling (Liu Yao or Najia), casting is only the input; the compiler combines the 6-bit figure with the exact timestamp to derive a deterministic chart.

1. The Cast Is Only the Input: Three Entry Paths

Every cast reduces to six values ordered bottom-up (Line 1 to Line 6, order=bottom-up):

2. The Moment Matters: Complete Casting Time and True Solar Time

In the six-line hexagram matrix, t records the second Line 6 settles. Two identical figures cast on different days keep the same internal stem-branch coordinates and Self/Other pointers, but their Six Relatives receive different prosperity scores and Day Void states. Any t missing an explicit UTC offset returns HTTP 400. Toggle day_boundary between 23:00 (Zi hour) and midnight, or pass lon for True Solar Time meridian offset (4 min/deg, excluding Equation of Time).

3. Four Pillars Computed from a Timestamp (Solar-Term Anchored)

Classical six-line hexagram matrix analysis anchors its Month Pillar to astronomical solar terms (Jie Qi, every 30° of solar longitude from Li Chun at 315°). Verify ten reference timestamps below:

# ISO-8601 Timestamp (t) Lon Year Month (Jie Qi) Day Hour Void (Xun Kong)
12026-02-03T12:00:00+08:00314.17°Yi-SiJi-ChouWu-ShenWu-WuYin, Mao
22026-02-04T12:00:00+08:00315.18°Bing-WuGeng-YinJi-YouGeng-WuYin, Mao
32026-03-20T23:30:00+08:000.02°Bing-WuXin-MaoJia-ZiJia-ZiXu, Hai
42026-06-21T18:00:00+08:0090.03°Bing-WuJia-WuBing-ShenDing-YouChen, Si
52026-10-08T04:00:00+08:00194.68°Bing-WuDing-YouYi-MaoWu-YinZi, Chou
62026-10-09T04:00:00+08:00195.67°Bing-WuWu-XuBing-ChenGeng-YinZi, Chou
72026-10-28T14:08:00+08:00214.84°Bing-WuWu-XuYi-HaiGui-WeiShen, You
82026-11-07T20:00:00+08:00225.10°Bing-WuJi-HaiYi-YouBing-XuWu, Wei
92026-12-22T06:00:00+00:00270.15°Bing-WuGeng-ZiGeng-WuJi-MaoXu, Hai
102027-01-06T12:00:00+08:00285.61°Bing-WuXin-ChouYi-YouRen-WuWu, Wei

Locating Self, Other, and Five-Element Scores in Liu Yao Najia

Han scholar Jing Fang (77–37 BC) organized the 64 figures into Eight Palaces (Ba Gong), equipping each hexagram with mechanical pointers and Five-Element coordinates.

4. Self (Shi) and Other (Ying): Locating the Ruling Line Mechanically

In the six-line hexagram matrix, Self and Other are exact line indices (self_line and other_line, separated by 3 steps) determined by the bitwise XOR difference delta = lower_trigram XOR upper_trigram in GF(2)^3:

XOR (L ⊕ U) Palace Generation Palace Source Self (Shi) Other (Ying) Example
000Palace Root (Ben Gong)Upper TrigramLine 6Line 3#1 Qian (111111)
1001st Generation (Yi Shi)Upper TrigramLine 1Line 4#44 Gou (011111)
1102nd Generation (Er Shi)Upper TrigramLine 2Line 5#33 Dun (001111)
1113rd Generation (San Shi)Upper TrigramLine 3Line 6#63 Ji Ji (101010)
0114th Generation (Si Shi)NOT(Lower)Line 4Line 1#20 Guan (000011)
0015th Generation (Wu Shi)NOT(Lower)Line 5Line 2#23 Bo (000001)
101Wandering Soul (You Hun)NOT(Lower)Line 4Line 1#35 Jin (000101)
010Returning Soul (Gui Hun)Lower TrigramLine 3Line 6#14 Da You (111101)

5. Five Elements and Six Relatives: Quantitative Scoring

Comparing each line's Najia branch element against the Palace Element yields the Six Relatives: Same = Siblings; produces Palace = Parents; produced by Palace = Offspring; controlled by Palace = Wealth; controls Palace = Officer. In ?hex=101010&t=2026-10-28T14:08:00%2B08:00 (#63 Ji Ji, Kan Water Palace), Line 4 carries Wu-Shen Metal → Metal produces Water = Parents → Day Yi-Hai places Shen, You in Day Void → Month Xu supports Shen (+2), scoring +2 (Prosperous, Void).

Six-line hexagram matrix deterministic Liu Yao Najia stem-branch compiler chart
▶ Watch 2K Lecture: Jing Fang 8-Palace XOR Engine (2:47)
EP.02 · Najia & Shi-Ying Coordinates YouTube ↗

What the Hexagram Says (and Why "Six Lines" Isn't Human Design)

English readers exploring a six-line hexagram matrix (Liu Yao) often encounter "Human Design"—a modern personality typology that borrows hexagram numbers from birth time alone without casting.

6. Classical Hexagram Text vs. Modern Bodygraph Systems

Classical six-line hexagram matrix analysis requires both a freshly cast hexagram and the completion timestamp, pairing Jing Fang's stem-branch mechanics with the Zhouyi judgment text. Every chart above links directly to our How to Read Changing Lines guide, I Ching Yes or No matrix, and I Ching Career Guidance.

7. Worked Example, End to End: Moving Lines in ?hex=789876

Open /six-lines-najia?hex=789876&t=2026-10-28T14:08:00%2B08:00 (aca0ede1): bottom-up [7,8,9,8,7,6] yields Primary #63 Ji Ji with moving lines at Line 3 (Old Yang 9, Self) and Line 6 (Old Yin 6, Other), transforming into #42 Yi (Line 3 Ji-Hai Siblings → Yi-Mao Offspring; Line 6 Wu-Zi Siblings → Wu-Xu Officer).

Prove It Yourself: Modulo-4 Invariance and the 36:11 Boundary Bound

In debates over digital yarrow stalks vs. three-coin generators, everything in yarrow stalk casting reduces to modulo-4 arithmetic.

8. Support Invariance {6, 7, 8, 9} and the 36:11 Boundary Proof

In Change 1 (49 stalks, 1 set aside, 48 in play), splitting into L and 48 - L and counting by fours (where divisible by 4 yields remainder 4) removes r(L) + r(48 - L) + 1. Since 48 ≡ 0 (mod 4), only residue pair (0,0) removes 9 while (1,3), (3,1), (2,2) remove 5. Changes 2 and 3 operate on 44 or 40 stalks and remove 4 or 8, locking the three-change support strictly to {6, 7, 8, 9} under any split distribution.

Why does uniform splitting over L ∈ [1, 47] give 36:11 (≈ 3.27:1) instead of 3:1? Both excluded boundaries (L=0, 48) lie in residue class 0 (mod 4), leaving 11 points vs. 12 each in 1, 2, 3. Smooth hand splits restore 3:1. Audit this in the six-line hexagram matrix:

Loading verification script...

Browse our 64 Hexagrams Reference Directory, I Ching Widgets, Research Resources, Curated Links, or Algorithm Changelog: