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 Mathlib.Probability.Moments.ComplexMGF |
| 4 | import Mathlib.Algebra.Order.Star.Real |
| 5 | import Mathlib.Analysis.Complex.HalfPlane |
| 6 | import Mathlib.Analysis.Complex.TaylorSeries |
| 7 | import Mathlib.Analysis.Meromorphic.Order |
| 8 | import Mathlib.MeasureTheory.Order.Group.Lattice |
| 9 | public import Lib.Analytic.EntireLFunction |
| 10 | import TauCeti.Analysis.LaplaceTransform.Meromorphic |
| 11 | |
| 12 | /-! |
| 13 | # Landau's lemma |
| 14 | |
| 15 | This part applies Landau's lemma, that the Laplace transform of a function of one sign is not |
| 16 | analytic at its abscissa of convergence, to transforms satisfying `New.IsPolar`. Assume a one-sided |
| 17 | bound on the error term `E`, and assume that the residues `r x` at real `x > β` have non-negative |
| 18 | real part. Then there is no pole to the right of `β`. Together with `Lib.Analytic.EntireLFunction`, |
| 19 | these are the analytic tools for passing from a one-sided bound on an error term to the absence of |
| 20 | zeros of L-functions. |
| 21 | |
| 22 | Landau's lemma in the one-sided form used here is Tau Ceti's |
| 23 | `TauCeti.hasLaplace_toMeromorphicNFOn_of_ae_le_exp`. |
| 24 | |
| 25 | ## Main results |
| 26 | |
| 27 | * `New.IsPolar.landau`: let `β > 0`. If `E v ≤ A e^{(β-1)v}` for all large `v` and `re (r x) ≥ 0` |
| 28 | for real `x > β`, then `r ρ = 0` for `re ρ > β`. |
| 29 | |
| 30 | Notions from other files: |
| 31 | * `New.IsPolar` (from `Lib.Analytic.EntireLFunction`): `∫₀^∞ E(v) e^{(1-s)v} dv`, the Laplace |
| 32 | transform of `E(v) e^v`, converges for `re s > 2` and continues meromorphically to `re s > 0` |
| 33 | with at most simple poles of residue (trailing coefficient) `r ρ` there. |
| 34 | |
| 35 | ## Relation to the literature |
| 36 | |
| 37 | Known result: Landau's lemma on Dirichlet integrals of one sign. It is applied to transforms with |
| 38 | simple poles whose residues at real points have non-negative real part: no pole lies to the right |
| 39 | of the abscissa given by the one-sided bound. Source: Montgomery and Vaughan, Multiplicative |
| 40 | Number Theory I, 2007, Lemma 15.1 (Widder, The Laplace Transform, 1941, II Thm 5b). |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | open Complex Set Filter MeasureTheory Topology |
| 46 | |
| 47 | namespace New |
| 48 | |
| 49 | variable {E : ℝ → ℝ} |
| 50 | |
| 51 | /-- **No pole to the right of `β`**, by Landau's lemma and the sign of the residues at real points. |
| 52 | Suppose `IsPolar E r`: the transform `∫₀^∞ E(v) e^{(1-s)v} dv` converges for `re s > 2` and has a |
| 53 | meromorphic continuation to `re s > 0` with at most simple poles of residue `r ρ` there. Let |
| 54 | `β > 0`. If `E(v) ≤ A e^{(β-1)v}` for all large `v` and the residues at real points right of `β` |
| 55 | have real part `≥ 0`, then there is no pole in `re s > β`, that is, `r ρ = 0`. -/ |
| 56 | lemma IsPolar.landau {r : ℂ → ℂ} (h : IsPolar E r) {A β : ℝ} (hβ : 0 < β) |
| 57 | (hr : ∀ x : ℝ, β < x → 0 ≤ (r x).re) |
| 58 | (hE_le : ∀ᶠ v : ℝ in atTop, E v ≤ A * Real.exp ((β - 1) * v)) |
| 59 | {ρ : ℂ} (hρ : β < ρ.re) : |
| 60 | r ρ = 0 := by |
| 61 | -- `Φ` is the Laplace transform of `g(v) = E(v) e^v`, and `g(v) ≤ A e^{βv}` for large `v`. |
| 62 | obtain ⟨Φ, hΦ, hL, h_res⟩ := h |
| 63 | obtain ⟨u₀, hu₀⟩ := hE_le.exists_forall_of_atTop |
| 64 | have hg : ∀ᵐ u ∂volume.restrict (Ioi u₀), E u * Real.exp u ≤ A * Real.exp (β * u) := |
| 65 | ae_restrict_of_forall_mem measurableSet_Ioi fun u (hu : u₀ < u) ↦ |
| 66 | calc E u * Real.exp u ≤ A * Real.exp ((β - 1) * u) * Real.exp u := by grw [hu₀ u hu.le] |
| 67 | _ = A * Real.exp (β * u) := by rw [mul_assoc, ← Real.exp_add]; ring_nf |
| 68 | have h_sign (x : ℝ) (hx : x ∈ Ioc β 2) (h_neg : meromorphicOrderAt Φ x < 0) : |
| 69 | 0 ≤ (meromorphicTrailingCoeffAt Φ x).re := by |
| 70 | simpa [(h_res x (by simpa using hβ.trans hx.1)).2, h_neg] using hr x hx.1 |
| 71 | obtain ⟨h_order, -⟩ := TauCeti.hasLaplace_toMeromorphicNFOn_of_ae_le_exp hg |
| 72 | (fun z (hz : β < z.re) ↦ hΦ z (hβ.trans hz)) hL h_sign |
| 73 | simp [(h_res ρ (hβ.trans hρ)).2, not_lt.2 (h_order ρ hρ)] |
| 74 | |
| 75 | end New |