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 | import TauCeti.RingTheory.PowerSeries.Rescale |
| 4 | public import Lib.CM.FormalGroup.IntegralParameter |
| 5 | public import Lib.CM.Integrality.TorsionValues |
| 6 | import Lib.CM.Integrality.IntegralSections |
| 7 | |
| 8 | /-! |
| 9 | # Isogenies and translates act integrally on expansions |
| 10 | |
| 11 | Let `p` be a prime and `ιₚ : ℂ →+* ℂ_[p]` a fixed embedding. For a lattice `Λ` of a `CMLattice`, the |
| 12 | function `y_Λ = translatedY` is the second Weierstrass coordinate at `z + t` in the model of the |
| 13 | lattice, `(℘′(z + t) - a₁ x(z)) / 2` with `x(z) = ℘(z + t) - ℘(t)`, `a₁` the `xy`-coefficient of |
| 14 | that Weierstrass model and `t` the chosen point of order two, and `translatedYThetaCube` is the |
| 15 | entire extension of `y θ³`, where `θ` is the theta function of degree one, normalised by `θ(0) = 1`. |
| 16 | The ring `integralSeriesRing` is `𝒪[[y_Λ]]`, the integral power series in the Taylor series of |
| 17 | `y_Λ`, and `taylorVia ιₚ f` is the Taylor series of `f` at `0` with `ιₚ` applied to its |
| 18 | coefficients. |
| 19 | |
| 20 | * `New.CMLattice.exists_rescale_theta_eq_theta_pow_mul`: an isogeny of degree `N` pulls `θ` back to |
| 21 | `θ ^ N` times an integral series in `y`. |
| 22 | * `New.CMLattice.rescale_translatedY_mem_integralSeriesRing`: an isogeny pulls `y` back to an |
| 23 | integral series in `y`. |
| 24 | * `New.CMLattice.norm_le_one_of_mapsTo_lattice`: the multiplier of an isogeny is integral at `p`. |
| 25 | * `New.CMLattice.exists_rescale_twistedTranslate_eq_theta_pow_mul`: the pull-back of a torsion |
| 26 | translate of `θ`. |
| 27 | |
| 28 | The pull-back statements rest on the height comparison and on the integrality principle for sections |
| 29 | bounded by a power of the naive height, and the integrality of the multiplier follows from the |
| 30 | pull-back of `y`. |
| 31 | |
| 32 | ## Relation to the literature |
| 33 | |
| 34 | Known result: an isogeny of elliptic curves with good reduction acts on the formal groups by an |
| 35 | integral power series. Background: Silverman, *The Arithmetic of Elliptic Curves*, Chapters IV and |
| 36 | VII. |
| 37 | -/ |
| 38 | |
| 39 | @[expose] public section |
| 40 | |
| 41 | open PowerSeries ComplexConjugate |
| 42 | |
| 43 | namespace New.CMLattice |
| 44 | |
| 45 | variable {d : ℕ} [PrimeSevenModEight d] (C : CMLattice d) {p : ℕ} [Fact p.Prime] [PadicPlace p] |
| 46 | |
| 47 | /-- Let multiplication by `a` be an isogeny of degree `N` from the lattice `Λ` of `C` to the lattice |
| 48 | `Λ'` of `C'`, and let `G` be a section of degree `n` for `C'` (a theta function of that degree) |
| 49 | with `‖ιₚ (G w)‖ ≤ h'(w) ^ n` for all `w`, where `h'` is the naive height of `C'`. Then the series |
| 50 | of `G(a z)` (Taylor series at `0`, mapped to `ℂ_[p]` by `ιₚ`) is the `N n`-th power of that of |
| 51 | `θ_Λ = C.θ` times an element of `C.integralSeriesRing`, the ring of integral power series in the |
| 52 | series of `y_Λ = C.translatedY`. -/ |
| 53 | lemma exists_rescale_eq_theta_pow_mul {C' : CMLattice d} {a : ℂ} {N n : ℕ} {G : ℂ → ℂ} |
| 54 | (h_isog : C.IsIsogeny C'.periodPair a N) (hG_mem : G ∈ C'.sections n) |
| 55 | (hG_le : ∀ w : ℂ, ‖ιₚ (G w)‖ ≤ C'.naiveHeight w ^ n) : |
| 56 | ∃ u ∈ C.integralSeriesRing, (taylorVia ιₚ G).rescale (ιₚ a) = (taylorVia ιₚ C.θ ^ N) ^ n * |
| 57 | u := by |
| 58 | -- The pull-back `G(a z)` is a section of degree `n N`; the height comparison bounds it by |
| 59 | -- `h ^ (n N)`. |
| 60 | have h_le (z : ℂ) : ‖ιₚ (G (a * z))‖ ≤ C.naiveHeight z ^ (n * N) := |
| 61 | (hG_le (a * z)).trans <| by |
| 62 | rw [mul_comm n N, pow_mul] |
| 63 | exact pow_le_pow_left₀ (C'.naiveHeight_pos _).le (C.naiveHeight_mul_le h_isog z) n |
| 64 | simpa only [taylorVia, taylorAtZero_comp_mul, rescale_map, pow_mul'] using |
| 65 | C.exists_taylorVia_eq_theta_pow_mul (C.comp_mul_mem_sections h_isog hG_mem) h_le |
| 66 | |
| 67 | /-- Let multiplication by `a` be an isogeny of degree `N` from the lattice `Λ` of `C` to the lattice |
| 68 | `Λ'` of `C'`, and let `θ` be the normalised theta function of degree one. Then the series of |
| 69 | `θ_Λ'(a z)` (Taylor series at `0`, mapped to `ℂ_[p]` by `ιₚ`) is the `N`-th power of that of `θ_Λ` |
| 70 | times an element of `C.integralSeriesRing`. That ring consists of the integral power series in the |
| 71 | series of `y_Λ = C.translatedY`, where `y(z) = ½(℘′(z + t) − a₁ x(z))`, `x(z) = ℘(z + t) − ℘(t)` and |
| 72 | `t` is the chosen point of order two. -/ |
| 73 | lemma exists_rescale_theta_eq_theta_pow_mul {C' : CMLattice d} {a : ℂ} {N : ℕ} |
| 74 | (h_isog : C.IsIsogeny C'.periodPair a N) : |
| 75 | ∃ v ∈ C.integralSeriesRing, (taylorVia ιₚ C'.θ).rescale (ιₚ a) = taylorVia ιₚ C.θ ^ N * v := by |
| 76 | simpa only [pow_one] using |
| 77 | C.exists_rescale_eq_theta_pow_mul h_isog C'.theta_mem fun w ↦ by |
| 78 | simpa only [pow_one] using C'.norm_theta_le_naiveHeight w |
| 79 | |
| 80 | /-- Let multiplication by `a` be an isogeny of degree `N` from the lattice `Λ` of `C` to the lattice |
| 81 | `Λ'` of `C'`, and write `y = translatedY`, that is, `y(z) = ½(℘′(z + t) − a₁ x(z))` with |
| 82 | `x(z) = ℘(z + t) − ℘(t)` for the chosen point `t` of order two of each lattice. Then the series of |
| 83 | `y_Λ'(a z)` (Taylor series at `0`, mapped to `ℂ_[p]` by `ιₚ`) lies in `C.integralSeriesRing`, the |
| 84 | ring of integral power series in the series of `y_Λ`. -/ |
| 85 | lemma rescale_translatedY_mem_integralSeriesRing {C' : CMLattice d} {a : ℂ} {N : ℕ} |
| 86 | (h_isog : C.IsIsogeny C'.periodPair a N) : |
| 87 | (taylorVia ιₚ C'.translatedY).rescale (ιₚ a) ∈ C.integralSeriesRing := by |
| 88 | -- The series of `θ_Λ'(a z)` is `θ_Λ ^ N R₁` and that of `(y θ³)_Λ'(a z)` is `θ_Λ ^ (3 N) R₃`, |
| 89 | -- with `R₁`, `R₃` in `𝒪[[y_Λ]]` and `R₁(0) = 1`. So the series of `y_Λ'(a z)` is `R₃ / R₁ ^ 3`. |
| 90 | have h_cube_mem : C'.translatedYThetaCube ∈ C'.sections 3 := by |
| 91 | -- `translatedYThetaCube` is the monomial section with exponents `(0, 0, 1)`. |
| 92 | simpa only [monomialSection, monomialDeg, pow_zero, pow_one, one_mul, zero_mul, zero_add] using |
| 93 | C'.monomialSection_mem (0, 0, 1) |
| 94 | obtain ⟨R₁, hR₁, hθ⟩ := C.exists_rescale_theta_eq_theta_pow_mul (p := p) h_isog |
| 95 | obtain ⟨R₃, hR₃, h_cube⟩ : ∃ R₃ ∈ C.integralSeriesRing, |
| 96 | (taylorVia ιₚ C'.translatedYThetaCube).rescale (ιₚ a) = (taylorVia ιₚ C.θ ^ N) ^ 3 * R₃ := |
| 97 | C.exists_rescale_eq_theta_pow_mul h_isog h_cube_mem C'.norm_translatedYThetaCube_le |
| 98 | have h_factor : taylorVia ιₚ C'.translatedYThetaCube = |
| 99 | taylorVia ιₚ C'.translatedY * taylorVia ιₚ C'.θ ^ 3 := by |
| 100 | simp (disch := fun_prop) only [taylorVia, taylorAtZero_mul, taylorAtZero_pow, map_mul, map_pow, |
| 101 | C'.taylorAtZero_congr fun _ hz ↦ C'.translatedYThetaCube_eq_translatedY_mul_theta_cube hz] |
| 102 | -- Both theta series have constant term `1`, so `R₁` is a unit of `𝒪[[y]]`, with inverse `S`. |
| 103 | have h_const : constantCoeff R₁ = 1 := by simpa using (congrArg constantCoeff hθ).symm |
| 104 | obtain ⟨S, hS, h_inv⟩ : ∃ S ∈ C.integralSeriesRing, R₁ * S = 1 := |
| 105 | C.isSeriesGenerator_translatedY.exists_mul_eq_one hR₁ (by rw [h_const, norm_one]) |
| 106 | have hθ_ne : (taylorVia ιₚ C.θ ^ N) ^ 3 ≠ 0 := |
| 107 | pow_ne_zero 3 (pow_ne_zero N (ne_of_apply_ne constantCoeff (by simp))) |
| 108 | have h_quot : (taylorVia ιₚ C'.translatedY).rescale (ιₚ a) * R₁ ^ 3 = R₃ := by |
| 109 | rw [h_factor, map_mul, map_pow, hθ] at h_cube |
| 110 | exact mul_left_cancel₀ hθ_ne (by linear_combination h_cube) |
| 111 | have hy : (taylorVia ιₚ C'.translatedY).rescale (ιₚ a) = R₃ * S ^ 3 := by |
| 112 | rw [← h_quot, mul_assoc, ← mul_pow, h_inv, one_pow, mul_one] |
| 113 | rw [hy] |
| 114 | exact mul_mem hR₃ (pow_mem hS 3) |
| 115 | |
| 116 | /-- If multiplication by `a` maps the lattice `Λ` of `C` into the lattice `Λ'` of `C'`, then `a` is |
| 117 | integral at `p`: its image under the embedding `ιₚ : ℂ →+* ℂ_[p]` has norm at most `1`. This relies |
| 118 | on both lattices carrying the normalisation of `CMLattice`, namely `℘''(t) = 2` at the chosen point |
| 119 | `t` of order two, with `d` a prime congruent to 7 mod 8. -/ |
| 120 | lemma norm_le_one_of_mapsTo_lattice {C' : CMLattice d} {a : ℂ} (h_maps : ∀ x ∈ C.Λ, a * x ∈ C'.Λ) : |
| 121 | ‖ιₚ a‖ ≤ 1 := by |
| 122 | -- The coefficient of `z` in the series of `y_Λ'(a z)`, which lies in `𝒪[[y_Λ]]`, is `ιₚ a`. |
| 123 | obtain ⟨N, hN⟩ : ∃ N : ℕ, C.IsIsogeny C'.periodPair a N := |
| 124 | exists_isIsogeny_of_mul_mem_lattice h_maps |
| 125 | have h_le : ‖coeff 1 ((taylorVia ιₚ C'.translatedY).rescale (ιₚ a))‖ ≤ 1 := |
| 126 | C.isSeriesGenerator_translatedY.norm_coeff_one_le_one |
| 127 | (C.rescale_translatedY_mem_integralSeriesRing hN) |
| 128 | rwa [coeff_rescale, C'.isSeriesGenerator_translatedY.coeff_one, pow_one, mul_one] at h_le |
| 129 | |
| 130 | /-- Let `δ ≠ 0`, let multiplication by the conjugate `δ̄` be an isogeny of degree `N` of the |
| 131 | lattice `Λ` to itself, and let `δ v ∈ Λ`. Let `T_v θ = C.twistedTranslate 1 v C.θ`, the function |
| 132 | `z ↦ exp(-π (z v̄ + |v|²/2) / A) θ(z + v)` with `A` the area of `Λ`. Then the series of |
| 133 | `(T_v θ)(δ̄ z)` (Taylor series at `0`, mapped to `ℂ_[p]` by `ιₚ`) is the `N`-th power of that of |
| 134 | `θ` times an element of `C.integralSeriesRing`, the ring of integral power series in the series of |
| 135 | `y_Λ = C.translatedY`. -/ |
| 136 | lemma exists_rescale_twistedTranslate_eq_theta_pow_mul {δ v : ℂ} {N : ℕ} |
| 137 | (h_isog : C.IsIsogeny C.periodPair (conj δ) N) (hδ₀ : δ ≠ 0) (hv : δ * v ∈ C.Λ) : |
| 138 | ∃ R ∈ C.integralSeriesRing, (taylorVia ιₚ (C.twistedTranslate 1 v C.θ)).rescale (ιₚ (conj δ)) = |
| 139 | taylorVia ιₚ C.θ ^ N * R := by |
| 140 | -- The function is a section of degree `N = δ δ̄`. It is a pull-back of a translate of `θ` by a |
| 141 | -- torsion point, so the height comparison bounds it by `h ^ N`. |
| 142 | have hN : conj δ * δ = N := by simpa using h_isog.mul_conj_eq |
| 143 | have h_torsion : C.IsTorsion v := |
| 144 | ⟨N, fun hN₀ ↦ by simp [hN₀, hδ₀] at hN, |
| 145 | by simpa only [← hN, mul_assoc] using h_isog.1 (δ * v) hv⟩ |
| 146 | have h_le (z : ℂ) : ‖ιₚ (C.twistedTranslate 1 v C.θ (conj δ * z))‖ ≤ C.naiveHeight z ^ N := by |
| 147 | simpa only [one_mul] using C.norm_twistedTranslate_mul_le (m := 1) h_isog h_torsion |
| 148 | (fun w ↦ by simpa only [pow_one] using C.norm_theta_le_naiveHeight w) z |
| 149 | -- The Taylor series of `z ↦ f (c z)` is that of `f` rescaled by `c`. |
| 150 | simpa only [taylorVia, taylorAtZero_comp_mul, rescale_map] using |
| 151 | C.exists_taylorVia_eq_theta_pow_mul (C.twistedTranslate_comp_mem h_isog hv) h_le |
| 152 | |
| 153 | end New.CMLattice |