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

Kevin Hartnett

New
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

Member Benefits

  • 30% Off All Books - Savings that support storytellers, not stock prices.
  • Fight Book Bans - Every membership sends a book to LGBTQ+ youth in affected states.
Member Book Price
$30.00 $21.00
Non-Member Book Price $30.00

An annual membership will be billed at $48/year.

Discount applies to first-time members only. Already a member? Log in here.

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.

Critical Reviews

"The most interesting book I've ever read about math." --Kevin Roose, New York Times tech columnist and co-host of the Hard Fork podcast

"A thrilling account of 'how one man's quest to build a truth machine--a computer program that can provide a complete, 100 percent guarantee that a chain of logic is correct--is transforming the field of mathematics' . . . . Readers will be captivated." --Publishers Weekly (starred review)

"A fascinating example of how cultural clashes and creativity can create new paradigms . . . [In THE PROOF IN THE CODE] proofs, personalities, and machines collide--intriguingly--at the uneasy intersection of mathematics and computer science." --Kirkus Reviews

"Kevin Hartnett is one of today's finest chroniclers of math. With marvelous clarity and narrative flair, he introduces us to computer-verified proof, the drama behind it, and the people reimagining what math can be." --Steven Strogatz, New York Times bestselling author of Infinite Powers, and co-host of The Joy of Why podcast

"At a time when knowledge work is on the brink of a seismic transformation, math . . . offers us a vision of what may be coming. [Hartnett's writing is] gripping, page-turning, lucid, and significant." --Brian Christian, author of The Alignment Problem

"[THE PROOF IN THE CODE] is science writing at its best: technically precise, conceptually ambitious, and consistently accessible. . . . A rare achievement." --Seth Mnookin, author of The Panic Virus

"Lean is one of the most important things happening to math right now--future generations may come to regard it as the Euclid's Elements of our time. In THE PROOF IN THE CODE, Kevin Hartnett perfectly captures the unlikely story of Lean's birth and development." --Grant Sanderson, creator of 3Blue1Brown

"This weird and wonderful book . . . reveals why a technical idea hiding in plain sight could determine whether the machines we build will ever deserve our complete trust." --Amy Webb, author of The Big Nine

"[THE PROOF IN THE CODE] is a must-read if you want to understand how machine-verifiable math is supercharging the next generation of AI." --Anil Ananthaswamy, author of Why Machines Learn

"THE PROOF IN THE CODE is about the people building a new way of creating mathematics, their ambitions, their uncertainties, their false starts and long leaps. Highly recommended." --Jordan Ellenberg, author of How Not to Be Wrong

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.