Foundations: The I Ching as a Pre-Computer Information Theory System
The I Ching, or *Book of Changes*, stands as one of humanity's oldest attempts to systematize change and inform decision-making under uncertainty. Composed of 64 hexagrams—six-line figures of yin (broken) and yang (solid) lines—it has been used for divination, philosophy, and statecraft for millennia. Yet its formal structure has rarely been examined through the lens of modern computational theory. This chapter re-contextualizes the I Ching not as mystical arcana but as a *pre-computer information theory system*—a symbolic calculus for modeling state transitions in a complex, temporal world. We will formalize its architecture using the tools of computational linguistics, information theory, and graph algorithms, demonstrating that the I Ching encodes a complete, operational framework for representing, traversing, and transforming states in a decision space. The hexagram set forms a 6-bit binary address space; the line positions encode a temporal dimension; the King Wen sequence realizes a specific traversal algorithm through that space; and the process of divination—particularly the generation of "changing lines"—implements a primitive but coherent model of state delta computation. By analyzing historical divination records (such as those preserved in the *Zhouyi* and later commentaries) through Shannon entropy, we can quantify the information content of line changes and observe non-random patterns suggestive of an underlying decision-logic system. This technical reframing is not an anachronistic imposition but a recovery of the I Ching's original engineering intent: to provide a rigorous, reproducible method for navigating a world of flux.
1.1 The Hexagram as a 6-Bit Binary Address Space
At its most literal, material level, the I Ching is a set of 64 figures, each composed of six lines. Each line is either yang (solid, `⚊`) or yin (broken, `⚋`). This is a binary system. Assigning `1` to yang and `0` to yin yields exactly $2^6 = 64$ unique combinations, matching the canonical number of hexagrams. This mapping is not merely a modern analogy; it is a direct, structural isomorphism. The hexagram `䷀` (Qian, *The Creative*, all yang lines) corresponds to the binary number `111111` (decimal 63 in zero-indexing, or 64 in one-indexing). `䷁` (Kun, *The Receptive*, all yin) is `000000` (decimal 0). The hexagram `䷲` (Zhen, *The Arousing*, with yang in the first, second, and third positions) is `110000` (decimal 48). Every hexagram has a unique 6-bit address.
This binary encoding functions as a state address space. In computer science, an *address* is a unique identifier for a location in memory or a state in a state machine. Here, each hexagram address corresponds to a specific *configuration* of yin/yang forces, which the traditional commentaries interpret as a particular situation, constellation of relationships, or dynamic pattern. The *Ten Wings*—the philosophical commentaries—consistently treat hexagrams as holistic states. For instance, the *Commentary on the Decision* (*Dazhuan*) for hexagram 1 (Qian) discusses "the creative" as a state of fundamental, unmanifest potential asserting itself. The binary address `111111` is not arbitrary; it represents the maximal yang state, a conceptual pole in the system's ontology.
The 6-bit space is exhaustive and orthogonal. Every possible combination of six binary values exists as a named, interpreted entity. There are no "empty" addresses. This completeness is crucial: the system claims to cover all possible fundamental situations (a claim examined in Chapter 3). The orthogonality means each bit (line position) is an independent dimension of state. Changing a single line (bit) flips one dimension, moving to an adjacent state in the Hamming distance sense.
```mermaid graph LR A[6-Bit Binary Space<br>2⁶ = 64 States] --> B[Each State = Hexagram<br>e.g., 111111 = ䷀ Qian] B --> C[Each Bit = Line Position<br>1=Yang, 0=Yin] C --> D[State Address =<br>Unique Situation Pattern] ```
Practical Implication for Modern Systems: This structure is identical to a finite-state machine (FSM) with 64 states, where each state is defined by a 6-bit register. Transitions between states are triggered by changes in one or more bits (lines). The I Ching, therefore, is a specification for a 64-state deterministic (or probabilistic, given the coin toss) automaton. The "meaning" of each state is its associated oracle text—its *output* or *action recommendation* given the current input (the question) and the transition path taken.
1.2 Line Positions as Temporal Dimensions: The Syntax of Change
The six lines of a hexagram are not a flat set; they are ordered. They are stacked from bottom to top, and this ordering is semantically charged. The traditional reading proceeds from the bottom line (line 1, *chū* 初) to the top line (line 6, *shàng* 上). This is not arbitrary. In the *Xi ci* (Appended Judgments), it is stated: "The *I Ching* originated in the measurement of the cycles of *qi*... The first line is the measure of the beginning; the top line is the measure of the end." The lines represent a temporal sequence—the unfolding of a situation over time, or the layers of a decision from its foundational motivation (bottom) to its ultimate manifestation (top).
We can formalize this as a 6-dimensional temporal vector space, where each dimension (line position $i \in \{1,2,3,4,5,6\}$) represents a temporal "layer" or "phase" in the evolution of a state. The value of dimension $i$ (0 or 1) is the state of that phase. The entire hexagram $\mathbf{H} = (l_1, l_2, l_3, l_4, l_5, l_6)$ is a point in this 6D discrete space. The trajectory from the initial hexagram (derived from the first coin tosses) to the resulting hexagram (after applying changing lines) is a path through this temporal space.
This temporal interpretation is reinforced by several structural features: 1. Line-Specific Judgments: Each line position has its own set of poetic judgments (*yao* 爻). A yang line in the second position (often the "minister" or "servant" role) carries a different normative implication than a yang line in the fifth position (the "ruler" role). The *meaning* of a bit value is context-dependent on its temporal/role coordinate. 2. The "Middle" Lines: Lines 2 and 5 are the "central" lines of their respective trigrams (the lower and upper three-line groups). They are considered positions of correctness and power. This creates a role-based temporal schema: early phases (lines 1-3) concern initiation and foundation; middle phases (lines 4-5) concern maturation and leadership; the final phase (line 6) concerns culmination and excess. 3. The "Wrong" Lines: Lines 1 and 6 are often associated with extremes—beginning (inexperience) and end (decline). Their judgments frequently warn against over-ambition or premature action. This maps neatly onto a temporal risk model: the initial and terminal phases are inherently unstable.
Example: Hexagram 3 (Zhūn, *Difficulty at the Beginning*) Its structure is `☶` (Ken, Mountain) below `☵` (Kan, Water). The lower trigram (lines 1-3) is Mountain (stillness, obstruction), the upper is Water (danger, flow). The *Commentary on the Image* says: "Water and mountain: *Zhūn*. The superior man at the beginning of things examines the (right) order." The temporal reading: The *initial* state (lines 1-3) is one of obstruction and difficulty (Mountain). As the situation evolves into the *middle* and *final* phases (lines 4-6, Water), it becomes one of flowing through danger. The six-line sequence narrates a story: starting with obstruction (`000`), moving into a phase of perilous progress (`010`), and culminating in a state of dangerous flow (`101`). The temporal dimension is the syntax of this narrative.
Computational Analogy: This is analogous to a 6-stage pipeline in processor design, where each stage (fetch, decode, execute, etc.) holds