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

M-1: Replace one of our lemmas with Mathlib's #15
Open
Needs. Lean and the build cache; you compile the callers.
Units. A subfolder of
src/Lib/Generaleach (Algebra 18 files, LinearAlgebra 14, NumberTheory 11, Geometry 9, Measure 7, Analysis 6, Groups 5), or one row of an M-3 table.Do. Find a lemma whose statement Mathlib (at the commit in
lakefile.toml) already has, with the same hypotheses or weaker, switch its callers to Mathlib's, and delete ours. If Mathlib states it in another form, keep ours as a short wrapper rather than converting at every caller.Closes when your pull request has passed
challengeandbuild, and names the Mathlib declaration and why the statements agree. The issue stays open: there is more than one such lemma.What it does not show. That Mathlib's proof is shorter; only that the project carries one proof less.