
Lean officially certifies the Riemann Hypothesis proof: 17 million lines of code, 175,187 modules, verified in 24 hours
Vũ Khôi
Tác giả tại Wotech Electronics Blog

Lean officially certifies the Riemann Hypothesis proof: 17 million lines of code, 175,187 modules, verified in 24 hours
On 20 November, mathematician Levent Alpöge released a proof of the Riemann Hypothesis as a giant Lean library: 17 million lines of code across 175,187 files. About 24 hours later, the Lean and Mathlib communities confirmed the whole work passed verification — 175,187 out of 175,187 modules. But the Clay Mathematics Institute has not yet given official recognition, and some long checks are still running.
Quick answer: The Lean FRO and the Mathlib Initiative issued a joint statement on 21 November: both the statement and the proof of the Riemann Hypothesis by Levent Alpöge passed verification. The work was released on 20 November as a 17-million-line Lean library, produced with the help of Claude, and checked by Lean's official kernel plus independent checkers such as con-leche, con-ron and lean4lean. However, machine verification and Clay Institute recognition are two different things — as of 21 November, the Clay Institute had not issued official recognition.
The Riemann Hypothesis, posed by Bernhard Riemann in 1859, says a hidden pattern underlies the distribution of the prime numbers — numbers divisible only by themselves and 1. It is regarded as one of the most important open problems in mathematics, and one of the Clay Mathematics Institute's prize problems. This article follows the timeline in the Hỏi Dân it Offical post, checked against the Lean and Mathlib communities' joint statement and Andrew Sutherland's (MIT) independent verification page.
What happened in 48 hours?
| Time | Development |
|---|---|
| 12 Nov | Mathematician Kevin Buzzard presented four verification criteria — eight days before the proof appeared. These criteria were not invented afterwards to fit the result |
| 20 Nov | Levent Alpöge, a mathematician working at Anthropic, released a proof of the Riemann Hypothesis together with GRH for Dirichlet L-functions, with the help of Claude. What he released was not a PDF of a few hundred pages, but a giant Lean library: 17 million lines of code across 175,187 files |
| ~24 hours later | The Lean and Mathlib communities rallied to check the whole work, from Lean's official kernel to independent checkers such as con-leche, con-ron and lean4lean. The reported result: 175,187 out of 175,187 modules passed |
| 21 Nov, 13:55 | The Lean FRO and the Mathlib Initiative issued a joint statement: "We have full confidence that Alpöge's proof of the Riemann Hypothesis is correct" and "we hereby certify that both the statement and the proof of the Riemann Hypothesis are correct" |
| Same period | Alessandro Masullo released a GRH proof that does not use AI — the fruit of nearly 12 years of research. He decided to publish early after Alpöge's work appeared |
According to Scientific American, independent mathematicians — including Andrew Sutherland (MIT), who recompiled the whole work himself — confirmed the proof "does what Alpöge claims". Sutherland put it bluntly: the chance that anything is fishy here is "approximately zero".
The four verification criteria — and why they matter
The most remarkable part of the story, per the post, is that the four verification criteria were presented by Kevin Buzzard on 12 November — eight days before the proof appeared. They were not invented afterwards to legitimise the result. The four criteria, per the Lean and Mathlib communities' joint statement:
| Criterion | What was checked |
|---|---|
| 1. The problem is stated correctly | The RiemannHypothesis definition in Mathlib was carefully vetted by Lean and number-theory experts. This ensures the work solves the actual Riemann Hypothesis, not a simpler or distorted version |
| 2. The whole library compiles successfully | Dozens of community members independently built the codebase. The result was not only a successful build but the reproduction of the same raw proof export, guaranteeing reproducibility |
| 3. The theorem proved is the problem to solve | The community created a separate file containing the Riemann Hypothesis statement, importing only Mathlib. Two independent tools, comparator and con-leche –compare, were used to match it — both returned a match |
| 4. The proof itself is valid | The export was checked by several systems: Lean's official kernel, con-leche, con-ron and independent checkers written in several programming languages. Notably, con-leche and con-ron come with a formal proof of their own correctness, based on set theory. The whole process ran on a fixed export, separated from the original source, to rule out malicious source code interfering with verification |
The fourth criterion is the subtlest point: not only the proof was checked, but also the checkers themselves — because a bug in Lean's kernel could be exploited to "prove" something false. Sutherland's verification page adds that the five headline theorems depend only on Lean's three standard axioms, and independent checkers such as nanoda (a kernel written in Rust) also accept the full export.
Not the final word yet: the Clay Institute and checks still running
The post stresses an important boundary: machine verification and the Clay Institute's recognition process are two different things. As of 21 November, the Clay Mathematics Institute had not issued official recognition, and its prize was still listed as open.
In addition, as of the afternoon of 22 November (per Sutherland's verification page), some long checks were still running — including the full comparator run (lake comparator) and the paranoid-mode kernel replay of the entire export. A critique on PhilArchive also questions a geometry detail on the path to the theorem — a question that had not been answered in the 22 November update.
In other words: the Lean and Mathlib communities have certified the statement and the proof as correct under their four criteria, but mathematicians are still studying and explaining the new ideas in the work — exactly as the joint statement itself invites them to do.
The lesson for software people
For software people, the most valuable thing in this story, per the post, is probably not the 17 million lines of code, but the architecture of the verification system:
- Check whether the problem statement is right — before trusting a proof, make sure it solves the right problem.
- Check reproducibility — rebuild from scratch on another machine, in an isolated environment, and compare the export byte for byte.
- Cross-check with independent tools — two independent statement-comparison tools, several independent kernels written in several languages.
- Verify the trustworthiness of the checker itself — con-leche and con-ron carry formal proofs that they cannot accept a false proof.
AI is making code production ever cheaper. What is becoming expensive is the ability to guarantee that what it produces is actually correct. Terence Tao once spoke of mathematics entering an "industrial era" — this story shows what that era looks like: humans and AI produce proofs, while computer systems take on the job of checking validity at enormous scale.
Consider this: a 17-million-line work can be formally verified in about 24 hours, while many software teams still entrust the safety of their systems to a few review rounds and an Approve button on GitHub. Could the most valuable skill for a programmer in the AI era no longer be writing code, but building systems that can prove generated code is correct?
Frequently asked questions
1. Is the Riemann Hypothesis now proven for certain? The Lean and Mathlib communities have certified both the statement and the proof as correct under their four verification criteria (joint statement, 21 November). But the Clay Mathematics Institute has not yet given official recognition, some long checks are still running, and mathematicians are still studying the work. This is machine verification completed to a high degree — not yet the Clay Institute's final recognition.
2. What does 17 million lines of code mean? That is the size of the Lean library Alpöge released: 17 million lines of code across 175,187 files, not a traditional few-hundred-page PDF proof. The whole codebase has only one direct dependency: Mathlib.
3. What role did AI play in the proof? Alpöge released the proof with the help of Claude (Anthropic's model, where he works). The post does not say exactly which steps Claude contributed to — only that the proof was produced "with the help of Claude".
4. Why does checking the checkers matter? Because a bug in Lean's kernel could be exploited to "prove" something false. Con-leche and con-ron carry formal proofs of their own correctness, and several independent checkers written in different languages all accept the same export.
5. What about Alessandro Masullo's proof? Masullo released a GRH proof that does not use AI, the fruit of nearly 12 years of research, and decided to publish early after Alpöge's work appeared. The post records this as two works, two approaches, at a moment that may mark a turning point in the history of mathematics.
Source: Hỏi Dân it Offical (post summarising the @leanprover X account statement and the Lean community blog); Lean FRO and Mathlib Initiative joint statement, 21 November 2026; Andrew Sutherland's verification page (MIT); Scientific American.
Bài viết liên quan

23 tháng 11, 2026 · 7 phut doc
AgentScope: Alibaba DAMO Academy's Open-Source Python Framework for Building AI Agents — 100% Apache 2.0
China has just released a Python framework for building AI agents. 100% open source, Apache 2.0 license. It is called AgentScope — and the difference, according to the post introducing it, is that it…

23 tháng 11, 2026 · 11 phut doc
Almost 2027 — Do You Have a Real System for Running Agents Yet? A Linux Mini PC, Backups Twice a Day, and the Cost Question
Last week, sick at home, Vương Nguyên Bình started upgrading the machine running his agents. His post is a blunt reminder: if you really intend to use agents for work, prepare the foundation for your…

23 tháng 11, 2026 · 9 phut doc
OpenAI Discloses Internal Numbers: GPT-6.2 Astra Solved a Millennium Prize Problem, an Unnamed Internal Model Is Already at 0.732
On November 22, Jakub Pachocki, OpenAI's Chief Scientist, published "Perplexity and Intelligence" and did something no lab has done: he disclosed the internal pretraining log-perplexity of each model…