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-4: State a lemma at its natural generality #18
Open
Needs. Lean and the build cache; you compile the lemma's file and its callers.
Units. A subfolder of
src/Lib/Generaleach (Algebra, Analysis, Geometry, Groups, LinearAlgebra, Measure, NumberTheory), then other folders ofsrc/Lib.Do. Find a lemma stated for a field, a commutative ring or a square matrix whose proof uses less (a semiring, a monoid, a rectangular matrix), and state it at that generality if the proof is about as easy; move the callers and delete the old form. Upstream's commits titled "generalize … to …" of 2026-12-01 are the pattern. A lemma that becomes a Mathlib-style general fact is a candidate for M-1's opposite direction: say so in the pull request.
Closes when your pull request has passed
challengeandbuild, and names each lemma with its old and new hypotheses. The issue stays open.What it does not show. That the generality is used: the argument needs only the old form.