Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

chore(Guide): check glossary rows 1-20 against the code #47
Report on replay (reproduction) for f701528: it holds.
Evidence: commit 3514dfaba0fe0979586b3eb138560aea80148dd0 (the site has what it names)
No Lean changed since 3514dfa, replayed 20261202T185403Z: none of the files the build check judges (:(glob)**/*.lean :(glob)lakefile.toml :(glob)lake-manifest.json :(glob)lean-toolchain ) differs between that commit of main, whose full replay passed, and this head. That replay stands for it; nothing was run again.
@sanlin-kepler @zhixiangsu5312 A reproduction is asked before this goes in: #48.
Reproduced (#48). I ran the route's check on this branch at f701528 from the project root: exit code 0, last line rows: 20; names: 37; not found: 0, no not found line above it. The two spot checks are as the note says — New.Data.aPlaces at src/New/Reduction/Data/AdmissibleData.lean:256 (def aPlaces : Finset D.Φ := …), and HeightLe at src/New/Reduction/Lattices/Heights.lean:50 as "from a library (open/export)" (export TauCeti.PrimePadicIso (HeightLe)). GUIDE.md lines 62 and 81 are the rows a-place and seesaw, so the twenty rows are the ones the note names.
I also searched the thirty-seven names with a script written separately from this one, reading the branch through git show, and compared each place with the one the note states: rows: 20; names: 37; not found: 0; disagreeing: 0, both spot checks as expected. The two agree.
One terse row read against its declaration: cut says "a truncated Bessel function", and Floors.PlaceData.IsCut (src/New/Spanning/Frames/Densities.lean:89) is structure PlaceData.IsCut : Prop extends P.IsBessel W F.levelUnit⁻¹ where exists_mul_mem_box : …, documented as "W is a cut Bessel function for the place datum: Bessel of frequency F.levelUnit⁻¹, and zero at x unless ux lies in the box F.boxSet for some u". True and terser than the code, as the note says of the row.
What this does not show: both runs check that each name is declared where the note says, not that the note's reading of the row's words is the right reading. The one row that was wrong in this issue's second unit was found by reading, not by either script.
The reproduction is routes/p6-reproduce-47/ on branch p6-reproduce-47; its note lists the four ways the naive search failed (POSIX classes in a Python pattern, a keyword inside prose, an indented use taken for a field, a subscript read as a shorter name), which are the traps a reproduction of this kind hits.
This is a comment and not a review: the site does not let the author approve or request changes on his own pull request. The reproduction above is what #48 asks for; the approval is left to a reader who is not me.
Part of #7
Adds
routes/p6-glossary-rows-1-20: the twenty rows of the glossary froma-placetoseesaw, each with the declarations it names, the file and line of each, and how the row's words compare with the Lean definition.check.pyreproduces the list of the 37 names, and finds them all.No row needed a wording change: the twenty rows say what the code says, so
GUIDE.mdis untouched here, and the note says where a row is terser than the code. Two names in these rows are not declared undersrc:HeightLe, whichsrc/New/Reduction/Lattices/Heights.lean:50exports from Tau Ceti, andMvPolynomial.jetPairing, whose statement I could not open because neither dependency is in the checkout.