The whole map under the Riemann hypothesis: a million places
The whole map
The main pin's riemannHypothesis stands on a world of its own: 1,010,172 places and 375,308,982 "stands on" edges. Here every one of them is placed. Height is the rank, as everywhere in MathRPG. Across the floor, two places lie close when the sets of places they stand on overlap a lot (the Jaccard metric).
How it was laid out
- Each place's closure is summarised by a MinHash signature of 256 numbers, passed up the ranks layer by layer. This took about 19 minutes on one PC.
- The floor comes from pivot MDS with 50 pivots chosen at random (seed 38).
- Pivots chosen as far apart as possible, the method we use for small worlds, fail here. In a whole library 0.44 of all pairs share nothing at all (distance exactly 1), and the farthest-first rule keeps picking such places. The layout then collapses.
- How well the floor keeps distances, measured on sampled pairs that share something (Spearman): 0.76 over all places, 0.86 from rank 50 up, 0.92 from rank 150 up. The high, deep part of the map is drawn most faithfully.
What it shows
Seen from above, the places form a ring. The longest chain, at rank 344, starts at the blue tip where Mathlib's places sit and winds around the ring as it climbs. The ring is mostly depth bent into a circle: the mean angle of each band of 25 ranks turns steadily with rank (about −142° at rank 0–24, 7° at 150–174, −80° at 325–349; circular mean around the centroid of all 1,010,172 places of the library at this pin), while the distance from the centre stays about the same. Places mostly share foundations with places of similar depth, and a two-dimensional layout bends such a one-way gradient into a curve, a known effect of multidimensional scaling (the horseshoe effect). So going around the ring mostly means going deeper; across the ring, places of the same depth that stand on different things lie apart. The second route, Masullo's, has a map of 50,177 places (its riemannHypothesis and its GRH statement together), in the note of the same day.
The pictures are shown with the author's permission; the formalisation still has no free licence. The coordinates file (15 MB) is not on the site; the commands below rebuild it.
Walk the summit
The map's top is also a world in the game: open the summit. It holds the 14,575 places of rank 260 or more that riemannHypothesis stands on, with the roads between them, placed on the same Jaccard ground as these pictures. The longest chain is drawn whole, in gold: its 345 places go on below the summit down to rank 0, where Lean's ground of logic and the three axioms begins. Everything else below rank 260, Mathlib included, is left out, so the world stays light enough for a browser (56,540 roads in all).
Following the longest chain may not be enough to understand the proof. The chain shows how deep the proof goes, not where its ideas are. It is also one of possibly many chains of the same length: where several are equally long, our tool takes the one whose next name comes first. The key idea can sit off the chain, in a short step that many places stand on.
Under the summit the development meets Mathlib's Reciprocity world through 504 gateways. The highest of them is NumberField.tendsto_sub_one_mul_dedekindZeta_nhdsGT, at rank 263: the residue of the Dedekind zeta function, which is also the highest place in all of Mathlib. The formalisation uses another Mathlib pin than the game, so these crossings are shown on the atlas but not walked.
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
| places | 1,010,172 |
|---|---|
| edges | 375,308,982 |
| cycle_edges_skipped | 3,099 |
| chain_rank | 344 |
| minhash_k | 256 |
| pivots | 50 |
| pivot_seed | 38 |
| spearman_all_pairs_d_below_1 | 0.76 |
| spearman_rank_50_up_d_below_1 | 0.86 |
| spearman_rank_150_up_d_below_1 | 0.92 |
| share_pairs_at_d_1 | 0.44 |
| signature_minutes | 19 |
| mds_seconds | 21 |
| masullo_map_places | 50,177 |
| summit_floor | 260 |
| summit_places | 14,575 |
| summit_roads | 56,540 |
| summit_chain_places | 345 |
| gateways_reciprocity | 504 |
| gateways_ivt | 3 |
| top_gateway | NumberField.tendsto_sub_one_mul_dedekindZeta_nhdsGT |
| top_gateway_rank | 263 |
| 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)
- rh-main-front.png (with this note)
353c23ef815c2db8a0a7838e14d0b5586994fbf00f28e073686b5fef405d031d - rh-main-top.png (with this note)
adc15cb7ce30e833179e1a6ea5853265c9531269b29b34df3a68d318322b647c - rh-build-20261125/map/rh-main-layout.tsv.gz (not published — 15 MB of coordinates (name, rank, x, z); rebuilt with the commands below)
e436a2d8c7e4011ab05939a64eee6a577e97f59048b369f2e5a0c76062cc7962
To reproduce
lake env lean RHRank.lean # #math_rank and #place_edges on the main pin (RunPod, 25.11)
py -3 world/metric_layout_np.py rh-main-ranks.tsv.gz rh-main-edges.tsv.gz --out rh-main --save-sig
py -3 world/metric_layout_np.py rh-main-ranks.tsv.gz - --out rh-main --from-sig --pivot-mode random
py -3 world/summit_world.py rh-summit-260.tsv.gz rh-summit-260-edges.tsv.gz riemannHypothesis --layout rh-main-layout.tsv.gz --floor 260 --title "The summit of the Riemann hypothesis" --chain chain.tsv --note "<the ring note, from the band angles above>" --out topology/rh-world-3d.json
py -3 world/gateways.py --out rh-atlas.json --env rh rh-main-edges.tsv.gz rh-main.tsv.gz lake-manifest.json lean-toolchain --world rh rh topology/rh-world-3d.json --world reciprocity rh topology/reciprocity-world-3d.html
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.
- NumPy — the NumPy developers. Licence: BSD 3-Clause.