RiemannA guide by Principia Superintelligence

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,

ζ(s)=∑n≥11ns,Re⁡s>1,\zeta(s) = \sum_{n\ge 1} \frac{1}{n^{s}}, \qquad \operatorname{Re} s > 1,

and Riemann showed in 1859 that it extends to a function of every complex number except s=1s = 1, where it has a pole. The extended function has zeros at −2,−4,−6,…-2, -4, -6, \dots, 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 critical strip 0<Re⁡s<10 < \operatorname{Re} s < 1 and its centre line. The crimson points are the first zeros of ζ\zeta; the Riemann Hypothesis says none of the non-trivial zeros ever leaves the line.

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 ss with ζ(s)=0\zeta(s) = 0 that is not a trivial zero and is not the pole has Re⁡s=1/2\operatorname{Re} s = 1/2. The archive restates this as , and 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 −2(n+1)-2(n+1) for some natural nn, nor the point 11, lies on the line.
def Claim.Zeta : Prop

This is Mathlib's RiemannHypothesis, spelled out: a zero that is neither −2(n+1)-2(n+1) for some natural nn, nor the point 11, 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 LL-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 11 has real part 1/21/2.
theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine

The same claim, written out: a non-trivial zero other than 11 has real part 1/21/2.

LFunction_ne_zero_of_half_lt_retheoremMain.lean:8For every modulus NN and every Dirichlet character χ\chi mod NN, L(χ,s)≠0L(\chi, s) \ne 0 whenever Re⁡s>1/2\operatorname{Re} s > 1/2 (excluding the pole of L(1,s)L(1, s) at s=1s = 1).
theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf

For every modulus NN and every Dirichlet character χ\chi mod NN, L(χ,s)≠0L(\chi, s) \ne 0 whenever Re⁡s>1/2\operatorname{Re} s > 1/2 (excluding the pole of L(1,s)L(1, s) at s=1s = 1).

LFunction_eq_zero_retheoremMain.lean:10A zero of any Dirichlet LL-function inside the strip 0<Re⁡s<10 < \operatorname{Re} s < 1 lies on the line.
theorem LFunction_eq_zero_re : DirichletLZerosOnLine

A zero of any Dirichlet LL-function inside the strip 0<Re⁡s<10 < \operatorname{Re} s < 1 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: , which in turn is applied to . 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

  1. Zeros to primes. The Riemann Hypothesis is equivalent to a growth bound on a smoothed count of primes, G(x)G(x): it suffices that G(x)≤x1/2+εG(x) \le x^{1/2+\varepsilon} on sparse windows [Y,Y3/2][Y, Y^{3/2}] with YY arbitrarily large. Chapters 2 to 4.
  2. Chebyshev's method, and why it stalls. Chebyshev bounded primes by asking what divides one integer, (2nn)\binom{2n}{n}, and how big it is. Floors in Legendre's formula stop this at constants. Chapter 7.
  3. 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 a(1/p+1/p3+⋯ )a(1/p + 1/p^{3} + \cdots), with no floors. Subtracting a weight turns each term into exactly the ramp that defines GG. Chapters 8 to 10.
  4. Size, to the precision needed. The size of those derivatives is a Gaussian integral, a!a!, times periods (Chowla–Selberg), masses (Siegel) and dimensions (Weyl), known exactly through the term linear in aa. Comparing divisibility with size, for a chain of about x\sqrt{x} theta lifts between definite unitary groups, is the main inequality. Chapters 11, 13 and 14.
  5. Clean-up. Averaging over residue classes leaves G(x)G(x) plus three sums twisted by quadratic characters, which are small for well-chosen auxiliary primes. The two errors, x/mx/m and mm, balance at m≈xm \approx \sqrt{x}. 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 ζ\zeta alone. Its central object is a family of Dirichlet characters with positive weights, and the statistic it bounds is a weighted combination of the GG-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 L(χ,s)L(\chi, s) cannot be ruled out in advance, and the Lean proof carries it as a separate branch with a positive residue.