The history of mathematics is punctuated by surprising encounters, but few are as unlikely as that between Leibniz and ancient China's Book of Changes. When the philosopher discovered the hexagrams it contained, he saw—or rather believed he saw—a forerunner of his own binary system, as well as evidence that human knowledge is universal.

A mathematician and philosopher, Leibniz was a thinker in pursuit of comprehensive knowledge, the mathesis universalis. For him, mathematics was not merely the science of quantity, but the laboratory of a universal logic (see the article "Something Rather than Nothing"). If we embrace this idea of universality, we should expect to find truths shared by every civilization. From the end of the 16th^{th} century onward, Jesuit missionaries began introducing China to Europeans. Many Chinese works, starting with the great classics, were translated into Latin and made available, notably the Book of Changes (易經, Yi Jing). Its origins lie in divination practices involving the drawing of yarrow stalks (long sticks), associated with the Zhou dynasty (1st^{st} millennium BC). It consists of two parts: the older presents 64 short sections or paragraphs, each headed by a hexagram (see box), while the more recent part comprises commentaries, glosses and essays. The earliest Western translations drew on the commentaries and interpretations of some influential Song-dynasty scholars (960–1279), particularly Cheng Yi (1033–1107) and Zhu Xi (1130–1200).

© PDL-Art
d5dfd5730205a6aa753cf27af37e32963d6ffaec349ffa0897967da29f9a5115.jpg
In 1701, Leibniz was contacted by the Jesuit Joachim Bouvet (1656–1730), a missionary in Beijing who had noted that certain trigrams in the Book of Changes suggested a metaphor for the Trinity. For Leibniz, this was a revelation. He was driven by a quest not only for universal knowledge but also for a universal civilization, in which East and West would share their knowledge as intellectual allies. He viewed Chinese philosophy not as an alien system of thought, but as a distant counterpart to his own monadology and to Christianity. This compatibility allowed him to consolidate his own thinking. He was particularly fascinated by the Chinese language, which he studied to see whether it could serve as the basis for what he called his universal characteristic: a symbolic system capable of turning any statement into a sequence of symbols, so that a machine could then determine whether it was true or false. From this perspective, notation had to be as elementary as possible, prompting him to imagine " a dyadic progression in which numbers are expressed using only 1 and 0". And so the principle of the binary system for encoding information was born.