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 Mathlib.Algebra.AffineMonoid.UniqueSums |
| 4 | public import Lib.CM.FormalGroup.IntegralParameter |
| 5 | public import Lib.CM.Integrality.TorsionValues |
| 6 | import Lib.CM.GoodReduction |
| 7 | import Lib.General.Algebra.SeriesBounds |
| 8 | import TauCeti.Analysis.SpecialFunctions.Elliptic.Uniformization |
| 9 | |
| 10 | /-! |
| 11 | # The integrality principle in one variable |
| 12 | |
| 13 | * `New.CMLattice.mem_span_monomialSection`: a section of degree `m` that is at most `h ^ m`, where |
| 14 | `h` is the naive height, is an integral combination of monomials; |
| 15 | `New.CMLattice.exists_polynomial_of_even` treats even sections. |
| 16 | * `New.CMLattice.exists_taylorVia_eq_theta_pow_mul`: its Taylor series lies in `θ ^ m 𝒪[[y]]`. |
| 17 | |
| 18 | Write the section as `θ ^ m (P₀(x) + y P₁(x))`, where `P₁ = 0` if the section is even. Take an |
| 19 | integral number `c` at which `P₀`, `P₁` and the cubic `Q` with `x' ^ 2 = Q(x)` are at least as |
| 20 | large as all their coefficients, and a point `z` with `x(z) = c`. There the height is the norm of |
| 21 | `θ(z)`, so the bracket is integral at `z` and at `-z`. As `x'(z)` is a unit, `P₁(c)` is integral, |
| 22 | and then so is `P₀(c)`. |
| 23 | |
| 24 | Notions from other files: |
| 25 | |
| 26 | For a lattice `Λ = C.Λ` with a point `t = C.t` of order two modulo `Λ`: |
| 27 | * `θ` is the normalised twisted translate of the sigma function `σ` by `t`; it vanishes on `t + Λ`. |
| 28 | * `x = translatedX` is `℘(z + t) - ℘(t)` and `y = translatedY` is `(℘'(z + t) - a₁ x(z)) / 2`, where |
| 29 | `a₁ = C.a₁` is a constant of `C` with `‖ιₚ a₁‖ ≤ 1`; off `t + Λ`, |
| 30 | `x' ^ 2 = x (4 x ^ 2 + a₁ ^ 2 x + 4)`. |
| 31 | * `sections m` is the space of theta functions of degree `m`; the monomial of `(a, b, c)` is |
| 32 | `θ ^ (a + 2 b + 3 c) x ^ b y ^ c` off `t + Λ`, with degree |
| 33 | `monomialDeg (a, b, c) = a + 2 b + 3 c`, and `spanningExponents m` is the set of triples with |
| 34 | `c ≤ 1` and `a + 2 b + 3 c = m`. |
| 35 | * The naive height `h = naiveHeight` is `max (‖ιₚ (σ z)‖, ‖ιₚ (θ z)‖)`, where `σ` is the sigma |
| 36 | function of `Λ` and `ιₚ : ℂ →+* ℂ_[p]` is the ring homomorphism fixed by the instance |
| 37 | `PadicPlace p`. |
| 38 | |
| 39 | ## Relation to the literature |
| 40 | |
| 41 | Known result: integral expansions of theta functions of CM elliptic curves, at ordinary primes |
| 42 | `p ≥ 5`. Here `p` is arbitrary, but `d` is a prime congruent to `7` modulo `8`. Source: Bannai and |
| 43 | Kobayashi, Algebraic theta functions and the p-adic interpolation of Eisenstein-Kronecker numbers, |
| 44 | Duke Math. J. 153 (2010), 229-295, after Norman and Mazur–Tate. |
| 45 | -/ |
| 46 | |
| 47 | @[expose] public section |
| 48 | |
| 49 | open PowerSeries |
| 50 | |
| 51 | namespace New |
| 52 | |
| 53 | namespace CMLattice |
| 54 | variable {d : ℕ} (C : CMLattice d) {p : ℕ} [Fact p.Prime] [PadicPlace p] {f : ℂ → ℂ} {m : ℕ} |
| 55 | |
| 56 | /-! ### Sections as polynomials in `x` and `y` -/ |
| 57 | |
| 58 | /-- The difference `y(z) - y(-z)` is the derivative of `x = translatedX`, where |
| 59 | `y = translatedY`. -/ |
| 60 | lemma translatedY_sub_translatedY_neg (z : ℂ) : |
| 61 | C.translatedY z - C.translatedY (-z) = deriv C.translatedX z := by |
| 62 | rw [deriv_translatedX, translatedY, translatedY, translatedX_neg, |
| 63 | show -z + C.t = -(z + C.t) + (⟨C.t + C.t, C.two_t_mem⟩ : C.Λ) by ring, |
| 64 | PeriodPair.derivWeierstrassP_add_coe, PeriodPair.derivWeierstrassP_neg] |
| 65 | ring |
| 66 | |
| 67 | /-- A section of degree `m` is `θ ^ m (P₀(x) + y P₁(x))` off `t + Λ`, where `x = translatedX`, |
| 68 | `y = translatedY`, and `P₀`, `P₁` are polynomials whose terms `x ^ i`, `y x ^ i` have pole order |
| 69 | at most `m`. -/ |
| 70 | lemma exists_eq_theta_pow_mul_eval (hf : f ∈ C.sections m) : |
| 71 | ∃ P₀ P₁ : Polynomial ℂ, (∀ i : ℕ, P₀.coeff i ≠ 0 → 2 * i ≤ m) ∧ |
| 72 | (∀ i : ℕ, P₁.coeff i ≠ 0 → 2 * i + 3 ≤ m) ∧ |
| 73 | ∀ z : ℂ, z + C.t ∉ C.Λ → f z = C.θ z ^ m * |
| 74 | (P₀.eval (C.translatedX z) + C.translatedY z * P₁.eval (C.translatedX z)) := by |
| 75 | -- It suffices to treat zero, sums, and multiples of one monomial. |
| 76 | refine Submodule.closure_induction ⟨0, 0, by simp⟩ ?_ ?_ (C.sections_le_span_monomialSection m hf) |
| 77 | · rintro F G - - ⟨P₀, P₁, hP₀, hP₁, hF⟩ ⟨Q₀, Q₁, hQ₀, hQ₁, hG⟩ |
| 78 | refine ⟨P₀ + Q₀, P₁ + Q₁, by grind [Polynomial.coeff_add], by grind [Polynomial.coeff_add], |
| 79 | fun z hz ↦ ?_⟩ |
| 80 | rw [Pi.add_apply, hF z hz, hG z hz, Polynomial.eval_add, Polynomial.eval_add] |
| 81 | ring |
| 82 | · rintro c _ ⟨⟨j, k, e⟩, h_mem, rfl⟩ |
| 83 | obtain ⟨he, rfl⟩ : e ≤ 1 ∧ monomialDeg (j, k, e) = m := mk_mem_spanningExponents.1 h_mem |
| 84 | -- The monomial of `(j, k, e)` contributes `c x ^ k` to `P₀` if `e = 0`, and to `P₁` if `e = 1`. |
| 85 | obtain rfl | rfl : e = 0 ∨ e = 1 := Nat.le_one_iff_eq_zero_or_eq_one.1 he |
| 86 | · refine ⟨.monomial k c, 0, by grind [Polynomial.coeff_monomial], by simp, fun z hz ↦ ?_⟩ |
| 87 | simp [C.monomialSection_eq _ z hz, mul_left_comm] |
| 88 | · refine ⟨0, .monomial k c, by simp, by grind [Polynomial.coeff_monomial], fun z hz ↦ ?_⟩ |
| 89 | simp [C.monomialSection_eq _ z hz, mul_comm, mul_assoc] |
| 90 | |
| 91 | lemma exists_translatedX_eq (c : ℂ) : ∃ z : ℂ, z + C.t ∉ C.Λ ∧ C.translatedX z = c := by |
| 92 | obtain ⟨w, hw, hw_eq⟩ := C.periodPair.exists_weierstrassP_eq (c + C.weierstrassP C.t) |
| 93 | exact ⟨w - C.t, by simpa using hw, by simp [translatedX, hw_eq]⟩ |
| 94 | |
| 95 | /-- If an even function `f` is `θ ^ m (P₀(x) + y P₁(x))` off `t + Λ`, where `x = translatedX` and |
| 96 | `y = translatedY`, then `P₁ = 0`. -/ |
| 97 | lemma eq_zero_of_even_of_eq_theta_pow_mul_eval {P₀ P₁ : Polynomial ℂ} (hf_even : f.Even) |
| 98 | (h_eq : ∀ z : ℂ, z + C.t ∉ C.Λ → f z = C.θ z ^ m * |
| 99 | (P₀.eval (C.translatedX z) + C.translatedY z * P₁.eval (C.translatedX z))) : P₁ = 0 := by |
| 100 | -- As `θ` and `x` are even, the odd part `x' P₁(x) / 2` of the bracket vanishes. |
| 101 | have h_odd (z : ℂ) (hz : z + C.t ∉ C.Λ) : |
| 102 | deriv C.translatedX z * P₁.eval (C.translatedX z) = 0 := by |
| 103 | have h_neg : f z = C.θ z ^ m * (P₀.eval (C.translatedX z) + |
| 104 | C.translatedY (-z) * P₁.eval (C.translatedX z)) := by |
| 105 | simpa only [hf_even z, theta_neg, translatedX_neg] using |
| 106 | h_eq (-z) (by rwa [← theta_eq_zero_iff, theta_neg, theta_eq_zero_iff]) |
| 107 | refine mul_left_cancel₀ (pow_ne_zero m (mt C.theta_eq_zero_iff.1 hz)) ?_ |
| 108 | rw [← translatedY_sub_translatedY_neg] |
| 109 | linear_combination h_neg - h_eq z hz |
| 110 | -- Multiply by `x'`, whose square is `x Q(x)`; as `x` takes every value, `X Q P₁ = 0`. |
| 111 | let Q : Polynomial ℂ := 4 * .X ^ 2 + .C (C.a₁ ^ 2) * .X + 4 |
| 112 | have hQ (c : ℂ) : Q.eval c = 4 * c ^ 2 + C.a₁ ^ 2 * c + 4 := by simp [Q] |
| 113 | have hQ_ne : Q ≠ 0 := fun h ↦ by simpa [h] using hQ 0 |
| 114 | have h_prod : Polynomial.X * Q * P₁ = 0 := by |
| 115 | refine Polynomial.funext fun c ↦ ?_ |
| 116 | obtain ⟨z, hz, rfl⟩ := C.exists_translatedX_eq c |
| 117 | rw [Polynomial.eval_mul, Polynomial.eval_mul, Polynomial.eval_X, hQ, Polynomial.eval_zero, |
| 118 | ← C.deriv_translatedX_sq hz, sq, mul_assoc, h_odd z hz, mul_zero] |
| 119 | exact (mul_eq_zero_iff_left (mul_ne_zero Polynomial.X_ne_zero hQ_ne)).1 h_prod |
| 120 | |
| 121 | /-- An even section of degree `m` is `θ ^ m P(x)` off `t + Λ`, with `x = translatedX` and |
| 122 | `2 i ≤ m` for every term `x ^ i` of `P`. -/ |
| 123 | lemma exists_eq_theta_pow_mul_eval_of_even (hf : f ∈ C.sections m) (hf_even : f.Even) : |
| 124 | ∃ P : Polynomial ℂ, (∀ i : ℕ, P.coeff i ≠ 0 → 2 * i ≤ m) ∧ |
| 125 | ∀ z : ℂ, z + C.t ∉ C.Λ → f z = C.θ z ^ m * P.eval (C.translatedX z) := by |
| 126 | obtain ⟨P₀, P₁, h_deg, -, h_eq⟩ := C.exists_eq_theta_pow_mul_eval hf |
| 127 | obtain rfl : P₁ = 0 := C.eq_zero_of_even_of_eq_theta_pow_mul_eval hf_even h_eq |
| 128 | exact ⟨P₀, h_deg, fun z hz ↦ by simpa using h_eq z hz⟩ |
| 129 | |
| 130 | lemma monomialDeg_sub_sub {i e : ℕ} (h_le : 2 * i + 3 * e ≤ m) : |
| 131 | monomialDeg (m - 2 * i - 3 * e, i, e) = m := by |
| 132 | grind |
| 133 | |
| 134 | /-- A section that agrees off `t + Λ` with an entire function `g` equals `g`. -/ |
| 135 | lemma eq_of_mem_sections_of_eq_off_translate (hf : f ∈ C.sections m) {g : ℂ → ℂ} |
| 136 | (hg : Differentiable ℂ g) (h_eq : ∀ z : ℂ, z + C.t ∉ C.Λ → f z = g z) : f = g := |
| 137 | funext (C.eq_of_eq_off_lattice C.t hf.left hg h_eq) |
| 138 | |
| 139 | /-- If every exponent `i` of `P` has `2 i + 3 e ≤ m`, then `θ ^ m y ^ e P(x)` is the combination of |
| 140 | the monomials of degree `m` with the coefficients of `P`, off `t + Λ`. Here `x = translatedX` |
| 141 | and `y = translatedY`. -/ |
| 142 | lemma theta_pow_mul_eval_eq_sum {P : Polynomial ℂ} {e : ℕ} |
| 143 | (hP : ∀ i : ℕ, P.coeff i ≠ 0 → 2 * i + 3 * e ≤ m) {z : ℂ} (hz : z + C.t ∉ C.Λ) : |
| 144 | C.θ z ^ m * (C.translatedY z ^ e * P.eval (C.translatedX z)) = |
| 145 | ∑ i ∈ P.support, P.coeff i * C.monomialSection (m - 2 * i - 3 * e, i, e) z := by |
| 146 | rw [Polynomial.eval_eq_sum, Polynomial.sum_def, Finset.mul_sum, Finset.mul_sum] |
| 147 | refine Finset.sum_congr rfl fun i hi ↦ ?_ |
| 148 | rw [C.monomialSection_eq _ z hz, monomialDeg_sub_sub (hP i (Polynomial.mem_support_iff.1 hi))] |
| 149 | ring |
| 150 | |
| 151 | /-- If `P` has degree at most `m / 2`, then `θ ^ m P(x)`, with `x = translatedX`, is the |
| 152 | combination of the monomials of `(m - 2 i, i, 0)`, `i ≤ m / 2`, with the coefficients of `P`, off |
| 153 | `t + Λ`. -/ |
| 154 | lemma theta_pow_mul_eval_eq_sum_range {P : Polynomial ℂ} (hP : 2 * P.natDegree ≤ m) {z : ℂ} |
| 155 | (hz : z + C.t ∉ C.Λ) : |
| 156 | C.θ z ^ m * P.eval (C.translatedX z) = |
| 157 | ∑ i ∈ Finset.range (m / 2 + 1), P.coeff i * C.monomialSection (m - 2 * i, i, 0) z := by |
| 158 | rw [Polynomial.eval_eq_sum_range' (n := m / 2 + 1) (by omega), Finset.mul_sum] |
| 159 | refine Finset.sum_congr rfl fun i hi ↦ ?_ |
| 160 | rw [C.monomialSection_eq _ z hz, show monomialDeg (m - 2 * i, i, 0) = m by grind] |
| 161 | ring |
| 162 | |
| 163 | /-- Let `e ≤ 1`, and let `P` have coefficients integral in `ℂ_p` and `2 i + 3 e ≤ m` for each of its |
| 164 | exponents `i`. Then `θ ^ m translatedY ^ e P(translatedX)` agrees off `t + Λ` with an entire |
| 165 | function that is an integral combination of the monomials of the triples `(a, b, c)` with `c ≤ 1` |
| 166 | and degree `a + 2 b + 3 c = m` (the set `spanningExponents m`). -/ |
| 167 | lemma exists_mem_span_monomialSection_eq_theta_pow_mul_eval {P : Polynomial ℂ} {e : ℕ} (he : e ≤ 1) |
| 168 | (h_deg : ∀ i : ℕ, P.coeff i ≠ 0 → 2 * i + 3 * e ≤ m) (h_int : ∀ i : ℕ, ‖ιₚ (P.coeff i)‖ ≤ 1) : |
| 169 | ∃ g ∈ Submodule.span ((valRingCp p).comap ιₚ) (C.monomialSection '' spanningExponents m), |
| 170 | Differentiable ℂ g ∧ ∀ z : ℂ, z + C.t ∉ C.Λ → |
| 171 | g z = C.θ z ^ m * (C.translatedY z ^ e * P.eval (C.translatedX z)) := by |
| 172 | refine ⟨∑ i ∈ P.support, P.coeff i • C.monomialSection (m - 2 * i - 3 * e, i, e), |
| 173 | sum_mem fun i hi ↦ ?_, by fun_prop, fun z hz ↦ ?_⟩ |
| 174 | · exact Submodule.smul_mem _ (⟨P.coeff i, h_int i⟩ : (valRingCp p).comap ιₚ) |
| 175 | (Submodule.subset_span (Set.mem_image_of_mem C.monomialSection (mk_mem_spanningExponents.2 |
| 176 | ⟨he, monomialDeg_sub_sub (h_deg i (Polynomial.mem_support_iff.1 hi))⟩))) |
| 177 | · simp only [C.theta_pow_mul_eval_eq_sum h_deg hz, Finset.sum_apply, Pi.smul_apply, smul_eq_mul] |
| 178 | |
| 179 | /-- If `f = θ ^ m P(x)` off `t + Λ`, with `x = translatedX`, then the same identity holds for the |
| 180 | Taylor series at `0`, with `ιₚ` applied to the coefficients. -/ |
| 181 | lemma taylorVia_eq_of_eq_theta_pow_mul_eval {P : Polynomial ℂ} |
| 182 | (h_eq : ∀ z : ℂ, z + C.t ∉ C.Λ → f z = C.θ z ^ m * P.eval (C.translatedX z)) : |
| 183 | taylorVia ιₚ f = taylorVia ιₚ C.θ ^ m * (P.map ιₚ).aeval (taylorVia ιₚ C.translatedX) := by |
| 184 | have h_eval : map ιₚ (P.aeval (taylorAtZero C.translatedX)) = |
| 185 | (P.map ιₚ).aeval (taylorVia ιₚ C.translatedX) := |
| 186 | Polynomial.map_aeval_eq_aeval_map (RingHom.ext fun c ↦ (map_C ιₚ c).symm) P _ |
| 187 | simp (disch := fun_prop) only [taylorVia, C.taylorAtZero_congr h_eq, taylorAtZero_mul, |
| 188 | taylorAtZero_pow, taylorAtZero_eval, map_mul, map_pow, h_eval] |
| 189 | |
| 190 | /-! ### A general integral point and the integrality principle -/ |
| 191 | |
| 192 | omit C in |
| 193 | /-- Some integral `c` makes each of finitely many polynomials as large as its coefficients. -/ |
| 194 | lemma exists_norm_coeff_le_norm_eval {n : ℕ} (F : Fin n → Polynomial ℂ) : |
| 195 | ∃ c : ℂ, ‖ιₚ c‖ ≤ 1 ∧ ∀ (i : Fin n) (k : ℕ), ‖ιₚ ((F i).coeff k)‖ ≤ ‖ιₚ ((F i).eval c)‖ := by |
| 196 | -- Read the polynomials as polynomials in one variable indexed by `Unit`, with the valuation |
| 197 | -- `c ↦ ‖ιₚ c‖` on `ℂ`. |
| 198 | let v : Valuation ℂ NNReal := NormedField.valuation.comap ιₚ |
| 199 | obtain ⟨y, hy⟩ := exists_val_coeff_le_val_eval v fun i : Fin n ↦ |
| 200 | (MvPolynomial.uniqueAlgEquiv ℂ Unit).symm (F i) |
| 201 | refine ⟨y (), (y ()).property, fun i k ↦ ?_⟩ |
| 202 | have h_eval : MvPolynomial.eval (algebraMap v.valuationSubring ℂ ∘ y) |
| 203 | ((MvPolynomial.uniqueAlgEquiv ℂ Unit).symm (F i)) = (F i).eval (y () : ℂ) := |
| 204 | MvPolynomial.eval₂_uniqueAlgEquiv_symm |
| 205 | have h_le := hy i (Finsupp.single () k) |
| 206 | rw [MvPolynomial.coeff_uniqueAlgEquiv_symm, Finsupp.single_eq_same, h_eval] at h_le |
| 207 | exact h_le |
| 208 | |
| 209 | /-- Let `f z = θ z ^ m · F z` whenever `z + t ∉ Λ`, and let `‖ιₚ (f z)‖ ≤ h(z) ^ m` for all `z`, |
| 210 | where `h` is the naive height `max (‖ιₚ (σ z)‖, ‖ιₚ (θ z)‖)`. At a point `w` with `w + t ∉ Λ` at |
| 211 | which `x = translatedX` is integral, the height is `‖ιₚ (θ w)‖` (as `σ² = x θ²`), so `F w` is |
| 212 | integral. -/ |
| 213 | lemma norm_le_one_of_norm_le_naiveHeight_pow {F : ℂ → ℂ} |
| 214 | (h_eq : ∀ z : ℂ, z + C.t ∉ C.Λ → f z = C.θ z ^ m * F z) |
| 215 | (h_le : ∀ z : ℂ, ‖ιₚ (f z)‖ ≤ C.naiveHeight z ^ m) {w : ℂ} (hw : w + C.t ∉ C.Λ) |
| 216 | (hx : ‖ιₚ (C.translatedX w)‖ ≤ 1) : ‖ιₚ (F w)‖ ≤ 1 := by |
| 217 | have h_sq : ‖ιₚ (C.σ w)‖ ^ 2 ≤ ‖ιₚ (C.θ w)‖ ^ 2 := by |
| 218 | rw [← norm_pow, ← map_pow, C.sigma_sq_eq_translatedX_mul_theta_sq hw, map_mul, norm_mul, |
| 219 | map_pow, norm_pow] |
| 220 | exact mul_le_of_le_one_left (by positivity) hx |
| 221 | have h_height : C.naiveHeight w = ‖ιₚ (C.θ w)‖ := |
| 222 | max_eq_right ((pow_le_pow_iff_left₀ (norm_nonneg _) (norm_nonneg _) two_ne_zero).1 h_sq) |
| 223 | have hθ : 0 < ‖ιₚ (C.θ w)‖ ^ m := |
| 224 | pow_pos (norm_pos_iff.2 ((map_ne_zero ιₚ).2 (mt C.theta_eq_zero_iff.1 hw))) m |
| 225 | have h_bound : ‖ιₚ (C.θ w)‖ ^ m * ‖ιₚ (F w)‖ ≤ ‖ιₚ (C.θ w)‖ ^ m * 1 := by |
| 226 | simpa only [h_eq w hw, map_mul, norm_mul, map_pow, norm_pow, h_height, mul_one] |
| 227 | using h_le w |
| 228 | exact le_of_mul_le_mul_left h_bound hθ |
| 229 | |
| 230 | variable [PrimeSevenModEight d] |
| 231 | |
| 232 | /-- Where `x = translatedX` is integral, so is `y = translatedY`: it is a root of the Weierstrass |
| 233 | equation `y² + a₁ x y = x³ + x`, whose coefficients are integral. -/ |
| 234 | lemma norm_translatedY_le_one {z : ℂ} (hz : z + C.t ∉ C.Λ) (hx : ‖ιₚ (C.translatedX z)‖ ≤ 1) : |
| 235 | ‖ιₚ (C.translatedY z)‖ ≤ 1 := by |
| 236 | have hx_mem : ιₚ (C.translatedX z) ∈ valRingCp p := hx |
| 237 | refine norm_le_of_sq_add_mul_eq (u := ιₚ C.a₁ * ιₚ (C.translatedX z)) |
| 238 | (v := ιₚ (C.translatedX z) ^ 3 + ιₚ (C.translatedX z)) ?_ ?_ ?_ |
| 239 | · exact mul_mem C.norm_a₁_le_one hx_mem |
| 240 | · rw [one_pow] |
| 241 | exact add_mem (pow_mem hx_mem 3) hx_mem |
| 242 | · simpa only [map_add, map_mul, map_pow] using congrArg ιₚ (C.weierstrass_equation hz) |
| 243 | |
| 244 | /-- If `c` is integral and the value `Q(c) = c (4 c² + a₁² c + 4)` is at least as large as `4` and |
| 245 | `a₁²`, then `Q(c)` is a unit, because the lattice discriminant `a₁⁴ − 64` is a unit. -/ |
| 246 | lemma norm_cubic_eq_one {c : ℂ} (hc : ‖ιₚ c‖ ≤ 1) |
| 247 | (h_four_le : ‖ιₚ 4‖ ≤ ‖ιₚ (c * (4 * c ^ 2 + C.a₁ ^ 2 * c + 4))‖) |
| 248 | (h_a₁_le : ‖ιₚ (C.a₁ ^ 2)‖ ≤ ‖ιₚ (c * (4 * c ^ 2 + C.a₁ ^ 2 * c + 4))‖) : |
| 249 | ‖ιₚ (c * (4 * c ^ 2 + C.a₁ ^ 2 * c + 4))‖ = 1 := by |
| 250 | -- The value `Q(c)` is a unit: otherwise `4` and `a₁²` are not units, but `a₁ ^ 4 - 64` is one. |
| 251 | have hc_mem : ιₚ c ∈ valRingCp p := hc |
| 252 | have ha₁ : ιₚ C.a₁ ∈ valRingCp p := C.norm_a₁_le_one |
| 253 | have h_four : (4 : ℂ_[p]) ∈ valRingCp p := ofNat_mem _ 4 |
| 254 | refine le_antisymm ?_ (not_lt.1 fun h_lt ↦ ?_) |
| 255 | · simp only [map_mul, map_add, map_pow, map_ofNat] |
| 256 | exact mul_mem hc_mem (add_mem (add_mem (mul_mem h_four (pow_mem hc_mem 2)) |
| 257 | (mul_mem (pow_mem ha₁ 2) hc_mem)) h_four) |
| 258 | · have h_coeff₁ : ‖(4 : ℂ_[p])‖ < 1 := by |
| 259 | simpa [map_ofNat] using h_four_le.trans_lt h_lt |
| 260 | have h_coeff₂ : ‖ιₚ C.a₁ ^ 2‖ < 1 := by |
| 261 | simpa using h_a₁_le.trans_lt h_lt |
| 262 | have h_disc : ιₚ C.a₁ ^ 4 - 64 = ιₚ C.a₁ ^ 2 * ιₚ C.a₁ ^ 2 + -16 * 4 := by ring |
| 263 | exact (norm_lt_one_of_eq_mul_add_mul (pow_mem ha₁ 2) (intCast_mem (valRingCp p) (-16)) |
| 264 | (by simpa using h_disc) h_coeff₂ h_coeff₁).ne (C.norm_disc_eq_one ιₚ) |
| 265 | |
| 266 | /-- Let `C` be a CM lattice with point `t` of order two, lattice `Λ`, theta function `θ` and |
| 267 | coefficient `a₁`, let `ιₚ : ℂ → ℂ_p` be a `p`-adic place, and let `f : ℂ → ℂ` and `m : ℕ` satisfy |
| 268 | `f z = θ z ^ m (P₀(x z) + y z · P₁(x z))` whenever `z + t ∉ Λ`, with `x = translatedX` and |
| 269 | `y = translatedY`, and `‖ιₚ (f z)‖ ≤ h(z) ^ m` for the naive height `h`. At a point `z` with |
| 270 | `z + t ∉ Λ` where `x z` is integral and `x z (4 (x z) ^ 2 + a₁ ^ 2 x z + 4)` is a unit, the values |
| 271 | `P₀(x z)` and `P₁(x z)` are integral. -/ |
| 272 | private lemma norm_eval_translatedX_le_one {P₀ P₁ : Polynomial ℂ} |
| 273 | (h_eq : ∀ z : ℂ, z + C.t ∉ C.Λ → f z = C.θ z ^ m * |
| 274 | (P₀.eval (C.translatedX z) + C.translatedY z * P₁.eval (C.translatedX z))) |
| 275 | (h_le : ∀ z : ℂ, ‖ιₚ (f z)‖ ≤ C.naiveHeight z ^ m) {z : ℂ} (hz : z + C.t ∉ C.Λ) |
| 276 | (hc : ‖ιₚ (C.translatedX z)‖ ≤ 1) |
| 277 | (h_unit : ‖ιₚ (C.translatedX z * |
| 278 | (4 * C.translatedX z ^ 2 + C.a₁ ^ 2 * C.translatedX z + 4))‖ = 1) : |
| 279 | ‖ιₚ (P₀.eval (C.translatedX z))‖ ≤ 1 ∧ ‖ιₚ (P₁.eval (C.translatedX z))‖ ≤ 1 := by |
| 280 | have hz_neg : -z + C.t ∉ C.Λ := by rwa [← theta_eq_zero_iff, theta_neg, theta_eq_zero_iff] |
| 281 | -- Where `x` is integral and finite, the height is `‖ιₚ θ‖`, so the bracket is integral. |
| 282 | let F (w : ℂ) : ℂ := P₀.eval (C.translatedX w) + C.translatedY w * P₁.eval (C.translatedX w) |
| 283 | have hFz : ‖ιₚ (F z)‖ ≤ 1 := C.norm_le_one_of_norm_le_naiveHeight_pow h_eq h_le hz hc |
| 284 | have hFz_neg : ‖ιₚ (F (-z))‖ ≤ 1 := |
| 285 | C.norm_le_one_of_norm_le_naiveHeight_pow h_eq h_le hz_neg (by rwa [translatedX_neg]) |
| 286 | -- The difference of the brackets at `z` and `-z` is `x' P₁(x)`, and `x'²` is a unit. |
| 287 | have h_deriv : ‖ιₚ (deriv C.translatedX z)‖ = 1 := by |
| 288 | have h_sq : ‖ιₚ (deriv C.translatedX z)‖ ^ 2 = 1 := by |
| 289 | rw [← norm_pow, ← map_pow, C.deriv_translatedX_sq hz, h_unit] |
| 290 | exact (pow_eq_one_iff_of_nonneg (norm_nonneg _) two_ne_zero).1 h_sq |
| 291 | have h₁ : ‖ιₚ (P₁.eval (C.translatedX z))‖ ≤ 1 := by |
| 292 | have h_diff : deriv C.translatedX z * P₁.eval (C.translatedX z) = F z - F (-z) := by |
| 293 | simp only [F, ← translatedY_sub_translatedY_neg, translatedX_neg] |
| 294 | ring |
| 295 | have h_mul : ‖ιₚ (deriv C.translatedX z * P₁.eval (C.translatedX z))‖ ≤ 1 := by |
| 296 | rw [h_diff, map_sub] |
| 297 | exact sub_mem (mem_valRingCp.2 hFz) (mem_valRingCp.2 hFz_neg) |
| 298 | rwa [map_mul, norm_mul, h_deriv, one_mul] at h_mul |
| 299 | -- The coordinate `y` is integral, as a root of the cubic equation, so `P₀(x)` is integral. |
| 300 | have hy : ‖ιₚ (C.translatedY z)‖ ≤ 1 := C.norm_translatedY_le_one hz hc |
| 301 | have h₀ : ‖ιₚ (P₀.eval (C.translatedX z))‖ ≤ 1 := by |
| 302 | have h_sum : ιₚ (P₀.eval (C.translatedX z)) + ιₚ (C.translatedY z) * |
| 303 | ιₚ (P₁.eval (C.translatedX z)) ∈ valRingCp p := by |
| 304 | simpa only [F, map_add, map_mul] using mem_valRingCp.2 hFz |
| 305 | exact (add_mem_cancel_right (mul_mem (mem_valRingCp.2 hy) (mem_valRingCp.2 h₁))).1 h_sum |
| 306 | exact ⟨h₀, h₁⟩ |
| 307 | |
| 308 | /-- Let `C` be a CM lattice for a prime `d ≡ 7 mod 8`, with point `t` of order two, and let |
| 309 | `ιₚ : ℂ → ℂ_p` be a `p`-adic place. Suppose `f z = θ z ^ m (P₀(x z) + y z · P₁(x z))` whenever |
| 310 | `z + t ∉ Λ`, where `x = translatedX` is `℘(z + t) - ℘(t)` and `y = translatedY` is |
| 311 | `½(℘'(z + t) - a₁ x(z))`. Suppose also that `‖ιₚ (f z)‖ ≤ h(z) ^ m` for all `z`, where `h` is the |
| 312 | naive height `max (‖ιₚ (σ z)‖, ‖ιₚ (θ z)‖)`. Then every coefficient of `P₀` and `P₁` has image under |
| 313 | `ιₚ` of norm at most `1`. -/ |
| 314 | lemma norm_coeff_le_one_of_norm_le_naiveHeight_pow {P₀ P₁ : Polynomial ℂ} |
| 315 | (h_eq : ∀ z : ℂ, z + C.t ∉ C.Λ → f z = C.θ z ^ m * |
| 316 | (P₀.eval (C.translatedX z) + C.translatedY z * P₁.eval (C.translatedX z))) |
| 317 | (h_le : ∀ z : ℂ, ‖ιₚ (f z)‖ ≤ C.naiveHeight z ^ m) : |
| 318 | (∀ n : ℕ, ‖ιₚ (P₀.coeff n)‖ ≤ 1) ∧ ∀ n : ℕ, ‖ιₚ (P₁.coeff n)‖ ≤ 1 := by |
| 319 | -- Take an integral `c` at which `P₀`, `P₁` and the cubic `Q` with `x'² = Q(x)` are at least as |
| 320 | -- large as their coefficients. It suffices to show that `P₀(c)` and `P₁(c)` are integral. |
| 321 | let Q : Polynomial ℂ := .monomial 3 4 + .monomial 2 (C.a₁ ^ 2) + .monomial 1 4 |
| 322 | obtain ⟨c, hc, h_general⟩ := exists_norm_coeff_le_norm_eval (p := p) ![P₀, P₁, Q] |
| 323 | have hQ_eval : Q.eval c = c * (4 * c ^ 2 + C.a₁ ^ 2 * c + 4) := by |
| 324 | simp only [Q, Polynomial.eval_add, Polynomial.eval_monomial] |
| 325 | ring |
| 326 | -- The value `Q(c)` is a unit, since it is at least as large as the coefficients `4` and `a₁²` |
| 327 | -- of `Q`. |
| 328 | have hQ_norm : ‖ιₚ (Q.eval c)‖ = 1 := by |
| 329 | have h_four_le : ‖ιₚ 4‖ ≤ ‖ιₚ (Q.eval c)‖ := by |
| 330 | simpa [Q, Polynomial.coeff_monomial] using h_general 2 1 |
| 331 | have h_a₁_le : ‖ιₚ (C.a₁ ^ 2)‖ ≤ ‖ιₚ (Q.eval c)‖ := by |
| 332 | simpa [Q, Polynomial.coeff_monomial] using h_general 2 2 |
| 333 | rw [hQ_eval] at h_four_le h_a₁_le ⊢ |
| 334 | exact C.norm_cubic_eq_one hc h_four_le h_a₁_le |
| 335 | obtain ⟨z, hz, rfl⟩ := C.exists_translatedX_eq c |
| 336 | -- At `z` the values `P₀(x)` and `P₁(x)` are integral, as `Q(x)` is a unit. |
| 337 | obtain ⟨h₀, h₁⟩ : ‖ιₚ (P₀.eval (C.translatedX z))‖ ≤ 1 ∧ |
| 338 | ‖ιₚ (P₁.eval (C.translatedX z))‖ ≤ 1 := |
| 339 | C.norm_eval_translatedX_le_one h_eq h_le hz hc (by rwa [hQ_eval] at hQ_norm) |
| 340 | exact ⟨fun n ↦ (h_general 0 n).trans h₀, fun n ↦ (h_general 1 n).trans h₁⟩ |
| 341 | |
| 342 | /-- Let `d` be a prime `≡ 7 (mod 8)` and fix a `p`-adic place `ιₚ`. Let `f` be a section of degree |
| 343 | `m` (a theta function for `Λ` of degree `m`) with `‖ιₚ (f z)‖ ≤ h(z) ^ m` for all `z`, where `h` is |
| 344 | the naive height `max (‖ιₚ (σ z)‖, ‖ιₚ (θ z)‖)`. Then `f` is a combination, with coefficients |
| 345 | integral in `ℂ_p`, of the monomials of the triples `(a, b, c)` with `c ≤ 1` and degree |
| 346 | `a + 2 b + 3 c = m` (the set `spanningExponents m`); off `t + Λ` these monomials are |
| 347 | `θ ^ m translatedX ^ b translatedY ^ c`. The scalars are the complex numbers whose image under `ιₚ` |
| 348 | lies in the valuation ring `valRingCp p`. -/ |
| 349 | lemma mem_span_monomialSection {f : ℂ → ℂ} {m : ℕ} (hf : f ∈ C.sections m) |
| 350 | (h_le : ∀ z : ℂ, ‖ιₚ (f z)‖ ≤ C.naiveHeight z ^ m) : |
| 351 | f ∈ Submodule.span ((valRingCp p).comap ιₚ) (C.monomialSection '' spanningExponents m) := by |
| 352 | obtain ⟨P₀, P₁, h_deg₀, h_deg₁, h_eq⟩ := C.exists_eq_theta_pow_mul_eval hf |
| 353 | obtain ⟨h_int₀, h_int₁⟩ := C.norm_coeff_le_one_of_norm_le_naiveHeight_pow h_eq h_le |
| 354 | -- The summands `θ ^ m P₀(x)` and `θ ^ m y P₁(x)` extend to entire `g₀` and `g₁` in the span. |
| 355 | obtain ⟨g₀, hg₀_mem, hg₀_diff, hg₀⟩ := |
| 356 | C.exists_mem_span_monomialSection_eq_theta_pow_mul_eval zero_le_one h_deg₀ h_int₀ |
| 357 | obtain ⟨g₁, hg₁_mem, hg₁_diff, hg₁⟩ := |
| 358 | C.exists_mem_span_monomialSection_eq_theta_pow_mul_eval le_rfl h_deg₁ h_int₁ |
| 359 | have h_off (z : ℂ) (hz : z + C.t ∉ C.Λ) : f z = (g₀ + g₁) z := by |
| 360 | rw [Pi.add_apply, h_eq z hz, hg₀ z hz, hg₁ z hz] |
| 361 | ring |
| 362 | rw [C.eq_of_mem_sections_of_eq_off_translate hf (hg₀_diff.add hg₁_diff) h_off] |
| 363 | exact add_mem hg₀_mem hg₁_mem |
| 364 | |
| 365 | /-- The polynomial `R` is an integral expansion of `f` in degree `m` in the monomials |
| 366 | `θ ^ (m - 2 i) σ ^ (2 i)`, which are `θ ^ m x ^ i` off `t + Λ`, where `x = translatedX`. -/ |
| 367 | structure IsIntegralEvenExpansion (m : ℕ) (f : ℂ → ℂ) (R : Polynomial ℂ) : Prop where |
| 368 | /-- The coefficients of `R` are integral in `ℂ_p`. -/ |
| 369 | norm_coeff_le_one : ∀ i : ℕ, ‖ιₚ (R.coeff i)‖ ≤ 1 |
| 370 | /-- The degree of `R` is at most `m / 2`. -/ |
| 371 | two_mul_natDegree_le : 2 * R.natDegree ≤ m |
| 372 | /-- The function `f` is `∑ Rᵢ θ ^ (m - 2 i) σ ^ (2 i)`, the sum being over `i ≤ m / 2`. -/ |
| 373 | eq_sum : ∀ z : ℂ, f z = ∑ i ∈ Finset.range (m / 2 + 1), |
| 374 | R.coeff i * C.monomialSection (m - 2 * i, i, 0) z |
| 375 | /-- The Taylor series of `f` at `0`, with `ιₚ` applied to the coefficients, is `θ ^ m R(x)`. -/ |
| 376 | taylorVia_eq : |
| 377 | taylorVia ιₚ f = taylorVia ιₚ C.θ ^ m * (R.map ιₚ).aeval (taylorVia ιₚ C.translatedX) |
| 378 | |
| 379 | /-- Let `C` be a CM lattice for a prime `d ≡ 7 mod 8`, with point `t` of order two, and let `ιₚ` be |
| 380 | a `p`-adic place. Let `f` be an even section of degree `m` (a theta function for `Λ` with hermitian |
| 381 | form `m H` and multiplier `χ ^ m`) with `‖ιₚ (f z)‖ ≤ h(z) ^ m` for all `z`, where `h` is the naive |
| 382 | height `max (‖ιₚ (σ z)‖, ‖ιₚ (θ z)‖)`. Then |
| 383 | `f = ∑ Rᵢ θ ^ (m - 2 i) σ ^ (2 i)` for a polynomial `R` with `ιₚ`-integral coefficients and degree |
| 384 | at most `m / 2`, and the Taylor series of `f` at `0` is that of `θ ^ m R(x)`, where |
| 385 | `x(z) = ℘(z + t) - ℘(t)` is `translatedX`; these are the clauses of `IsIntegralEvenExpansion`. -/ |
| 386 | lemma exists_polynomial_of_even {f : ℂ → ℂ} {m : ℕ} (hf : f ∈ C.sections m) |
| 387 | (h_le : ∀ z : ℂ, ‖ιₚ (f z)‖ ≤ C.naiveHeight z ^ m) (hf_even : f.Even) : |
| 388 | ∃ R : Polynomial ℂ, C.IsIntegralEvenExpansion m f R := by |
| 389 | obtain ⟨R, h_deg, h_eq⟩ : ∃ R : Polynomial ℂ, (∀ i : ℕ, R.coeff i ≠ 0 → 2 * i ≤ m) ∧ |
| 390 | ∀ z : ℂ, z + C.t ∉ C.Λ → f z = C.θ z ^ m * R.eval (C.translatedX z) := |
| 391 | C.exists_eq_theta_pow_mul_eval_of_even hf hf_even |
| 392 | -- This is the form `θ ^ m (P₀(x) + y P₁(x))` with `P₀ = R` and `P₁ = 0`. |
| 393 | have hR_int : ∀ i : ℕ, ‖ιₚ (R.coeff i)‖ ≤ 1 := |
| 394 | (C.norm_coeff_le_one_of_norm_le_naiveHeight_pow (P₁ := 0) (by simpa using h_eq) h_le).left |
| 395 | have h_natDegree : 2 * R.natDegree ≤ m := by |
| 396 | rcases eq_or_ne R 0 with rfl | hR |
| 397 | · simp |
| 398 | · exact h_deg R.natDegree (Polynomial.leadingCoeff_ne_zero.2 hR) |
| 399 | have h_off (z : ℂ) (hz : z + C.t ∉ C.Λ) : f z = ∑ i ∈ Finset.range (m / 2 + 1), |
| 400 | R.coeff i * C.monomialSection (m - 2 * i, i, 0) z := |
| 401 | (h_eq z hz).trans (C.theta_pow_mul_eval_eq_sum_range h_natDegree hz) |
| 402 | exact ⟨R, hR_int, h_natDegree, |
| 403 | congrFun (C.eq_of_mem_sections_of_eq_off_translate hf (by fun_prop) h_off), |
| 404 | C.taylorVia_eq_of_eq_theta_pow_mul_eval h_eq⟩ |
| 405 | |
| 406 | /-- Let `f` be a combination, with coefficients integral in `ℂ_p`, of monomials of degree `m`. |
| 407 | Then `f` is analytic at `0` and its Taylor series lies in `θ ^ m 𝒪[[y]]`, where |
| 408 | `𝒪[[y]] = integralSeriesRing` is the ring of integral power series in the Taylor series of |
| 409 | `y = translatedY`. -/ |
| 410 | lemma exists_taylorVia_eq_theta_pow_mul_of_mem_span {s : Set (ℕ × ℕ × ℕ)} |
| 411 | (h_deg : ∀ x ∈ s, monomialDeg x = m) |
| 412 | (hf : f ∈ Submodule.span ((valRingCp p).comap ιₚ) (C.monomialSection '' s)) : |
| 413 | AnalyticAt ℂ f 0 ∧ ∃ u ∈ C.integralSeriesRing, taylorVia ιₚ f = taylorVia ιₚ C.θ ^ m * u := by |
| 414 | induction hf using Submodule.span_induction with |
| 415 | | mem g hg => |
| 416 | -- A monomial is `θ ^ m x ^ b y ^ c`, and `x = translatedX` and `y` lie in `𝒪[[y]]`. |
| 417 | obtain ⟨⟨a, b, c⟩, h_mem, rfl⟩ := hg |
| 418 | have h_coord : taylorVia ιₚ C.translatedX ^ b * taylorVia ιₚ C.translatedY ^ c ∈ |
| 419 | C.integralSeriesRing := |
| 420 | mul_mem (pow_mem C.taylorVia_translatedX_mem_integralSeriesRing b) |
| 421 | (pow_mem C.isSeriesGenerator_translatedY.generator_mem c) |
| 422 | refine ⟨by fun_prop, _, h_coord, ?_⟩ |
| 423 | simp [← h_deg _ h_mem, taylorVia, taylorAtZero_monomialSection_eq] |
| 424 | | zero => exact ⟨analyticAt_const, 0, zero_mem _, by simp [Pi.zero_def]⟩ |
| 425 | | add g₁ g₂ _ _ h₁ h₂ => |
| 426 | obtain ⟨hg₁, u₁, hu₁, h_eq₁⟩ := h₁ |
| 427 | obtain ⟨hg₂, u₂, hu₂, h_eq₂⟩ := h₂ |
| 428 | refine ⟨hg₁.add hg₂, u₁ + u₂, add_mem hu₁ hu₂, ?_⟩ |
| 429 | rw [mul_add, ← h_eq₁, ← h_eq₂, Pi.add_def, taylorVia, taylorAtZero_add hg₁ hg₂, map_add] |
| 430 | | smul a g _ h => |
| 431 | obtain ⟨hg, u, hu, h_eq⟩ := h |
| 432 | refine ⟨analyticAt_const.mul hg, ιₚ (a : ℂ) • u, |
| 433 | C.isSeriesGenerator_translatedY.smul_mem a.property hu, ?_⟩ |
| 434 | rw [show a • g = fun z : ℂ ↦ (a : ℂ) * g z from rfl, mul_smul_comm, ← h_eq, taylorVia, |
| 435 | taylorAtZero_mul analyticAt_const hg, taylorAtZero_const, map_mul, map_C, smul_eq_C_mul] |
| 436 | |
| 437 | /-- Let `d` be a prime congruent to 7 mod 8. Let `f` be a section of degree `m` (a theta function |
| 438 | for `Λ` with hermitian form `m H` and multiplier `χ ^ m`) with `‖ιₚ (f z)‖ ≤ h(z) ^ m` for all `z`, |
| 439 | where `h` is the naive height `max (‖ιₚ (σ z)‖, ‖ιₚ (θ z)‖)`. Then the Taylor series of `f` at `0`, |
| 440 | with `ιₚ` applied to its coefficients, is the `m`-th power of that of the degree-one theta function |
| 441 | `θ` times an element of `integralSeriesRing`, the ring `𝒪[[y]]` of integral power series in the |
| 442 | series of `y(z) = ½(℘′(z + t) − a₁ x(z))` (`translatedY`), where `x(z) = ℘(z + t) − ℘(t)` and `t` is |
| 443 | the chosen point of order two. -/ |
| 444 | lemma exists_taylorVia_eq_theta_pow_mul (hf : f ∈ C.sections m) |
| 445 | (h_le : ∀ z : ℂ, ‖ιₚ (f z)‖ ≤ C.naiveHeight z ^ m) : |
| 446 | ∃ u ∈ C.integralSeriesRing, taylorVia ιₚ f = taylorVia ιₚ C.θ ^ m * u := |
| 447 | (C.exists_taylorVia_eq_theta_pow_mul_of_mem_span |
| 448 | (fun ⟨_, _, _⟩ hx ↦ (mk_mem_spanningExponents.1 hx).right) |
| 449 | (C.mem_span_monomialSection hf h_le)).right |
| 450 | |
| 451 | end CMLattice |
| 452 | |
| 453 | end New |