Book

The Proof in the Code: How a Truth Machine Is Transforming Math and AI

2026

Synopsis

It began as an obscure bug-checking program at Microsoft Research developed by a lone computer engineer named Leo de Moura. Then an unlikely crew of mathematical misfits caught wind of it and began to adopt it with messianic zeal. Their goal was to create a truth machine that could provide the rarest of all commodities in life: a complete, 100 percent guarantee that something is true. Its name: Lean.

As the movement grew and strengthened the program’s capabilities, it drew in two of the world’s most prominent mathematicians: Peter Scholze and Terence Tao. Google DeepMind, Meta AI, and other tech firms started using the program to supercharge computer reasoning. Now it’s remaking the multi-thousand-year history of how mathematicians work, collaborate, and assess truth, while charting a new path in the march toward machine intelligence.

In The Proof in the Code, Kevin Hartnett tells the definitive story of the birth and rise of Lean, and how a growing movement is transforming the enterprise of mathematics and ushering in a new era of human–computer collaboration. An engrossing, character driven narrative filled with insights about the future of math, computers, and AI, this brilliant work of journalism from one of the world’s leading math writers offers a profound answer to the question: Can computers reveal universal truths?

Suggested Reading

The Gravity of Math: How Geometry Rules the Universe

Mathematics is far more than just the language of science. It is a critical underpinning of nature. The famed physicist Albert Einstein demonstrated this in 1915 when he showed that gravity—long considered an attractive force between massive objects—was actually a manifestation of the curvature, or ...

AI Valley: Microsoft, Google, and the Trillion-Dollar Race to Cash In on Artificial Intelligence

Artificial Intelligence has been “just around the corner” for decades, continually disappointing those who long believed in its potential. But now, with the emergence and growing use of ChatGPT, Gemini, and a rapidly multiplying number of other AI tools, many are wondering: Has AI’s moment finally a...

We use cookies to improve your experience on our website. By continuing to browse, you accept our Cookie Policy and Privacy Policy.