Lean verification of the Riemann hypothesis
A proof of the Riemann Hypothesis has been released as a Lean library and verified by the Lean and Mathlib communities.
A proof of the Riemann Hypothesis was released on November 20, 2026. Levent Alpöge developed this proof as a Lean library, comprising 17 million lines of code. The Lean and Mathlib communities have since verified its correctness.
The communities confirmed that the statement of the Riemann Hypothesis is accurate within Mathlib. The extensive codebase compiles without errors, and independent tools confirmed the theorem proved matches Mathlib's statement. Multiple proof checkers, including Lean's official kernel and other independent checkers, validated the Lean proof. Some checkers also come with formal proofs that they cannot accept false proofs, addressing concerns about Lean's logic.
Why it matters
This verification marks a significant achievement in formal mathematics. The use of a Lean library and community-wide verification efforts demonstrate the potential for technology in validating complex mathematical proofs. This work is expected to generate new activity and understanding within the mathematical community.