What made people trust a 17-million-line Riemann Hypothesis proof was not reading but checkers
Published
This English page is a machine translation of the Korean original, so some phrasing may read awkwardly.
Anthropic mathematician Levent Alpöge released a proof of the Riemann Hypothesis made with Claude as about 17 million lines of Lean code, and the Lean FRO and the Mathlib Initiative confirmed it correct the next day.
Read the original at Lean community blog ↗
Code review assumes an amount of code people can actually read. At 17 million lines, no one can read it all. That is the size of the Lean code that Levent Alpöge, a mathematician who works at Anthropic, released on November 20, saying he had proved the Riemann Hypothesis together with Claude.
Since Bernhard Riemann proposed it in 1859, the Riemann Hypothesis, which concerns the distribution of prime numbers, has been considered the most famous unsolved problem in mathematics. Lean is a language in which a proof written like a program is checked step by step by a machine. In a four-page note, Alpöge said that instead of releasing a huge document no one could read, he had decided to present only the Lean code. The code is made up of 175,187 modules.
The next day, the Lean FRO, which develops Lean, and the Mathlib Initiative issued a joint statement saying they had full confidence that the proof is correct. As their rationale they cited four questions that mathematician Kevin Buzzard laid out on the Xena blog on November 12. The first is whether the statement written in Lean matches the original statement. This proof uses the definition of the Riemann Hypothesis that already exists in the mathematics library Mathlib and has been vetted by experts. The second is whether the code compiles, and dozens of people built it themselves and got the same output file.
The third question will feel especially familiar to software developers. If somewhere in the proof code someone quietly changed the meaning of exponentiation or slipped in a new axiom, the code could appear to prove the same statement on the surface. So the community wrote the statement alone in a short file that imports only Mathlib. Then they used two different tools to compare whether that statement is exactly the theorem proved by the 17 million lines.
The fourth is the possibility that Lean's checker itself has a bug and the proof exploited it. This time, alongside Lean's official kernel, several checkers built separately in other languages accepted the same proof. Two of them are checkers that have themselves been formally proven unable to accept a false proof. All of these checks ran on an exported file that any malicious code hidden in the proof sources could not touch.
The way the verifiers worked is also worth noting. MIT mathematician Andrew Sutherland ran his checks with Claude Code. He rebuilt the code in a sandbox with the network cut off and the source set to read-only. The result matched the published export of roughly 61.6 billion bytes down to the last byte. Buzzard also urged people not to run AI-generated Lean code outside a sandbox.
This changes how we trust code written by AI. Until now, having people read and approve code was the standard for trust. In this verification, however, the only thing people examined closely was the short statement file. The rest was judged by having machines match that statement against the code and by whether independent checkers gave the same answer.
Translated to a software team, what people should write and guard themselves is a short specification of the requirements and the checks that verify it. AI-written code is accepted on whether it passes those checks, and building and running it happens in an isolated environment. In effect, human work shifts from reading all the code to deciding in advance what counts as correct.
That said, tests in ordinary software are not as rigorous as a Lean statement, and the statement people write can itself be wrong. In October, OpenAI's Navier-Stokes proof also passed Lean's checks but turned out to prove a weaker statement than the original paper. And Lean only guarantees that the proof is correct. Alpöge himself said that the work of understanding this argument, writing it up properly and conveying it still lies ahead.
In the end, what made 17 million lines trustworthy was not the number of people reading it but the design of the verification process. The more code AI writes, the more the human share narrows to stating briefly and precisely what is correct. What your team can start doing now is to have a person write down, as tests, the conditions an AI-made change must meet before accepting it.
Sources
- Lean FRO, Mathlib Initiative: Lean verification of the Riemann Hypothesis, November 21, 2026. The proof was released on November 20.
- Levent Alpöge: announcement of the Riemann Hypothesis proof (PDF), November 20, 2026.
- Andrew Sutherland: RH Lean proof: verification files, check results as of November 22, 2026. Some checks were still running at that time.
- Xena: "...and the proof is checked in Lean", November 12, 2026.
- Scientific American: Anthropic mathematician proves Riemann hypothesis, most famous problem in all of math, November 20, 2026, updated November 21.
A question to think about
When no one can read all of the code AI writes, what should your team write by hand and what should it leave to machines?