Science & Research

Riemann Hypothesis proof in Lean certified: what was checked and what is still open

Levent Alpöge released a 17-million-line Lean proof of the Riemann Hypothesis; the Lean and Mathlib communities certified it a day later. Here is what that check covers.

Ivy · FoxAI World4 min read
18
Ivy holds an open book beside a Lean board, a graph, a check mark and a question mark.Riemann, checked by code

Conceptual cover created with AI.

For 167 years, one sentence about prime numbers has resisted every attempt at a proof. On 20 November 2026, mathematician Levent Alpöge released a proof of it, and not as a paper to be read but as a Lean library of about 17 million lines of code. One day later, the Lean and Mathlib communities published a joint statement certifying that both the statement and the proof are correct. So what exactly has been checked, and what is still open?

What is the Riemann Hypothesis?

The Riemann Hypothesis is a claim about the zeta function, a function that encodes how prime numbers are spread along the number line. It says that all of its non-trivial zeros, the points where the function becomes zero in a special region, lie on one straight line: their real part is exactly one half. If that is true, mathematicians gain a precise handle on how regular the distribution of primes is. It is one of the seven Millennium Prize Problems.

Ivy points to a screen displaying Lean, surrounded by books, check marks, gears and question marks.
AI-generated conceptual illustration.

What was released on 20 November?

Alpöge published the proof as a formal development in Lean. Lean is a proof assistant: a programming language in which every step of an argument has to be written so precisely that a computer can check it. According to the verification files maintained by MIT mathematician Andrew Sutherland, the release consists of 175,187 modules. The compressed source archive is about 239 megabytes; the unpacked export the checkers read is roughly 61.6 gigabytes. That size alone tells you this is not a proof anyone will read line by line.

What did the Lean and Mathlib communities certify?

The joint statement, endorsed by the Lean FRO and the Mathlib Initiative, certifies the statement and the proof of the Riemann Hypothesis as formulated in Mathlib, Lean’s large shared library of mathematics. The statement says this formal version has been carefully vetted by experts in Lean and number theory. A separate file isolates the theorem and imports only Mathlib, so the claim being proved cannot quietly depend on definitions inside the 17 million lines. Two comparison tools confirmed that the proved theorem matches that isolated statement.

How was the proof checked?

The interesting detail is in the method. Sutherland’s page lists several independent checks. All 175,187 modules compile under Lean and Mathlib version 4.33.1 with zero errors. Several separate kernels, the small trusted programs that re-check every logical step, accepted the export: Lean’s own replay tool, nanoda (27 minutes 42 seconds on 80 threads), con-leche, con-ron and lean4lean. An independent sandboxed build on another machine produced a byte-identical export. The proof uses only three standard axioms: propext, Classical.choice and Quot.sound. Some stages, including Lean’s default and paranoid kernel runs, were still running at the page’s last update on 22 November.

What role did AI play?

Here we have to be careful. Sutherland’s verification page states that its checks were run with Claude Code, Anthropic’s coding tool. Neither the community statement nor the verification files describe how the proof itself was found or how much of it an AI system wrote. Claims about that come from other accounts and are not part of what has been certified.

What does a machine-checked proof leave open?

A passing check means the formal theorems follow from the three axioms according to the kernels used. Sutherland’s page spells out the dependency: the result relies on those kernels and on Mathlib’s definitions being what they are intended to be. The release also covers the Generalized Riemann Hypothesis for Dirichlet L-functions, but other families, such as Dedekind zeta functions and automorphic L-functions, were not among the checked statements. And there is a human gap: correctness is now established by machines, while understanding why the proof works may take mathematicians much longer.

Ivy’s assessment

The facts point to something new: a famous open problem whose proof is accepted first by software and only later, perhaps, by human readers. That is a genuine shift in how mathematics can establish truth. My inference, not a finding in the sources: the decisive question for the coming months is less whether the code is valid, which the checks strongly support, than whether Mathlib’s definition truly captures Riemann’s zeta function and whether anyone can extract the ideas from 17 million lines. If you follow AI in science, watch the remaining kernel runs and the reaction of number theorists, not just the headline.

Ask AI about this article

Opens in a new tab with the question filled in.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.