Yin-Yang and Binary Structure

See how two line states produce sixty-four hexagram structures, how IChingAsk assigns a bottom-up binary index, and why that model does not rewrite the text's history.

On this page

Two states make sixty-four structures

At the structural level, each position in a hexagram is either a broken yin line or a solid yang line. Software can encode those two states as 0 and 1 without claiming that early authors treated them as modern binary numerals. Six positions give 2 × 2 × 2 × 2 × 2 × 2, or sixty-four, possible line structures. That is a complete enumeration, not evidence that the ancient text was computer code.

The index runs from the bottom

IChingAsk stores the six positions from Line 1 at the bottom to Line 6 at the top. Its binary index gives the bottom position weight 1, then 2, 4, 8, 16, and 32 upward, and adds the weights occupied by solid lines. All broken lines therefore have index 0; all solid lines have index 63. This reading direction is an implementation convention, not a historical claim about how every diagram should be numbered.

2 · The Receptive

Index 0

11 · Peace

Index 7

1 · The Creative

Index 63
Solid lines add their position’s weight. In Hexagram 11, the lower three give 1 + 2 + 4 = 7.

Two trigrams form a hexagram

Lines 1–3 form the lower trigram and Lines 4–6 form the upper trigram. Each half has eight possible states, giving sixty-four combinations. In the Library, Trigram pairs groups hexagrams by these two halves; Binary sorts them by the bottom-up index. Both orderings use the same cards and preserve their received numbers, names, slugs, and texts.

Do not collapse the historical orders

The received King Wen sequence supplies the standard 1–64 textual numbering. The arrangement often called Fuxi or Xiantian belongs to a different diagram tradition; current scholarship describes the sixty-four-hexagram diagram as attributed to the Song thinker Shao Yong. Calling that arrangement binary describes its two-element form. It does not verify Fu Xi as its historical designer or make it identical to the received order.

Leibniz recognized a correspondence

Leibniz wrote in 1703 that he had used base-two arithmetic for years before sending his method to the Jesuit Joachim Bouvet. Bouvet recognized a correspondence with the hexagram diagram and sent it to Leibniz in November 1701. Their exchange made the comparison explicit. It does not support the popular claim that Leibniz invented binary arithmetic from the I Ching.

Use the model for structure

Binary encoding makes structural operations exact: one moving position toggles one of the six encoded positions, while a complement toggles all six. It also provides a reproducible sort order for the Library. The model does not interpret the Judgment, establish ancient authorship, turn a hexagram into a prediction, or make one ordering more authentic than another.

Sources 3

What this guide rests on

  • Chinese Philosophy of Change (Yijing) — Tze-ki Hon, Stanford Encyclopedia of Philosophy. Broken/solid line structure; composite textual layers, received attributions, broad Ten Wings dating, early Han canon formation, and later inquiry traditions; not proof of named authorship, ancient binary arithmetic, or a uniformly non-predictive tradition.
  • Is the Fuxi liushisi gua fangwei diagram attributed to Shao Yong binary? — Marie-Julie Maitre, Science in Context. The two-element form of the Fuxi/Xiantian order and its attribution to Shao Yong; not evidence that Fu Xi authored the diagram or that it is the received King Wen order.
  • Explication de l'arithmetique binaire — Gottfried Wilhelm Leibniz, Memoires de l'Academie royale des sciences. Leibniz's prior use of base-two arithmetic and his chronology of the 1701 exchange with Joachim Bouvet; not a reliable history of ancient Chinese authorship.

Continue reading

History and Lineage of the I Ching

Trace the I Ching from the Zhouyi core through the Ten Wings and early manuscripts without turning traditional attributions into settled authorship.

All guides