“You have arranged all things by measure and number and weight.”1 With these words, the author of the Wisdom of Solomon gave Israel’s scriptures one of their most striking statements about the structure of creation. The world, in this vision, is neither chaos nor raw matter. It is ordered, and its order can be counted.
The intuition is older still. According to Aristotle, the Pythagoreans held that the principles of mathematics were the principles of all things, so that the whole heaven was a harmony and a number.2 For more than two thousand years, this claim remained a philosophical wager. In the twentieth century, it became more of a research program. Physicists discovered that energy comes in discrete packets, that nature has a smallest meaningful length and a shortest meaningful time, and that the entropy of a black hole is measured not by its volume but by the area of its surface, counted in units of the Planck scale.
This book asks what follows if we take these discoveries seriously and follow them to their conclusion. If nature is discrete at its foundation, it may be computable. If it is computable, it may be computed. If the information describing a volume of space is fully encoded on its boundary, then the world we inhabit may be, in a precise sense, holographic. Let us call the rule that generates this world, provisionally, the code. The search for that code, and for its purpose, is the subject of what follows.
All is number
The claim that reality is, at bottom, something counted did not begin with computers. It began on the shores of southern Italy in the sixth century BC, among the followers of Pythagoras of Samos. We know their teaching chiefly through Aristotle, who reports that the Pythagoreans, having devoted themselves to mathematics, “thought its principles were the principles of all things.” Since numbers are by nature first among these principles, and since they saw in numbers many resemblances to things that exist and come into being, they “supposed the elements of numbers to be the elements of all things, and the whole heaven to be a musical scale and a number.”3
Two discoveries lay behind this conviction. The first was musical: the Pythagoreans found that the consonant intervals of the scale, the octave, the fifth and the fourth, correspond to the simple ratios 2:1, 3:2 and 4:3 in the lengths of a vibrating string. Here was a case in which something heard, a quality of sound, turned out to be governed by something counted. The second discovery was astronomical. The regular periods of the heavenly bodies suggested that the cosmos as a whole was ordered by number, and that its order was audible, if only to purified ears, as a harmony. Whatever we make of the “music of the spheres,” the structure of the argument deserves our attention. A sensible quality was reduced to a ratio of integers, and the reduction was taken to reveal what the quality really was.
The Pythagoreans represented numbers by arrangements of pebbles, and they thought of them as composed of units, discrete and indivisible. This is why their own program ran into a crisis they could not resolve. The diagonal of a square is incommensurable with its side; no ratio of whole numbers expresses it. Tradition says that the discovery was kept secret and that the man who divulged it, Hippasus of Metapontum, perished at sea. Whatever the truth of the legend, the discovery was a blow to the doctrine that all is number, if number means whole number. Greek mathematics responded by turning from arithmetic to geometry, and from the discrete to the continuous. The lines of Euclid are infinitely divisible, and the magnitude of the diagonal, which no integer ratio could capture, is simply a length. We should notice how early the choice between the discrete and the continuous presented itself, and how early the continuous won.
Plato inherited both the Pythagorean conviction and the Pythagorean embarrassment. In the Timaeus, his account of the making of the world, he gave the four elements a mathematical structure that was neither simply arithmetical nor simply continuous. Fire, air, water and earth are composed of four regular solids, the tetrahedron, octahedron, icosahedron and cube, and these in turn are built from two kinds of elementary triangles, the half-equilateral and the half-square.4 The elements can be transformed into one another, because their triangles can be taken apart and reassembled. Here is a picture of matter as built from a small number of discrete, geometrically defined units, governed by rules of combination, and Plato was explicit that the Craftsman chose these shapes because they were the most beautiful. The Timaeus is, in this sense, the first attempt to write the code: to specify a finite set of primitives and the operations that generate the physical world from them.