Part I, chapter 1
What was proved
The statement, as Mathlib writes it; the five theorems the archive exports; what 'verified' means and does not mean; and the shape of the argument in five sentences.
draft, under review9 minfirst published in v0.1.0, 2026-11-22
The statement
The Riemann zeta function starts life as a sum over the positive integers,
and Riemann showed in 1859 that it extends to a function of every complex number except , where it has a pole. The extended function has zeros at , called trivial because they come from a visible factor in the extension. The Riemann Hypothesis says: every other zero has real part exactly one half.
The archive proves the statement in exactly the form Mathlib already had, which matters: nobody got to choose a convenient paraphrase. In Mathlib’s words, every with that is not a trivial zero and is not the pole has . The archive restates this as ZetaClaim.ZetadefCharacterBoxes/HalfPlane.lean:9def Claim.Zeta : Prop, and zeta_iffClaim.zeta_ifftheoremCharacterBoxes/ClaimStrip.lean:102theorem zeta_iff : Zeta ↔ RiemannHypothesis records that the two are the same proposition by definition.
Claim.ZetadefCharacterBoxes/HalfPlane.lean:9This is Mathlib's RiemannHypothesis, spelled out: a zero that is neither for some natural , nor the point , lies on the line.
def Claim.Zeta : Prop
This is Mathlib's RiemannHypothesis, spelled out: a zero that is neither for some natural , nor the point , lies on the line.
Full declaration with proof
def Claim.Zeta : Prop := ∀ s : ℂ, riemannZeta s = 0 → (¬ ∃ n : ℕ, s = -2 * (n + 1)) → s ≠ 1 → s.re = 1 / 2
Claim.zeta_ifftheoremCharacterBoxes/ClaimStrip.lean:102Proved by Iff.rfl: the two statements are definitionally equal.
theorem zeta_iff : Zeta ↔ RiemannHypothesis
Proved by Iff.rfl: the two statements are definitionally equal.
The five theorems
Main.lean is thirteen lines long. It exports five theorems. Two are formulations of the Riemann Hypothesis itself: the first in Mathlib’s own words, the second written out. The other three concern Dirichlet -functions and together are the Generalized Riemann Hypothesis, in increasing strength.
riemannHypothesistheoremMain.lean:4The Riemann Hypothesis, as Mathlib states it.
theorem riemannHypothesis : RiemannHypothesis
The Riemann Hypothesis, as Mathlib states it.
riemannZeta_eq_zero_retheoremMain.lean:6The same claim, written out: a non-trivial zero other than has real part .
theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine
The same claim, written out: a non-trivial zero other than has real part .
LFunction_ne_zero_of_half_lt_retheoremMain.lean:8For every modulus and every Dirichlet character mod , whenever (excluding the pole of at ).
theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf
For every modulus and every Dirichlet character mod , whenever (excluding the pole of at ).
LFunction_eq_zero_retheoremMain.lean:10A zero of any Dirichlet -function inside the strip lies on the line.
theorem LFunction_eq_zero_re : DirichletLZerosOnLine
A zero of any Dirichlet -function inside the strip lies on the line.
LFunction_eq_zero_re_of_isPrimitivetheoremMain.lean:12The same for primitive characters; this is the form usually called GRH.
theorem LFunction_eq_zero_re_of_isPrimitive : PrimitiveDirichletLZerosOnLine
The same for primitive characters; this is the form usually called GRH.
The proof of the first is one line: rhOfAllrhOfAlltheoremKernels/MainTheorems.lean:9theorem rhOfAll : RiemannHypothesis, which in turn is rh_of_everyFormalism.VW.rh_of_everytheoremGammaFactorNonvanishing/CritLine.lean:29theorem Formalism.VW.rh_of_every (h : UpperTheory.EveryCharacter) : RiemannHypothesis applied to allChiallChitheoremKernels/MainTheorems.lean:7theorem allChi : UpperTheory.EveryCharacter. Read it as a sentence: RH follows from the half-plane statement for every character. The half-plane statement is where the 17 million lines go. We follow that line in chapters 5 and 6.
What “verified” means here
Lean is a proof assistant: a small program, the kernel, checks that every step of a proof is an instance of a rule of logic. The archive compiles under Lean 4.33.1 with Mathlib pinned to one commit, and the kernel reports that the five theorems depend on nothing but the three axioms every Mathlib proof uses (propositional extensionality, choice, and quotient soundness). Independent checkers written in other languages have replayed the exported proof and agree. The details and the people who did them are on the verification page.
Two honest limits. First, the kernel checks that the exported statements follow from the axioms; it does not check that any internal definition means what its name suggests. That is why this site quotes statements verbatim and marks them verified in Lean, and marks everything we say about them our exposition. Second, the archive contains no comments at all. There is no human-readable account of the argument by its author yet, though they have said they intend to write one. What follows is our reading, checked against the first exposition and against the statements themselves.
The argument in five sentences
- Zeros to primes. The Riemann Hypothesis is equivalent to a growth bound on a smoothed count of primes, : it suffices that on sparse windows with arbitrarily large. Chapters 2 to 4.
- Chebyshev's method, and why it stalls. Chebyshev bounded primes by asking what divides one integer, , and how big it is. Floors in Legendre's formula stop this at constants. Chapter 7.
- An integer with smooth exponents. Derivatives of theta functions attached to a field with complex multiplication are divisible by inert primes to exponents of the smooth form , with no floors. Subtracting a weight turns each term into exactly the ramp that defines . Chapters 8 to 10.
- Size, to the precision needed. The size of those derivatives is a Gaussian integral, , times periods (Chowla–Selberg), masses (Siegel) and dimensions (Weyl), known exactly through the term linear in . Comparing divisibility with size, for a chain of about theta lifts between definite unitary groups, is the main inequality. Chapters 11, 13 and 14.
- Clean-up. Averaging over residue classes leaves plus three sums twisted by quadratic characters, which are small for well-chosen auxiliary primes. The two errors, and , balance at . That is where the exponent one half comes from. Chapters 12 and 15.
The first sentence is classical analysis and is proved in full in the Lean files we read in the next three chapters. The other four are the heart, explained in Part II (chapters 7 to 15).
Why Dirichlet L-functions come along for free
The proof never treats alone. Its central object is a family of Dirichlet characters with positive weights, and the statistic it bounds is a weighted combination of the -functions of the family. The trivial character is one member. Everything downstream, from the window lemma to the theta lifts, is stated for the family, so the half-plane statement comes out for every character at once. The one place the characters need separate care is the real axis: a real zero of cannot be ruled out in advance, and the Lean proof carries it as a separate branch with a positive residue.