A mathematical exposition of a Lean archive

The Riemann hypothesis and GRH for Dirichlet L-functions

A readable account of the Lean proof in Alpöge’s archive

On 20 November 2026 Levent Alpöge released a Lean 4 proof, found with Claude, of the Riemann hypothesis and of the generalized Riemann hypothesis for Dirichlet L-functions: an archive of 175,187 files and 17.4 million lines. This book presents the argument of that archive in mathematical prose. Its index links each numbered statement of the main text to the Lean declarations that prove it, with their modules and source lines, so that any step of the text can be followed into the archive. The mathematics is Alpöge’s archive; the exposition is ours.

500
pages of main text, in nine parts
1617
pages in all, with the appendix of longer proofs and the index of Lean declarations
7
pages in the roadmap of the top of the argument
The Lean archiveAccepted by several independent kernels (Sutherland’s report). On 21 November 2026 the Lean FRO and the Mathlib Initiative certified in a joint statement that the statement and the proof of the Riemann hypothesis are correct.

Where to start

The same argument at four lengths, from a story for readers with no mathematics to the full book.

The book in nine parts

Page numbers are those printed in the book; the links open the PDF at that page.

  1. iThe five statements and the window criterion7
  2. iiThe arithmetic side: prime sums and auxiliary primes32
  3. iiiDivisibility from one theta lift60
  4. ivDivisibility along the chain and division of lattices102
  5. vTwo bounds on one slope144
  6. viInput two: the window bound VWin197
  7. viiInput one: Green264
  8. viiiInput three: the witness for HypsAlt276
  9. ixGalois representations and local Langlands in the archive479
  10. Appendix: proofs500
  11. Index of Lean declarations1495
  12. Bibliography1606

The introduction (page 4) gives the theorem and the argument in six steps. Parts I to V carry the argument from the five statements down to the three inputs that it takes from elsewhere in the archive; Parts VI to IX treat those inputs: Green’s classification of the cuspidal characters of GLd(Fp), the window bound VWin for Tate–Shafarevich-type groups, and the witness HypsAlt, a structure of 46 conditions on one family of data.

How a statement is tied to Lean

Theorem 1.1 (Riemann hypothesis). Every zero s of ζ with s ≠ 1 and s ∉ {−2, −4, −6, …} satisfies Re s = 1/2.

Index of Lean declarationsriemannHypothesis (file Main, line 4)

Statements are numbered by chapter, as in 1.1 or 10.19. The index at the end of the book lists, for each statement by its number, the archive declarations that prove it, with their modules and line numbers; where the archive has several versions of a result, the one cited is on the path of the final proof. The book follows Alpöge’s original archive, the version with SHA-256 9631b4f0…c7fc. Luke Sernau’s grh-lean (25 November 2026) is a shorter Lean rewriting of the proof; the book’s references do not point to it.

How the book was written

The project organizer set the editorial rules; several AI models wrote the text from the Lean source and cross-checked it.

Sixty-five proofs, sixty-four in Part VIII and one in Part IX, are headed “Proof (outline)”; each states its steps and ends with the Lean declaration that contains the complete proof. They are listed in outline-proofs.md. What was tried to shorten the proof or make it more elementary is recorded in simplification-notes.md. Chapter 4 gives an alternative Gaussian-kernel proof of the window criterion that has not been formalized; the archive’s argument is included in the appendix.

Cite

rh-lean-roadmap. The Riemann hypothesis and GRH for Dirichlet L-functions: a readable account of the Lean proof in Alpöge’s archive. Version v44. Zenodo, 26 November 2026. https://doi.org/10.5281/zenodo.24562451

@book{rhleanroadmap2026,
  author    = {{rh-lean-roadmap}},
  title     = {The {Riemann} hypothesis and {GRH} for {Dirichlet}
               {$L$}-functions: a readable account of the {Lean}
               proof in {Alp\"oge}'s archive},
  year      = {2026},
  version   = {v44},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24562451},
  url       = {https://doi.org/10.5281/zenodo.24562451}
}
This version (v44)10.5281/zenodo.24562451
All versions10.5281/zenodo.24562450 (resolves to the latest)
LicenceText CC BY 4.0; Lean files Apache-2.0. The Alpöge archive is separate.

中文

这本书用数学文字讲解 Alpöge 的 Lean 档案:正文 500 页,加上收较长证明的附录和 Lean 声明索引,全书 1617 页(英文)。书末索引按编号列出正文每条陈述对应的 Lean 声明、模块和源码行号,读者可以从书中任何一步查到档案里的原文。另有 7 页路线图,概括证明顶层的五步。项目组织者制定编写规则,多个 AI 模型依据 Lean 源码撰写并交叉核对。