Bagua = 3-bit Binary

QianDuiLiZhenXunKanGenKunTaiji

Yang line(—) = 1, Yin line(--) = 0. Three-line permutations yield 2³ = 8 trigrams, matching 3-bit binary 000–111. Hover to see binary values.

Domain 01

Taiji Bagua & Mathematics

Bagua is 3-bit binary — how Leibniz found inspiration for binary arithmetic in the I Ching

Overview

The Taiji Bagua diagram is not merely a philosophical symbol — it is a precise mathematical system. Each of the eight trigrams consists of three lines — yang (—) and yin (--), precisely corresponding to binary digits 1 and 0. The three-line combinations produce eight trigrams, exactly as a three-bit binary number yields eight states from 000 to 111.

German mathematician Leibniz encountered the I Ching through Jesuit missionaries in the 17th century and was astonished to discover that the 64 hexagrams matched his work on binary arithmetic perfectly. He wrote in 'On the Natural Theology of the Chinese': 'This arithmetic coincides perfectly with the system of symbols created by Fu Xi, the first Chinese monarch, 4000 years earlier.' This discovery not only confirmed binary arithmetic's ancient roots but revealed the deep resonance between Taiji thought and the foundations of mathematics.

More profoundly, Boolean algebra (AND/OR/NOT), group theory (the symmetry group of hexagram transformations), and combinatorics (all possible combinations of yin-yang elements) — these core concepts of modern mathematics all find corresponding prototypes in the Taiji Bagua system. The yin-yang binary is not crude opposition but the most fundamental duality in mathematics: 0 and 1, true and false, on and off.

Taiji Connection

01

Yin and Yang lines — the prototype of binary bits; yin-yang is 0 and 1

02

The eight trigrams — the 2³=8 combinatorial possibilities of three yin-yang lines

03

The 64 hexagram cycle — modular arithmetic and mathematical periodicity

04

The Taiji S-curve — a geometric metaphor for the continuum and real number system

Key Examples

Leibniz and Binary Arithmetic

In 1701, Leibniz received the 64 hexagram diagram from missionary Joachim Bouvet and discovered the hexagram order perfectly matched binary numbers 0-63. He subsequently published 'Explanation of Binary Arithmetic' and repeatedly cited Fu Xi's Bagua as the oldest source of binary thought.

Boolean Algebra and Yin-Yang Logic

In Boolean algebra, AND corresponds to yin-yang intersection, OR to yin-yang union, NOT to yin-yang transformation. The complementary logic in the Taiji diagram — where yin contains yang and vice versa — provides the most intuitive philosophical foundation for modern logical operations.

Visual Comparison

Taiji

Yin-yang duality as the basic coding unit of all things

Science

0/1 bits are the smallest unit of information, the atom of all digital computation

Taiji

Eight trigrams exhaust all permutations of three yin-yang lines

Science

n-bit binary can represent 2^n states; combinatorial explosion is the basis of modern computing

Taiji

The Taiji diagram rotates cyclically, completing cycles

Science

Modular arithmetic and cyclic group structure — the Taiji diagram provides a continuous geometric model for finite group theory

Visual Comparison

Yin-Yang Lines ↔ Binary Bits

Yang
1Bit
Yin
0Bit

Yang(—) → 1, Yin(--) → 0. The yin-yang binary is the origin of all information encoding.

3-Bit Toggle → Trigram

Click lines to toggle yin-yang; explore all 2³=8 trigrams

111
Qian111

Taiji S-Curve ↔ Real Number Continuum

Taiji S-Curve — Continuous division
00.250.50.751Real continuum [0,1] — Infinitely divisible

The S-curve continuously divides the circle into yin-yang halves, just as the real number continuum contains infinite values between 0 and 1 — behind discrete binary lies a continuous spectrum.

Knowledge Quiz

4 questions
01

How many lines make up each trigram (Bagua)?

02

Which mathematician discovered the ancient roots of binary arithmetic in the I Ching's 64 hexagrams?

03

What does the yin-yang duality correspond to in mathematics?

04

What does the Taiji S-curve metaphorically represent in mathematics?

References

  1. 01Leibniz-Bouvet Correspondence (1701)[wikipedia]
  2. 02The Mathematics of the I Ching[paper]
  3. 03Boolean Algebra — Stanford Encyclopedia of Philosophy[article]
  4. 04How the I Ching Inspired Leibniz's Binary System — Scientific American[article]