The Specialty News
AI

Lean's Community Certifies the Riemann Hypothesis Proof, All 17 Million Lines

Independent checkers rebuilt Levent Alpöge's proof byte for byte, and the Lean and Mathlib communities signed off on the statement and every step.

By The Specialty News DeskEdited by 5 min read
Lean's Community Certifies the Riemann Hypothesis Proof, All 17 Million Lines
Photo: David.Monniaux / Wikimedia Commons (CC BY-SA 4.0)

About a day after Levent Alpöge posted his proof of the Riemann Hypothesis, the people who keep the Lean proof language running put their name to a sentence nobody had written in 167 years: “We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct.” The joint statement from the Lean and Mathlib communities, endorsed by the Lean FRO and the Mathlib Initiative, covers a library of 17 million lines of code. For mathematicians who have spent whole careers building on an assumption, the question has moved from whether it holds to how it works.

Four Questions, Answered in About a Day

Lean is a programming language in which every step of a proof has to be justified to a small piece of software called a kernel. Leonardo de Moura started it at Microsoft Research in 2013, and Mathlib, its shared library, now holds a large part of modern mathematics in a form a computer can check. When Alpöge's Lean files appeared on November 20, the community already had a checklist.

Kevin Buzzard of Imperial College London had written it up on his Xena blog on November 12, eight days before the proof appeared. Four questions: does the Lean statement match the theorem people mean, does the code compile, does it prove exactly that statement, and could it be exploiting a bug in Lean's kernel?

The joint statement answers all four. The theorem proved is Mathlib's own RiemannHypothesis, a definition that already sat in the shared library, so the target was not written by the prover. That was the open point when the proof was announced. The library compiles without errors, and dozens of people reproduced the same raw export. A separate file that imports only Mathlib, run through tools called comparator and con-leche, confirms that the theorem proved is exactly Mathlib's statement.

“We have full confidence that Alpöge's proof of the Riemann Hypothesis is correct, and we congratulate him on this achievement.”— Lean and Mathlib communities

The fourth question is the most interesting one. What does it take to check 17 million lines without trusting any single program?

1.47 Million Declarations in 3 Minutes 15 Seconds

Andrew Sutherland of MIT, who compiled the proof on the first day, keeps a public log of every check. All 175,187 modules build with zero errors. A second, sandboxed rebuild on a separate machine finished on November 21 and produced an export identical to the published one, byte for byte, all 61,570,595,788 of them.

That export then went to checkers written independently of each other, so that a bug in one is unlikely to be repeated in another. Nanoda accepted the full export in 27 minutes and 42 seconds on 80 threads. Con-leche accepted 1,468,418 declarations in 3 minutes and 15 seconds. Lean4lean and leanchecker replayed every module without a single rejection. Sutherland's page notes that the checks were run with Claude Code.

The five headline theorems rest on three standard axioms, propext, Classical.choice and Quot.sound, the same foundations the rest of Mathlib uses. Anyone with roughly 100 GB of memory and 70 GB of disk can repeat the check. Written out for humans, the argument would run past 250,000 pages by Alpöge's own estimate; a rented server reads the formal version in under half an hour.

What the machines cannot do is explain why it works. That part belongs to people.

What Lean Settles, and What Mathematicians Do Next

Lean settles correctness. The Clay Mathematics Institute, which offers $1 million for the problem, still lists it as unsolved, and its rules ask for a published solution and two years of acceptance. Sutherland's log also showed a few runs still going on Sunday, among them Lean's own kernel in its paranoid mode, as extra layers on top of the checks already passed.

The proof reaches beyond Riemann's original question. It also covers the Generalized Riemann Hypothesis for Dirichlet L-functions, for all moduli and all characters, the version that decades of number theory have taken as a working assumption. Results that began with “assuming GRH”, from how primes spread across arithmetic progressions to how fast some primality tests run, can now drop the condition.

The statement looks ahead to “all the activity in the mathematical community that will help explain the new ideas in this proof.” Alpöge, who says he found the proof working with Claude, expects the argument to be simplified quickly and plans to write it up properly. That work now starts from a guarantee instead of a hope.

For 167 years, mathematicians checked the hypothesis one zero at a time, 10 trillion of them so far. Now a computer has checked the proof, and people get to read it.

Riemann, Checked in a Day

A visual summary of this story

The Brief

Stay curious

AI and technology: what changes and why it matters.
Your daily selection, in English or Spanish.

Free forever. Unsubscribe anytime.

Conversation

Start the conversation

No account needed. Comments are checked automatically — keep it civil.

More stories

Keep reading