The Riemann Handbook is a book available in PDF and EPUB that presents the Lean proof of the Riemann Hypothesis in tamnd/riemann-lean as mathematical definitions, theorems, lemmas and proofs written in words.

The claim has not been checked. Nobody has built the Lean project in full, and no person has checked the written statements against the Lean code. The book explains the Lean code; it is not a separate check of the mathematics. See What is checked.

The handbook has 13 volumes. Volume 0 is a guide covering how to read the book, the status of the claim, notation, named results and an index of Lean names; its sources are content/front/ and tamnd/riemann. Volume 1 covers the mathematics used in the proof in 17 chapters, drawing on the Learn pages of tamnd/riemann. Volume 2 presents the top of the proof, its chapters and steps, based on the written proof of tamnd/riemann. Volumes 3 to 12 cover the Lean development, with one branch or Lean folder in each volume; their content is written for the book in content/dev/.

The books are available in the releases.

The development volumes are planned around declarations in the proof. Each declaration lies in the dominated subtree of exactly one other declaration—its immediate dominator—in the graph of uses from riemannHypothesis. The ledger includes an entry for each declaration with a large dominated subtree, using tiers of 1,000 or more declarations (591 entries), 300 or more (1,927), and 100 or more (5,764). It assigns entries to volumes by proof branch or Lean folder, and to chapters by Lean folder. Within each chapter, entries run from the top of the proof down.

The ledger can be generated with `python -m rhb ledger --records /path/to/records --min 1000 --write`. The coverage figures are in ledger/coverage.md, and prompts/entry.md contains the brief for writers of entries.

Building the books requires Python 3.11 or later, pandoc 3.8 or later and Tectonic. The tamnd/riemann and tamnd/riemann-lean repositories should be placed next to this repository. The listed commands are `pip install .`, `python -m rhb survey`, `python -m rhb check` and `python -m rhb build --volume 0,1,2 --formats pdf,epub`. The books are output to build/.

The build pipeline follows that of The Handbook of Algorithms: Markdown, then pandoc with filters/rhb.lua, then LaTeX with tex/handbook.sty, followed by Tectonic. The EPUB is EPUB 3 with MathML.

The text is licensed under CC BY 4.0, as is the text of tamnd/riemann. The builder is licensed under the MIT licence. Errors can be reported at issues.