Loading…
The Riemann Hypothesis, cleaned up
The Lean community's effort to clean up the Lean files of Levent Alpöge's claimed proof of the Riemann Hypothesis: the same theorems, with unreachable modules and imports pruned, checked against a Mathlib-only statement with Comparator.
Announced by The Lean community · The repository · Its verification notes · The remarks announcing the original
This is a claim, posted as Lean. This site lays it out to read; it does not check it.
Lean on the left; on the right, each declaration in plain language. Hover a phrase to see its Lean.
Loading the theorems…
The claim
The same claim as the Riemann Hypothesis project: Levent Alpöge’s Lean, announced on November 20, 2026, which claims the Riemann Hypothesis and the same for every Dirichlet L-function. What differs is the Lean. The Lean community took the files Alpöge published and is cleaning them up, so that the proof is smaller and easier to check.
What the cleanup does
The repository began as an unmodified copy of the submission, with a setup for Lean’s Comparator and a shared build cache added beside it. Since then it has pruned the top-level imports nothing needs and 10,474 modules the main theorems never reach, restoring the imports the proof still needs. The five main theorems are the same.
Challenge.lean states the five theorems in a file that imports only Mathlib. Comparator checks
that what the proof exports matches that file, so a reader can trust the statement without reading
the rest.
The statement in Lean
The main theorem’s type, RiemannHypothesis, is Mathlib’s own:
def RiemannHypothesis : Prop :=
∀ (s : ℂ) (_ : riemannZeta s = 0) (_ : ¬∃ n : ℕ, s = -2 * (n + 1)) (_ : s ≠ 1), s.re = 1 / 2
Where to start
Challenge.lean: the five theorems, importing only Mathlib.Main.lean: the same five, proved.Statements.lean: the generalized statements.
Background
The repository, leanprover-community/riemann-hypothesis, was opened on November 20, 2026, the day of the announcement. Digestivo reads it at its commit of November 21. The submission belongs to its author, who published it without a license; the repository keeps it for verification.
How to check it yourself
Unpack the Lean the announcement links to, then build it (it is large: give it hours):
lake exe cache get lake build
Then ask Lean what the main theorems rest on. A complete proof rests only on propext, Classical.choice, and Quot.sound:
import Main #print axioms riemannHypothesis #print axioms riemannZeta_eq_zero_re #print axioms LFunction_ne_zero_of_half_lt_re #print axioms LFunction_eq_zero_re #print axioms LFunction_eq_zero_re_of_isPrimitive