1 package hexagram
2 3 // HexagramInfo holds the classical I Ching data for one hexagram.
4 // The King Wen sequence (1-64) is the traditional ordering.
5 // The binary encoding (0-63) is the Shao Yong ordering used by
6 // the lattice engine: inner trigram in low 3 bits, outer in high 3 bits.
7 type HexagramInfo struct {
8 KingWen int // 1-64: traditional sequence number
9 Chinese string // Chinese character(s)
10 Pinyin string // romanized pronunciation
11 English string // fresh English translation of the name
12 Translation string // English description for the lattice
13 Upper string // upper trigram name
14 Lower string // lower trigram name
15 }
16 17 // KingWenSequence returns all 64 hexagrams in King Wen order.
18 func KingWenSequence() [64]HexagramInfo {
19 return kingWen
20 }
21 22 // ByKingWen returns the hexagram info for a King Wen number (1-64).
23 func ByKingWen(n int) HexagramInfo {
24 if n < 1 || n > 64 {
25 return HexagramInfo{}
26 }
27 return kingWen[n-1]
28 }
29 30 var kingWen = [64]HexagramInfo{
31 {1, "乾", "qián", "Force", "Pure creative energy — six unbroken lines. The source of all dynamism. In the lattice: maximum accretion potential, all bits yang.", "Heaven", "Heaven"},
32 {2, "坤", "kūn", "Field", "Pure receptive capacity — six broken lines. The substrate that receives form. In the lattice: maximum dissolution potential, all bits yin.", "Earth", "Earth"},
33 {3, "屯", "zhūn", "Sprouting", "Difficulty at the beginning — thunder beneath water. The first nucleation event: energy meets resistance. In the lattice: initial bond formation against entropy.", "Water", "Thunder"},
34 {4, "蒙", "méng", "Enveloping", "Youthful folly — mountain over water. Ignorance before learning: the constraint field has not yet formed. In the lattice: uncharacterized vacant sites.", "Mountain", "Water"},
35 {5, "需", "xū", "Attending", "Waiting before action — water over heaven. Energy present but timing not right. In the lattice: supersaturated solution not yet nucleating.", "Water", "Heaven"},
36 {6, "訟", "sòng", "Conflict", "Opposing forces — heaven over water. Creative energy meets abysmal depth. In the lattice: competing candidates at an ambiguity site.", "Heaven", "Water"},
37 {7, "師", "shī", "Leading", "The army — earth over water. Disciplined force from hidden depths. In the lattice: coordinated accretion across multiple sites.", "Earth", "Water"},
38 {8, "比", "bǐ", "Grouping", "Holding together — water over earth. Cohesion through shared substrate. In the lattice: neighbor bonds forming a connected cluster.", "Water", "Earth"},
39 {9, "小畜", "xiǎo xù", "Small Accumulating", "Gentle restraint — wind over heaven. Soft constraint on strong force. In the lattice: coherence pruning of vigorous growth.", "Wind", "Heaven"},
40 {10, "履", "lǚ", "Treading", "Careful conduct — heaven over lake. Strength walking on the joyous. In the lattice: testing boundaries of the constraint envelope.", "Heaven", "Lake"},
41 {11, "泰", "tài", "Pervading", "Peace — earth over heaven. The receptive above the creative: perfect circulation. In the lattice: equilibrium state where growth and dissolution balance.", "Earth", "Heaven"},
42 {12, "否", "pǐ", "Obstruction", "Standstill — heaven over earth. Creative above receptive: stagnation. In the lattice: frozen defect where flow cannot reach.", "Heaven", "Earth"},
43 {13, "同人", "tóng rén", "Concording People", "Fellowship — heaven over fire. Creative meets clarity. In the lattice: nodes sharing the same constraint signature.", "Heaven", "Fire"},
44 {14, "大有", "dà yǒu", "Great Possessing", "Great possession — fire over heaven. Clarity illuminates force. In the lattice: rich occupancy with high lock-in depth.", "Fire", "Heaven"},
45 {15, "謙", "qiān", "Humbling", "Modesty — earth over mountain. The great mountain hidden below. In the lattice: high-value nodes that do not advertise their importance.", "Earth", "Mountain"},
46 {16, "豫", "yù", "Providing-For", "Enthusiasm — thunder over earth. Movement arises from the receptive. In the lattice: nucleation triggered by environmental readiness.", "Thunder", "Earth"},
47 {17, "隨", "suí", "Following", "Following — lake over thunder. Joy follows movement. In the lattice: elements flowing to sites of best fit.", "Lake", "Thunder"},
48 {18, "蠱", "gǔ", "Correcting", "Decay and renewal — mountain over wind. Stillness over gentle penetration. In the lattice: repairing accumulated defects through dissolution and re-bonding.", "Mountain", "Wind"},
49 {19, "臨", "lín", "Nearing", "Approach — earth over lake. The receptive draws near the joyous. In the lattice: solution approaching vacant constraint sites.", "Earth", "Lake"},
50 {20, "觀", "guān", "Viewing", "Contemplation — wind over earth. Gentle observation of the whole. In the lattice: surveying the lattice state before acting.", "Wind", "Earth"},
51 {21, "噬嗑", "shì kè", "Gnawing Bite", "Biting through — fire over thunder. Clarity meets movement to break obstacles. In the lattice: forced resolution of stuck ambiguities.", "Fire", "Thunder"},
52 {22, "賁", "bì", "Adorning", "Grace — mountain over fire. Stillness adorned by clarity. In the lattice: strengthening existing bonds without expanding.", "Mountain", "Fire"},
53 {23, "剝", "bō", "Stripping", "Splitting apart — mountain over earth. Stillness over receptivity: erosion. In the lattice: controlled dissolution of weak outer bonds.", "Mountain", "Earth"},
54 {24, "復", "fù", "Returning", "Return — earth over thunder. Movement returns within the receptive. In the lattice: re-nucleation after dissolution — the first yang line returns.", "Earth", "Thunder"},
55 {25, "无妄", "wú wàng", "Without Embroiling", "Innocence — heaven over thunder. Creative movement without contrivance. In the lattice: spontaneous correct bonding without oracle guidance.", "Heaven", "Thunder"},
56 {26, "大畜", "dà xù", "Great Accumulating", "Great taming power — mountain over heaven. Stillness containing creative force. In the lattice: deep lock-in of high-energy elements.", "Mountain", "Heaven"},
57 {27, "頤", "yí", "Swallowing", "Nourishment — mountain over thunder. Stillness above, movement below. In the lattice: controlled intake of elements from solution.", "Mountain", "Thunder"},
58 {28, "大過", "dà guò", "Great Exceeding", "Preponderance of the great — lake over wind. Joy exceeds gentleness: structural overload. In the lattice: too many bonds straining the constraint envelope.", "Lake", "Wind"},
59 {29, "坎", "kǎn", "Gorge", "The abyss — water doubled. Danger upon danger. In the lattice: deep recursive defect requiring multi-step repair.", "Water", "Water"},
60 {30, "離", "lí", "Radiance", "Clinging fire — fire doubled. Clarity upon clarity. In the lattice: full illumination of constraint structure — oracle complete.", "Fire", "Fire"},
61 {31, "咸", "xián", "Conjoining", "Influence — lake over mountain. Joy above stillness: mutual attraction. In the lattice: complementary sites discovering each other.", "Lake", "Mountain"},
62 {32, "恆", "héng", "Persevering", "Duration — thunder over wind. Movement over penetration. In the lattice: stable oscillation between growth and pruning.", "Thunder", "Wind"},
63 {33, "遯", "dùn", "Retiring", "Retreat — heaven over mountain. Creative withdraws to stillness. In the lattice: strategic dissolution to preserve core structure.", "Heaven", "Mountain"},
64 {34, "大壯", "dà zhuàng", "Great Invigorating", "Power of the great — thunder over heaven. Movement atop creative force. In the lattice: maximum growth rate with full energy.", "Thunder", "Heaven"},
65 {35, "晉", "jìn", "Prospering", "Progress — fire over earth. Clarity rises above receptivity. In the lattice: oracle insight spreading through the lattice.", "Fire", "Earth"},
66 {36, "明夷", "míng yí", "Darkening of the Light", "Brightness hiding — earth over fire. Receptivity conceals clarity. In the lattice: valid structure hidden by surface disorder.", "Earth", "Fire"},
67 {37, "家人", "jiā rén", "Dwelling People", "The family — wind over fire. Gentle influence from inner clarity. In the lattice: local coherence propagating to neighbors.", "Wind", "Fire"},
68 {38, "睽", "kuí", "Polarising", "Opposition — fire over lake. Clarity and joy facing opposite ways. In the lattice: adjacent nodes with incompatible constraints.", "Fire", "Lake"},
69 {39, "蹇", "jiǎn", "Limping", "Obstruction — water over mountain. Danger above stillness. In the lattice: growth blocked by unresolvable constraint.", "Water", "Mountain"},
70 {40, "解", "xiè", "Taking-Apart", "Deliverance — thunder over water. Movement releases from danger. In the lattice: dissolution that frees stuck elements for re-bonding.", "Thunder", "Water"},
71 {41, "損", "sǔn", "Diminishing", "Decrease — mountain over lake. Stillness decreases joy. In the lattice: pruning excess to strengthen remaining bonds.", "Mountain", "Lake"},
72 {42, "益", "yì", "Augmenting", "Increase — wind over thunder. Gentle penetration augments movement. In the lattice: enrichment through new element intake.", "Wind", "Thunder"},
73 {43, "夬", "guài", "Displacing", "Breakthrough — lake over heaven. Joy breaks through creative force. In the lattice: resolving long-standing ambiguity decisively.", "Lake", "Heaven"},
74 {44, "姤", "gòu", "Coupling", "Coming to meet — heaven over wind. Creative meets the gentle. In the lattice: unexpected element encountering a constraint site.", "Heaven", "Wind"},
75 {45, "萃", "cuì", "Clustering", "Gathering together — lake over earth. Joy collects on the receptive. In the lattice: elements concentrating at high-affinity sites.", "Lake", "Earth"},
76 {46, "升", "shēng", "Ascending", "Pushing upward — earth over wind. Receptive rises through gentleness. In the lattice: gradual lock-in deepening without forcing.", "Earth", "Wind"},
77 {47, "困", "kùn", "Confining", "Oppression — lake over water. Joy trapped in the abyss. In the lattice: element bonded but surrounded by depleted neighbors.", "Lake", "Water"},
78 {48, "井", "jǐng", "Welling", "The well — water over wind. Depth reaching upward through penetration. In the lattice: deep constraint knowledge accessible to surface nodes.", "Water", "Wind"},
79 {49, "革", "gé", "Skinning", "Revolution — lake over fire. Joy transforms through clarity. In the lattice: replacing occupant with better-fitting element.", "Lake", "Fire"},
80 {50, "鼎", "dǐng", "Holding", "The cauldron — fire over wind. Clarity over gentleness: transformation vessel. In the lattice: the training loop — input enters, structure emerges.", "Fire", "Wind"},
81 {51, "震", "zhèn", "Shake", "Thunder doubled. Shock upon shock: arousing movement. In the lattice: cascading nucleation events.", "Thunder", "Thunder"},
82 {52, "艮", "gèn", "Bound", "Mountain doubled. Stillness upon stillness: complete rest. In the lattice: fully crystallized region — no further changes needed.", "Mountain", "Mountain"},
83 {53, "漸", "jiàn", "Infiltrating", "Development — wind over mountain. Gentle penetration of stillness. In the lattice: gradual enrichment of stable structure.", "Wind", "Mountain"},
84 {54, "歸妹", "guī mèi", "Converting the Maiden", "The marrying maiden — thunder over lake. Movement joins joy. In the lattice: element bonding into a partially filled site.", "Thunder", "Lake"},
85 {55, "豐", "fēng", "Abounding", "Abundance — thunder over fire. Movement illuminated by clarity. In the lattice: maximum occupancy with full oracle knowledge.", "Thunder", "Fire"},
86 {56, "旅", "lǚ", "Sojourning", "The wanderer — fire over mountain. Clarity resting on stillness. In the lattice: element in transit between dissolved and bonded state.", "Fire", "Mountain"},
87 {57, "巽", "xùn", "Ground", "Wind doubled. Gentle penetration upon gentle penetration. In the lattice: deep recursive coherence checking.", "Wind", "Wind"},
88 {58, "兌", "duì", "Open", "Lake doubled. Joy upon joy: open communication. In the lattice: multiple ambiguity zones communicating candidates.", "Lake", "Lake"},
89 {59, "渙", "huàn", "Dispersing", "Dispersion — wind over water. Gentleness disperses danger. In the lattice: controlled dissolution spreading through the lattice.", "Wind", "Water"},
90 {60, "節", "jié", "Articulating", "Limitation — water over lake. Danger contains joy: healthy boundaries. In the lattice: constraint envelopes properly limiting bonding.", "Water", "Lake"},
91 {61, "中孚", "zhōng fú", "Inner Truth", "Inner sincerity — wind over lake. Gentle truth over open joy. In the lattice: deep structural correctness verified by coherence field.", "Wind", "Lake"},
92 {62, "小過", "xiǎo guò", "Small Exceeding", "Preponderance of the small — thunder over mountain. Small movement exceeds great stillness. In the lattice: minor corrections accumulating into significant change.", "Thunder", "Mountain"},
93 {63, "既濟", "jì jì", "Already Fording", "After completion — water over fire. Danger above clarity: unstable perfection. In the lattice: fully crystallized state that begins to dissolve at the edges.", "Water", "Fire"},
94 {64, "未濟", "wèi jì", "Not Yet Fording", "Before completion — fire over water. Clarity above danger: the work continues. In the lattice: structure nearly complete but key bonds still missing.", "Fire", "Water"},
95 }
96