Riemann Hypothesis Proven and Verified in Lean
On November 20, 2026, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library comprising 17 million lines of code. Within a day, the Lean and Mathlib communities verified the proof and issued a joint statement certifying its correctness [1].
The verification followed four rigorous criteria. First, the statement of the Riemann Hypothesis in Mathlib was confirmed correct by experts in Lean and number theory. Second, Alpöge's library compiled correctly, with dozens of people reproducing the same raw proof export file without errors. Third, the community verified that the code proves the correct statement by comparing it using two independent tools, comparator and con-leche, both confirming an exact match with Mathlib's RiemannHypothesis theorem [2].
Independent Proof Checkers
The exported raw proof was checked by multiple independent proof checkers, including Lean's official kernel, the con-leche and con-ron checkers, and several third-party checkers implemented in different programming languages. Critically, con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof. This addresses concerns that Lean's logic itself might contain flaws the proof could exploit [3].
All checks ran on an inert export of the proof, out of reach of any hypothetical malicious code in the Lean source files.
What Is the Riemann Hypothesis?
Proposed by Bernhard Riemann in 1859, the hypothesis states that all non-trivial zeros of the Riemann zeta function have real part equal to 1/2. It is one of the most important unsolved problems in mathematics, with deep connections to the distribution of prime numbers. A correct proof has profound implications for number theory, cryptography, and our understanding of prime distribution [4].
Alpöge's 17-million-line Lean library represents a monumental formalization effort. The Lean community noted they look forward to the mathematical community's work in explaining the new ideas contained in the proof [5].
Sources:
[1] Lean Community: Lean verification of the Riemann Hypothesis
[2] Lean community statement, same as [1]
[3] MIT: Overview of proof verification
[4] Mathlib: RiemannHypothesis theorem
[5] Lean community statement, same as [1]