AI is turning math into a science

Mathematicians are used to being both the instrument and the practitioner of mathematics — telescope and astronomer in one. AI is changing this.

AI is turning math into a science
Preview · Audio edition
audio-thumbnail
AI is turning math into a science
0:00
/0:00
You're hearing a short preview. Paying members get the full audio edition of this article.
Upgrade to listen

Math is dead, long live math!

Last Friday, Levent Alpöge, a mathematician at the AI company Anthropic, shared a short paper claiming that he'd used Claude to resolve the Riemann hypothesis — perhaps the most famous open problem in all of mathematics. To back up the 4-page page brief describing his result, Alpöge did not post a traditional written proof. (The AI-generated draft was 250,000 pages of "slop" that Alpöge felt would be inappropriate to dump on the mathematics community.) So, instead of a proof, he shared 17 million lines of computer code.

I'm not going to explain the Riemann hypothesis here. Others have already done this far better than I could hope to.[1] Instead, I want to work through some thoughts about how this proof challenges a naive view of what it means to know something — and why post-AI math might look a lot more like natural science than like pre-AI math.

After the proof announcement, I spent more time than I care to admit scrolling social media to see how people would react. A common argument I saw deployed to downplay the significance of the proof and of AI math in general is that Alpöge's Claude-generated proof isn't actually a proof because it is a heap of computer code that no human can understand, let alone verify. This is an interesting statement, because it makes a claim about what does and doesn't count as evidence that something is true: a proof doesn't count as evidence that a mathematical statement is true unless humans can understand it and verify it by hand.

The Claude-generated proof of the Riemann hypothesis does not meet this bar. It is not a narrative written in human language meant for human eyes — instead, it is 17 million lines of computer code written in a programming language called Lean. Sifting through all 17 million lines of that computer code by hand would be completely impractical. A line of code is something like 100 characters. The average reader can churn through roughly 200 words of English prose per minute, or 1,000 characters per minute. At that pace, reading all 17 million lines would take more than 3,500 nonstop, 8-hour workdays. That's more than 13 work-years just to read the code, let alone to contemplate it or work out anything about what it means. So yes, it cannot practically be verified by hand.

However, the beauty of Lean is that you do not need to verify the proof by hand to know it is true. A proof written in Lean code can be run through a relatively simple, human-readable program called a kernel to check whether it is correct. Lean was originally developed as a code-checking program. But mathematicians picked it up and developed into a kind of proof-checking machine: feed it a correctly formatted proof and a statement, and it can tell you whether the proof is valid. (Kevin Hartnett wrote a timely book about the history of Lean called The Proof in the Code, if you want to know more.) Of course, verifying a Lean proof involves a few subtleties. To be sure that the code doesn't take advantage of quirks of specific kernels, it's good practice to run Lean proofs through different kernels. It's also important to check that the Lean version of the statement you're proving maps exactly to human-language version mathematicians care about.

Independent mathematicians and the Lean developer community have verified Alpöge's Lean proof of the Riemann hypothesis. If you accept Lean code as a reliable tool for verifying proofs, then there's no arguing that this isn't a proof.

The question is whether we should accept 17 million lines of Lean code as a proof. There are people who think we should not.[2]

A year before Alpöge's Riemann hypothesis proof came out, mathematician Jordan Ellenberg told 3Blue1Brown that he wouldn't consider a huge Lean proof of the Riemann hypothesis to be a proof at all. "That's not a proof of the Riemann hypothesis and I just don't care that that exists." The point of a proof is to produce understanding, and without that understanding, there's no point in talking about a proof.