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

| 1 | # Docstrings — `src/New/Derivatives/Field` (P-3, #4) |
| 2 | |
| 3 | Unit taken: the file `ChosenPlaces.lean` of the folder `src/New/Derivatives/Field`. This note covers |
| 4 | that file only; the folder's other two files are still free for the next reader of P-3. |
| 5 | |
| 6 | Eight public declarations in the file had no docstring. None had a wrong one: the file's existing |
| 7 | docstrings (including the ones on `piM`, `IsChosen`, `chiMLocal`, `chiZero`, `chiM` and |
| 8 | `CriticalPair`) state what the Lean says. The eight added: |
| 9 | |
| 10 | | Declaration | What the docstring now says | |
| 11 | |---|---| |
| 12 | | `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₁`. | |
| 13 | | `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`. | |
| 14 | | `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`. | |
| 15 | | `New.Data.orderOf_chiMLocalRoot` | At a chosen place `w`, the fixed residue character `D.chiMLocalRoot hw` has order q₂². | |
| 16 | | `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₂. | |
| 17 | | `New.Data.chiMLocal_eq_one_of_not_isChosen` | At a finite place that is not chosen, the residue character `D.chiMLocal w` is trivial. | |
| 18 | | `New.Data.chiZero_hasWeight` | `D.chiZero` has weight `v ↦ -w₀(v)`, with w₀(v) = `D.liftWeight 0 v`, and trivial tame part. | |
| 19 | | `New.Data.chiM_hasWeight` | `D.chiM` has weight `0` and tame part `D.chiMLocal`. | |
| 20 | |
| 21 | Checked: every declaration named in backticks in the new docstrings exists (`New.Data.piMBar_mul_star`, |
| 22 | `New.Data.piM_mul_star`, `New.Data.IsChosen`, `New.Data.chiMLocal`, `New.Data.chiMLocalRoot`, |
| 23 | `New.Data.liftWeight`, `New.Data.chiZero`, `New.Data.chiM`, `New.Data.CriticalPair`, |
| 24 | `New.Parameters.q₂`). `python3 checks/challenge.py .` ends with |
| 25 | `ok: 3 challenge files and the build configuration as approved; 809 Lean files, 484842 lines, toolchain leanprover/lean4:v4.37.0-rc1`. |
| 26 | No code, statement, hypothesis or proof line changes; the diff is docstrings and this note. |