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

Docstrings — src/New/Derivatives/Field (P-3, #4)
Unit taken: the file ChosenPlaces.lean of the folder src/New/Derivatives/Field. This note covers
that file only; the folder's other two files are still free for the next reader of P-3.
Eight public declarations in the file had no docstring. None had a wrong one: the file's existing
docstrings (including the ones on piM, IsChosen, chiMLocal, chiZero, chiM and
CriticalPair) state what the Lean says. The eight added:
| Declaration | What the docstring now says |
|---|---|
New.Data.piMBar_ne_zero |
D.piMBar ≠ 0: the integer of K of norm p₀p₁ is nonzero, its product with its conjugate being D.M = p₀ p₁. |
New.Data.piM_ne_zero |
D.piM ≠ 0: the image in 𝓞 E of the conjugate of D.piMBar is nonzero, the same product being D.M. |
New.Data.finite_isChosen |
Only finitely many finite places of E are chosen: D.IsChosen w holds exactly for the prime divisors of D.piM. |
New.Data.orderOf_chiMLocalRoot |
At a chosen place w, the fixed residue character D.chiMLocalRoot hw has order q₂². |
New.Data.orderOf_chiMLocal |
At a chosen place w, the residue character D.chiMLocal w, the q₂-th power of D.chiMLocalRoot, has order q₂. |
New.Data.chiMLocal_eq_one_of_not_isChosen |
At a finite place that is not chosen, the residue character D.chiMLocal w is trivial. |
New.Data.chiZero_hasWeight |
D.chiZero has weight v ↦ -w₀(v), with w₀(v) = D.liftWeight 0 v, and trivial tame part. |
New.Data.chiM_hasWeight |
D.chiM has weight 0 and tame part D.chiMLocal. |
Checked: every declaration named in backticks in the new docstrings exists (New.Data.piMBar_mul_star,
New.Data.piM_mul_star, New.Data.IsChosen, New.Data.chiMLocal, New.Data.chiMLocalRoot,
New.Data.liftWeight, New.Data.chiZero, New.Data.chiM, New.Data.CriticalPair,
New.Parameters.q₂). python3 checks/challenge.py . ends with
ok: 3 challenge files and the build configuration as approved; 809 Lean files, 484842 lines, toolchain leanprover/lean4:v4.37.0-rc1.
No code, statement, hypothesis or proof line changes; the diff is docstrings and this note.