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

Kevin Hartnett

Preorder
Book cover for Proof in the Code: How a Truth Machine Is Transforming Math and AI
Image for variant 9780374620059
Book cover for Proof in the Code: How a Truth Machine Is Transforming Math and AI
Image for variant 9780374620059

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

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

Kevin Hartnett

View full details

Description

The inside story of Lean, a computer program that answers the age-old question: How do you know if something is true?

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?

About the Author

Kevin Hartnett is a math and technology writer whose work has been published widely in outlets including Quanta Magazine, The Atlantic, The Boston Globe, WIRED, Nautilus, and Scientific American. He was previously the senior writer at Quanta Magazine covering mathematics and computer science. His work has been collected in multiple volumes of the Best Writing on Mathematics series from Princeton University Press. From 2013 to 2016 he wrote "Brainiac," a weekly column for The Boston Globe's Ideas section. He lives in Yarmouth, Maine.

Publishing Information

Publisher: Quanta Books
Pub date: 2026-06-09
Length: 288 pages

The Allstora Membership

Membership Perks:

  • Save 30% on all online store purchases
  • Exclusive access to author's content
  • You pay less, but authors still earn double

Membership Terms:

First Month: $0.00
Monthly price: $5.00
  • To access membership discount simply log in and add to cart, discount applied automatically.
  • One month free trial, cancel anytime. Membership renews on the 15th of each month.