riemannHypothesis stands at rank 344
What rank means
In MathRPG every declaration of a Lean library is a place. Some declarations are not places of their own: logic and Lean's own machinery are ground; a structure's constructor and projections are members of its place; instances and generated names are plumbing and are contracted away. The rank of a place is the length of the longest chain of places it stands on, down to the ground: 0 when it stands on nothing, otherwise one more than the highest rank below it. Rank is a property of a library at a version, not of a theorem in the abstract.
The record
In the environment of the Riemann hypothesis formalisation (its Main module with everything it imports, Mathlib included):
riemannHypothesisstands at rank 344; its longest chain has 345 places, the statement included.- The highest rank anywhere in that environment is 345.
- The environment has 2,248,690 constants: 1,010,172 places, 118,191 members, 987,453 plumbing and 132,874 ground. The rank pass took 2,252 seconds.
- For scale, three Mathlib theorems in the same environment: the fundamental theorem of algebra (
Complex.exists_root) at 220, quadratic reciprocity at 84, the intermediate value theorem at 39.
A route is a different proof of the same statement. A route that reaches riemannHypothesis at a lower rank lowers the record, and anyone can check such a claim with the same command.
The chain itself is published with this note, with its author's permission: rh-main-chain.txt lists its places from the top, one per line with its rank. The formalisation still has no free licence, so none of its files are reproduced. Its map is in the note of 27 November.
Rank rule. The ranks on this page were measured with rule v1 (before 28.11.2026); the rules and their versions are in rank/RULES.md in the repository. Since 28 November 2026 Mathlib's own lemmas under List, Option, Char and three other core heads count as places (rule v2). In MathRPG's Mathlib table quadratic reciprocity now stands at 154 instead of 84. This environment ran on a machine that no longer exists, so it was not measured again.
Results
| rank | 344 |
|---|---|
| chain_length | 345 |
| max_rank | 345 |
| constants | 2,248,690 |
| places | 1,010,172 |
| members | 118,191 |
| plumbing | 987,453 |
| ground | 132,874 |
| rank_pass_seconds | 2,252 |
| mathlib_landmarks.Complex.exists_root | 220 |
| mathlib_landmarks.legendreSym.quadratic_reciprocity | 84 |
| mathlib_landmarks.intermediate_value_Icc | 39 |
| rank_rule | rule v1 (before 28.11.2026) |
Pin
| Repository | https://github.com/leanprover-community/riemann-hypothesis |
|---|---|
| Commit | 9477923066c923e6dbf7292da17019f8d08d0db8 |
| Lean | v4.37.0-rc1 |
| Mathlib | 31ce06e |
Files (SHA-256)
- pod/rh-main.json (not published — the full output of the rank pass; kept with the maintainers' records)
33b6ac8d541b5ec5f682662ec97abcf4271c19d82ba4cf9a9b558abd84e2ef85 - rh-main-chain.txt (with this note)
22fac32b12011168ab08894122c84d34130c86d86d9f450ccd4c867678564f62
To reproduce
# in the built checkout of the build note (same pin):
lake env lean RHRank.lean
# RHRank.lean is FLTRank.lean with `import Main` and, at its end:
# #math_rank "rank/rh-main.tsv" "rank/rh-main.json" riemannHypothesis Complex.exists_root intermediate_value_Icc legendreSym.quadratic_reciprocity
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.