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.Order.CompletePartialOrder |
| 4 | import TauCeti.RingTheory.PowerSeries.Rescale |
| 5 | import TauCeti.RingTheory.PowerSeries.Substitution |
| 6 | public import Lib.CM.FormalGroup.PrimeNotation |
| 7 | public import Lib.CM.FormalGroup.IntegralParameter |
| 8 | public import Lib.CM.Integrality.TorsionValues |
| 9 | import Lib.CM.Integrality.Doubling |
| 10 | import Lib.CM.Integrality.IntegralSections |
| 11 | import Lib.CM.Integrality.IsogenyIntegrality |
| 12 | import Lib.Cohomology.Etale.Basic |
| 13 | import Lib.General.NumberTheory.SUnitsAndClassNumber |
| 14 | |
| 15 | /-! |
| 16 | # The inseparable degree |
| 17 | |
| 18 | For `α ∈ 𝒪_K` let `o(α)` be the order in `y` of `y(α z) ∈ 𝒪[[y]]` modulo the maximal ideal of `𝒪`. |
| 19 | |
| 20 | * `New.CMLattice.insepDegree_le`: `o(α) ≤ α ᾱ` for `α ≠ 0`, since `x(α z)` is, up to a unit, an |
| 21 | integral polynomial in `x` with a unit coefficient in a degree at most `α ᾱ`. |
| 22 | * `New.CMLattice.insepDegree_piPrime_le`: `o(π_p) ≤ q_p` for every prime `p`. |
| 23 | |
| 24 | ## Notation |
| 25 | |
| 26 | * `C : CMLattice d` is a lattice `Λ` stable under `𝒪_K = quadInt d`, the ring of integers of |
| 27 | `K = ℚ(√-d)` in `ℂ`, with a point `t = C.t` of order two modulo `Λ`. |
| 28 | * `ιₚ : ℂ →+* ℂ_[p]` is the chosen place, `𝒪 = valRingCp p` is the valuation ring of `ℂ_[p]`, and |
| 29 | `seriesToCp` is the inclusion `𝒪[[X]] → ℂ_[p][[X]]`. |
| 30 | * `taylorVia ιₚ f` is the Taylor series of `f` at `0` with `ιₚ` applied to its coefficients. |
| 31 | * `x` and `y` are the series of `C.translatedX` and `C.translatedY`, the coordinates of the curve |
| 32 | `y ^ 2 + a₁ x y = x ^ 3 + x` at `z + t`, and `C.integralSeriesRing` is the ring `𝒪[[y]]`; `σ` is |
| 33 | the sigma function of `Λ` and `θ = C.θ` its normalised twisted translate by `t`, with `θ(0) = 1` |
| 34 | and `σ ^ 2 = x θ ^ 2`. |
| 35 | |
| 36 | ## Relation to the literature |
| 37 | |
| 38 | Known result: the inseparable degree of the reduction of an isogeny is at most its degree. This |
| 39 | gives the bound on the height of the formal group in Deuring's criterion. Sources: Deuring, Die |
| 40 | Typen der Multiplikatorenringe elliptischer Funktionenkörper; Blake, A Deuring criterion for abelian |
| 41 | varieties, arXiv 1311.5454, Theorem 1.1; Bluher, Formal groups, elliptic curves, and some theorems |
| 42 | of Couveignes, ANTS-III, LNCS 1423 (1998), 3.2 and 6.1 (numbering of arXiv math/9708215). |
| 43 | -/ |
| 44 | |
| 45 | @[expose] public section |
| 46 | |
| 47 | open PowerSeries IsLocalRing ComplexConjugate |
| 48 | |
| 49 | namespace New |
| 50 | |
| 51 | variable {p : ℕ} [Fact p.Prime] |
| 52 | |
| 53 | namespace CMLattice |
| 54 | variable {d : ℕ} (C : CMLattice d) [PadicPlace p] |
| 55 | |
| 56 | /-- The order in `y` of a series `f ∈ 𝒪[[y]]` modulo the maximal ideal of `𝒪`: write `f = g(y)` with |
| 57 | `g ∈ 𝒪[[X]]` and take the order of the reduction of `g`. Here `y` is the Taylor series of |
| 58 | `C.translatedY`. The value for `f` outside `𝒪[[y]]` has no meaning. -/ |
| 59 | noncomputable def reducedOrder (f : ℂ_[p]⟦X⟧) : ℕ∞ := |
| 60 | let expansion : (valRingCp p)⟦X⟧ := |
| 61 | Function.invFun (fun g ↦ subst (taylorVia ιₚ C.translatedY) (seriesToCp g)) f |
| 62 | (expansion.map (residue (valRingCp p))).order |
| 63 | |
| 64 | lemma constantCoeff_taylorVia_translatedY : constantCoeff (taylorVia ιₚ C.translatedY) = 0 := |
| 65 | C.isSeriesGenerator_translatedY.constantCoeff_eq_zero |
| 66 | |
| 67 | lemma coeff_one_taylorVia_translatedY : coeff 1 (taylorVia ιₚ C.translatedY) = 1 := |
| 68 | C.isSeriesGenerator_translatedY.coeff_one |
| 69 | |
| 70 | /-- For an integral series `g ∈ 𝒪[[X]]`, viewed in `ℂ_[p][[X]]` by `seriesToCp`, the reduced order |
| 71 | of `g(y)` is the order of the reduction of `g` modulo the maximal ideal of `𝒪`, where `y` is the |
| 72 | Taylor series of `C.translatedY`. -/ |
| 73 | lemma reducedOrder_subst_translatedY (g : (valRingCp p)⟦X⟧) : |
| 74 | C.reducedOrder (subst (taylorVia ιₚ C.translatedY) (seriesToCp g)) = |
| 75 | (g.map (residue (valRingCp p))).order := by |
| 76 | have h_inj : Function.Injective fun u : (valRingCp p)⟦X⟧ ↦ |
| 77 | (subst (taylorVia ιₚ C.translatedY) (seriesToCp u) : ℂ_[p]⟦X⟧) := |
| 78 | C.isSeriesGenerator_translatedY.subst_injective.comp seriesToCp_injective |
| 79 | rw [reducedOrder, Function.leftInverse_invFun h_inj g] |
| 80 | |
| 81 | /-- The reduced order (the order in `y` modulo the maximal ideal) is additive on products in |
| 82 | `C.integralSeriesRing = 𝒪[[y]]`. -/ |
| 83 | lemma reducedOrder_mul {f g : ℂ_[p]⟦X⟧} (hf : f ∈ C.integralSeriesRing) |
| 84 | (hg : g ∈ C.integralSeriesRing) : |
| 85 | C.reducedOrder (f * g) = C.reducedOrder f + C.reducedOrder g := by |
| 86 | obtain ⟨u, rfl⟩ := C.mem_integralSeriesRing.1 hf |
| 87 | obtain ⟨v, rfl⟩ := C.mem_integralSeriesRing.1 hg |
| 88 | rw [← subst_mul (.of_constantCoeff_zero' C.constantCoeff_taylorVia_translatedY), ← map_mul, |
| 89 | reducedOrder_subst_translatedY, map_mul, order_mul, reducedOrder_subst_translatedY, |
| 90 | reducedOrder_subst_translatedY] |
| 91 | |
| 92 | /-- Let `T ∈ C.integralSeriesRing = 𝒪[[y]]` have no constant term and let `g` be an integral series. |
| 93 | The reduced order of `g(T)` (its order in `y` modulo the maximal ideal) is the order of the |
| 94 | reduction of `g` times the reduced order of `T`. -/ |
| 95 | lemma reducedOrder_subst {T : ℂ_[p]⟦X⟧} (hT : T ∈ C.integralSeriesRing) (hT₀ : constantCoeff T = 0) |
| 96 | (g : (valRingCp p)⟦X⟧) : |
| 97 | C.reducedOrder (subst T (seriesToCp g)) = |
| 98 | (g.map (residue (valRingCp p))).order * C.reducedOrder T := by |
| 99 | -- With `T = u(y)` we have `g(T) = g(u)(y)`, and reduction commutes with substitution. |
| 100 | obtain ⟨u, rfl⟩ := C.mem_integralSeriesRing.1 hT |
| 101 | set y : ℂ_[p]⟦X⟧ := taylorVia ιₚ C.translatedY |
| 102 | have hy₀ : constantCoeff y = 0 := C.constantCoeff_taylorVia_translatedY |
| 103 | have hu₀ : constantCoeff u = 0 := |
| 104 | Subtype.ext (by rwa [constantCoeff_subst_of_constantCoeff_zero' hy₀] at hT₀) |
| 105 | have hu : HasSubst u := .of_constantCoeff_zero' hu₀ |
| 106 | rw [← subst_seriesToCp_subst hy₀ hu₀ g, |
| 107 | reducedOrder_subst_translatedY, reducedOrder_subst_translatedY, |
| 108 | show map (residue (valRingCp p)) (subst u g) = subst (u.map _) (g.map _) from map_subst hu g, |
| 109 | PowerSeries.order_subst (by simp [← coeff_zero_eq_constantCoeff_apply, hu₀]), mul_comm] |
| 110 | |
| 111 | /-- A series in `C.integralSeriesRing = 𝒪[[y]]` whose constant coefficient has norm one has the |
| 112 | reduced order (the order in `y` modulo the maximal ideal) zero. -/ |
| 113 | lemma reducedOrder_eq_zero {f : ℂ_[p]⟦X⟧} (hf : f ∈ C.integralSeriesRing) |
| 114 | (hf₀ : ‖constantCoeff f‖ = 1) : C.reducedOrder f = 0 := by |
| 115 | obtain ⟨u, rfl⟩ := C.mem_integralSeriesRing.1 hf |
| 116 | rw [constantCoeff_subst_of_constantCoeff_zero' C.constantCoeff_taylorVia_translatedY] at hf₀ |
| 117 | have hu : IsUnit u := isUnit_iff_constantCoeff.2 (isUnit_integer_iff_norm_eq_one.2 hf₀) |
| 118 | rw [reducedOrder_subst_translatedY, order_zero_of_isUnit (hu.map _)] |
| 119 | |
| 120 | /-- A series in `C.integralSeriesRing = 𝒪[[y]]` without constant term whose linear coefficient has |
| 121 | norm one has the reduced order (the order in `y` modulo the maximal ideal) one. -/ |
| 122 | lemma reducedOrder_eq_one {T : ℂ_[p]⟦X⟧} (hT : T ∈ C.integralSeriesRing) (hT₀ : constantCoeff T = 0) |
| 123 | (hT₁ : ‖coeff 1 T‖ = 1) : C.reducedOrder T = 1 := by |
| 124 | obtain ⟨u, rfl⟩ := C.mem_integralSeriesRing.1 hT |
| 125 | rw [constantCoeff_subst_of_constantCoeff_zero' C.constantCoeff_taylorVia_translatedY] at hT₀ |
| 126 | rw [coeff_one_subst C.constantCoeff_taylorVia_translatedY, coeff_one_taylorVia_translatedY, |
| 127 | mul_one, Algebra.algebraMap_self_apply] at hT₁ |
| 128 | rw [reducedOrder_subst_translatedY, ← Nat.cast_one, order_eq_nat] |
| 129 | have hu₁ : IsUnit (coeff 1 u) := isUnit_integer_iff_norm_eq_one.2 hT₁ |
| 130 | simp [show constantCoeff u = 0 from Subtype.ext hT₀, hu₁] |
| 131 | |
| 132 | variable [PrimeSevenModEight d] |
| 133 | |
| 134 | /-- The Taylor series `x = y ^ 2 + ⋯` of `C.translatedX` has the reduced order (the order in `y` |
| 135 | modulo the maximal ideal) two. -/ |
| 136 | lemma reducedOrder_translatedX : C.reducedOrder (taylorVia ιₚ C.translatedX) = 2 := by |
| 137 | set x : ℂ_[p]⟦X⟧ := taylorVia ιₚ C.translatedX |
| 138 | set y : ℂ_[p]⟦X⟧ := taylorVia ιₚ C.translatedY |
| 139 | have hx : x ∈ C.integralSeriesRing := C.taylorVia_translatedX_mem_integralSeriesRing |
| 140 | have hy : y ∈ C.integralSeriesRing := C.isSeriesGenerator_translatedY.generator_mem |
| 141 | -- The cubic reads `x u = y ^ 2` with the unit `u = 1 + x ^ 2 - a₁ y`. |
| 142 | let u : ℂ_[p]⟦X⟧ := 1 + x ^ 2 - ιₚ C.a₁ • y |
| 143 | have hu : u ∈ C.integralSeriesRing := sub_mem (add_mem (one_mem _) (pow_mem hx 2)) |
| 144 | (C.isSeriesGenerator_translatedY.smul_mem C.norm_a₁_le_one hy) |
| 145 | have h_cubic : x * u = y * y := by |
| 146 | simp only [u, smul_eq_C_mul] |
| 147 | linear_combination -C.taylorVia_curve_eq ιₚ |
| 148 | have hu₀ : C.reducedOrder u = 0 := C.reducedOrder_eq_zero hu |
| 149 | (by simp [u, x, y, translatedX, constantCoeff_taylorVia, translatedY_zero]) |
| 150 | have hy₁ : C.reducedOrder y = 1 := C.reducedOrder_eq_one hy |
| 151 | C.constantCoeff_taylorVia_translatedY (by simp [y]) |
| 152 | calc |
| 153 | C.reducedOrder x = C.reducedOrder (x * u) := by rw [C.reducedOrder_mul hx hu, hu₀, add_zero] |
| 154 | _ = 2 := by rw [h_cubic, C.reducedOrder_mul hy hy, hy₁, one_add_one_eq_two] |
| 155 | |
| 156 | /-- The number `o(α)`: the order in `y` of `y(α z)` modulo the maximal ideal of `𝒪`, where `y` is |
| 157 | the Taylor series of `C.translatedY`. -/ |
| 158 | noncomputable def insepDegree (α : ℂ) : ℕ∞ := |
| 159 | C.reducedOrder (rescale (ιₚ α) (taylorVia ιₚ C.translatedY)) |
| 160 | |
| 161 | /-- For `α` in the ring of integers `quadInt d` of `ℚ(√-d)`, the series `y(α z)` lies in |
| 162 | `C.integralSeriesRing = 𝒪[[y]]`, where `y` is the Taylor series of `C.translatedY`. -/ |
| 163 | lemma rescale_translatedY_mem_of_mem_quadInt {α : ℂ} (hα : α ∈ quadInt d) : |
| 164 | rescale (ιₚ α) (taylorVia ιₚ C.translatedY) ∈ C.integralSeriesRing := by |
| 165 | obtain ⟨ν, hν⟩ := exists_isIsogeny_of_mul_mem_lattice (C.mul_mem_of_quadInt hα) |
| 166 | exact C.rescale_translatedY_mem_integralSeriesRing hν |
| 167 | |
| 168 | /-- For `α` in the ring of integers `quadInt d` and `f ∈ C.integralSeriesRing = 𝒪[[y]]`, the reduced |
| 169 | order of `f(α z)` is the reduced order of `f` times `o(α) = C.insepDegree α`. -/ |
| 170 | lemma reducedOrder_rescale {α : ℂ} (hα : α ∈ quadInt d) {f : ℂ_[p]⟦X⟧} |
| 171 | (hf : f ∈ C.integralSeriesRing) : |
| 172 | C.reducedOrder (rescale (ιₚ α) f) = C.reducedOrder f * C.insepDegree α := by |
| 173 | obtain ⟨g, rfl⟩ := C.mem_integralSeriesRing.1 hf |
| 174 | have hy₀ := C.constantCoeff_taylorVia_translatedY (p := p) |
| 175 | rw [rescale_subst hy₀, reducedOrder_subst_translatedY, insepDegree, |
| 176 | C.reducedOrder_subst (C.rescale_translatedY_mem_of_mem_quadInt hα) |
| 177 | ((constantCoeff_rescale ..).trans hy₀)] |
| 178 | |
| 179 | /-- The inseparable degree is multiplicative on the ring of integers `quadInt d`. -/ |
| 180 | lemma insepDegree_mul {α β : ℂ} (hα : α ∈ quadInt d) (hβ : β ∈ quadInt d) : |
| 181 | C.insepDegree (α * β) = C.insepDegree α * C.insepDegree β := by |
| 182 | rw [insepDegree, map_mul, ← rescale_rescale, |
| 183 | C.reducedOrder_rescale hβ (C.rescale_translatedY_mem_of_mem_quadInt hα), ← insepDegree] |
| 184 | |
| 185 | /-- An element `α` of the ring of integers `quadInt d` that is a unit at the place `ιₚ` has the |
| 186 | inseparable degree one. -/ |
| 187 | lemma insepDegree_eq_one {α : ℂ} (hα : α ∈ quadInt d) (hα_unit : ‖ιₚ α‖ = 1) : |
| 188 | C.insepDegree α = 1 := by |
| 189 | refine C.reducedOrder_eq_one (C.rescale_translatedY_mem_of_mem_quadInt hα) ?_ ?_ |
| 190 | · simp [constantCoeff_rescale] |
| 191 | · simp [coeff_rescale, hα_unit] |
| 192 | |
| 193 | lemma insepDegree_pow {α : ℂ} (hα : α ∈ quadInt d) (n : ℕ) : |
| 194 | C.insepDegree (α ^ n) = C.insepDegree α ^ n := by |
| 195 | induction n with |
| 196 | | zero => simpa using C.insepDegree_eq_one (one_mem _) (by simp) |
| 197 | | succ n ih => rw [pow_succ, C.insepDegree_mul (pow_mem hα n) hα, ih, pow_succ] |
| 198 | |
| 199 | omit [PrimeSevenModEight d] in |
| 200 | /-- The torsion value (the value at `0` of the twisted translate) of the square of the sigma |
| 201 | function `σ`, in degree two (the degree of `σ ^ 2` as a section: `σ ^ 2 ∈ C.sections 2`), at the |
| 202 | point `t` of order two is a unit at the place `ιₚ`. Indeed the torsion value of `σ` at `t` is a |
| 203 | fourth root of unity. -/ |
| 204 | lemma norm_torsionValue_sigma_sq_t : ‖ιₚ (C.torsionValue 2 (C.σ ^ 2) C.t)‖ = 1 := by |
| 205 | have h_root : IsOfFinOrder (C.torsionValue 1 C.σ C.t) := |
| 206 | isOfFinOrder_iff_pow_eq_one.2 ⟨4, by norm_num, C.twistedTranslate_t_sigma_zero_pow_four⟩ |
| 207 | have hσ : ‖ιₚ (C.torsionValue 1 C.σ C.t)‖ = 1 := |
| 208 | ((ιₚ : ℂ →+* ℂ_[p]).toMonoidHom.isOfFinOrder h_root).norm_eq_one |
| 209 | rw [C.torsionValue_pow 2 1, map_pow, norm_pow, hσ, one_pow] |
| 210 | |
| 211 | /-- If `α ≠ 0` lies in the ring of integers `quadInt d` and has the norm `ν`, then `t / α` is a |
| 212 | torsion point: `2 ν · (t / α) = ᾱ · 2 t` lies in the lattice. -/ |
| 213 | lemma isTorsion_t_div {α : ℂ} (hα : α ∈ quadInt d) (hα₀ : α ≠ 0) {ν : ℕ} (hν : α * conj α = ν) : |
| 214 | C.IsTorsion (C.t / α) := by |
| 215 | have h_eq : ((2 * ν : ℕ) : ℂ) * (C.t / α) = conj α * (C.t + C.t) := by |
| 216 | rw [Nat.cast_mul, Nat.cast_ofNat, ← hν] |
| 217 | field |
| 218 | exact ⟨2 * ν, mul_ne_zero two_ne_zero fun hν_zero ↦ by simp [hν_zero, hα₀] at hν, |
| 219 | by simpa only [h_eq] using C.mul_mem_of_quadInt (conj_mem_quadInt hα) C.two_t_mem⟩ |
| 220 | |
| 221 | /-- Let `C` be a CM lattice for `quadInt d` with sigma function `σ` and torsion point `t`, let |
| 222 | `α ≠ 0` in `quadInt d` have the norm `ν`, and let the polynomial `R` be an integral even expansion |
| 223 | of `σ(α z) ^ 2` in degree `2 ν`. Then `R` has a coefficient that is a unit at the chosen place |
| 224 | `ιₚ : ℂ →+* ℂ_[p]` in a degree at most `ν`. -/ |
| 225 | private lemma exists_norm_coeff_eq_one {α : ℂ} {ν : ℕ} (h_isog : C.IsIsogeny C.periodPair α ν) |
| 226 | (hα : α ∈ quadInt d) (hα₀ : α ≠ 0) (hν : α * conj α = ν) {R : Polynomial ℂ} |
| 227 | (hR : C.IsIntegralEvenExpansion (p := p) (2 * ν) (fun z : ℂ ↦ (C.σ ^ 2) (α * z)) R) : |
| 228 | ∃ i ≤ ν, ‖ιₚ (R.coeff i)‖ = 1 := by |
| 229 | -- At `t / α` the torsion value of `σ(α z) ^ 2` is that of `σ ^ 2` at `t`, which is a unit. |
| 230 | let m (i : ℕ) : ℂ := C.torsionValue (2 * ν) (C.monomialSection (2 * ν - 2 * i, i, 0)) (C.t / α) |
| 231 | have h_value : C.torsionValue 2 (C.σ ^ 2) C.t = |
| 232 | ∑ i ∈ Finset.range (ν + 1), R.coeff i * m i := calc |
| 233 | _ = C.torsionValue (2 * ν) (fun z : ℂ ↦ (C.σ ^ 2) (α * z)) (C.t / α) := by |
| 234 | rw [C.torsionValue_comp_isogeny h_isog, mul_div_cancel₀ C.t hα₀] |
| 235 | _ = ∑ i ∈ Finset.range (ν + 1), R.coeff i * m i := by |
| 236 | simp only [m, torsionValue_eq, hR.eq_sum, Nat.mul_div_cancel_left ν two_pos, |
| 237 | Finset.sum_mul, mul_assoc] |
| 238 | -- The monomials have integral torsion values, so the largest term has a unit coefficient. |
| 239 | have hm (i : ℕ) (hi : i ≤ ν) : ‖ιₚ (m i)‖ ≤ 1 := by |
| 240 | have h_deg : monomialDeg (2 * ν - 2 * i, i, 0) = 2 * ν := by lia |
| 241 | simpa only [h_deg] using C.hasIntegralValues_monomialSection (2 * ν - 2 * i, i, 0) _ |
| 242 | (C.isTorsion_t_div hα hα₀ hν) |
| 243 | obtain ⟨i, hi, h_le⟩ : ∃ i ∈ Finset.range (ν + 1), |
| 244 | ‖∑ j ∈ Finset.range (ν + 1), ιₚ (R.coeff j * m j)‖ ≤ ‖ιₚ (R.coeff i * m i)‖ := |
| 245 | IsUltrametricDist.exists_norm_finsetSum_le_of_nonempty Finset.nonempty_range_add_one _ |
| 246 | have hi_le : i ≤ ν := Finset.mem_range_succ_iff.1 hi |
| 247 | refine ⟨i, hi_le, (hR.norm_coeff_le_one i).antisymm ?_⟩ |
| 248 | calc |
| 249 | 1 = ‖∑ j ∈ Finset.range (ν + 1), ιₚ (R.coeff j * m j)‖ := by |
| 250 | rw [← map_sum, ← h_value, C.norm_torsionValue_sigma_sq_t] |
| 251 | _ ≤ ‖ιₚ (R.coeff i)‖ * ‖ιₚ (m i)‖ := by rwa [← norm_mul, ← map_mul] |
| 252 | _ ≤ ‖ιₚ (R.coeff i)‖ := mul_le_of_le_one_right (norm_nonneg _) (hm i hi_le) |
| 253 | |
| 254 | /-- Let `α ≠ 0` lie in the ring of integers `quadInt d` and have the norm `ν`. As Taylor series over |
| 255 | `ℂ_[p]`, `σ(α z) ^ 2 = θ ^ (2 ν) R(x)` with `x` the series of `C.translatedX`, for a polynomial `R` |
| 256 | whose coefficients are integral at the place `ιₚ` and which has a unit coefficient in a degree at |
| 257 | most `ν`. Here `σ` is the sigma function of the lattice and `θ` is its normalised twisted translate |
| 258 | by the point `t` of order two. -/ |
| 259 | lemma exists_rescale_sigma_sq_eq {α : ℂ} (hα : α ∈ quadInt d) (hα₀ : α ≠ 0) {ν : ℕ} |
| 260 | (hν : α * conj α = ν) : |
| 261 | ∃ R : Polynomial ℂ, |
| 262 | (∀ i : ℕ, ‖ιₚ (R.coeff i)‖ ≤ 1) ∧ |
| 263 | (∃ i ≤ ν, ‖ιₚ (R.coeff i)‖ = 1) ∧ |
| 264 | rescale (ιₚ α) (taylorVia ιₚ (C.σ ^ 2)) = |
| 265 | taylorVia ιₚ C.θ ^ (2 * ν) * (R.map ιₚ).aeval (taylorVia ιₚ C.translatedX) := by |
| 266 | -- `σ(α z) ^ 2` is an even section of degree `2 ν`, bounded by the `2 ν`-th power of the naive |
| 267 | -- height; the monomial section of `(a, b, 0)` is `θ ^ a (σ ^ 2) ^ b`. |
| 268 | have h_isog : C.IsIsogeny C.periodPair α ν := ⟨C.mul_mem_of_quadInt hα, by rw [hν]⟩ |
| 269 | have h_sec : C.σ ^ 2 ∈ C.sections 2 := by |
| 270 | simpa [monomialSection] using C.monomialSection_mem (0, 1, 0) |
| 271 | have h_le (z : ℂ) : ‖ιₚ ((C.σ ^ 2) (α * z))‖ ≤ C.naiveHeight z ^ (2 * ν) := by |
| 272 | rw [Pi.pow_apply, map_pow, norm_pow, mul_comm 2 ν, pow_mul] |
| 273 | exact pow_le_pow_left₀ (norm_nonneg _) |
| 274 | ((C.norm_sigma_le_naiveHeight _).trans (C.naiveHeight_mul_le h_isog z)) 2 |
| 275 | have h_even : Function.Even fun z : ℂ ↦ (C.σ ^ 2) (α * z) := fun z ↦ by simp [sigma_neg] |
| 276 | obtain ⟨R, hR⟩ : ∃ R : Polynomial ℂ, |
| 277 | C.IsIntegralEvenExpansion (2 * ν) (fun z : ℂ ↦ (C.σ ^ 2) (α * z)) R := |
| 278 | C.exists_polynomial_of_even (C.comp_mul_mem_sections h_isog h_sec) h_le h_even |
| 279 | exact ⟨R, hR.norm_coeff_le_one, C.exists_norm_coeff_eq_one h_isog hα hα₀ hν hR, |
| 280 | by rw [← hR.taylorVia_eq, taylorVia, taylorVia, taylorAtZero_comp_mul, rescale_map]⟩ |
| 281 | |
| 282 | omit [PrimeSevenModEight d] in |
| 283 | /-- The Taylor series of `σ ^ 2` is `x θ ^ 2`. Here `σ` is the sigma function of the lattice, `θ` |
| 284 | is its normalised twisted translate by `t`, and `x` is the series of `C.translatedX`. -/ |
| 285 | lemma taylorVia_sigma_sq : |
| 286 | taylorVia ιₚ (C.σ ^ 2) = taylorVia ιₚ C.translatedX * taylorVia ιₚ C.θ ^ 2 := by |
| 287 | rw [taylorVia, C.taylorAtZero_congr (f := C.σ ^ 2) (g := fun z ↦ C.translatedX z * C.θ z ^ 2) |
| 288 | fun z hz ↦ C.sigma_sq_eq_translatedX_mul_theta_sq hz, |
| 289 | taylorAtZero_mul (by fun_prop) (by fun_prop), taylorAtZero_pow (by fun_prop), map_mul, map_pow] |
| 290 | |
| 291 | /-- Let `α` in the ring of integers `quadInt d` have the norm `ν`. As Taylor series over `ℂ_[p]`, |
| 292 | `θ(α z) = θ ^ ν v` for a series `v ∈ C.integralSeriesRing = 𝒪[[y]]` with the constant coefficient |
| 293 | `1`. Here `θ` is the normalised twisted translate of `σ` by `t`. -/ |
| 294 | lemma exists_rescale_theta_eq_pow_mul_of_mem_quadInt {α : ℂ} (hα : α ∈ quadInt d) {ν : ℕ} |
| 295 | (hν : α * conj α = ν) : |
| 296 | ∃ v ∈ C.integralSeriesRing, constantCoeff v = 1 ∧ |
| 297 | rescale (ιₚ α) (taylorVia ιₚ C.θ) = taylorVia ιₚ C.θ ^ ν * v := by |
| 298 | have h_isog : C.IsIsogeny C.periodPair α ν := ⟨C.mul_mem_of_quadInt hα, by rw [hν]⟩ |
| 299 | obtain ⟨v, hv, hθ⟩ := C.exists_rescale_theta_eq_theta_pow_mul (p := p) h_isog |
| 300 | refine ⟨v, hv, ?_, hθ⟩ |
| 301 | simpa [constantCoeff_rescale, constantCoeff_taylorVia, theta_zero] using |
| 302 | (congrArg constantCoeff hθ).symm |
| 303 | |
| 304 | /-- Let `R` be a complex polynomial whose coefficients are integral at the place `ιₚ` and whose |
| 305 | coefficient of degree `i` is a unit there. Then `R(x)` has the reduced order (the order in `y` |
| 306 | modulo the maximal ideal) at most `2 i`, where `x` is the series of `C.translatedX`. -/ |
| 307 | lemma reducedOrder_aeval_translatedX_le {R : Polynomial ℂ} (hR : ∀ j : ℕ, ‖ιₚ (R.coeff j)‖ ≤ 1) |
| 308 | {i : ℕ} (hi : ‖ιₚ (R.coeff i)‖ = 1) : |
| 309 | C.reducedOrder ((R.map ιₚ).aeval (taylorVia ιₚ C.translatedX)) ≤ 2 * i := by |
| 310 | obtain ⟨S, hS⟩ : ∃ S : (valRingCp p)⟦X⟧, seriesToCp S = (R.map ιₚ : Polynomial ℂ_[p]) := |
| 311 | mem_range_seriesToCp.2 (by simpa using hR) |
| 312 | have h_coeff : ((coeff i S : valRingCp p) : ℂ_[p]) = ιₚ (R.coeff i) := |
| 313 | (congrArg (coeff i) hS).trans (by simp) |
| 314 | have h_unit : IsUnit (coeff i S) := isUnit_integer_iff_norm_eq_one.2 (by rw [h_coeff, hi]) |
| 315 | have h_order : (S.map (residue (valRingCp p))).order ≤ i := |
| 316 | order_le i (h_unit.map (residue (valRingCp p))).ne_zero |
| 317 | have hx₀ : constantCoeff (taylorVia ιₚ C.translatedX) = 0 := by |
| 318 | simp [translatedX, constantCoeff_taylorVia] |
| 319 | rw [← subst_coe (.of_constantCoeff_zero' hx₀), ← hS, |
| 320 | C.reducedOrder_subst C.taylorVia_translatedX_mem_integralSeriesRing hx₀, |
| 321 | C.reducedOrder_translatedX, mul_comm] |
| 322 | gcongr |
| 323 | |
| 324 | /-- **Inseparable degree.** Let `d` be a prime ≡ 7 mod 8 and fix a `p`-adic place of ℂ. Let |
| 325 | `C : CMLattice d` be a CM lattice: a lattice stable under the integers of ℚ(√-d), with a point `t` |
| 326 | of order two scaled so that `℘''(t) = 2` and a square root of `12 ℘(t)`, and with neither `ω t` nor |
| 327 | `ω̄ t` in the lattice, where `ω = (1 + √-d) / 2`. If `α ≠ 0` lies in the ring of integers |
| 328 | `quadInt d` of `ℚ(√-d)` and `α ᾱ = ν`, then `C.insepDegree α` is at most `ν`; this is the order in |
| 329 | `y` of `y(α z)` modulo the maximal ideal of `𝒪` at the chosen place, where `y` is the Taylor series |
| 330 | of `C.translatedY`. -/ |
| 331 | lemma insepDegree_le {α : ℂ} (hα : α ∈ quadInt d) (hα₀ : α ≠ 0) {ν : ℕ} (hν : α * conj α = ν) : |
| 332 | C.insepDegree (p := p) α ≤ ν := by |
| 333 | -- We have `x(α z) v ^ 2 = R(x)` with the unit `v = θ(α z) / θ ^ ν`; compare the orders. |
| 334 | obtain ⟨R, hR_int, ⟨i, hi_le, hi_unit⟩, hR⟩ := |
| 335 | C.exists_rescale_sigma_sq_eq (p := p) hα hα₀ hν |
| 336 | obtain ⟨v, hv, hv₀, hθ⟩ := C.exists_rescale_theta_eq_pow_mul_of_mem_quadInt (p := p) hα hν |
| 337 | set x : ℂ_[p]⟦X⟧ := taylorVia ιₚ C.translatedX |
| 338 | have hx : x ∈ C.integralSeriesRing := C.taylorVia_translatedX_mem_integralSeriesRing |
| 339 | have h_key : rescale (ιₚ α) x * (v * v) = (R.map ιₚ).aeval x := by |
| 340 | have hθ_unit : IsUnit (taylorVia ιₚ C.θ) := |
| 341 | isUnit_iff_constantCoeff.2 (by simp [constantCoeff_taylorVia, theta_zero]) |
| 342 | refine (hθ_unit.pow (2 * ν)).mul_left_cancel ?_ |
| 343 | rw [← hR, taylorVia_sigma_sq, map_mul, map_pow, hθ] |
| 344 | ring |
| 345 | have hv_order : C.reducedOrder (v * v) = 0 := |
| 346 | C.reducedOrder_eq_zero (mul_mem hv hv) (by simp [hv₀]) |
| 347 | have hx_rescale : rescale (ιₚ α) x ∈ C.integralSeriesRing := |
| 348 | C.isSeriesGenerator_translatedY.rescale_mem |
| 349 | (C.rescale_translatedY_mem_of_mem_quadInt hα) hx |
| 350 | have h_two : 2 * C.insepDegree α ≤ 2 * ν := calc |
| 351 | 2 * C.insepDegree α = C.reducedOrder (rescale (ιₚ α) x * (v * v)) := by |
| 352 | rw [C.reducedOrder_mul hx_rescale (mul_mem hv hv), hv_order, add_zero, |
| 353 | C.reducedOrder_rescale hα hx, C.reducedOrder_translatedX] |
| 354 | _ ≤ 2 * i := by |
| 355 | rw [h_key] |
| 356 | exact C.reducedOrder_aeval_translatedX_le hR_int hi_unit |
| 357 | _ ≤ 2 * ν := by gcongr |
| 358 | exact (ENat.mul_le_mul_left_iff two_ne_zero (ENat.ofNat_ne_top 2)).1 h_two |
| 359 | |
| 360 | /-- **Inseparable degree of `π_p`.** For every prime `p` the inseparable degree of `π_p` (the order |
| 361 | in `y` of `y(π_p z)` modulo the maximal ideal) is at most `q_p`. Here `π_p = piPrime d p` is `√-d` |
| 362 | for `p = d` and `p` otherwise, and `q_p = primeNorm d p` is the norm of a prime of `ℚ(√-d)` above |
| 363 | `p`. A case of Deuring's criterion: the formal group of the reduction has height at most one at |
| 364 | split primes and at most two at the others. -/ |
| 365 | lemma insepDegree_piPrime_le : C.insepDegree (p := p) (piPrime d p) ≤ primeNorm d p := by |
| 366 | obtain hp | hp := ne_or_eq (chiK d p) 1 |
| 367 | · exact C.insepDegree_le (piPrime_mem_quadInt d) (piPrime_ne_zero d) (piPrime_mul_conj d hp) |
| 368 | -- For split `p` (`chiK d p = 1`) we have `π_p = q_p = p`, and `p ^ h = α ᾱ` with `‖ιₚ ᾱ‖ = 1`. |
| 369 | obtain ⟨h, α, h_ne, hα, h_norm, h_unit⟩ : ∃ (h : ℕ) (α : ℂ), |
| 370 | h ≠ 0 ∧ α ∈ quadInt d ∧ α * conj α = p ^ h ∧ ‖ιₚ (conj α)‖ = 1 := |
| 371 | exists_mul_conj_eq_pow hp |
| 372 | have hα₀ : α ≠ 0 := fun hα_zero ↦ by simp [hα_zero] at h_unit |
| 373 | have h_pow : C.insepDegree p ^ h ≤ (p : ℕ∞) ^ h := calc |
| 374 | C.insepDegree p ^ h = C.insepDegree α * C.insepDegree (conj α) := by |
| 375 | rw [← C.insepDegree_pow (natCast_mem _ p), ← h_norm, |
| 376 | C.insepDegree_mul hα (conj_mem_quadInt hα)] |
| 377 | _ = C.insepDegree α := by rw [C.insepDegree_eq_one (conj_mem_quadInt hα) h_unit, mul_one] |
| 378 | _ ≤ (p : ℕ∞) ^ h := by exact_mod_cast C.insepDegree_le hα hα₀ (by rw [h_norm, Nat.cast_pow]) |
| 379 | have hpd : p ≠ d := by grind [chiK_cases d p] |
| 380 | rw [show primeNorm d p = p by simp [primeNorm, hp], piPrime, ite_eq_right hpd] |
| 381 | by_contra! h_lt |
| 382 | exact (WithTop.pow_lt_pow_left h_lt h_ne).not_ge h_pow |
| 383 | |
| 384 | end CMLattice |
| 385 | |
| 386 | end New |