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 | module |
| 2 | |
| 3 | public import New.Reduction.OneSidedBound |
| 4 | import TauCeti.NumberTheory.LSeries.RiemannZeta.RiemannHypothesis |
| 5 | |
| 6 | /-! |
| 7 | # From non-vanishing in Re s > 1/2 to zeros on the critical line |
| 8 | |
| 9 | In the open critical strip the functional equation sends a zero at `s` for `χ` to a zero at `1 - s` |
| 10 | for `χ⁻¹`. Complex conjugation gives a zero at `1 - conj s` for `χ` itself. |
| 11 | Thus the half-plane bound `DirichletLNonvanishingRightOfHalf` |
| 12 | rules out zeros to the left of the critical line as well. |
| 13 | |
| 14 | * `New.zeros_on_line`: the zeros of `L(s, χ)` in `0 < re s < 1` have `re s = 1 / 2`. |
| 15 | * `New.zeta_zeros_on_line`: the character modulo `1` supplies the half-plane bound for `ζ`, so its |
| 16 | nontrivial zeros lie on the critical line. |
| 17 | |
| 18 | ## Relation to the literature |
| 19 | |
| 20 | Known result: the passage from the half-plane to the critical line by the functional equation. The |
| 21 | non-vanishing itself is `New.grh`. |
| 22 | -/ |
| 23 | |
| 24 | @[expose] public section |
| 25 | |
| 26 | open Complex DirichletCharacter |
| 27 | |
| 28 | variable (h : DirichletLNonvanishingRightOfHalf) |
| 29 | |
| 30 | include h |
| 31 | |
| 32 | /-- Assume `DirichletLNonvanishingRightOfHalf` (hypothesis `h`): Dirichlet L-functions do not vanish |
| 33 | for Re s > 1/2, the pole excepted. Then `DirichletLZerosOnLine` holds: every zero s of a Dirichlet |
| 34 | L-function with 0 < Re s < 1 has Re s = 1/2. -/ |
| 35 | lemma New.zeros_on_line : DirichletLZerosOnLine := by |
| 36 | refine fun N _ χ ↦ χ.zeroFreeRightOf_one_half_LFunction_iff_re_eq_one_half.mp ?_ |
| 37 | refine TauCeti.zeroFreeRightOf_iff.mpr fun s hs ↦ ?_ |
| 38 | rw [← not_lt, χ.meromorphicOrderAt_LFunction_pos_iff] |
| 39 | exact fun ⟨hz, hpole⟩ ↦ h N χ s hs hpole.symm hz |
| 40 | |
| 41 | /-- Assume `DirichletLNonvanishingRightOfHalf` (hypothesis `h`): Dirichlet L-functions do not vanish |
| 42 | for Re s > 1/2, the pole excepted. Then `RiemannZetaZerosOnLine` holds: every zero s of ζ outside |
| 43 | {1, −2, −4, …} has Re s = 1/2. -/ |
| 44 | lemma New.zeta_zeros_on_line : RiemannZetaZerosOnLine := by |
| 45 | apply TauCeti.riemannHypothesis_iff_mem_Ioo.mpr |
| 46 | intro s hz hs |
| 47 | apply New.zeros_on_line h 1 1 s hs.1 hs.2 |
| 48 | simpa only [LFunction_modOne_eq] using hz |