The Riemann hypothesis formalisation builds, on the three standard axioms
What was built
On 20 November 2026 a Lean formalisation of a proof of the Riemann hypothesis, and of the generalised Riemann hypothesis for Dirichlet L-functions, was published; the Lean community mirrors it as leanprover-community/riemann-hypothesis. We built its main branch at the pinned commit twice, on our own machines, and asked Lean which axioms the final statement uses.
- The build finished with 138,503 jobs and 0 errors, once on a rented cloud machine (RunPod CPU pod, 32 vCPU, 128 GB RAM) and once locally (a 16 GB WSL virtual machine, 8 cores, 13 GiB memory limit).
- The axioms:
#print axioms riemannHypothesislists propext, Classical.choice, Quot.sound. These are the three standard axioms of Lean's mathematics. There is nosorryAx, so no step is left unproved. - The cost: the compiled files of the whole development take about 12 GB. Importing all of it on the cloud machine took 0:44.7 (wall clock) and at most 17,916,596 kbytes of memory, about 17.1 GiB.
What it means, and what it does not
The Lean kernel accepted every step, from the library's axioms to the statement called riemannHypothesis. That is a strong check, but it checks only what the statement says. Whether the Lean statement is the Riemann hypothesis as mathematicians mean it is a question for people who read the statement; we have not reviewed it.
We publish our measurement, not the formalisation: it has no licence, so its files stay where its authors put them. The links below lead there.
Results
| jobs | 138,503 |
|---|---|
| errors | 0 |
| axioms | propext, Classical.choice, Quot.sound |
| cloud_machine | RunPod CPU pod, 32 vCPU, 128 GB RAM |
| cloud_build | 2026-11-25 09:02 to 13:55 UTC, from source (Mathlib from its cache) |
| cloud_import_main_wall | 0:44.7 |
| cloud_import_main_max_rss_kbytes | 17,916,596 |
| local_machine | a 16 GB WSL virtual machine, 8 cores, 13 GiB memory limit |
| local_build | completed 2026-11-25 07:26 UTC with LEAN_NUM_THREADS=2, after six modules ran out of memory at full parallelism |
| local_import_main_wall | 1:09:27 (17 s of user CPU; the machine was paging) |
| olean_size_gb | 12 |
Pin
| Repository | https://github.com/leanprover-community/riemann-hypothesis |
|---|---|
| Commit | 9477923066c923e6dbf7292da17019f8d08d0db8 |
| Lean | v4.37.0-rc1 |
| Mathlib | 31ce06e |
Files (SHA-256)
- pod/import-main.log (not published — our build record, kept with the maintainers' records)
6d82d87314e2bc49b1f7e406999135b325b5cf041f7d75e3c96ded5360001008
To reproduce
git clone --filter=blob:none https://github.com/leanprover-community/riemann-hypothesis.git rh && cd rh
git checkout --detach 9477923066c923e6dbf7292da17019f8d08d0db8
lake exe cache get
lake build Challenge Main
printf 'import Main\n#print axioms riemannHypothesis\n' > /tmp/ImportMain.lean
/usr/bin/time -v lake env lean /tmp/ImportMain.lean
Credit
- Riemann hypothesis formalisation (leanprover-community/riemann-hypothesis) — Levent Alpöge, as stated in the repository's README; mirrored by the Lean community. Licence: none stated: all rights reserved by its author; shown with the author's permission (27 November 2026). We measured it on our own machines. With the author's permission (27 November 2026) we show our measurements, the names along the longest chain and maps of the development. The formalisation still has no free licence, so none of its files are reproduced here; if a licence is added, this changes.
- Lean 4 and Mathlib — the Lean FRO, the Lean 4 contributors and the Mathlib contributors. Licence: Apache 2.0.