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.Analysis.SpecialFunctions.Elliptic.LatticeClassification |
| 4 | import TauCeti.Analysis.SpecialFunctions.Elliptic.Torsion |
| 5 | import Mathlib.Algebra.Order.Star.Int |
| 6 | import Mathlib.Algebra.Order.Star.Real |
| 7 | import Mathlib.RingTheory.PiTensorProduct |
| 8 | import Mathlib.RingTheory.PowerSeries.Ideal |
| 9 | public import Lib.CM.GoodReduction |
| 10 | public import Lib.CM.Sigma.ThetaSections |
| 11 | import Lib.General.NumberTheory.SUnitsAndClassNumber |
| 12 | |
| 13 | /-! |
| 14 | # Galois conjugates of CM curves: conjugate sections, isogenies and translates of θ |
| 15 | |
| 16 | Let `σ` be a field automorphism of `ℂ`, and let `C`, `C'` be CM data (`New.CMLattice`) with |
| 17 | `C'.a₁ = σ C.a₁`, so that their cubics y² + a₁xy = x³ + x are conjugate under `σ`. Write `θ`, `θ'` |
| 18 | for their theta functions, and `New.taylorVia σ f` for the Taylor series of `f` at 0 with `σ` |
| 19 | applied to its coefficients. The bare letter `σ` is the automorphism, while `C.σ` is the sigma |
| 20 | function of the lattice of `C`. For `σ ∈ Aut(ℂ/K)` with `K = ℚ(√-d)` (`quadInt d` is the image of |
| 21 | `𝓞_K` in `ℂ`, fixed by `σ`), a conjugate CM datum exists, and conjugation extends to isogenies and |
| 22 | to translates of `θ`; this is a step towards `New.CMLattice.complex_multiplication_theta`. |
| 23 | |
| 24 | ## Main definitions and results |
| 25 | |
| 26 | * `New.thetaQuotient`: the quotient `θ' / σ θ` of power series, by which the theta functions differ. |
| 27 | * `New.taylorAtZero_monomialSection`, `New.exists_conjugate_section`: monomial sections, and hence |
| 28 | all sections `f` of degree `m` of `C`, have conjugates with Taylor series `(θ' / σ θ) ^ m * σ f`; |
| 29 | the second lemma transports points as well. |
| 30 | * `New.CMLattice.exists_galConjugate_of_g₂_g₃`, `New.CMLattice.galConjugate`: a lattice with the |
| 31 | invariants `σ g₂`, `σ g₃` carries a CM datum with the number `σ a₁`, and one such datum is chosen. |
| 32 | * `New.CMLattice.thetaQuotient_eq_one`, `New.CMLattice.taylorAtZero_theta_eq_taylorVia`: for a CM |
| 33 | datum `D` with invariant `σ a₁`, the Taylor series of the theta function is the conjugate of that |
| 34 | of `θ`. |
| 35 | * `New.CMLattice.exists_taylorVia_twistedTranslate_theta`: when the lattice of `C` is `Ω 𝓞_K` and |
| 36 | `S` is a finite subset of `K`, there is a period `v` of `D` such that, for all `s ∈ S`, the Taylor |
| 37 | series of the translate by `s v` of the theta function of `D` is the conjugate of that of the |
| 38 | translate of `θ` by `s Ω`. |
| 39 | |
| 40 | Notions from other files: |
| 41 | * `New.CMLattice.θ`: The twisted translate (`twistedTranslate 1 u f` is |
| 42 | `z ↦ exp(−π(zū + |u|²/2)/area Λ) f(z + u)`) of the sigma function `C.σ` by the point t of order |
| 43 | two, normalised to 1 at 0; it vanishes exactly on t + Λ. |
| 44 | * `New.CMLattice.translatedX`, `New.CMLattice.translatedY`: The coordinates x(z) = ℘(z + t) − ℘(t) |
| 45 | and y(z) = ½(℘′(z + t) − a₁x(z)) of the curve. |
| 46 | * `New.CMLattice.sections`: The sections of degree m: theta functions for the lattice Λ with |
| 47 | hermitian form mH and multiplier χ^m, for the hermitian form H and multiplier χ of `θ`. |
| 48 | * `PeriodPair.IsIsogeny`: L.IsIsogeny M a N says that a maps the periods of L to those of M and that |
| 49 | a·ā·area(L) = N·area(M). |
| 50 | * `New.CMLattice.monomialSection`: For j = (a, b, c), the section θ^a·(C.σ²)^b·G^c of degree |
| 51 | a + 2b + 3c, with C.σ the sigma function and G = `New.CMLattice.translatedYThetaCube`. |
| 52 | |
| 53 | ## Relation to the literature |
| 54 | |
| 55 | Part of a known result: Main theorem of complex multiplication for elliptic curves, soft form. See |
| 56 | `Lib.CM.ChowlaSelberg`. No reciprocity law is used: the conjugate lattice comes from uniformisation, |
| 57 | and points are matched by transporting sections. |
| 58 | -/ |
| 59 | |
| 60 | @[expose] public section |
| 61 | |
| 62 | /-! |
| 63 | ## Transport of sections and points to a conjugate curve |
| 64 | |
| 65 | The series of `x` and `y` are conjugate because they solve the same differential system. |
| 66 | -/ |
| 67 | |
| 68 | namespace New |
| 69 | |
| 70 | open PowerSeries CMLattice PeriodPair Submodule |
| 71 | |
| 72 | variable {d d' : ℕ} |
| 73 | |
| 74 | /-- The power series θ′/σθ: the Taylor series of the theta function of C' times the inverse of |
| 75 | the σ-conjugate of that of C. -/ |
| 76 | noncomputable def thetaQuotient (C : CMLattice d) (σ : ℂ ≃+* ℂ) (C' : CMLattice d') : ℂ⟦X⟧ := |
| 77 | taylorAtZero C'.θ * (taylorVia σ C.θ)⁻¹ |
| 78 | |
| 79 | variable {C : CMLattice d} (σ : ℂ ≃+* ℂ) {C' : CMLattice d'} |
| 80 | |
| 81 | /-- Let `C`, `C'` be CM lattices and `σ` a ring automorphism of `ℂ` with `C'.a₁ = σ C.a₁`. For every |
| 82 | power series `a` and every `n`, the `n`-th coefficient of `a` times the `σ`-conjugate of the Taylor |
| 83 | series of `C.translatedX` is that of `a` times the Taylor series of `C'.translatedX`, and likewise |
| 84 | for `translatedY`. -/ |
| 85 | private lemma coeff_mul_taylorVia_translatedX_and_translatedY (ha₁ : C'.a₁ = σ C.a₁) (n : ℕ) |
| 86 | (a : ℂ⟦X⟧) : |
| 87 | coeff n (a * taylorVia ↑σ C.translatedX) = coeff n (a * taylorVia (.id ℂ) C'.translatedX) ∧ |
| 88 | coeff n (a * taylorVia ↑σ C.translatedY) = |
| 89 | coeff n (a * taylorVia (.id ℂ) C'.translatedY) := by |
| 90 | -- Both pairs vanish at `0` and solve the same system `x' = 2y + a₁x`, `y' = 1 + 3x² - a₁y`, so |
| 91 | -- they agree. For the induction on the coefficient allow an arbitrary factor `a`: by the product |
| 92 | -- rule the derivatives of `a x`, `a y` are combinations of 1, `x`, `y`, `x²` with such factors. |
| 93 | induction n generalizing a with |
| 94 | | zero => simp [translatedX] |
| 95 | | succ n ih => |
| 96 | have h_succ (f : ℂ⟦X⟧) : coeff (n + 1) f = coeff n (d⁄dX f) / (n + 1) := |
| 97 | eq_div_of_mul_eq (by norm_cast) (coeff_derivative f n).symm |
| 98 | have h_wp {e : ℕ} (B : CMLattice e) (ι : ℂ →+* ℂ) : |
| 99 | d⁄dX (a * taylorVia ι B.translatedX) = 2 * a * taylorVia ι B.translatedY + |
| 100 | (d⁄dX a + a * PowerSeries.C (ι B.a₁)) * taylorVia ι B.translatedX := by |
| 101 | simp only [Derivation.leibniz, derivative_taylorVia_translatedX, smul_eq_mul] |
| 102 | ring |
| 103 | have h_y {e : ℕ} (B : CMLattice e) (ι : ℂ →+* ℂ) : |
| 104 | d⁄dX (a * taylorVia ι B.translatedY) = a + 3 * a * taylorVia ι B.translatedX ^ 2 + |
| 105 | (d⁄dX a - a * PowerSeries.C (ι B.a₁)) * taylorVia ι B.translatedY := by |
| 106 | simp only [Derivation.leibniz, derivative_taylorVia_translatedY, smul_eq_mul] |
| 107 | ring |
| 108 | -- The induction hypothesis, used once for each factor, also covers `x²`. |
| 109 | have h_sq (b : ℂ⟦X⟧) : coeff n (b * taylorVia ↑σ C.translatedX ^ 2) = |
| 110 | coeff n (b * taylorVia (.id ℂ) C'.translatedX ^ 2) := by |
| 111 | rw [sq, ← mul_assoc, (ih _).1, mul_right_comm, (ih _).1, sq, ← mul_assoc] |
| 112 | have hσ_a₁ : (σ : ℂ →+* ℂ) C.a₁ = RingHom.id ℂ C'.a₁ := ha₁.symm |
| 113 | constructor |
| 114 | · rw [h_succ, h_succ, h_wp, h_wp, map_add, map_add, hσ_a₁, (ih _).2, (ih _).1] |
| 115 | · rw [h_succ, h_succ, h_y, h_y, map_add, map_add, map_add, map_add, hσ_a₁, h_sq, (ih _).2] |
| 116 | |
| 117 | /-- For CM lattices `C`, `C'` and a ring automorphism `σ` of `ℂ` with `C'.a₁ = σ C.a₁`, the Taylor |
| 118 | series at 0 of `C'.translatedX` and `C'.translatedY` are obtained from those of `C` by applying `σ` |
| 119 | to the coefficients. Here `translatedX` is x(z) = ℘(z + t) − ℘(t) and `translatedY` is |
| 120 | y(z) = ½(℘′(z + t) − a₁x(z)), with ℘ the Weierstrass function of the lattice and `t` its point of |
| 121 | order two. -/ |
| 122 | lemma map_taylorAtZero_translatedX_and_translatedY (ha₁ : C'.a₁ = σ C.a₁) : |
| 123 | (taylorAtZero C.translatedX).map ↑σ = taylorAtZero C'.translatedX ∧ |
| 124 | (taylorAtZero C.translatedY).map ↑σ = taylorAtZero C'.translatedY := by |
| 125 | -- Compare the coefficients, taking the factor `a = 1`. |
| 126 | have h_coeff (n : ℕ) (a : ℂ⟦X⟧) : |
| 127 | coeff n (a * taylorVia ↑σ C.translatedX) = coeff n (a * taylorVia (.id ℂ) C'.translatedX) ∧ |
| 128 | coeff n (a * taylorVia ↑σ C.translatedY) = |
| 129 | coeff n (a * taylorVia (.id ℂ) C'.translatedY) := |
| 130 | coeff_mul_taylorVia_translatedX_and_translatedY σ ha₁ n a |
| 131 | simpa [PowerSeries.ext_iff, forall_and] using fun n ↦ h_coeff n 1 |
| 132 | |
| 133 | /-- Let the invariant `a₁` of the CM datum `C'` be the conjugate of that of `C` by the automorphism |
| 134 | `σ` of `ℂ`. For exponents `j = (a, b, c)`, the Taylor series of the monomial section |
| 135 | `θ' ^ a * (C'.σ ^ 2) ^ b * C'.translatedYThetaCube ^ c` of `C'` is the conjugate of the series of |
| 136 | that of `C` times `(θ' / σ θ) ^ (a + 2 b + 3 c)`, where `θ' / σ θ` is `New.thetaQuotient`. -/ |
| 137 | lemma taylorAtZero_monomialSection (ha₁ : C'.a₁ = σ C.a₁) (j : ℕ × ℕ × ℕ) : |
| 138 | taylorAtZero (C'.monomialSection j) = |
| 139 | thetaQuotient C σ C' ^ monomialDeg j * taylorVia σ (C.monomialSection j) := by |
| 140 | obtain ⟨hx, hy⟩ := map_taylorAtZero_translatedX_and_translatedY σ ha₁ |
| 141 | have hθ : thetaQuotient C σ C' * taylorVia σ C.θ = taylorAtZero C'.θ := by |
| 142 | simp [thetaQuotient, mul_assoc, PowerSeries.inv_mul_cancel] |
| 143 | simp only [taylorVia] at hθ ⊢ |
| 144 | rw [taylorAtZero_monomialSection_eq, taylorAtZero_monomialSection_eq, map_mul, map_mul, map_pow, |
| 145 | map_pow, map_pow, hx, hy, ← hθ, mul_pow, mul_assoc] |
| 146 | |
| 147 | /-- The case `θ' z = 0` of `exists_conjugate_point`: if `z` is congruent to the point `t` of `C'`, |
| 148 | the values at `z` of `θ'`, `C'.σ ^ 2` and of the entire function `translatedYThetaCube` = `yθ'³` are |
| 149 | `μ`, `μ²`, `μ³` times the `σ`-conjugates of those of `C` at its point `t`, for some `μ ≠ 0`. -/ |
| 150 | lemma exists_conjugate_factor_of_mem {z : ℂ} (hz : z + C'.t ∈ C'.Λ) : |
| 151 | ∃ μ ≠ (0 : ℂ), |
| 152 | C'.θ z = μ * σ (C.θ C.t) ∧ |
| 153 | C'.σ z ^ 2 = μ ^ 2 * σ (C.σ C.t ^ 2) ∧ |
| 154 | C'.translatedYThetaCube z = μ ^ 3 * σ (C.translatedYThetaCube C.t) := by |
| 155 | -- `C'.θ` vanishes at `z` and `C.θ` at `C.t`, where the curve equation |
| 156 | -- `translatedYThetaCube_sq_add` reads `translatedYThetaCube² = C.σ⁶ ≠ 0`, and likewise for `C'`. |
| 157 | have hθz : C'.θ z = 0 := by simpa |
| 158 | have hθt : C.θ C.t = 0 := by simp [C.two_t_mem] |
| 159 | have h_z : C'.translatedYThetaCube z ^ 2 = C'.σ z ^ 6 := by |
| 160 | simpa [hθz] using C'.translatedYThetaCube_sq_add z |
| 161 | have h_t : σ (C.translatedYThetaCube C.t) ^ 2 = σ (C.σ C.t) ^ 6 := by |
| 162 | simpa [hθt] using congrArg σ (C.translatedYThetaCube_sq_add C.t) |
| 163 | have hσz : C'.σ z ≠ 0 := by grind [sigma_eq_zero_iff, t_notMem, add_mem_cancel_left] |
| 164 | have hσt : σ (C.σ C.t) ≠ 0 := by simp [sigma_eq_zero_iff, C.t_notMem] |
| 165 | have hGt : σ (C.translatedYThetaCube C.t) ≠ 0 := fun h ↦ hσt (by simpa [h] using h_t.symm) |
| 166 | -- With `r`, `q` the ratios of the values of `translatedYThetaCube` and of the sigma functions, |
| 167 | -- `r² = q⁶`; so `μ = r / q²` has `μ² = q²` and `μ³ = r`. |
| 168 | set r : ℂ := C'.translatedYThetaCube z / σ (C.translatedYThetaCube C.t) with hr |
| 169 | set q : ℂ := C'.σ z / σ (C.σ C.t) with hq |
| 170 | have h_ratio : r ^ 2 = q ^ 6 := by rw [div_pow, div_pow, h_z, h_t] |
| 171 | have hμ₂ : (r / q ^ 2) ^ 2 = q ^ 2 := by simp [div_pow, h_ratio, field] |
| 172 | have hμ₃ : (r / q ^ 2) ^ 3 = r := by simp [pow_succ _ 2, hμ₂, field] |
| 173 | have hq₀ : q ≠ 0 := div_ne_zero hσz hσt |
| 174 | refine ⟨r / q ^ 2, fun h ↦ hq₀ (by simpa [h] using hμ₂.symm), |
| 175 | by simp [hθz, hθt], ?_, by rw [hμ₃, hr, div_mul_cancel₀ _ hGt]⟩ |
| 176 | rw [hμ₂, map_pow, ← mul_pow, hq, div_mul_cancel₀ _ hσt] |
| 177 | |
| 178 | /-- Let `σ` be a ring automorphism of `ℂ`, let `C`, `C'` be CM lattices with `C'.a₁ = σ C.a₁`, and |
| 179 | let `z : ℂ` satisfy `z + C'.t ∉ C'.Λ`. Pulling back the curve coordinates of `z` on `C'` by `σ⁻¹` |
| 180 | yields a point `w ∉ C.Λ` whose Weierstrass coordinates `(℘, ℘')` for `C.periodPair` satisfy |
| 181 | `℘(w) = σ⁻¹ (C'.translatedX z) + ℘(C.t)` and `℘'(w) = σ⁻¹ (℘'(z + C'.t))`, where the right-hand |
| 182 | `℘'` is for `C'.periodPair`. -/ |
| 183 | private lemma exists_weierstrassP_eq_of_conjugate (ha₁ : C'.a₁ = σ C.a₁) {z : ℂ} |
| 184 | (hz : z + C'.t ∉ C'.Λ) : |
| 185 | ∃ w ∉ C.Λ, |
| 186 | ℘[C.periodPair] w = σ.symm (C'.translatedX z) + ℘[C.periodPair] C.t ∧ |
| 187 | ℘'[C.periodPair] w = σ.symm (℘'[C'.periodPair] (z + C'.t)) := by |
| 188 | -- Pull the point `(x, y)(z)` of the cubic of `C'` back by `σ`; it lies on the cubic of `C`. |
| 189 | -- In Weierstrass coordinates `(℘, ℘')` it is the image of some `w`. |
| 190 | apply C.exists_weierstrassP_eq_of_cubic |
| 191 | have h_curve : σ.symm (C'.translatedY z) ^ 2 + |
| 192 | C.a₁ * σ.symm (C'.translatedX z) * σ.symm (C'.translatedY z) = |
| 193 | σ.symm (C'.translatedX z) ^ 3 + σ.symm (C'.translatedX z) := by |
| 194 | simpa [ha₁] using congrArg σ.symm (C'.weierstrass_equation hz) |
| 195 | simp only [translatedY, ha₁, map_div₀, map_sub, map_mul, map_ofNat, |
| 196 | RingEquiv.symm_apply_apply] at h_curve |
| 197 | -- Express `g₂` and `g₃` through `a₁` and `℘(t)`. |
| 198 | grind [CMLattice, g₂_eq, g₃_eq] |
| 199 | |
| 200 | /-- The case `θ' z ≠ 0` of `exists_conjugate_point`, where `θ'` is the theta function `C'.θ`: let |
| 201 | `σ` be an automorphism of `ℂ`, let `C`, `C'` be CM lattices with `C'.a₁ = σ C.a₁`, and let `z` |
| 202 | satisfy `z + C'.t ∉ C'.Λ`, i.e. `z` is not congruent to the point `t` of order two of `C'`. Then for |
| 203 | some `u` and some `μ ≠ 0`, the values at `z` of `C'.θ`, `C'.σ ^ 2` (the sigma function squared) and |
| 204 | `C'.translatedYThetaCube` (equal to `yθ³` off `t + Λ`, with `y` = `translatedY`) are `μ`, `μ²`, `μ³` |
| 205 | times the `σ`-images of the corresponding values for `C` at `u`. -/ |
| 206 | lemma exists_conjugate_point_of_notMem (ha₁ : C'.a₁ = σ C.a₁) {z : ℂ} (hz : z + C'.t ∉ C'.Λ) : |
| 207 | ∃ u : ℂ, ∃ μ ≠ (0 : ℂ), |
| 208 | C'.θ z = μ * σ (C.θ u) ∧ |
| 209 | C'.σ z ^ 2 = μ ^ 2 * σ (C.σ u ^ 2) ∧ |
| 210 | C'.translatedYThetaCube z = μ ^ 3 * σ (C.translatedYThetaCube u) := by |
| 211 | -- Take `u = w - C.t`. |
| 212 | obtain ⟨w, hw, hwx, hwy⟩ : |
| 213 | ∃ w ∉ C.Λ, |
| 214 | ℘[C.periodPair] w = σ.symm (C'.translatedX z) + ℘[C.periodPair] C.t ∧ |
| 215 | ℘'[C.periodPair] w = σ.symm (℘'[C'.periodPair] (z + C'.t)) := |
| 216 | exists_weierstrassP_eq_of_conjugate σ ha₁ hz |
| 217 | -- By `sigma_sq_eq_and_translatedYThetaCube_eq`, `C.σ ^ 2 = xθ²` and `translatedYThetaCube = yθ³` |
| 218 | -- at `u`, likewise for `C'` at `z`, and `x`, `y` are conjugate there. |
| 219 | have hθz : C'.θ z ≠ 0 := by simpa using hz |
| 220 | have hθu : σ (C.θ (w - C.t)) ≠ 0 := by simpa using hw |
| 221 | have hx : σ (C.translatedX (w - C.t)) = C'.translatedX z := by simp [translatedX, hwx] |
| 222 | have hy : σ (C.translatedY (w - C.t)) = C'.translatedY z := by |
| 223 | simp [translatedY, hx, hwy, ha₁, map_ofNat] |
| 224 | obtain ⟨hσ_z, hG_z⟩ := C'.sigma_sq_eq_and_translatedYThetaCube_eq z hz |
| 225 | obtain ⟨hσ_u, hG_u⟩ := C.sigma_sq_eq_and_translatedYThetaCube_eq (w - C.t) (by simpa using hw) |
| 226 | exact ⟨w - C.t, C'.θ z / σ (C.θ (w - C.t)), div_ne_zero hθz hθu, (div_mul_cancel₀ _ hθu).symm, |
| 227 | by simp [hσ_z, hσ_u, hx, field], by simp [hG_z, hG_u, hy, field]⟩ |
| 228 | |
| 229 | /-- Let the invariant `a₁` of the CM datum `C'` be the `σ`-conjugate of that of `C`. A point `z` of |
| 230 | `C'` has a matching point `u` of `C`: the values at `z` of the generators `θ'` (the theta function |
| 231 | of `C'`), `C'.σ ^ 2` (the square of the sigma function of the lattice) and `C'.translatedYThetaCube` |
| 232 | (the entire function `yθ'³`) are the conjugates of the values at `u` of those of `C`, up to factors |
| 233 | `μ`, `μ²`, `μ³` with `μ ≠ 0`. If `θ'` vanishes at `z`, then `u` is the point `t` of order two |
| 234 | of `C`. -/ |
| 235 | lemma exists_conjugate_point (ha₁ : C'.a₁ = σ C.a₁) (z : ℂ) : |
| 236 | ∃ u : ℂ, ∃ μ ≠ (0 : ℂ), |
| 237 | (C'.θ z = 0 → u = C.t) ∧ |
| 238 | C'.θ z = μ * σ (C.θ u) ∧ |
| 239 | C'.σ z ^ 2 = μ ^ 2 * σ (C.σ u ^ 2) ∧ |
| 240 | C'.translatedYThetaCube z = μ ^ 3 * σ (C.translatedYThetaCube u) := by |
| 241 | by_cases hz : z + C'.t ∈ C'.Λ |
| 242 | · obtain ⟨μ, hμ, h_values⟩ := exists_conjugate_factor_of_mem (C := C) σ hz |
| 243 | exact ⟨C.t, μ, hμ, fun _ ↦ rfl, h_values⟩ |
| 244 | · obtain ⟨u, μ, hμ, h_values⟩ := exists_conjugate_point_of_notMem σ ha₁ hz |
| 245 | exact ⟨u, μ, hμ, fun hθ ↦ absurd (C'.theta_eq_zero_iff.1 hθ) hz, h_values⟩ |
| 246 | |
| 247 | /-- If the invariant `a₁` of `C'` is the `σ`-conjugate of that of `C`, a point `z` of `C'` has a |
| 248 | matching point `u` of `C` and a factor `μ ≠ 0`: every section `f` of degree `m` of `C` (a theta |
| 249 | function for its lattice) has a conjugate section `g` of `C'`, with Taylor series |
| 250 | `(θ' / σ θ) ^ m * σ f`, where `θ' / σ θ` is `New.thetaQuotient`, and value `g z = μ ^ m * σ (f u)`. |
| 251 | If `θ'` vanishes at `z`, then `u` is the point `t` of order two of `C`. -/ |
| 252 | lemma exists_conjugate_section (ha₁ : C'.a₁ = σ C.a₁) (z : ℂ) : |
| 253 | ∃ u : ℂ, ∃ μ ≠ (0 : ℂ), |
| 254 | (C'.θ z = 0 → u = C.t) ∧ |
| 255 | ∀ {m : ℕ} {f : ℂ → ℂ}, f ∈ C.sections m → ∃ g ∈ C'.sections m, |
| 256 | taylorAtZero g = thetaQuotient C σ C' ^ m * taylorVia σ f ∧ g z = μ ^ m * σ (f u) := by |
| 257 | obtain ⟨u, μ, hμ, hu, hθ, hσ, hG⟩ := exists_conjugate_point σ ha₁ z |
| 258 | refine ⟨u, μ, hμ, hu, fun {m f} hf ↦ ?_⟩ |
| 259 | -- Sections are spanned by monomials; differentiability is carried along for `taylorAtZero`. |
| 260 | suffices h_both : Differentiable ℂ f ∧ ∃ g ∈ C'.sections m, |
| 261 | taylorAtZero g = thetaQuotient C σ C' ^ m * taylorVia σ f ∧ g z = μ ^ m * σ (f u) from |
| 262 | h_both.2 |
| 263 | replace hf := C.sections_le_span_monomialSection m hf |
| 264 | induction hf using span_induction with |
| 265 | | mem f hf => |
| 266 | obtain ⟨j, ⟨-, rfl⟩, rfl⟩ := hf |
| 267 | refine ⟨C.differentiable_monomialSection j, C'.monomialSection j, C'.monomialSection_mem j, |
| 268 | taylorAtZero_monomialSection σ ha₁ j, ?_⟩ |
| 269 | simp [monomialSection, hθ, hσ, hG, pow_add, mul_pow, pow_mul', field] |
| 270 | | zero => exact ⟨by fun_prop, 0, by simp, by simp [Pi.zero_def]⟩ |
| 271 | | add f₁ f₂ _ _ ih₁ ih₂ => |
| 272 | obtain ⟨hf₁_diff, g₁, hg₁, hg₁_ser, hg₁_val⟩ := ih₁ |
| 273 | obtain ⟨hf₂_diff, g₂, hg₂, hg₂_ser, hg₂_val⟩ := ih₂ |
| 274 | have hg₁_diff : Differentiable ℂ g₁ := hg₁.1 |
| 275 | have hg₂_diff : Differentiable ℂ g₂ := hg₂.1 |
| 276 | refine ⟨by fun_prop, g₁ + g₂, add_mem hg₁ hg₂, ?_, by simp [mul_add, hg₁_val, hg₂_val]⟩ |
| 277 | simp (disch := fun_prop) [Pi.add_def, taylorVia, mul_add, hg₁_ser, hg₂_ser] |
| 278 | | smul c f _ ih => |
| 279 | obtain ⟨hf_diff, g, hg, hg_ser, hg_val⟩ := ih |
| 280 | have hg_diff : Differentiable ℂ g := hg.1 |
| 281 | refine ⟨by fun_prop, σ c • g, smul_mem _ _ hg, ?_, by simp [mul_left_comm, hg_val]⟩ |
| 282 | simp (disch := fun_prop) [Pi.smul_def, taylorVia, mul_left_comm, hg_ser] |
| 283 | |
| 284 | end New |
| 285 | |
| 286 | section ConjugateCurve |
| 287 | |
| 288 | namespace New |
| 289 | |
| 290 | open CMLattice PowerSeries |
| 291 | |
| 292 | variable {d d' : ℕ} {C D : CMLattice d} {a : ℂ} [PrimeSevenModEight d] (σ : Gal(ℂ/QuadField d)) |
| 293 | |
| 294 | /-! ### Conjugate isogenies -/ |
| 295 | |
| 296 | /-- Let `σ` be an automorphism of `ℂ` over `ℚ(√-d)`, with `d` a prime `≡ 7 (mod 8)`. Let `a` be an |
| 297 | isogeny from `C` to `D` of degree `N`, that is `a Λ_C ⊆ Λ_D` and `|a|² area C = N area D`. Let `C'`, |
| 298 | `D'` be CM data for any `d'` whose invariants `a₁` (square roots of `12 ℘(t)`) are the |
| 299 | `σ`-conjugates of those of `C`, `D`. There are sections `A`, `B` of `C'` (theta functions for its |
| 300 | lattice) of degrees `2 N`, `N`, corresponding to the sections `D.σ (a * z) ^ 2` and `D.θ (a * z)` of |
| 301 | `C`. They have the values 0 and 1 at 0. `A` vanishes at the point `t` of order two of `C'` only if |
| 302 | `a` takes the point `t` of `C` to a period of `D`. The series of `B` is `(θ' / σ θ) ^ N` (see |
| 303 | `New.thetaQuotient`) times the conjugate series of `D.θ (a * z)`. And `A / B ^ 2` is |
| 304 | `D'.σ ^ 2 / D'.θ ^ 2` taken at `σ a * z`. -/ |
| 305 | lemma exists_conj_isogeny_sections {C' D' : CMLattice d'} {N : ℕ} (hC : C'.a₁ = σ C.a₁) |
| 306 | (hD : D'.a₁ = σ D.a₁) (ha : C.IsIsogeny D.periodPair a N) : |
| 307 | ∃ A ∈ C'.sections (2 * N), ∃ B ∈ C'.sections N, |
| 308 | A 0 = 0 ∧ |
| 309 | B 0 = 1 ∧ |
| 310 | (A C'.t = 0 → a * C.t ∈ D.Λ) ∧ |
| 311 | taylorAtZero B = thetaQuotient C σ C' ^ N * taylorVia σ (fun z : ℂ ↦ D.θ (a * z)) ∧ |
| 312 | ∀ z : ℂ, A z * D'.θ (σ a * z) ^ 2 = D'.σ (σ a * z) ^ 2 * B z ^ 2 := by |
| 313 | -- `transport` sends a section `f` of degree `m` of `C` to a section `g` of `C'` with series |
| 314 | -- `thetaQuotient C σ C' ^ m * σ f` and value `g C'.t = μ ^ m * σ (f u)`; `hu` gives `u = C.t`. |
| 315 | obtain ⟨u, μ, hμ, hu, transport⟩ := exists_conjugate_section σ hC C'.t |
| 316 | obtain rfl : u = C.t := hu (C'.theta_eq_zero_iff.2 C'.two_t_mem) |
| 317 | have h_transport (j : ℕ × ℕ × ℕ) : ∃ g ∈ C'.sections (monomialDeg j * N), |
| 318 | taylorAtZero g = thetaQuotient C σ C' ^ (monomialDeg j * N) * |
| 319 | taylorVia σ (fun z ↦ D.monomialSection j (a * z)) ∧ |
| 320 | g C'.t = μ ^ (monomialDeg j * N) * σ (D.monomialSection j (a * C.t)) := |
| 321 | transport (C.comp_mul_mem_sections ha (D.monomialSection_mem j)) |
| 322 | obtain ⟨A, hA, hA_ser, hA_t⟩ := h_transport (0, 1, 0) |
| 323 | obtain ⟨B, hB, hB_ser, -⟩ := h_transport (1, 0, 0) |
| 324 | have hA_diff : Differentiable ℂ A := hA.1 |
| 325 | have hB_diff : Differentiable ℂ B := hB.1 |
| 326 | -- Both sides are entire; in their Taylor series the powers of `thetaQuotient` agree. |
| 327 | have h_fun : (fun z ↦ A z * D'.monomialSection (1, 0, 0) (σ a * z) ^ 2) = |
| 328 | fun z ↦ D'.monomialSection (0, 1, 0) (σ a * z) * B z ^ 2 := by |
| 329 | refine eq_of_taylorAtZero_eq (by fun_prop) (by fun_prop) ?_ |
| 330 | simp (disch := fun_prop) [hA_ser, hB_ser, taylorAtZero_monomialSection σ hD, ← rescale_map, |
| 331 | taylorVia, monomialDeg] |
| 332 | ring |
| 333 | refine ⟨A, hA, B, by simpa [monomialDeg] using hB, ?_, ?_, fun h_zero ↦ ?_, ?_, fun z ↦ ?_⟩ |
| 334 | · -- The value at 0 is the constant coefficient. |
| 335 | simpa [thetaQuotient, monomialSection] using congrArg constantCoeff hA_ser |
| 336 | · simpa [thetaQuotient, monomialSection] using congrArg constantCoeff hB_ser |
| 337 | · -- Here `0 = μ ^ (2 * N) * σ (D.σ (a * C.t) ^ 2)`, and `D.σ` vanishes only at periods. |
| 338 | simpa [h_zero, hμ, monomialSection] using hA_t |
| 339 | · simpa [monomialSection, monomialDeg] using hB_ser |
| 340 | · simpa [monomialSection] using congrFun h_fun z |
| 341 | |
| 342 | /-- Let `a` be an isogeny of degree `N` from `C` to `D` (it maps periods to periods and |
| 343 | `a * conj a * area C = N * area D`), and let the invariants `a₁` of `C'`, `D'` be the |
| 344 | `σ`-conjugates of those of `C`, `D`, for `σ` an automorphism of `ℂ` over `ℚ(√-d)`. Then `σ a` |
| 345 | takes periods of `C'` to periods of `D'`. -/ |
| 346 | lemma conj_isogeny_mul_mem_lattice {C' D' : CMLattice d'} {N : ℕ} (hC : C'.a₁ = σ C.a₁) |
| 347 | (hD : D'.a₁ = σ D.a₁) (ha : C.IsIsogeny D.periodPair a N) {l : ℂ} (hl : l ∈ C'.Λ) : |
| 348 | σ a * l ∈ D'.Λ := by |
| 349 | -- `hA_per`, `hB_per` are the quasi-periodicity of the sections `A`, `B` of `C'`. |
| 350 | obtain ⟨A, ⟨-, hA_per⟩, B, ⟨-, hB_per⟩, hA_zero, hB_zero, -, -, h_quot⟩ := |
| 351 | exists_conj_isogeny_sections σ hC hD ha |
| 352 | -- On the lattice of `C'`, `A` vanishes and `B` does not, so `D'.σ (σ a * l) = 0`. |
| 353 | have hA_l : A l = 0 := by simpa [hA_zero] using hA_per l hl 0 |
| 354 | have hB_l : B l ≠ 0 := by |
| 355 | rw [← zero_add l, hB_per l hl 0] |
| 356 | simp [hB_zero, C'.isAppellHumbert_multiplier.ne_zero hl] |
| 357 | exact sigma_eq_zero_iff.1 (by simpa [hA_l, hB_l] using h_quot l) |
| 358 | |
| 359 | /-- Let `a` be an isogeny of degree `N` from `C` to `D`, and let the invariants `a₁` of `C'`, `D'` |
| 360 | be the `σ`-conjugates of those of `C`, `D`. If `σ a` takes the point `t` of order two of `C'` to a |
| 361 | period of `D'`, then `a` takes the point `t` of `C` to a period of `D`. -/ |
| 362 | lemma mul_t_mem_of_conj_isogeny_mul_t_mem {C' D' : CMLattice d'} {N : ℕ} |
| 363 | (hC : C'.a₁ = σ C.a₁) (hD : D'.a₁ = σ D.a₁) (ha : C.IsIsogeny D.periodPair a N) |
| 364 | (ht : σ a * C'.t ∈ D'.Λ) : |
| 365 | a * C.t ∈ D.Λ := by |
| 366 | obtain ⟨A, -, B, -, -, -, hA_t, -, h_quot⟩ := exists_conj_isogeny_sections σ hC hD ha |
| 367 | -- At the period `σ a * C'.t` the function `D'.σ` vanishes and `D'.θ` does not. |
| 368 | have hθ_ne : D'.θ (σ a * C'.t) ≠ 0 := by |
| 369 | simp [theta_eq_zero_iff, add_mem_cancel_left ht, D'.t_notMem] |
| 370 | have hA_zero : A C'.t = 0 := by simpa [hθ_ne, sigma_eq_zero_iff.2 ht] using h_quot C'.t |
| 371 | exact hA_t hA_zero |
| 372 | |
| 373 | omit [PrimeSevenModEight d] in |
| 374 | /-- An automorphism of `ℂ` over `K` fixes the elements of `quadInt d`, the image of `𝓞_K` in `ℂ`. -/ |
| 375 | @[simp, grind =] |
| 376 | lemma map_eq_self_of_mem_quadInt (ha : a ∈ quadInt d) : σ a = a := by |
| 377 | obtain ⟨x, rfl⟩ := ha |
| 378 | exact σ.commutes (x : QuadField d) |
| 379 | |
| 380 | /-! ### The conjugate CM datum -/ |
| 381 | |
| 382 | namespace CMLattice |
| 383 | |
| 384 | variable (C) |
| 385 | |
| 386 | /-- Let `d` be a prime `≡ 7 (mod 8)` and `K = ℚ(√-d)`. A CM datum is a lattice stable under `𝓞 K` |
| 387 | with a point `t` of order two such that neither `ω t` nor `ω̄ t` lies in it (`ω = (1 + √-d)/2`), |
| 388 | scaled so `℘''(t) = 2`, and with a square root `a₁` of `12 ℘(t)`. For a CM datum `C` and an |
| 389 | automorphism `σ` of `ℂ` over `K`, every lattice `L` whose invariants are `σ C.g₂` and `σ C.g₃` |
| 390 | carries a CM datum whose `a₁` is `σ C.a₁`. -/ |
| 391 | lemma exists_galConjugate_of_g₂_g₃ (L : PeriodPair) (hg₂ : L.g₂ = σ C.g₂) (hg₃ : L.g₃ = σ C.g₃) : |
| 392 | ∃ C' : CMLattice d, C'.periodPair = L ∧ C'.a₁ = σ C.a₁ := by |
| 393 | -- Take the point `t` of order two of `L` at which `℘` has the conjugate value. |
| 394 | obtain ⟨t, ht, ht_wp, ht_wp'⟩ := L.exists_weierstrassP_eq_of_cubic |
| 395 | (σ (C.weierstrassP C.t)) 0 (by grind [g₃_eq, map_ofNat]) |
| 396 | -- For `d = 0` no complex multiplication is asked, so this is already a datum `D : CMLattice 0`. |
| 397 | let D : CMLattice 0 := { |
| 398 | periodPair := L, t, a₁ := σ C.a₁, t_notMem := ht |
| 399 | g₂_eq := by simp [hg₂, g₂_eq, ht_wp, map_ofNat] |
| 400 | two_t_mem := by simpa [two_mul] using (L.derivWeierstrassP_eq_zero_iff t).1 ht_wp' |
| 401 | a₁_sq := by simp [← map_pow, a₁_sq, ht_wp, map_ofNat] |
| 402 | mul_mem_of_quadInt := fun {h} ↦ absurd rfl h.out |
| 403 | quadGen_mul_t_notMem := fun {h} ↦ absurd rfl h.out } |
| 404 | -- Conjugating the endomorphisms `a ∈ quadInt d` of `C`, which `σ` fixes, supplies the rest. |
| 405 | have h_end {a : ℂ} (ha : a ∈ quadInt d) : |
| 406 | (∀ l ∈ D.Λ, a * l ∈ D.Λ) ∧ (a * D.t ∈ D.Λ → a * C.t ∈ C.Λ) := by |
| 407 | obtain ⟨N, hN⟩ := exists_isIsogeny_of_mul_mem_lattice (C.mul_mem_of_quadInt ha) |
| 408 | have hσ := map_eq_self_of_mem_quadInt σ ha |
| 409 | exact ⟨fun l hl ↦ hσ ▸ conj_isogeny_mul_mem_lattice σ rfl rfl hN hl, |
| 410 | fun h ↦ mul_t_mem_of_conj_isogeny_mul_t_mem σ rfl rfl hN (hσ.symm ▸ h)⟩ |
| 411 | exact ⟨{ D with |
| 412 | mul_mem_of_quadInt := fun ha ↦ (h_end ha).1 |
| 413 | quadGen_mul_t_notMem := ⟨mt (h_end quadGen_mem_quadInt).2 C.quadGen_mul_t_notMem.1, |
| 414 | mt (h_end (conj_mem_quadInt quadGen_mem_quadInt)).2 C.quadGen_mul_t_notMem.2⟩ }, rfl, rfl⟩ |
| 415 | |
| 416 | /-- For a CM datum `C` with `d` a prime `≡ 7 (mod 8)` and an automorphism `σ` of `ℂ` over |
| 417 | `K = ℚ(√-d)` there is a CM datum whose number `a₁` is the conjugate `σ C.a₁` of that of `C`. |
| 418 | The proof takes the lattice with the invariants `σ g₂`, `σ g₃`. -/ |
| 419 | lemma exists_galConjugate : ∃ C' : CMLattice d, C'.a₁ = σ C.a₁ := by |
| 420 | obtain ⟨L, hg₂, hg₃⟩ : ∃ L : PeriodPair, L.g₂ = σ C.g₂ ∧ L.g₃ = σ C.g₃ := |
| 421 | PeriodPair.exists_g₂_g₃_eq |
| 422 | (by simpa [map_ofNat] using σ.injective.ne (weierstrass_disc_ne_zero C.periodPair)) |
| 423 | obtain ⟨C', -, h_a₁⟩ := C.exists_galConjugate_of_g₂_g₃ σ L hg₂ hg₃ |
| 424 | exact ⟨C', h_a₁⟩ |
| 425 | |
| 426 | /-- The conjugate curve: a chosen CM lattice whose number `a₁` is `σ C.a₁`, see |
| 427 | `New.CMLattice.galConjugate_a₁`. -/ |
| 428 | noncomputable def galConjugate : CMLattice d := (C.exists_galConjugate σ).choose |
| 429 | |
| 430 | /-- For `d` a prime `≡ 7 mod 8` and `σ` an automorphism of `ℂ` fixing `QuadField d = ℚ(√-d)`, the |
| 431 | Galois conjugate `C.galConjugate σ` of a CM lattice `C` has number `a₁` equal to `σ C.a₁`. Here `a₁` |
| 432 | is the chosen square root of `12 ℘(t)`, for `t` the 2-torsion point of `C`. -/ |
| 433 | lemma galConjugate_a₁ : (C.galConjugate σ).a₁ = σ C.a₁ := (C.exists_galConjugate σ).choose_spec |
| 434 | |
| 435 | end CMLattice |
| 436 | |
| 437 | /-! ### The theta function of a conjugate datum -/ |
| 438 | |
| 439 | omit [PrimeSevenModEight d] in |
| 440 | /-- A section is fixed by its zeros up to a constant. Let `a ≠ 0` and let `g(z) = (T_u θ)(a z)`, |
| 441 | with `θ` and the twisted translation `T_u` formed for a CM datum `E`, be a section of degree `m` of |
| 442 | `C`. A section `f` of degree `m` of `C` that vanishes at the zeros of `g` is a constant multiple of |
| 443 | `g`. -/ |
| 444 | lemma CMLattice.exists_eq_const_mul_twistedTranslate_theta (C : CMLattice d) {e m : ℕ} |
| 445 | (E : CMLattice e) {f : ℂ → ℂ} {u a : ℂ} (ha : a ≠ 0) |
| 446 | (hg : (fun z : ℂ ↦ E.twistedTranslate 1 u E.θ (a * z)) ∈ C.sections m) (hf : f ∈ C.sections m) |
| 447 | (h_zero : ∀ z : ℂ, E.twistedTranslate 1 u E.θ (a * z) = 0 → f z = 0) : |
| 448 | ∃ c : ℂ, ∀ z : ℂ, f z = c * E.twistedTranslate 1 u E.θ (a * z) := by |
| 449 | -- The quotient `q`, with `q * g = f`, is a section of degree `0`, hence constant. |
| 450 | obtain ⟨q, hq_const, hq⟩ := C.exists_mul_eq_of_mem_sections E u C.sections_zero_le_const hg hf ha |
| 451 | rfl h_zero |
| 452 | obtain ⟨c, rfl⟩ := Submodule.mem_one.1 hq_const |
| 453 | exact ⟨c, fun z ↦ by simp [← hq]⟩ |
| 454 | |
| 455 | /-- Let `a ≠ 0` be an isogeny from `C` to `D` of degree `N`, let the invariants `a₁` of `C'`, `D'` |
| 456 | be the `σ`-conjugates of those of `C`, `D`, and let `σ a` be an isogeny from `C'` to `D'` of |
| 457 | degree `N` (the classes `PrimeSevenModEight` say that `d`, `d'` are primes ≡ 7 mod 8). Then the |
| 458 | quotient `θ' / σ θ` of Taylor series of theta functions (`thetaQuotient`) for `D` and `D'`, taken |
| 459 | at `σ a * z`, is the `N`-th power of that for `C` and `C'`. -/ |
| 460 | lemma rescale_thetaQuotient_of_conj_isogeny [PrimeSevenModEight d'] {C' D' : CMLattice d'} {N : ℕ} |
| 461 | (hC : C'.a₁ = σ C.a₁) (hD : D'.a₁ = σ D.a₁) (ha : C.IsIsogeny D.periodPair a N) (ha₀ : a ≠ 0) |
| 462 | (h_isog : C'.IsIsogeny D'.periodPair (σ a) N) : |
| 463 | rescale (σ a) (thetaQuotient D σ D') = thetaQuotient C σ C' ^ N := by |
| 464 | obtain ⟨A, -, B, hB, -, hB_zero, -, hB_ser, h_quot⟩ := exists_conj_isogeny_sections σ hC hD ha |
| 465 | -- `B` and `D'.θ (σ a * z)` are sections of degree `N` and the first vanishes at the zeros of |
| 466 | -- the second, so their quotient is constant; both are 1 at 0, so they are equal. |
| 467 | have h_zero (z : ℂ) (hz : D'.θ (σ a * z) = 0) : B z = 0 := by |
| 468 | have h_notMem : σ a * z ∉ D'.Λ := fun h ↦ |
| 469 | D'.t_notMem ((add_mem_cancel_left h).1 (D'.theta_eq_zero_iff.1 hz)) |
| 470 | simpa [hz, h_notMem] using h_quot z |
| 471 | have hB_eq : B = fun z ↦ D'.θ (σ a * z) := by |
| 472 | obtain ⟨c, hc⟩ : ∃ c : ℂ, ∀ z : ℂ, B z = c * D'.θ (σ a * z) := by |
| 473 | simpa using C'.exists_eq_const_mul_twistedTranslate_theta D' (u := 0) (a := σ a) |
| 474 | (by simpa using ha₀) (by simpa using C'.comp_mul_mem_sections h_isog D'.theta_mem) hB |
| 475 | (by simpa using h_zero) |
| 476 | obtain rfl : 1 = c := by simpa [hB_zero] using hc 0 |
| 477 | simpa [funext_iff] using hc |
| 478 | have hθ : taylorAtZero D'.θ = thetaQuotient D σ D' * taylorVia (↑σ) D.θ := by |
| 479 | simpa [monomialSection] using taylorAtZero_monomialSection σ hD (1, 0, 0) |
| 480 | -- Compare the two forms of the series of `B` and cancel the conjugate series of `D.θ (a * z)`. |
| 481 | have h_series : rescale (σ a) (taylorAtZero D'.θ) = |
| 482 | thetaQuotient C σ C' ^ N * rescale (σ a) (taylorVia σ D.θ) := by |
| 483 | simpa [taylorVia, ← rescale_map, hB_eq] using hB_ser |
| 484 | rw [hθ, map_mul] at h_series |
| 485 | exact mul_right_cancel₀ (ne_of_apply_ne (coeff 0) (by simp)) h_series |
| 486 | |
| 487 | /-- For a prime `d ≡ 7 (mod 8)` the number `ω = (1 + i√d) / 2` has modulus greater than 1. -/ |
| 488 | lemma one_lt_norm_quadGen : 1 < ‖quadGen d‖ := by |
| 489 | have hd : (3 : ℝ) < d := mod_cast (by grind [PrimeSevenModEight] : 3 < d) |
| 490 | have h_sq : ‖quadGen d‖ ^ 2 = (1 + d) / 4 := by |
| 491 | norm_num [quadGen, div_pow, Complex.sq_norm, Complex.normSq_apply] |
| 492 | nlinarith [norm_nonneg (quadGen d)] |
| 493 | |
| 494 | namespace CMLattice |
| 495 | |
| 496 | /-- Let `d` be a prime `≡ 7 (mod 8)` and `σ` an automorphism of `ℂ` over `ℚ(√-d)`. Let `C`, `D` be |
| 497 | CM lattices, each a lattice stable under `𝓞_K` with a point `t` of order two scaled so that |
| 498 | `℘''(t) = 2`, a square root `a₁` of `12 ℘(t)`, and a theta function. If `D.a₁ = σ C.a₁`, the Taylor |
| 499 | series of the theta function of `D` is the `σ`-conjugate of that of `C`: the quotient `θ' / σ θ` is |
| 500 | 1. -/ |
| 501 | lemma thetaQuotient_eq_one (hD : D.a₁ = σ C.a₁) : thetaQuotient C σ D = 1 := by |
| 502 | -- Write `q = thetaQuotient C σ D`, `ω = quadGen d`, and suppose `q - 1 = X ^ n * W` with |
| 503 | -- `W 0 ≠ 0`. The relation `q (ω z) = q ^ (ω ω̄)` gives `ω ^ n = ω ω̄` in degree `n`; moduli give |
| 504 | -- `n = 2`, so `ω` would be real. |
| 505 | by_contra h_ne |
| 506 | obtain ⟨n, W, hW, h_fac⟩ : |
| 507 | ∃ (n : ℕ) (W : ℂ⟦X⟧), ¬X ∣ W ∧ thetaQuotient C σ D - 1 = X ^ n * W := |
| 508 | WfDvdMonoid.max_power_factor (sub_ne_zero.2 h_ne) irreducible_X |
| 509 | let ω : ℂ := quadGen d |
| 510 | have hω_mem : ω ∈ quadInt d := quadGen_mem_quadInt |
| 511 | have hω_norm : 1 < ‖ω‖ := one_lt_norm_quadGen |
| 512 | have hω_ne : ω ≠ 0 := norm_pos_iff.1 (one_pos.trans hω_norm) |
| 513 | obtain ⟨N, hN⟩ := exists_isIsogeny_of_mul_mem_lattice (C.mul_mem_of_quadInt hω_mem) |
| 514 | have h_norm : ω * star ω = N := hN.mul_conj_eq |
| 515 | have h_rescale : rescale ω (thetaQuotient C σ D - 1) = thetaQuotient C σ D ^ N - 1 := by |
| 516 | have h_isog : D.IsIsogeny D.periodPair (σ ω) N := by |
| 517 | simpa [hω_mem] using ⟨D.mul_mem_of_quadInt hω_mem, by simp [← h_norm]⟩ |
| 518 | simpa [hω_mem] using rescale_thetaQuotient_of_conj_isogeny σ hD hD hN hω_ne h_isog |
| 519 | -- The coefficients of `X ^ n` are `ω ^ n * W 0` and `W 0 * N`, as `q` has constant term 1. |
| 520 | have h_pow : ω ^ n = ω * star ω := by |
| 521 | have h_series : rescale ω (X ^ n * W) = |
| 522 | X ^ n * (W * ∑ i ∈ Finset.range N, thetaQuotient C σ D ^ i) := by |
| 523 | rw [← mul_assoc, ← h_fac, mul_geom_sum, h_rescale] |
| 524 | have h_coeff : ω ^ n * constantCoeff W = constantCoeff W * N := by |
| 525 | simpa [coeff_X_pow_mul', thetaQuotient] using |
| 526 | (coeff_rescale ..).symm.trans (congrArg (coeff n) h_series) |
| 527 | rw [h_norm] |
| 528 | exact mul_right_cancel₀ (mt X_dvd_iff.2 hW) (h_coeff.trans (mul_comm _ _)) |
| 529 | obtain rfl : n = 2 := by |
| 530 | have h_moduli : ‖ω‖ ^ n = ‖ω‖ ^ 2 := by rw [← norm_pow, h_pow, norm_mul, norm_star, sq] |
| 531 | exact pow_right_injective₀ (by positivity) hω_norm.ne' h_moduli |
| 532 | -- This is absurd: `ω = (1 + i√d) / 2` has a nonzero imaginary part. |
| 533 | have h_real : ω = star ω := mul_left_cancel₀ hω_ne (by rw [← h_pow, sq]) |
| 534 | simp [ω, quadGen, Complex.ext_iff, NeZero.ne, eq_neg_iff_add_eq_zero] at h_real |
| 535 | |
| 536 | /-- If `D.a₁ = σ C.a₁` for an automorphism `σ` of `ℂ` over `K`, the Taylor series at 0 of every |
| 537 | monomial section of `D` is the `σ`-conjugate of that of `C`. -/ |
| 538 | lemma taylorAtZero_monomialSection_eq_taylorVia {C D : CMLattice d} (hD : D.a₁ = σ C.a₁) |
| 539 | (j : ℕ × ℕ × ℕ) : taylorAtZero (D.monomialSection j) = taylorVia σ (C.monomialSection j) := by |
| 540 | simpa [thetaQuotient_eq_one σ hD] using taylorAtZero_monomialSection σ hD j |
| 541 | |
| 542 | /-- If `D.a₁ = σ C.a₁` for an automorphism `σ` of `ℂ` over `K`, the Taylor series at 0 of the |
| 543 | theta function of `D` is the `σ`-conjugate of that of `C`. -/ |
| 544 | lemma taylorAtZero_theta_eq_taylorVia (hD : D.a₁ = σ C.a₁) : |
| 545 | taylorAtZero D.θ = taylorVia σ C.θ := by |
| 546 | simpa [monomialSection] using taylorAtZero_monomialSection_eq_taylorVia σ hD (1, 0, 0) |
| 547 | |
| 548 | /-! ### Translates of θ by torsion points -/ |
| 549 | |
| 550 | variable (C D) |
| 551 | |
| 552 | section |
| 553 | |
| 554 | omit [PrimeSevenModEight d] |
| 555 | |
| 556 | /-- The twisted translate of `θ` by `u + u` takes the value `θ u` at `-u`. -/ |
| 557 | lemma twistedTranslate_add_self_apply_neg (u : ℂ) : |
| 558 | C.twistedTranslate 1 (u + u) C.θ (-u) = C.θ u := by |
| 559 | -- `hermitianForm` stays folded: the exponent of the translate vanishes by linearity alone. |
| 560 | simp [thetaShift_apply, -hermitianForm_apply] |
| 561 | |
| 562 | /-- If `θ u = 0`, the twisted translate of `θ` by `u + u` takes the value `-1` at 0. -/ |
| 563 | lemma twistedTranslate_add_self_apply_zero {u : ℂ} (hu : C.θ u = 0) : |
| 564 | C.twistedTranslate 1 (u + u) C.θ 0 = -1 := by |
| 565 | -- Here `u + C.t` is a period, hence so are `u + u` and `u - C.t`, and the sign is `-1`. |
| 566 | have h_add : u + C.t ∈ C.Λ := C.theta_eq_zero_iff.1 hu |
| 567 | have h_two : u + u ∈ C.Λ := by simpa using add_mem h_add (sub_mem h_add C.two_t_mem) |
| 568 | have h_half : (u + u) / 2 - C.t ∈ C.Λ := by simpa using sub_mem h_add C.two_t_mem |
| 569 | rw [(C.twistedTranslate_theta_eq_neg_iff h_two).mpr h_half, Pi.neg_apply, theta_zero] |
| 570 | |
| 571 | /-- Let `N u` be a period of `C` for a natural number `N`, and let `l` be a period. Then the |
| 572 | twisted translate `z ↦ exp (-π (z ū + |u|² / 2) / area Λ) * θ (z + u)` of the theta function by the |
| 573 | point `u + 2 N l` is its twisted translate by `u`. -/ |
| 574 | lemma twistedTranslate_theta_add_two_mul (C : CMLattice d) {u l : ℂ} {N : ℕ} |
| 575 | (hu : (N : ℂ) * u ∈ C.Λ) (hl : l ∈ C.Λ) : |
| 576 | C.twistedTranslate 1 (u + 2 * N * l) C.θ = C.twistedTranslate 1 u C.θ := by |
| 577 | -- Moving by the period `2 N l` multiplies the translate by the multiplier there, which is `1`, |
| 578 | -- and by `exp (-π i E(u, 2 N l)) = exp (-2 π i E(N u, l)) = 1`, as `E(N u, l)` is an integer. |
| 579 | have h_Nl : (N : ℂ) * l ∈ C.Λ := by simpa using nsmul_mem hl N |
| 580 | have h_period : 2 * N * l ∈ C.Λ := by simpa [two_mul, add_mul] using add_mem h_Nl h_Nl |
| 581 | have h_multiplier : C.multiplier (2 * N * l) = 1 := by |
| 582 | have h_eq : (C.t + C.t + 2 * N * l) / 2 = C.t + N * l := by ring |
| 583 | simp [C.multiplier_eq_neg_sigmaSign h_period, sigmaSign, h_eq, add_mem_cancel_right h_Nl, |
| 584 | C.t_notMem] |
| 585 | obtain ⟨k, hk⟩ : ∃ k : ℤ, C.hermitianForm.riemannForm (N * u) l = k := |
| 586 | C.isAppellHumbert_multiplier.le_dualLattice hu l hl |
| 587 | have h_form : (1 • C.hermitianForm).riemannForm u (2 * N * l) = 2 * k := by |
| 588 | simp [← hk, riemannForm_hermitianForm] |
| 589 | ring |
| 590 | have h_phase : Complex.exp |
| 591 | (-(Real.pi * Complex.I * (1 • C.hermitianForm).riemannForm u (2 * N * l))) = 1 := by |
| 592 | rw [h_form, Complex.exp_eq_one_iff] |
| 593 | exact ⟨-k, by push_cast; ring⟩ |
| 594 | rw [CMLattice.twistedTranslate, IsAppellHumbert.thetaShift_add_eq_smul_of_mem C.theta_mem u |
| 595 | h_period, |
| 596 | h_phase, pow_one, h_multiplier, one_mul, one_smul] |
| 597 | |
| 598 | end |
| 599 | |
| 600 | /-- Let `e` and `m` be nonzero natural numbers such that `Ω e` and `m s Ω` are periods of `C`, and |
| 601 | let `(s' - s) / (2 m e)` be integral. Then the translate of `θ` by `s' Ω` is its translate by |
| 602 | `s Ω`. -/ |
| 603 | lemma twistedTranslate_theta_eq_of_isIntegral (C : CMLattice d) {Ω : ℂ} {e m : ℕ} |
| 604 | {s s' : QuadField d} (he : e ≠ 0) (hm : m ≠ 0) (hΩ : Ω * e ∈ C.Λ) (hs : (m : ℂ) * (s * Ω) ∈ C.Λ) |
| 605 | (h_int : IsIntegral ℤ ((s' - s) / ((2 * m * e : ℕ) : QuadField d))) : |
| 606 | C.twistedTranslate 1 (s' * Ω) C.θ = C.twistedTranslate 1 (s * Ω) C.θ := by |
| 607 | -- `s' Ω = s Ω + 2 m l` with the period `l = k Ω e`, where `k = (s' - s) / (2 m e)`. |
| 608 | let k : QuadField d := (s' - s) / ((2 * m * e : ℕ) : QuadField d) |
| 609 | have hl : (k : ℂ) * (Ω * e) ∈ C.Λ := C.mul_mem_of_quadInt ⟨⟨k, h_int⟩, rfl⟩ hΩ |
| 610 | have h_split : (s' : ℂ) * Ω = s * Ω + 2 * m * (k * (Ω * e)) := by |
| 611 | push_cast [k, show ((2 : QuadField d) : ℂ) = 2 from map_ofNat (QuadField d).val 2] |
| 612 | field |
| 613 | rw [h_split, C.twistedTranslate_theta_add_two_mul hs hl] |
| 614 | |
| 615 | /-- Let `n` be an integer with `n s ∈ 𝓞_K`, and let `v` be a period of `C`. The translate of |
| 616 | `θ` by `s v`, taken at `n z`, is a section of degree `n²`. -/ |
| 617 | lemma twistedTranslate_theta_comp_intCast_mul_mem (C : CMLattice d) {n : ℤ} {s v : ℂ} |
| 618 | (hs : n * s ∈ quadInt d) (hv : v ∈ C.Λ) : |
| 619 | (fun z : ℂ ↦ C.twistedTranslate 1 (s * v) C.θ (n * z)) ∈ C.sections (1 * (n * n).natAbs) := by |
| 620 | have h_per : n * (s * v) ∈ C.Λ := by simpa [mul_assoc] using C.mul_mem_of_quadInt hs hv |
| 621 | have h_isog : C.IsIsogeny C.periodPair (starRingEnd ℂ n) (n * n).natAbs := |
| 622 | ⟨fun l hl ↦ by simpa using zsmul_mem hl n, by simp⟩ |
| 623 | simpa using C.twistedTranslate_comp_mem h_isog h_per |
| 624 | |
| 625 | /-- Suppose that for all `m`, every section `f` of `D` of degree `m` has a `σ`-conjugate section of |
| 626 | `C` with value `μ ^ m * σ (f u')` at `u`, `σ` being an automorphism of `ℂ` over `K`. Then for |
| 627 | `a ∈ quadInt d` there is one `N` such that, for all `m` and all such `f`, every entire function with |
| 628 | Taylor series conjugate to that of `f` takes the value `μ ^ (m N) * σ (f (a u'))` at `a u`. -/ |
| 629 | lemma exists_forall_apply_mul_eq_pow_mul {C D : CMLattice d} {a u u' μ : ℂ} (ha : a ∈ quadInt d) |
| 630 | (transport : ∀ {m : ℕ} {f : ℂ → ℂ}, f ∈ D.sections m → |
| 631 | ∃ g ∈ C.sections m, taylorAtZero g = taylorVia σ f ∧ g u = μ ^ m * σ (f u')) : |
| 632 | ∃ N : ℕ, ∀ {m : ℕ} {f g : ℂ → ℂ}, f ∈ D.sections m → taylorAtZero g = taylorVia σ f → |
| 633 | Differentiable ℂ g → g (a * u) = μ ^ (m * N) * σ (f (a * u')) := by |
| 634 | obtain ⟨N, hN⟩ := exists_isIsogeny_of_mul_mem_lattice (D.mul_mem_of_quadInt ha) |
| 635 | refine ⟨N, fun {m f g} hf hfg hg ↦ ?_⟩ |
| 636 | -- Transport `f (a z)`; by uniqueness of Taylor series the result is `g (a z)`. |
| 637 | obtain ⟨G, hG, hG_ser, hG_val⟩ := transport (D.comp_mul_mem_sections hN hf) |
| 638 | obtain rfl : G = fun z : ℂ ↦ g (a * z) := by |
| 639 | refine eq_of_taylorAtZero_eq hG.1 (by fun_prop) ?_ |
| 640 | simp (disch := fun_prop) [hG_ser, hfg, taylorVia, ← rescale_map, |
| 641 | map_eq_self_of_mem_quadInt σ ha] |
| 642 | exact hG_val |
| 643 | |
| 644 | /-- In the situation of `exists_forall_apply_mul_eq_pow_mul` (each section `f` of degree `m` of `D` |
| 645 | gives a section of `C` with conjugate series and value `μ ^ m * σ (f u')` at `u`; `a ∈ quadInt d`) |
| 646 | let `μ ≠ 0`. If the Taylor series of the entire function `g` is conjugate to that of the section `f` |
| 647 | of `D`, then `g` vanishes at `a u` exactly when `f` vanishes at `a u'`. -/ |
| 648 | lemma apply_mul_eq_zero_iff_of_transport {C D : CMLattice d} {a u u' μ : ℂ} {m : ℕ} {f g : ℂ → ℂ} |
| 649 | (hμ : μ ≠ 0) (ha : a ∈ quadInt d) |
| 650 | (transport : ∀ {m : ℕ} {f : ℂ → ℂ}, f ∈ D.sections m → |
| 651 | ∃ g ∈ C.sections m, taylorAtZero g = taylorVia σ f ∧ g u = μ ^ m * σ (f u')) |
| 652 | (hf : f ∈ D.sections m) (hfg : taylorAtZero g = taylorVia σ f) (hg : Differentiable ℂ g) : |
| 653 | g (a * u) = 0 ↔ f (a * u') = 0 := by |
| 654 | obtain ⟨N, hN⟩ := exists_forall_apply_mul_eq_pow_mul σ ha transport |
| 655 | simp [hN hf hfg hg, hμ] |
| 656 | |
| 657 | /-- If the lattice of `C` is `2 n² w 𝓞_K` and the translate of `θ` by `2 n² s w` vanishes |
| 658 | at `n z`, then `z = (b - 2 n s) w` for some `b ∈ quadInt d`. -/ |
| 659 | lemma exists_quadInt_of_twistedTranslate_theta_eq_zero (C : CMLattice d) {n : ℤ} {s w z : ℂ} |
| 660 | (hΛ : ∀ {l : ℂ}, l ∈ C.latticeModule ↔ ∃ a ∈ quadInt d, 2 * n ^ 2 * w * a = l) |
| 661 | (hz : C.twistedTranslate 1 (s * (2 * n ^ 2 * w)) C.θ (n * z) = 0) : |
| 662 | ∃ b ∈ quadInt d, z = (b - (n * s + n * s)) * w := by |
| 663 | have hn : n ≠ 0 := by |
| 664 | intro hn |
| 665 | obtain ⟨a, -, h_period⟩ := hΛ.1 C.two_t_mem |
| 666 | have h_double : C.t + C.t = 0 := by simpa [hn] using h_period.symm |
| 667 | have h_t : C.t = 0 := by linear_combination h_double / 2 |
| 668 | exact C.t_notMem (h_t ▸ zero_mem C.Λ) |
| 669 | replace hz : n * z + s * (2 * n ^ 2 * w) + C.t ∈ C.Λ := by simpa [thetaShift_apply] using hz |
| 670 | -- Twice a point congruent to `C.t` modulo the lattice is a period. |
| 671 | obtain ⟨b, hb, hb_eq⟩ : ∃ b ∈ quadInt d, 2 * n ^ 2 * w * b = |
| 672 | n • (n * z + s * (2 * n ^ 2 * w) + C.t + (n * z + s * (2 * n ^ 2 * w) + C.t - |
| 673 | (C.t + C.t))) := |
| 674 | hΛ.1 (zsmul_mem (add_mem hz (sub_mem hz C.two_t_mem)) n) |
| 675 | refine ⟨b, hb, mul_left_cancel₀ (a := (2 * n ^ 2 : ℂ)) (by simp [hn]) ?_⟩ |
| 676 | rw [zsmul_eq_mul] at hb_eq |
| 677 | linear_combination -hb_eq |
| 678 | |
| 679 | /-- `sections m` are the theta functions with form `m H` and multiplier `χ^m`; |
| 680 | `twistedTranslate m y f` is `z ↦ exp(−mπ(zȳ + |y|²/2)/A) f(z + y)`, `A` the area of `Λ`; `quadInt d` |
| 681 | is the image of `𝓞_K` in `ℂ`. Suppose the Taylor series of `C.θ` at 0 is the `σ`-conjugate of that |
| 682 | of `D.θ`. Suppose also that each degree-`m` section `f` of `D` gives a section `g` of `C` with |
| 683 | conjugate series and `g w = μ^m σ(f w')`, where `μ ≠ 0`. Let `n s ∈ quadInt d` and `2 n² w' ∈ D.Λ`. |
| 684 | If `c` times the degree-1 translate of `C.θ` by `s 2n² w`, at `n z`, is a degree-`n²` section whose |
| 685 | series is the conjugate of that of the translate of `D.θ` by `s 2n² w'` at `n z`, then `c = 1`. -/ |
| 686 | lemma eq_one_of_taylorVia_twistedTranslate_theta {C D : CMLattice d} {n : ℤ} {s w w' c μ : ℂ} |
| 687 | (hμ : μ ≠ 0) (hs : n * s ∈ quadInt d) (hv : 2 * n ^ 2 * w' ∈ D.Λ) |
| 688 | (hθ : taylorAtZero C.θ = taylorVia σ D.θ) |
| 689 | (transport : ∀ {m : ℕ} {f : ℂ → ℂ}, f ∈ D.sections m → |
| 690 | ∃ g ∈ C.sections m, taylorAtZero g = taylorVia σ f ∧ g w = μ ^ m * σ (f w')) |
| 691 | (hg : (fun z : ℂ ↦ c * C.twistedTranslate 1 (s * (2 * n ^ 2 * w)) C.θ (n * z)) ∈ |
| 692 | C.sections (1 * (n * n).natAbs)) |
| 693 | (hg_ser : taylorAtZero (fun z : ℂ ↦ |
| 694 | c * C.twistedTranslate 1 (s * (2 * n ^ 2 * w)) C.θ (n * z)) = |
| 695 | taylorVia σ (fun z : ℂ ↦ D.twistedTranslate 1 (s * (2 * n ^ 2 * w')) D.θ (n * z))) : |
| 696 | c = 1 := by |
| 697 | -- The translate is by `2 p`, `p = n² s w`. At `n z = -p` its exponential factor is 1, so its |
| 698 | -- value is `θ_C p`, as is that of `θ_C (n z)`; likewise for `D`. If `θ_C p = 0`, both translates |
| 699 | -- take the value `-1` at 0. |
| 700 | have h_scaled_mem (E : CMLattice d) : |
| 701 | (fun z : ℂ ↦ E.θ (n * z)) ∈ E.sections (1 * (n * n).natAbs) := by |
| 702 | simpa using E.twistedTranslate_theta_comp_intCast_mul_mem hs (zero_mem _) |
| 703 | obtain ⟨N, hN⟩ : ∃ N : ℕ, ∀ {m : ℕ} {f g : ℂ → ℂ}, f ∈ D.sections m → |
| 704 | taylorAtZero g = taylorVia σ f → Differentiable ℂ g → |
| 705 | g (-(n * s) * w) = μ ^ (m * N) * σ (f (-(n * s) * w')) := |
| 706 | exists_forall_apply_mul_eq_pow_mul σ (neg_mem hs) transport |
| 707 | have h_shift : c * C.twistedTranslate 1 (s * (2 * n ^ 2 * w)) C.θ (-(n * (n * s * w))) = |
| 708 | μ ^ ((n * n).natAbs * N) * |
| 709 | σ (D.twistedTranslate 1 (s * (2 * n ^ 2 * w')) D.θ (-(n * (n * s * w')))) := by |
| 710 | simpa using hN (D.twistedTranslate_theta_comp_intCast_mul_mem hs hv) hg_ser hg.1 |
| 711 | have h_plain : C.θ (n * (n * s * w)) = |
| 712 | μ ^ ((n * n).natAbs * N) * σ (D.θ (n * (n * s * w'))) := by |
| 713 | have h_scaled : taylorAtZero (fun z : ℂ ↦ C.θ (n * z)) = |
| 714 | taylorVia σ (fun z : ℂ ↦ D.θ (n * z)) := ext (by simp [hθ]) |
| 715 | simpa using hN (h_scaled_mem D) h_scaled (h_scaled_mem C).1 |
| 716 | have h_origin : c * C.twistedTranslate 1 (s * (2 * n ^ 2 * w)) C.θ 0 = |
| 717 | σ (D.twistedTranslate 1 (s * (2 * n ^ 2 * w')) D.θ 0) := by |
| 718 | simpa using congrArg constantCoeff hg_ser |
| 719 | have h_double (v : ℂ) : s * (2 * n ^ 2 * v) = n * (n * s * v) + n * (n * s * v) := by ring |
| 720 | rw [h_double, h_double] at h_shift h_origin |
| 721 | by_cases hp : C.θ (n * (n * s * w)) = 0 |
| 722 | · have hq : D.θ (n * (n * s * w')) = 0 := by simpa [hp, hμ] using h_plain |
| 723 | rw [C.twistedTranslate_add_self_apply_zero hp, |
| 724 | D.twistedTranslate_add_self_apply_zero hq] at h_origin |
| 725 | simpa using h_origin |
| 726 | · rw [twistedTranslate_add_self_apply_neg, twistedTranslate_add_self_apply_neg, |
| 727 | ← h_plain] at h_shift |
| 728 | exact (mul_eq_right₀ hp).1 h_shift |
| 729 | |
| 730 | /-- Let `d` be a prime `≡ 7 (mod 8)` and `K = ℚ(√-d)`. Let `C`, `D` be CM lattices, each a lattice |
| 731 | stable under `𝓞_K` with a point `t` of order two scaled so that `℘''(t) = 2`, a square root `a₁` of |
| 732 | `12 ℘(t)`, and a theta function `θ`. Suppose `D.a₁ = σ C.a₁` for an automorphism `σ` of `ℂ` over |
| 733 | `K`, and the lattice of `C` is `Ω 𝓞_K`. Then for every finite set `S ⊆ K` there is a period `v` of |
| 734 | `D` such that, for all `s ∈ S`, applying `σ` to the Taylor coefficients at 0 of the translate of `θ` |
| 735 | by `s Ω` gives those of the translate by `s v` of the theta function of `D`. The translate by `u` is |
| 736 | the twisted one, `z ↦ exp (-π (z ū + |u|² / 2) / area Λ) * θ (z + u)`. -/ |
| 737 | lemma exists_taylorVia_twistedTranslate_theta (hD : D.a₁ = σ C.a₁) (Ω : ℂ) |
| 738 | (hΛ : ∀ {z : ℂ}, z ∈ C.latticeModule ↔ ∃ a ∈ quadInt d, Ω * a = z) (S : Finset (QuadField d)) : |
| 739 | ∃ v ∈ D.latticeModule, ∀ s ∈ S, taylorVia σ (C.twistedTranslate 1 (s * Ω) C.θ) = |
| 740 | taylorAtZero (D.twistedTranslate 1 (s * v) D.θ) := by |
| 741 | -- Take `n ≠ 0` with `n S ⊆ 𝓞_K`, write `Ω = 2 n² w` and transport by `σ.symm` from `D` to `C`; |
| 742 | -- a point `w'` of `D` matches `w`, and `v = 2 n² w'`. The transport of `(T_{s v} θ_D)(n z)` |
| 743 | -- vanishes at the zeros of `(T_{s Ω} θ_C)(n z)`, so it is a multiple of it, and comparing |
| 744 | -- values gives the factor 1. |
| 745 | obtain ⟨n, hn, hS⟩ := exists_integral_multiples ℤ ℚ S |
| 746 | obtain ⟨w, rfl⟩ : (2 * n ^ 2 : ℂ) ∣ Ω := by simp [hn] |
| 747 | have hC : C.a₁ = σ.symm D.a₁ := by simp [hD] |
| 748 | have hΩ : 2 * n ^ 2 * w ∈ C.Λ := hΛ.2 ⟨1, by simp, mul_one _⟩ |
| 749 | -- As `thetaQuotient D σ.symm C = 1`, the transported series are plainly conjugate. |
| 750 | obtain ⟨w', μ, hμ, -, transport⟩ := exists_conjugate_section σ.symm hC w |
| 751 | simp only [thetaQuotient_eq_one σ.symm hC, one_pow, one_mul] at transport |
| 752 | have h_mon_zero {a : ℂ} (ha : a ∈ quadInt d) (j : ℕ × ℕ × ℕ) : |
| 753 | C.monomialSection j (a * w) = 0 ↔ D.monomialSection j (a * w') = 0 := |
| 754 | apply_mul_eq_zero_iff_of_transport σ.symm hμ ha transport (D.monomialSection_mem j) |
| 755 | (taylorAtZero_monomialSection_eq_taylorVia σ.symm hC j) (C.monomialSection_mem j).1 |
| 756 | -- The zeros of `C.σ ^ 2` and `D.σ ^ 2` are the periods. |
| 757 | have hv : 2 * n ^ 2 * w' ∈ D.Λ := by |
| 758 | simpa [monomialSection] using (h_mon_zero (mod_cast intCast_mem _ (2 * n ^ 2)) (0, 1, 0)).1 |
| 759 | (by simpa [monomialSection] using hΩ) |
| 760 | refine ⟨2 * n ^ 2 * w', hv, fun s hsS ↦ ?_⟩ |
| 761 | have hs : n * (s : ℂ) ∈ quadInt d := |
| 762 | ⟨⟨n * s, by simpa [zsmul_eq_mul, mem_integralClosure_iff] using hS s hsS⟩, rfl⟩ |
| 763 | have h_sec := D.twistedTranslate_theta_comp_intCast_mul_mem hs hv |
| 764 | -- `g` is the transport of the translate by `s v` of `D.θ`, taken at `n z`. |
| 765 | obtain ⟨g, hg, hg_ser, -⟩ := transport h_sec |
| 766 | obtain ⟨c, hc⟩ := C.exists_eq_const_mul_twistedTranslate_theta C (Int.cast_ne_zero.2 hn) |
| 767 | (C.twistedTranslate_theta_comp_intCast_mul_mem hs hΩ) hg fun z hz ↦ by |
| 768 | obtain ⟨b, hb, rfl⟩ := C.exists_quadInt_of_twistedTranslate_theta_eq_zero hΛ hz |
| 769 | have h_pt (u : ℂ) : |
| 770 | n * ((b - (n * s + n * s)) * u) + s * (2 * n ^ 2 * u) = n * b * u := by ring |
| 771 | refine (apply_mul_eq_zero_iff_of_transport σ.symm hμ (sub_mem hb (add_mem hs hs)) |
| 772 | transport h_sec hg_ser hg.1).2 ?_ |
| 773 | simpa [monomialSection, thetaShift_apply, h_pt] using |
| 774 | (h_mon_zero (zsmul_mem hb n) (1, 0, 0)).1 |
| 775 | (by simpa [monomialSection, thetaShift_apply, h_pt] using hz) |
| 776 | obtain rfl : g = _ := funext hc |
| 777 | obtain rfl : c = 1 := eq_one_of_taylorVia_twistedTranslate_theta σ.symm hμ hs hv |
| 778 | (taylorAtZero_theta_eq_taylorVia σ.symm hC) transport hg hg_ser |
| 779 | -- Apply `σ` to the `k`-th coefficient of `hg_ser` and undo the scaling by `n`. |
| 780 | ext k |
| 781 | simpa [hn] using congrArg σ (PowerSeries.ext_iff.1 hg_ser k) |
| 782 | |
| 783 | end CMLattice |
| 784 | |
| 785 | end New |
| 786 | |
| 787 | end ConjugateCurve |