QEDbot
← All problems
AI proof announcedNumber theory

Riemann Hypothesis

The question: Do all non-trivial zeros of the Riemann zeta function have real part exactly 1/2?

Status: Proof announced · machine-checked in Lean · peer review pending · since 2026-11-20

Who: Levent Alpöge, with Claude (Anthropic). Short edition by Luke Sernau and colleagues, 25 Nov 2026.

A Lean 4 proof of the Riemann Hypothesis and of the Generalized Riemann Hypothesis for Dirichlet L-functions. The original release had about 17.4 million lines; the short edition proves the same five theorems in about 76,000 lines, using only the axioms propext, Classical.choice and Quot.sound.

Support this problemRank #9 · 0 € · 0 s of video funded · ranking

The proof in five parts

The file Main.lean assembles the whole proof from five parts. Each one below is a real building block in the code — click a name to open it on GitHub.

1The monster makes waves

The proof never hunts for zeros. A zero to the right of the critical line would make the count of primes swing by a measurable amount. So it is enough to show the count never comes out too high.

ψ(x) = x − Σ_ρ x^ρ/ρ − log 2π − ½ log(1 − x⁻²)
|x^ρ| = x^β, so a zero with β > ½ makes a swing of size x^β
If primeError(x) ≤ x^(β−1) for all large x, then L(s, χ) ≠ 0 for Re s > β

2The clock and the special primes

The proof counts only primes that land on one o'clock of a clock with 18,480 · q hours and that stay whole in the bigger number world ℚ(√−d). One clock settles ζ and every Dirichlet L-function at once.

N₀ = 18,480 · q, with 18,480 = 2⁴ · 3 · 5 · 7 · 11
a = N₀/2 − 1 satisfies a² ≡ 1 (mod N₀)
K = ℚ(√−d), d prime, d ≡ 7 (mod 8); count primes p ≡ 1 (mod N₀) that do not split in K

3The crystal, measured from outside

From these primes the proof builds a gigantic lattice of automorphic forms on unitary groups and stacks about √x theta lifts. Theorems A and B find short vectors in almost every direction, so the cells cannot be large. A chosen level prime builds the prime-count error into the length of those vectors.

m ∈ [√x, 2√x] theta lifts; ranks r ∈ [x⁵, 3x⁵]
Theorem A: ‖v‖² ≤ exp(h_main − m · rem + 𝓑 · log b)
Theorem B: span ≥ (1 − 4/b²) · D dimensions

4The crystal, measured from inside

The product formula says a number cannot be small everywhere at once. Comparing the crystal with twisted copies of itself, a ratio times its inverse is 1, and the height of 1 is never negative. So the cells cannot be arbitrarily small.

|q| · ∏_p |q|_p = 1, e.g. 12 · ¼ · ⅓ = 1
height(1) ≥ 0
Theorem C: D · (h_main − 3L) ≤ V + 2δ

5The one-half and the mirror

Inside and outside measurements meet, the huge main amount cancels, and one line is left: the star inequality. Dividing by √x gives an error of at most one over the square root, which is Riemann's one-half. The functional equation mirrors the result across the line.

m · rem ≤ (log b)² · 𝓑 (star inequality)
primeError(x) ≤ x^(8ε − ½) for every ε > 0
ξ(s) = ½ s(s−1) π^(−s/2) Γ(s/2) ζ(s) and ξ(s) = ξ(1 − s)

The series: 29 episodes

Episode 0 explains the five parts. Then each part gets its own episodes, following the folders of the Lean proof. Support decides how fast they come.

  1. 0How the Riemann Hypothesis was proved — the five parts

Part A · The monster makes waves

  1. A1The explicit formula: how zeros steer the primes · New/Endgame/OneSidedCriterion.lean
  2. A2Landau's lemma: one direction is enough · New/Endgame/OneSidedCriterion.lean
  3. A3The prime count as an exact finite sum · New/Endgame/PrimeError.lean

Part B · The clock and the special primes

  1. B1The clock N₀ = 18,480 · q and Dirichlet characters · New/Main.lean, New/Data
  2. B2ℚ(√−d): primes that split and primes that stay whole · New/Data, New/Forms
  3. B3Three scales x ≪ x₁ ≪ b and why data always exists · New/Data/AdmissibleData.lean, New/Data/DataExist.lean

Part C · The crystal, measured from outside (Theorems A and B)

  1. C1Lattices and covolume: what “cell size” means · New/Endgame/LongForms.lean
  2. C2Theta lifts and the seesaw · New/Seesaw
  3. C3CM curves and theta functions · New/Curve
  4. C4Twisted Hecke operators and columns · New/TwistedHecke, New/Columns, New/Core
  5. C5Theorem A: short forms from Poincaré series · New/Endgame/ShortAndEnough.lean
  6. C6Theorem B: filling almost every direction · New/Filling
  7. C7The real place: Bessel integrals · New/RealPlace
  8. C8Discrete series near 1 · New/DiscreteSeries
  9. C9The level prime pays the excess · New/Endgame/ShortAndEnough.lean

Part D · The crystal, measured from inside (Theorem C)

  1. D1Heights and the product formula · New/Heights
  2. D2Rows and the volume of the chain · New/Rows
  3. D3Crude rows complete the basis · New/Exchange
  4. D4Good forms have equal traces · New/Trace, New/GaloisRep
  5. D5Siegel–Weil and the Weil representation · New/SiegelWeil, New/Weil
  6. D6Galois representations and Selmer groups · New/Selmer
  7. D7Patching · New/Patching
  8. D8Lifts and crystalline classes · New/Lift
  9. D9Theorem C assembled · New/Endgame/LongForms.lean

Part E · The one-half and the mirror

  1. E1The star inequality: where the main term cancels · New/Main.lean
  2. E2From √x to x^(−1/2): the one-sided bound · New/Main.lean
  3. E3GRH and the functional equation · New/Main.lean
  4. E4How Lean checks it all: axioms, kernels, Comparator · Statements.lean, Main.lean

Video explainer coming soon on youtube.com/@QEDbot. Ask your own AI about any line of the proof with the QEDbot connector.