RiemannA guide by Principia Superintelligence

Verification

A Lean proof is only as good as four things: the statement is the one you meant, the code compiles, the proof term matches that statement, and an independent checker accepts the term (a published checklist). For the Riemann Hypothesis all four have been done by people outside this project, and we have also compiled the whole archive ourselves.

The three statements about Dirichlet L-functions (GRH) differ in one way. Mathlib has a named definition of the Riemann Hypothesis but none of GRH, so these are written out in a short challenge file that imports only Mathlib and uses Mathlib's L-functions and characters; the archive's theorems were matched against that file by machine. That those few lines say what the textbook theorem says is a matter of reading them, which chapter 1 invites you to do.

Not done yet

Our own build of the whole archive

On 2026-11-23 we compiled the archive from source on one machine, so that every number on this site comes from a build we ran ourselves rather than from a report. Every artifact of that build (the compiled modules, the per-module timings, the extracted declarations, the logs) is kept in long-term storage.

SourceThe archive at commit 9631b4f0, Lean v4.33.1, Mathlib at 0df444a3; 175,187 modules, 17,374,215 lines.
MachineOne 192-core, 1.5 TiB AWS instance; lean driven directly over the import graph, critical path first, 192 processes.
ResultAll 175,187 modules compiled, none failed. 3.4 hours of computation (568 core-hours); 1,060 modules a minute while the graph is wide.
AxiomsFrom our build, riemannHypothesis, riemannZeta_eq_zero_re, LFunction_ne_zero_of_half_lt_re, LFunction_eq_zero_re and LFunction_eq_zero_re_of_isPrimitive each depend on exactly propext, Classical.choice and Quot.sound.
Declarations1,494,114 constants in the compiled environment, 1,074,902 of them the archive's own (814,942 theorems, 251,554 definitions), each extracted with its statement, docstring, source position, and the constants its statement and its proof use.
The coneriemannHypothesis rests on 924,236 named declarations: 784,018 from the archive and 140,218 from Mathlib and Lean's core, through chains up to 51 steps long. Computed in Lean over our own build by walking every constant the five headline theorems' proof terms reference; the 553,986 auxiliary constants Lean generates along the way are walked but not counted. The four other headline theorems share the same trunk. 290,884 of the archive's declarations lie outside it. The proof map shows which parts of the archive the theorem stands on, and replays the build.

Independent checks of the whole archive

WhoWhat
Lean FRO and Mathlib Initiative (joint statement, 21 Nov)Certify the statement and the proof of RH: the theorem proved is exactly Mathlib's RiemannHypothesis (compared by two independent tools, comparator and con-leche --compare); dozens of people reproduced the same raw export; the export was accepted by Lean's kernel, con-leche, con-ron and further third-party checkers.
An independent check at MIT, as of 23 NovAll 175,187 modules compile under Lean v4.33.1; a sandboxed rebuild reproduces the 61.6 GB export byte for byte; nanoda, con-leche, con-ron and Lean's kernel accept the export; the five headline theorems depend only on propext, Classical.choice and Quot.sound. lean4lean passed every module, run on the compiled files rather than the export (five needed a raised step limit). A comparator run on Lean v4.36.0 and a paranoid-kernel replay of the export were still in progress.
riemann-rev reading project, as of 20 NovTwo independent kernels (Lean replay, NanoDA) accept the complete proof; NanoDA counts 1,484,733 declarations (con-leche counts 1,468,418); a 14-component map with 107 pinned declarations. The project says it is not a referee report.
An independent 288-core build, as reported on 21 NovFull build in 2 h 0 m on 288 cores with a custom scheduler, Mathlib from cache; kernel replay of 183,877 modules in 59 min wall-clock on 256 processes (about 227 CPU-hours) with a modified replay tool. An independent article reproduced parts of this on a laptop.