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.Azumaya.Basic |
| 4 | import TauCeti.Order.WellFounded.Basic |
| 5 | public import Lib.GaloisRep.Main.Defs |
| 6 | public import New.Congruences.FirstOrder.KummerMaps |
| 7 | import Lib.ClassField.GaloisCohomology.TameSelmerCocycles |
| 8 | import Lib.Cyclotomic.OddSha |
| 9 | import Lib.GaloisRep.Main.QuadraticStep |
| 10 | import Lib.General.NumberTheory.FrobeniusOrbits |
| 11 | import TauCeti.Topology.Algebra.ContinuousMonoidHom.Basic |
| 12 | |
| 13 | /-! |
| 14 | # Taylor–Wiles places in a triangle for the even classes, with prescribed Frobenii |
| 15 | |
| 16 | Auxiliary (Taylor–Wiles) places that cut down the even classes of the Tate twists, with Frobenius |
| 17 | data in a prescribed set. |
| 18 | |
| 19 | The places are indexed by an exponent e > 0 and a test point, and are chosen one after another. Step |
| 20 | 1 finds a new Kummer map (`New.Selmer.IsKummerMap`) and an element that the earlier maps kill and at |
| 21 | which the value of the new map is a given product. Step 2 gets from Chebotarev's theorem a place |
| 22 | whose Frobenius element has twice these values under the maps, and at which even classes take twice |
| 23 | their value at the test point. Step 3 applies the reciprocity law of each Kummer map at its own |
| 24 | place and the later ones. |
| 25 | |
| 26 | Throughout, ℓ is a prime, Ω is the algebraic closure of ℚ, and E is a CM field embedded in Ω that |
| 27 | contains a primitive 5040-th root of unity (`New.CMFieldWithRoot5040`); F is its maximal real |
| 28 | subfield, and `New.Selmer.primeBelowPlus` w is the prime of F below a prime w of E. |
| 29 | `New.cyclotomicChar` (written cyc) is the ℓ-adic cyclotomic character; G_ν is the kernel of its |
| 30 | reduction `New.cyclotomicCharMod` modulo ℓ^ν, and `New.conjGal` is the conjugation of Galois |
| 31 | elements by complex conjugation. The letter γ denotes a Galois element that separates the exponents; |
| 32 | in `New.Selmer.exists_isPrimeTriangle` it generates the Galois group modulo the kernel of cyc, and |
| 33 | the triangle is stated for γ⁻¹. |
| 34 | |
| 35 | * `New.Selmer.exists_isPrimeTriangle`: for each ν > 0 there are Taylor–Wiles places of level ℓ^ν, |
| 36 | indexed by one finite ordered set, that satisfy `New.Selmer.IsPrimeTriangle` and have their |
| 37 | Frobenius data in a prescribed set. |
| 38 | |
| 39 | Notions from other files: |
| 40 | * `New.CoeffRing`: The coefficient rings: rings of integers of the finite Galois extensions of ℚ_ℓ |
| 41 | inside its algebraic closure. |
| 42 | * `New.Selmer.evenClasses`: The even classes: cocycles c in (O/ℓ^ν)(−e), O a coefficient ring, |
| 43 | unramified off ℓ and a given set of places with their conjugates, with c(`conjGal` g) = c(g), that |
| 44 | vanish on the elements of trivial cyc in the decomposition groups above ℓ. |
| 45 | * `New.Selmer.IsNuSplitPlace`: A condition on Frobenius data (w, A, σ), which consist of w of prime |
| 46 | norm, A a place of Ω above w and σ a geometric Frobenius at A: w is not above ℓ, σ fixes μ_{ℓ^ν}. |
| 47 | * `New.Selmer.HasKummerType`: A continuous map to ℤ/ℓ^ν, an odd homomorphism on G_ν, that |
| 48 | conjugation by a multiplies by cyc(a)^(e + 1); Kummer maps of exponent e have it. |
| 49 | * `New.Selmer.IsKummerMap`: A Kummer map of exponent e for a finite family x of split places, off a |
| 50 | finite set T of primes of F: the restriction to Gal(Ω/E) of a relation over F. It has the Kummer |
| 51 | type of exponent e and is unramified off T. For a finite family w of split places above distinct |
| 52 | primes of F outside T it satisfies a reciprocity law: a linear relation among the values of a |
| 53 | cocycle over F at the tame generators of w, with the values of the map at the Frobenius elements |
| 54 | of w as coefficients. The cocycle must satisfy local conditions at the primes above ℓ and below |
| 55 | the places of x. |
| 56 | * `New.Selmer.IsPrimeTriangle`: Ordered places whose tame generators and Frobenius elements cut down |
| 57 | the even classes one after another, up to given powers of ℓ. |
| 58 | * `New.mostFrobenii`: The filter of most Frobenii. A set X of data (w, A, σ) belongs to it if each |
| 59 | nonempty open set of Galois elements has a nonempty open part U such that, for almost all w, X |
| 60 | contains every datum with σ ∈ U. |
| 61 | * `New.mostFrobeniiAt`: The filter of most Frobenii near g: the same filter, refined by the |
| 62 | condition that σ lies near g. |
| 63 | |
| 64 | ## Relation to the literature |
| 65 | |
| 66 | Taylor–Wiles primes, equally many at every ℓ-power level, are chosen in triangular form by means of |
| 67 | a count over the real subfield, which gives reciprocity laws for even classes in Tate twists. Each |
| 68 | new Frobenius kills the earlier Kummer maps but not the new one, and their reciprocity laws remove |
| 69 | the even classes. No bound for the even classes is needed; for small ℓ congruences between the |
| 70 | twists cost a power of ℓ for each prime. Tame ramification governed by Frobenius in the Kummer field |
| 71 | of units and the inductive choice of primes at every level are known. Related work: Gras–Munnier, |
| 72 | Extensions cycliques T-totalement ramifiées, 1998; Hajir–Maire–Ramakrishna, Tame Z/pZ-extensions |
| 73 | with prescribed ramification, 2022; Taylor–Wiles, Ring-theoretic properties of certain Hecke |
| 74 | algebras, 1995; Darmon–Diamond–Taylor, Fermat's Last Theorem (2.19), 1995; Dotto–Thorne, Residually |
| 75 | reducible representations of rank 2, 2026. |
| 76 | -/ |
| 77 | |
| 78 | @[expose] public section |
| 79 | |
| 80 | open New Patching Function Finset Fintype Filter PadicInt WellFoundedLT OddPart |
| 81 | |
| 82 | /-- Let `u` be a unit of `ℤ_ℓ` such that every `u ^ a - 1` with `0 < a < t` divides `ℓ ^ h`, and |
| 83 | let `t + 2 ≤ y`. If `n` divides `ℓ ^ (3 * h)`, then `n` times the product of the `u ^ a - u ^ k` |
| 84 | over the `k < t` other than a given `a < t` divides `ℓ ^ (y * h)`. -/ |
| 85 | lemma New.Selmer.mul_prod_pow_sub_pow_dvd {ℓ : ℕ} [ThePrime ℓ] {t y h : ℕ} {u : ℤ_[ℓ]ˣ} |
| 86 | (hy : t + 2 ≤ y) (hu : ∀ a ∈ Set.Ioo 0 t, (u ^ a).val - 1 ∣ ℓ ^ h) (a : Fin t) {n : ℤ_[ℓ]} |
| 87 | (hn : n ∣ ℓ ^ (3 * h)) : |
| 88 | n * ∏ k ∈ {a}ᶜ, ((u ^ a.val).val - (u ^ k.val).val) ∣ ℓ ^ (y * h) := by |
| 89 | have h_lt (b k : Fin t) (hkb : k < b) : (u ^ b.val).val - (u ^ k.val).val ∣ ℓ ^ h := by |
| 90 | rw [← Nat.sub_add_cancel hkb.le, pow_add, Units.val_mul, ← sub_one_mul, Units.mul_right_dvd] |
| 91 | exact hu _ ⟨Nat.sub_pos_of_lt hkb, by omega⟩ |
| 92 | have h_ne (k : Fin t) (hk : k ∈ ({a}ᶜ : Finset (Fin t))) : |
| 93 | (u ^ a.val).val - (u ^ k.val).val ∣ ℓ ^ h := by |
| 94 | rcases (show k ≠ a by simpa using hk).lt_or_gt with hlt | hgt |
| 95 | · exact h_lt a k hlt |
| 96 | · simpa using (h_lt k a hgt).neg_left |
| 97 | calc |
| 98 | n * ∏ k ∈ {a}ᶜ, ((u ^ a.val).val - (u ^ k.val).val) ∣ |
| 99 | ℓ ^ (3 * h) * ∏ _k ∈ ({a}ᶜ : Finset (Fin t)), (ℓ ^ h : ℤ_[ℓ]) := |
| 100 | mul_dvd_mul hn (prod_dvd_prod_of_dvd _ _ h_ne) |
| 101 | _ = ℓ ^ ((3 + (t - 1)) * h) := by simp [card_compl, pow_add, add_mul, pow_mul'] |
| 102 | _ ∣ ℓ ^ (y * h) := pow_dvd_pow _ (Nat.mul_le_mul_right h (by grind [a.isLt])) |
| 103 | |
| 104 | /-- A family of vectors, none of which lies in the span of the earlier ones, is linearly |
| 105 | independent. -/ |
| 106 | lemma New.Selmer.linearIndependent_of_notMem_span_Iio {F V J : Type} [Field F] [AddCommGroup V] |
| 107 | [Module F V] [LinearOrder J] {v : J → V} |
| 108 | (hv : ∀ j : J, v j ∉ Submodule.span F (v '' Set.Iio j)) : LinearIndependent F v := by |
| 109 | refine linearIndependent_iff_finset_linearIndependent.2 fun s ↦ (?_ : LinearIndepOn F v s) |
| 110 | induction s using Finset.induction_on_max with |
| 111 | | empty => simp |
| 112 | | insert j s h_lt ih => |
| 113 | rw [coe_insert] |
| 114 | exact ih.insert fun h ↦ hv j (Submodule.span_mono |
| 115 | (Set.image_mono (s := (s : Set J)) (t := Set.Iio j) fun x hx ↦ h_lt x hx) h) |
| 116 | |
| 117 | /-- Let `ν > 0`, and let the maps `ψ i` from a group to `ℤ/ℓ^ν` send products to sums. If their |
| 118 | reductions modulo `ℓ` are linearly independent, then together they take every family of values (by |
| 119 | Nakayama's lemma). -/ |
| 120 | lemma New.Selmer.surjective_of_linearIndependent_cast {ℓ ν : ℕ} [Fact ℓ.Prime] (hν : 0 < ν) |
| 121 | {A ι : Type} [Group A] [Fintype ι] {ψ : ι → A → ZMod (ℓ ^ ν)} |
| 122 | (h_mul : ∀ (i : ι) (a b : A), ψ i (a * b) = ψ i a + ψ i b) |
| 123 | (h_indep : LinearIndependent (ZMod ℓ) fun (i : ι) (a : A) ↦ ((ψ i a).cast : ZMod ℓ)) : |
| 124 | Surjective fun (a : A) (i : ι) ↦ ψ i a := by |
| 125 | -- The image spans modulo `ℓ`, so by Nakayama's lemma it is everything. |
| 126 | let red : ZMod (ℓ ^ ν) →+* ZMod ℓ := ZMod.castHom (dvd_pow_self ℓ hν.ne') (ZMod ℓ) |
| 127 | let Ψ : Additive A →+ ι → ZMod (ℓ ^ ν) := |
| 128 | .mk' (fun a i ↦ ψ i a.toMul) fun a b ↦ funext fun i ↦ h_mul i _ _ |
| 129 | let Ψ₁ : Additive A →+ ι → ZMod ℓ := (red.toAddMonoidHom.compLeft ι).comp Ψ |
| 130 | have h_span : (⊤ : Submodule (ZMod ℓ) (ι → ZMod ℓ)) ≤ Ψ₁.range.toZModSubmodule ℓ := by |
| 131 | rw [← span_flip_eq_top_iff_linearIndependent.2 h_indep, Submodule.span_le] |
| 132 | exact fun _ ⟨a, ha⟩ ↦ ⟨.ofMul a, ha⟩ |
| 133 | -- So the image and the multiples of `ℓ` generate everything. |
| 134 | let N : Submodule (ZMod (ℓ ^ ν)) (ι → ZMod (ℓ ^ ν)) := Ψ.range.toZModSubmodule (ℓ ^ ν) |
| 135 | let 𝔪 : Ideal (ZMod (ℓ ^ ν)) := .span {(ℓ : ZMod (ℓ ^ ν))} |
| 136 | have h_sup : ⊤ ≤ N ⊔ 𝔪 • ⊤ := fun v _ ↦ by |
| 137 | obtain ⟨a, ha⟩ : ∃ a, Ψ₁ a = fun i ↦ red (v i) := h_span Submodule.mem_top |
| 138 | have h_dvd (i : ι) : (ℓ : ZMod (ℓ ^ ν)) ∣ v i - Ψ a i := by |
| 139 | simpa using map_dvd (Int.castRingHom (ZMod (ℓ ^ ν))) |
| 140 | ((ZMod.natCast_eq_natCast_iff (Ψ a i).val (v i).val ℓ).1 |
| 141 | (by simpa [Ψ₁, red] using congrFun ha i)).dvd |
| 142 | choose t ht using h_dvd |
| 143 | rw [show v = Ψ a + (ℓ : ZMod (ℓ ^ ν)) • t from funext fun i ↦ by simp [← ht i]] |
| 144 | exact Submodule.add_mem_sup ⟨a, rfl⟩ |
| 145 | (Submodule.smul_mem_smul (Ideal.mem_span_singleton_self _) Submodule.mem_top) |
| 146 | have h_jacobson : 𝔪 ≤ Ring.jacobson (ZMod (ℓ ^ ν)) := (Ideal.span_singleton_le_iff_mem _).2 |
| 147 | (nilradical_le_jacobson _ ⟨ν, (Nat.cast_pow ℓ ν).symm.trans (ZMod.natCast_self _)⟩) |
| 148 | intro v |
| 149 | obtain ⟨a, ha⟩ : v ∈ N := Submodule.le_of_le_smul_of_le_jacobson Module.Finite.fg_top |
| 150 | h_jacobson h_sup Submodule.mem_top |
| 151 | exact ⟨a.toMul, ha⟩ |
| 152 | |
| 153 | /-- Let `ℓ` be a prime, `Ω` the algebraic closure of `ℚ`, and `E ⊆ Ω` a CM field with a primitive |
| 154 | `5040`-th root of unity and at least four infinite places. Let `ν > 0`, and let `G_ν ≤ Gal(Ω/E)` be |
| 155 | the subgroup that fixes the `ℓ ^ ν`-th roots of unity. Let `x` be a finite family of split places |
| 156 | above distinct primes of the real subfield `F`, and let `v i : G_ν → ℤ/ℓ` be any maps with the same |
| 157 | indices. Then for some finite set `T` of primes of `F` that contains `familyPrimes ℓ x` (the primes |
| 158 | above `ℓ` or below the `x i`), some Kummer map `ψ` of exponent `e` for `x` off `T` has its reduction |
| 159 | `G_ν → ℤ/ℓ` outside the span of the `v i`. -/ |
| 160 | lemma New.Selmer.exists_isKummerMap_notMem_span {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 161 | [CMFieldWithRoot5040 E] {ν : ℕ} (hν : 0 < ν) (e : ℕ) (h_inf_places : 4 ≤ Core.numInfPlaces E) |
| 162 | {I : Type} [Fintype I] {x : I → FrobeniusDatum E} (hx : ∀ i : I, IsNuSplitPlace ν (x i)) |
| 163 | (primeBelow_inj : Injective fun i : I ↦ primeBelowPlus (x i).place) |
| 164 | (v : I → (cyclotomicCharMod (Γ := Gal(Ω/E)) Ω (ℓ ^ ν)).ker → ZMod ℓ) : |
| 165 | ∃ (T : Finset (FinPlace (NumberField.maximalRealSubfield E))) (ψ : Gal(Ω/E) → ZMod (ℓ ^ ν)), |
| 166 | familyPrimes ℓ x ⊆ T ∧ IsKummerMap e hx T ψ ∧ |
| 167 | reductionModL ψ ∉ Submodule.span (ZMod ℓ) (Set.range v) := by |
| 168 | obtain ⟨T, hT, h_dim⟩ : ∃ T, familyPrimes ℓ x ⊆ T ∧ |
| 169 | Fintype.card I < Module.finrank (ZMod ℓ) (kummerReductions e hx T) := |
| 170 | exists_card_lt_finrank_kummerReductions hν e h_inf_places hx primeBelow_inj |
| 171 | by_contra! h_mem |
| 172 | -- Otherwise the Kummer reductions would span at most as many dimensions as there are maps `v`. |
| 173 | have h_le : kummerReductions e hx T ≤ Submodule.span (ZMod ℓ) (Set.range v) := |
| 174 | Submodule.span_le.2 <| Set.image_subset_iff.2 fun ψ hψ ↦ h_mem T ψ hT hψ |
| 175 | have : Module.Finite (ZMod ℓ) (Submodule.span (ZMod ℓ) (Set.range v)) := |
| 176 | .span_of_finite _ (Set.finite_range v) |
| 177 | exact h_dim.not_ge ((Submodule.finrank_mono h_le).trans (finrank_range_le_card v)) |
| 178 | |
| 179 | /-- Conjugation separates the exponents. Let `cyc` be `cyclotomicCharMod Ω (ℓ ^ ν)`, with `Ω` the |
| 180 | algebraic closure of `ℚ`, and let `G_ν` be its kernel. For a finite set `s` of exponents below `t` |
| 181 | and `g ∈ G_ν` there is `g' ∈ G_ν` at which every map `ψ` of exponent `d` takes the value |
| 182 | `∏_{a ∈ s} (cyc γ ^ d - cyc γ ^ a) · ψ g`. -/ |
| 183 | lemma New.Selmer.exists_apply_eq_prod_mul {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 184 | [CMFieldWithRoot5040 E] {ν t : ℕ} (γ : Gal(Ω/E)) {g : Gal(Ω/E)} |
| 185 | (hg : cyclotomicCharMod Ω (ℓ ^ ν) g = 1) (s : Finset (Fin t)) : |
| 186 | ∃ g' : Gal(Ω/E), cyclotomicCharMod Ω (ℓ ^ ν) g' = 1 ∧ |
| 187 | ∀ {d : ℕ} {ψ : Gal(Ω/E) → ZMod (ℓ ^ ν)}, HasKummerType ν d ψ → ψ g' = |
| 188 | (∏ a ∈ s, ((cyclotomicCharMod Ω (ℓ ^ ν) γ).val ^ d - |
| 189 | (cyclotomicCharMod Ω (ℓ ^ ν) γ).val ^ a.val)) * ψ g := by |
| 190 | set c : (ZMod (ℓ ^ ν))ˣ := cyclotomicCharMod Ω (ℓ ^ ν) γ with hc |
| 191 | induction s using Finset.induction with |
| 192 | | empty => exact ⟨g, hg, by simp⟩ |
| 193 | | insert a s ha ih => |
| 194 | -- Conjugation by `γ` followed by the power `c⁻¹` multiplies a map of exponent `d` by `c ^ d`. |
| 195 | obtain ⟨b, hb, hbψ⟩ := ih |
| 196 | refine ⟨(γ * b * γ⁻¹) ^ (c⁻¹).val.val * b ^ (-c.val ^ a.val).val, by simp [hb], |
| 197 | fun {d ψ} hψ ↦ ?_⟩ |
| 198 | calc ψ ((γ * b * γ⁻¹) ^ (c⁻¹).val.val * b ^ (-c.val ^ a.val).val) |
| 199 | = (c⁻¹).val * (c.val ^ (d + 1) * ψ b) + -c.val ^ a.val * ψ b := by |
| 200 | rw [hψ.map_mul (by simp [hb]) (by simp [hb]), hψ.map_pow (by simp [hb]), hψ.map_pow hb, |
| 201 | hψ.map_conj γ hb, ← hc, ZMod.natCast_zmod_val, ZMod.natCast_zmod_val] |
| 202 | _ = (c.val ^ d - c.val ^ a.val) * ψ b := by |
| 203 | linear_combination (c.val ^ d * ψ b) * c.inv_mul |
| 204 | _ = (∏ a' ∈ insert a s, (c.val ^ d - c.val ^ a'.val)) * ψ g := by |
| 205 | rw [hbψ hψ, prod_insert ha, mul_assoc] |
| 206 | |
| 207 | /-- The separating element for the auxiliary places. Let `ν > 0`, let `ψ i` be maps of exponent |
| 208 | `ty i` and `ψ₀` a map of exponent `e`. Suppose the reductions modulo `ℓ` (`reductionModL`) of the |
| 209 | `ψ i` with `ty i = e` are linearly independent, and the reduction of `ψ₀` is not in their span. Then |
| 210 | some `u` with `cyclotomicCharMod Ω (ℓ ^ ν) u = 1` has `ψ i u = 0` for all `i` and |
| 211 | `ψ₀ u = ∏_{k ≠ e} (cyc γ ^ e - cyc γ ^ k)` over the `k < t`. Here `cyc` is |
| 212 | `cyclotomicCharMod Ω (ℓ ^ ν)` and `Ω` is the algebraic closure of `ℚ`. -/ |
| 213 | lemma New.Selmer.exists_separating_element {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 214 | [CMFieldWithRoot5040 E] {ν t : ℕ} (hν : 0 < ν) (γ : Gal(Ω/E)) (e : Fin t) {I : Type} [Fintype I] |
| 215 | (ty : I → Fin t) {ψ : I → Gal(Ω/E) → ZMod (ℓ ^ ν)} |
| 216 | (hψ : ∀ i : I, HasKummerType ν (ty i) (ψ i)) |
| 217 | (h_indep : LinearIndependent (ZMod ℓ) fun i : {i : I | ty i = e} ↦ reductionModL (ψ i)) |
| 218 | {ψ₀ : Gal(Ω/E) → ZMod (ℓ ^ ν)} (hψ₀ : HasKummerType ν e ψ₀) |
| 219 | (h_notMem : reductionModL ψ₀ ∉ |
| 220 | Submodule.span (ZMod ℓ) (Set.range fun i : {i : I | ty i = e} ↦ reductionModL (ψ i))) : |
| 221 | ∃ u : Gal(Ω/E), cyclotomicCharMod Ω (ℓ ^ ν) u = 1 ∧ (∀ i : I, ψ i u = 0) ∧ |
| 222 | ψ₀ u = ∏ k ∈ {e}ᶜ, ((cyclotomicCharMod Ω (ℓ ^ ν) γ).val ^ e.val - |
| 223 | (cyclotomicCharMod Ω (ℓ ^ ν) γ).val ^ k.val) := by |
| 224 | -- `ψ₀` and the maps of exponent `e` together are onto; let `g` go to `1` under `ψ₀` and to `0` |
| 225 | -- under the others. |
| 226 | let Ψ (o : Option {i : I | ty i = e}) (g : (cyclotomicCharMod (Γ := Gal(Ω/E)) Ω (ℓ ^ ν)).ker) : |
| 227 | ZMod (ℓ ^ ν) := o.elim (ψ₀ g) fun i ↦ ψ i g |
| 228 | have h_onto : Surjective fun g o ↦ Ψ o g := by |
| 229 | refine surjective_of_linearIndependent_cast hν ?_ ?_ |
| 230 | · rintro (_ | i) a b |
| 231 | exacts [hψ₀.map_mul a.property b.property, (hψ i).map_mul a.property b.property] |
| 232 | · convert h_indep.option h_notMem using 1 |
| 233 | funext o |
| 234 | cases o <;> rfl |
| 235 | obtain ⟨g, hg⟩ := h_onto fun o ↦ o.elim 1 fun _ ↦ 0 |
| 236 | have hg₀ : ψ₀ g = 1 := congrFun hg none |
| 237 | have hg_zero (i : I) (hi : ty i = e) : ψ i g = 0 := congrFun hg (some ⟨i, hi⟩) |
| 238 | -- Remove the other exponents by conjugation. |
| 239 | obtain ⟨u, hu, huψ⟩ := exists_apply_eq_prod_mul γ g.property {e}ᶜ |
| 240 | refine ⟨u, hu, fun i ↦ ?_, ?_⟩ |
| 241 | · rw [huψ (hψ i)] |
| 242 | by_cases hi : ty i = e |
| 243 | · exact mul_eq_zero_of_right _ (hg_zero i hi) |
| 244 | · exact mul_eq_zero_of_left (prod_eq_zero (i := ty i) (by simpa using hi) (sub_self _)) _ |
| 245 | · rw [huψ hψ₀, hg₀, mul_one] |
| 246 | |
| 247 | /-- Let `δ, g` have trivial cyclotomic character, let `u` fix `μ_{ℓ^ν}`, and let `f`, with values in |
| 248 | `ℤ/ℓ^ν`, satisfy `f (a * b) = f a + f b` whenever `a` has trivial cyclotomic character and `b` fixes |
| 249 | `μ_{ℓ^ν}`. In its value at `δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u))` the first factor |
| 250 | contributes `ℓ ^ ν • f δ = 0`, which leaves a signed sum of the values at |
| 251 | `g, conjGal g, u, conjGal u`. -/ |
| 252 | lemma New.Selmer.additive_apply_pow_mul_conj {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 253 | [CMFieldWithRoot5040 E] {ν : ℕ} {δ g u : Gal(Ω/E)} (hδ : cyclotomicChar Ω ℓ δ = 1) |
| 254 | (hg : cyclotomicChar Ω ℓ g = 1) (hu : cyclotomicCharMod Ω (ℓ ^ ν) u = 1) |
| 255 | {f : Gal(Ω/E) → ZMod (ℓ ^ ν)} |
| 256 | (hf : ∀ a b : Gal(Ω/E), cyclotomicChar Ω ℓ a = 1 → |
| 257 | cyclotomicCharMod Ω (ℓ ^ ν) b = 1 → f (a * b) = f a + f b) : |
| 258 | f (δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u))) = |
| 259 | f g + f (conjGal g) + (f u - f (conjGal u)) := by |
| 260 | have h_div : f u = f (u / conjGal u) + f (conjGal u) := by |
| 261 | -- `conjGal` preserves the cyclotomic character. |
| 262 | simpa using hf (u / conjGal u) (conjGal u) (by simp) |
| 263 | (by simpa [cyclotomicCharMod_prime_pow_eq] using hu) |
| 264 | have h_pow (n : ℕ) : |
| 265 | f (δ ^ n * (g * conjGal g * (u / conjGal u))) = |
| 266 | n • f δ + (f g + f (conjGal g) + f (u / conjGal u)) := by |
| 267 | induction n with |
| 268 | | zero => simp [hf, hg, cyclotomicCharMod_prime_pow_eq] |
| 269 | | succ n ih => |
| 270 | rw [pow_succ', mul_assoc, hf δ _ hδ (by simp [cyclotomicCharMod_prime_pow_eq, hδ, hg]), ih, |
| 271 | succ_nsmul] |
| 272 | ring |
| 273 | simp [h_pow, h_div, CharP.cast_eq_zero] |
| 274 | |
| 275 | /-- Let `Ω` be the algebraic closure of `ℚ`, let `δ, g : Gal(Ω/E)` have trivial `ℓ`-adic cyclotomic |
| 276 | character `cyc`, and let `u` lie in the group `G_ν` that fixes `μ_{ℓ^ν}`. Near |
| 277 | `δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u))`, where `conjGal` is conjugation by complex |
| 278 | conjugation, a map `ψ` of exponent `e` takes the value `2 * ψ u`. -/ |
| 279 | lemma New.Selmer.HasKummerType.eventually_eq_two_mul {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 280 | [CMFieldWithRoot5040 E] {ν e : ℕ} {ψ : Gal(Ω/E) → ZMod (ℓ ^ ν)} (hψ : HasKummerType ν e ψ) |
| 281 | {δ g u : Gal(Ω/E)} (hδ : cyclotomicChar Ω ℓ δ = 1) (hg : cyclotomicChar Ω ℓ g = 1) |
| 282 | (hu : cyclotomicCharMod Ω (ℓ ^ ν) u = 1) : |
| 283 | ∀ᶠ s in nhds (δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u))), ψ s = 2 * ψ u := by |
| 284 | have h_val : ψ (δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u))) = 2 * ψ u := by |
| 285 | rw [additive_apply_pow_mul_conj hδ hg hu fun a b ha hb ↦ |
| 286 | hψ.map_mul (by simp [cyclotomicCharMod_prime_pow_eq, ha]) hb, |
| 287 | hψ.map_conjGal hu, hψ.map_conjGal (a := g) (by simp [cyclotomicCharMod_prime_pow_eq, hg])] |
| 288 | ring |
| 289 | exact h_val ▸ hψ.isLocallyConstant.eventually_eq _ |
| 290 | |
| 291 | /-- Let `Ω` be the algebraic closure of `ℚ`, let `δ, g : Gal(Ω/E)` have trivial cyclotomic character |
| 292 | and let `u` fix `μ_{ℓ^ν}`; let `conjGal` be conjugation by complex conjugation. Near |
| 293 | `δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u))` all even classes `c` of exponent `e` unramified off |
| 294 | `ℓ`, for all coefficient rings `O`, take the value `2 • c g`. -/ |
| 295 | lemma New.Selmer.evenClasses_eventually_eq_two_nsmul {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 296 | [CMFieldWithRoot5040 E] {ν : ℕ} (e : ℕ) {δ g u : Gal(Ω/E)} (hδ : cyclotomicChar Ω ℓ δ = 1) |
| 297 | (hg : cyclotomicChar Ω ℓ g = 1) (hu : cyclotomicCharMod Ω (ℓ ^ ν) u = 1) : |
| 298 | ∀ᶠ s in nhds (δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u))), |
| 299 | ∀ O : CoeffRing ℓ, ∀ c ∈ evenClasses O ∅ ν e, c s = 2 • c g := by |
| 300 | set σ : Gal(Ω/E) := δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u)) |
| 301 | -- There are finitely many cocycles in `ℤ/ℓ^ν(-e)` unramified off `ℓ`; all are constant near `σ`. |
| 302 | let χ : Gal(Ω/E) →* (ZMod (ℓ ^ ν))ˣ := cyclotomicCharMod Ω (ℓ ^ ν) |
| 303 | let V : DiscreteModule (ZMod (ℓ ^ ν)) Gal(Ω/E) := |
| 304 | .of (charRep (ZMod (ℓ ^ ν)) (χ ^ e)⁻¹) |
| 305 | (((χ.continuous_of_isOpen_ker Fact.out).pow e).inv.fst'.smul continuous_snd) |
| 306 | have h_const : ∀ᶠ s in nhds σ, |
| 307 | ∀ c ∈ Z1 V.ρ ⊓ .pi (inertiaAbove (placesDividing E ℓ)ᶜ) ⊥, c s = c σ := |
| 308 | (selmerZ1.finite_unramified_cocycles V (placesDividing E ℓ).toFinite).eventually_all.mpr |
| 309 | fun c ⟨⟨hc_cont, _⟩, _⟩ ↦ (continuous_discrete_rng.mp hc_cont (c σ)).mem_nhds rfl |
| 310 | filter_upwards [h_const] with s hs O c hc |
| 311 | -- It is enough to test against the additive maps `φ` to `ℤ/ℓ^ν` that make `φ ∘ c` a continuous |
| 312 | -- cocycle for `V`. |
| 313 | have ⟨hc_sel, hc_even, _⟩ := hc |
| 314 | obtain ⟨hc_coc, hc_unr, -, -⟩ := mem_selmerModule_iff.mp hc_sel |
| 315 | refine sub_eq_zero.mp (eq_zero_of_forall_mem_Z1_of_mem_evenClasses hc fun φ hφ ↦ ?_) |
| 316 | have h_mem : |
| 317 | (fun a : Gal(Ω/E) ↦ φ (c a)) ∈ Z1 V.ρ ⊓ .pi (inertiaAbove (placesDividing E ℓ)ᶜ) ⊥ := |
| 318 | ⟨hφ, by simp +contextual [hc_unr]⟩ |
| 319 | have h_add (a b : Gal(Ω/E)) (ha : cyclotomicChar Ω ℓ a = 1) |
| 320 | (_ : cyclotomicCharMod Ω (ℓ ^ ν) b = 1) : |
| 321 | φ (c (a * b)) = φ (c a) + φ (c b) := by simp [hc_coc, tateTwist, cyclotomicInv, ha] |
| 322 | have h_val : φ (c s) = φ (c g) + φ (c (conjGal g)) + (φ (c u) - φ (c (conjGal u))) := |
| 323 | (hs _ h_mem).trans (additive_apply_pow_mul_conj (f := fun a ↦ φ (c a)) hδ hg hu h_add) |
| 324 | -- As `c` is even, the values at `g, conjGal g` add up and those at `u, conjGal u` cancel. |
| 325 | have h_two : φ (c s) = φ (c g) + φ (c g) := by simpa [hc_even] using h_val |
| 326 | rw [map_sub, h_two, map_nsmul, two_nsmul, sub_self] |
| 327 | |
| 328 | /-- Choice along a well-founded order: if, for every `f` whose values before `j` satisfy `P` with |
| 329 | their predecessors, some value satisfies `P j` with the values of `f` before `j`, then some function |
| 330 | satisfies `P` at every index with its values at the earlier ones. -/ |
| 331 | lemma New.Selmer.exists_forall_of_wellFoundedLT {J X : Type} [Preorder J] [WellFoundedLT J] |
| 332 | [Nonempty X] {P : ∀ j : J, (Set.Iio j → X) → X → Prop} |
| 333 | (h_step : ∀ (f : J → X) (j : J), |
| 334 | (∀ i : J, i < j → P i (fun k : Set.Iio i ↦ f k) (f i)) → |
| 335 | ∃ x : X, P j (fun k : Set.Iio j ↦ f k) x) : |
| 336 | ∃ f : J → X, ∀ j : J, P j (fun i : Set.Iio j ↦ f i) (f j) := |
| 337 | wellFounded_lt.exists_forall_of_forall_exists (fun f j ↦ P j fun i ↦ f i) |
| 338 | (fun j v _ _ h ↦ (congrArg (P j · v) (funext fun i ↦ h i.1 i.2)).mp) |
| 339 | fun j f ↦ h_step f j |
| 340 | |
| 341 | /-- What is chosen at one index of the triangle: a split place of `E`, a map from `Gal(Ω/E)` to |
| 342 | `ℤ/ℓ^ν` (`Ω` is the algebraic closure of `ℚ`), and a finite set of primes of the real subfield that |
| 343 | this place and the later ones have to avoid. -/ |
| 344 | structure New.Selmer.TriangleEntry (ℓ : ℕ) (E : Type) [ThePrime ℓ] [Field E] [CMFieldWithRoot5040 E] |
| 345 | (ν : ℕ) where |
| 346 | /-- The place with its Frobenius element. -/ |
| 347 | frobeniusDatum : FrobeniusDatum E |
| 348 | /-- The place is not above `ℓ` and its Frobenius element fixes the `ℓ^ν`-th roots of unity. -/ |
| 349 | isNuSplitPlace : IsNuSplitPlace (ℓ := ℓ) ν frobeniusDatum |
| 350 | /-- The primes to avoid. -/ |
| 351 | avoidedPrimes : Finset (FinPlace (NumberField.maximalRealSubfield E)) |
| 352 | /-- The map, a Kummer map once the entry follows earlier ones. -/ |
| 353 | kummerCandidate : Gal(Ω/E) → ZMod (ℓ ^ ν) |
| 354 | |
| 355 | /-- The entry `q` of exponent `e` may follow the entries `f i` of exponents `ty i`: its map is a |
| 356 | Kummer map for the earlier places of exponent `e` and new modulo `ℓ`, and its place is a new one in |
| 357 | `W`, at whose Frobenius element the earlier maps vanish, twice the value of the new map divides the |
| 358 | loss `n`, and the even classes of exponent `e` unramified off `ℓ` take twice their value at the test |
| 359 | element `g`. -/ |
| 360 | structure New.Selmer.TriangleEntry.MayFollow {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 361 | [CMFieldWithRoot5040 E] {ν t : ℕ} {K : Type} [Finite K] (ty : K → Fin t) |
| 362 | (f : K → TriangleEntry ℓ E ν) (e : Fin t) (g : Gal(Ω/E)) (n : ℕ) (W : Set (FrobeniusDatum E)) |
| 363 | (q : TriangleEntry ℓ E ν) : Prop where |
| 364 | /-- The new map is a Kummer map of exponent `e` off `q.avoidedPrimes`: the restriction of a |
| 365 | relation over the real subfield that is unramified off `q.avoidedPrimes` and whose reciprocity law |
| 366 | holds at split primes off `q.avoidedPrimes`, for cocycles with local conditions above `ℓ` and |
| 367 | below the earlier places of exponent `e`. -/ |
| 368 | isKummerMap : IsKummerMap e (fun i : {i : K | ty i = e} ↦ (f i).isNuSplitPlace) q.avoidedPrimes |
| 369 | q.kummerCandidate |
| 370 | /-- The primes to avoid include the primes of the real subfield above `ℓ` or below an earlier |
| 371 | place of exponent `e`. -/ |
| 372 | familyPrimes_subset : familyPrimes ℓ (fun i : {i : K | ty i = e} ↦ (f i).frobeniusDatum) ⊆ |
| 373 | q.avoidedPrimes |
| 374 | /-- Modulo `ℓ` the new map is independent of the earlier maps of exponent `e`. -/ |
| 375 | notMem_span : reductionModL q.kummerCandidate ∉ |
| 376 | Submodule.span (ZMod ℓ) (Set.range fun i : {i : K | ty i = e} ↦ |
| 377 | reductionModL (f i).kummerCandidate) |
| 378 | /-- At the new Frobenius element the new map is nearly a unit: twice its value divides `n`. -/ |
| 379 | two_mul_dvd : 2 * q.kummerCandidate q.frobeniusDatum.frob ∣ n |
| 380 | /-- At the new Frobenius element the earlier maps vanish. -/ |
| 381 | apply_eq_zero (i : K) : (f i).kummerCandidate q.frobeniusDatum.frob = 0 |
| 382 | /-- At the new Frobenius element the even classes of exponent `e` unramified off `ℓ` take twice |
| 383 | their value at `g`. -/ |
| 384 | even_apply (O : CoeffRing ℓ) : ∀ z ∈ evenClasses O ∅ ν e, z q.frobeniusDatum.frob = 2 • z g |
| 385 | /-- The new place lies above a new prime of the real subfield. -/ |
| 386 | primeBelowPlus_ne (i : K) : primeBelowPlus (f i).frobeniusDatum.place ≠ primeBelowPlus |
| 387 | q.frobeniusDatum.place |
| 388 | /-- It avoids the primes excluded by the earlier maps. -/ |
| 389 | notMem_earlier (i : K) : primeBelowPlus q.frobeniusDatum.place ∉ (f i).avoidedPrimes |
| 390 | /-- It avoids the primes excluded by the new map. -/ |
| 391 | notMem : primeBelowPlus q.frobeniusDatum.place ∉ q.avoidedPrimes |
| 392 | /-- The new place, with its Frobenius element, is allowed. -/ |
| 393 | mem : q.frobeniusDatum ∈ W |
| 394 | |
| 395 | /-- Almost all places of `E` lie neither above `ℓ` nor above a prime in a given finite set `T` of |
| 396 | primes of the real subfield. -/ |
| 397 | lemma New.Selmer.eventually_primeBelowPlus_notMem {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 398 | [CMFieldWithRoot5040 E] {T : Set (FinPlace (NumberField.maximalRealSubfield E))} |
| 399 | (hT : T.Finite) : |
| 400 | ∀ᶠ w : FinPlace E in cofinite, ↑ℓ ∉ w.asIdeal ∧ primeBelowPlus w ∉ T := by |
| 401 | filter_upwards [GaloisRep.eventually_notMem_star_notMem ℓ ∅, tendsto_place_comap_cofinite |
| 402 | (algebraMap (NumberField.maximalRealSubfield E) E) hT.compl_mem_cofinite] |
| 403 | with w ⟨_, _, h_off⟩ h_avoid using ⟨h_off, h_avoid⟩ |
| 404 | |
| 405 | /-- Let `ℓ` be a prime and `E` a CM field with a primitive `5040`-th root of unity and at least four |
| 406 | infinite places. Let `ν > 0`, `t + 2 ≤ y` and `4 ∣ ℓ ^ (3 h)`, let `cyc γ ^ a - 1` divide `ℓ ^ h` |
| 407 | for `0 < a < t`, let `g` have trivial cyclotomic character `cyc`, and, for every `g'`, let `W` |
| 408 | contain most Frobenii near `δ ^ ℓ ^ ν * g'` for some `δ` with trivial cyclotomic character. Let |
| 409 | finitely many entries `f i` lie above distinct primes of `F`, let their maps have exponents `ty i`, |
| 410 | and let those of exponent `e` be independent as maps `G_ν → ℤ/ℓ` (`reductionModL`). Then some entry |
| 411 | `q` may follow them (`MayFollow`): its map is a Kummer map of exponent `e` for the earlier places of |
| 412 | exponent `e`, off a set `q.avoidedPrimes` that contains the primes above `ℓ` and below these places, |
| 413 | and is outside the span modulo `ℓ` of the earlier maps of exponent `e`; the prime of `F` below its |
| 414 | place is none of the earlier ones and lies in none of the sets of primes to avoid; its datum lies in |
| 415 | `W`; at its Frobenius element the earlier maps vanish, twice the value of the new map divides the |
| 416 | loss `ℓ ^ (y * h)`, and the even classes of exponent `e` unramified off `ℓ` take twice their value |
| 417 | at `g`. -/ |
| 418 | lemma New.Selmer.TriangleEntry.exists_mayFollow {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 419 | [CMFieldWithRoot5040 E] {ν t y h : ℕ} {γ g : Gal(Ω/E)} (hν : 0 < ν) |
| 420 | (h_inf_places : 4 ≤ Core.numInfPlaces E) (hty : t + 2 ≤ y) |
| 421 | (hγ_dvd : ∀ a ∈ Set.Ioo 0 t, (cyclotomicChar Ω ℓ γ ^ a).val - 1 ∣ ℓ ^ h) (e : Fin t) |
| 422 | (h_four : (4 : ℤ_[ℓ]) ∣ ℓ ^ (3 * h)) (hg : cyclotomicChar Ω ℓ g = 1) |
| 423 | {W : Set (FrobeniusDatum E)} (hW : ∀ g' : Gal(Ω/E), |
| 424 | ∃ δ : Gal(Ω/E), cyclotomicChar Ω ℓ δ = 1 ∧ W ∈ mostFrobeniiAt E (δ ^ ℓ ^ ν * g')) |
| 425 | {I : Type} [Fintype I] (ty : I → Fin t) {f : I → TriangleEntry ℓ E ν} |
| 426 | (primeBelow_inj : Injective fun i : I ↦ primeBelowPlus (f i).frobeniusDatum.place) |
| 427 | (h_type : ∀ i : I, HasKummerType ν (ty i) (f i).kummerCandidate) |
| 428 | (h_indep : LinearIndependent (ZMod ℓ) fun i : {i : I | ty i = e} ↦ |
| 429 | reductionModL (f i).kummerCandidate) : |
| 430 | ∃ q : TriangleEntry ℓ E ν, MayFollow ty f e g (ℓ ^ (y * h)) W q := by |
| 431 | -- Take a new map `ψ₀`, a point `u` where the earlier maps vanish while `ψ₀ u` is |
| 432 | -- `∏_{k ≠ e} (cyc γ ^ e - cyc γ ^ k)`, and a Frobenius element near a suitable `σ`. |
| 433 | obtain ⟨T₀, ψ₀, hT₀, hψ₀, h_notMem⟩ := exists_isKummerMap_notMem_span hν e h_inf_places |
| 434 | (fun i : {i : I | ty i = e} ↦ (f i).isNuSplitPlace) (primeBelow_inj.comp Subtype.val_injective) |
| 435 | fun i ↦ reductionModL (f i).kummerCandidate |
| 436 | obtain ⟨u, hu, hψu, hψ₀u⟩ := |
| 437 | exists_separating_element hν γ e ty h_type h_indep hψ₀.hasKummerType h_notMem |
| 438 | obtain ⟨δ, hδ, hσW⟩ := hW (g * conjGal g * (u / conjGal u)) |
| 439 | set σ : Gal(Ω/E) := δ ^ ℓ ^ ν * (g * conjGal g * (u / conjGal u)) with hσ |
| 440 | have hσ_cyc : σ ∈ (cyclotomicCharMod Ω (ℓ ^ ν)).ker := by |
| 441 | simp [hσ, cyclotomicCharMod_prime_pow_eq, hδ, hg] |
| 442 | have h_near : ∀ᶠ s in nhds σ, ψ₀ s = 2 * ψ₀ u ∧ |
| 443 | (∀ i, (f i).kummerCandidate s = 2 * (f i).kummerCandidate u) ∧ |
| 444 | (∀ O, ∀ z ∈ evenClasses O ∅ ν e, z s = 2 • z g) ∧ cyclotomicCharMod Ω (ℓ ^ ν) s = 1 := |
| 445 | (hψ₀.hasKummerType.eventually_eq_two_mul hδ hg hu).and <| |
| 446 | (eventually_all.2 fun i ↦ (h_type i).eventually_eq_two_mul hδ hg hu).and <| |
| 447 | (evenClasses_eventually_eq_two_nsmul e hδ hg hu).and |
| 448 | (isOpen_ker_cyclotomicCharMod.out.mem_nhds hσ_cyc) |
| 449 | let T' : Set (FinPlace (NumberField.maximalRealSubfield E)) := |
| 450 | T₀ ∪ ⋃ i, insert (primeBelowPlus (f i).frobeniusDatum.place) (f i).avoidedPrimes |
| 451 | have h_most : ∀ᶠ x : FrobeniusDatum E in mostFrobenii E, |
| 452 | ↑ℓ ∉ x.place.asIdeal ∧ primeBelowPlus x.place ∉ T' := |
| 453 | eventually_mostFrobenii (eventually_primeBelowPlus_notMem (Set.toFinite T')) fun _ ↦ id |
| 454 | -- The filter `mostFrobeniiAt E σ` is proper (Chebotarev): some `x₀` has all this. |
| 455 | obtain ⟨x₀, hW₀, ⟨h_off, hT'⟩, hψ₀x, hψx, h_even, h_cyc⟩ := |
| 456 | nonempty_of_mem (inter_mem hσW (inter_mem_inf h_most (preimage_mem_comap h_near))) |
| 457 | have h_dvd : 2 * ψ₀ x₀.frob ∣ ↑(ℓ ^ (y * h)) := by |
| 458 | rw [hψ₀x, hψ₀u, ← mul_assoc, show (2 * 2 : ZMod (ℓ ^ ν)) = 4 by norm_num] |
| 459 | -- This is `mul_prod_pow_sub_pow_dvd` reduced modulo `ℓ ^ ν`. |
| 460 | simpa [cyclotomicCharMod_prime_pow_eq, map_ofNat] using |
| 461 | map_dvd (toZModPow ν) (mul_prod_pow_sub_pow_dvd hty hγ_dvd e h_four) |
| 462 | obtain ⟨h_notMem₀, h_avoid⟩ : primeBelowPlus x₀.place ∉ T₀ ∧ ∀ i : I, |
| 463 | primeBelowPlus (f i).frobeniusDatum.place ≠ primeBelowPlus x₀.place ∧ |
| 464 | primeBelowPlus x₀.place ∉ (f i).avoidedPrimes := by simpa [T', eq_comm] using hT' |
| 465 | exact ⟨⟨x₀, ⟨h_off, h_cyc⟩, T₀, ψ₀⟩, |
| 466 | { isKummerMap := hψ₀, familyPrimes_subset := hT₀, notMem_span := h_notMem |
| 467 | two_mul_dvd := h_dvd |
| 468 | apply_eq_zero := fun i ↦ by rw [hψx i, hψu i, mul_zero] |
| 469 | even_apply := h_even |
| 470 | primeBelowPlus_ne := fun i ↦ (h_avoid i).1, notMem_earlier := fun i ↦ (h_avoid i).2 |
| 471 | notMem := h_notMem₀, mem := hW₀ }⟩ |
| 472 | |
| 473 | /-- Some entry exists: at a split place, with the zero map and no primes to avoid. -/ |
| 474 | instance New.Selmer.TriangleEntry.nonempty {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 475 | [CMFieldWithRoot5040 E] {ν : ℕ} : Nonempty (TriangleEntry ℓ E ν) := by |
| 476 | have h_near : ∀ᶠ s : Gal(Ω/E) in nhds 1, cyclotomicCharMod Ω (ℓ ^ ν) s = 1 := |
| 477 | isOpen_ker_cyclotomicCharMod.out.mem_nhds (map_one _) |
| 478 | obtain ⟨x, ⟨h_off, -⟩, h_cyc⟩ := nonempty_of_mem (f := mostFrobeniiAt E 1) (inter_mem_inf |
| 479 | (eventually_mostFrobenii (eventually_primeBelowPlus_notMem (ℓ := ℓ) Set.finite_empty) |
| 480 | fun _ ↦ id) (preimage_mem_comap h_near)) |
| 481 | exact ⟨x, ⟨h_off, h_cyc⟩, ∅, 0⟩ |
| 482 | |
| 483 | /-- Let `ℓ` be a prime, `E` a CM field with a primitive `5040`-th root of unity and at least four |
| 484 | infinite places, inside the algebraic closure `Ω` of `ℚ`, and `cyc` the `ℓ`-adic cyclotomic |
| 485 | character. Along a finite linear order `J`, with exponents `ty j` and test elements `g j` of trivial |
| 486 | `cyc`, entries `f j` can be chosen so that each may follow the earlier ones (`MayFollow`): its map |
| 487 | is a Kummer map of exponent `ty j` for the earlier places of this exponent, off its set of primes to |
| 488 | avoid, and is independent of their maps modulo `ℓ` on the elements fixing `μ_{ℓ^ν}`; the prime of |
| 489 | `F` below its place is new and avoided by none of the maps up to it; its Frobenius datum is in `W`; |
| 490 | at its Frobenius element the earlier maps vanish, twice the value of its map divides the loss |
| 491 | `ℓ ^ (y * h)`, and the even classes of exponent `ty j` unramified off `ℓ` take twice their value at |
| 492 | `g j`. As in `New.Selmer.TriangleEntry.exists_mayFollow`, it is assumed that `ν > 0`, that |
| 493 | `t + 2 ≤ y`, that `cyc γ ^ a - 1` divides `ℓ ^ h` for `0 < a < t`, that `4 ∣ ℓ ^ (3 h)` unless `J` |
| 494 | is empty, and that for every `g'` there is a `δ` of trivial `cyc` such that `W` contains most |
| 495 | Frobenii near `δ ^ ℓ ^ ν * g'` (`mostFrobeniiAt`). -/ |
| 496 | lemma New.Selmer.TriangleEntry.exists_forall_mayFollow {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 497 | [CMFieldWithRoot5040 E] {ν t y h : ℕ} {γ : Gal(Ω/E)} (hν : 0 < ν) |
| 498 | (h_inf_places : 4 ≤ Core.numInfPlaces E) (hty : t + 2 ≤ y) |
| 499 | (hγ_dvd : ∀ a ∈ Set.Ioo 0 t, (cyclotomicChar Ω ℓ γ ^ a).val - 1 ∣ ℓ ^ h) |
| 500 | {W : Set (FrobeniusDatum E)} (hW : ∀ g' : Gal(Ω/E), |
| 501 | ∃ δ : Gal(Ω/E), cyclotomicChar Ω ℓ δ = 1 ∧ W ∈ mostFrobeniiAt E (δ ^ ℓ ^ ν * g')) |
| 502 | {J : Type} [Fintype J] [LinearOrder J] (ty : J → Fin t) {g : J → Gal(Ω/E)} |
| 503 | (hg : ∀ j : J, cyclotomicChar Ω ℓ (g j) = 1) (h_four : Nonempty J → (4 : ℤ_[ℓ]) ∣ ℓ ^ (3 * h)) : |
| 504 | ∃ f : J → TriangleEntry ℓ E ν, ∀ j : J, MayFollow (fun i : Set.Iio j ↦ ty i) |
| 505 | (fun i : Set.Iio j ↦ f i) (ty j) (g j) (ℓ ^ (y * h)) W (f j) := by |
| 506 | refine exists_forall_of_wellFoundedLT (P := fun j f ↦ |
| 507 | MayFollow (fun i : Set.Iio j ↦ ty i) f (ty j) (g j) (ℓ ^ (y * h)) W) fun f j h_prev ↦ ?_ |
| 508 | have h_inj : Injective fun i : Set.Iio j ↦ primeBelowPlus (f i).frobeniusDatum.place := |
| 509 | .of_lt_imp_ne fun a b hab ↦ (h_prev b b.property).primeBelowPlus_ne ⟨a, hab⟩ |
| 510 | have h_type (i : Set.Iio j) : HasKummerType ν (ty i) (f i).kummerCandidate := |
| 511 | (h_prev i i.property).isKummerMap.hasKummerType |
| 512 | -- By induction the earlier maps of the exponent of `j` are independent modulo `ℓ`. |
| 513 | have h_indep : LinearIndependent (ZMod ℓ) |
| 514 | fun i : {i : Set.Iio j | ty i = ty j} ↦ reductionModL (f i.val).kummerCandidate := by |
| 515 | refine linearIndependent_of_notMem_span_Iio fun i h_mem ↦ |
| 516 | (h_prev i i.val.property).notMem_span (Submodule.span_mono ?_ h_mem) |
| 517 | rintro _ ⟨k, hk, rfl⟩ |
| 518 | exact ⟨⟨⟨k, hk⟩, k.property.trans i.property.symm⟩, rfl⟩ |
| 519 | exact exists_mayFollow hν h_inf_places hty hγ_dvd (ty j) (h_four ⟨j⟩) (hg j) hW _ h_inj h_type |
| 520 | h_indep |
| 521 | |
| 522 | /-- If the entries `f j` are indexed by a finite linear order and each may follow the earlier ones |
| 523 | (`MayFollow`), then their places lie above distinct primes of the real subfield. -/ |
| 524 | lemma New.Selmer.TriangleEntry.primeBelowPlus_injective_of_mayFollow {ℓ : ℕ} {E : Type} [ThePrime ℓ] |
| 525 | [Field E] [CMFieldWithRoot5040 E] {ν t n : ℕ} {W : Set (FrobeniusDatum E)} |
| 526 | {J : Type} [Fintype J] [LinearOrder J] {ty : J → Fin t} |
| 527 | {g : J → Gal(Ω/E)} {f : J → TriangleEntry ℓ E ν} (hf : ∀ j : J, |
| 528 | MayFollow (fun i : Set.Iio j ↦ ty i) (fun i : Set.Iio j ↦ f i) (ty j) (g j) n W (f j)) : |
| 529 | Injective fun j : J ↦ primeBelowPlus (f j).frobeniusDatum.place := |
| 530 | .of_lt_imp_ne fun a b hab ↦ (hf b).primeBelowPlus_ne ⟨a, hab⟩ |
| 531 | |
| 532 | /-- The places of entries, with their tame generators and Frobenius elements, form a tame generator |
| 533 | family (`New.Selmer.IsTameGeneratorFamily`): they are not above `ℓ`, the Frobenius elements fix |
| 534 | `μ_{ℓ^ν}`, and the tame generators are the chosen ones at places of `Ω` above them. -/ |
| 535 | lemma New.Selmer.TriangleEntry.isTameGeneratorFamily {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 536 | [CMFieldWithRoot5040 E] {ν : ℕ} {J : Type} (f : J → TriangleEntry ℓ E ν) : |
| 537 | IsTameGeneratorFamily ν (fun j : J ↦ (f j).frobeniusDatum.place) |
| 538 | (fun j : J ↦ (f j).frobeniusDatum.isPlaceOver.tameGenerator) |
| 539 | fun j : J ↦ (f j).frobeniusDatum.frob := fun j ↦ |
| 540 | ⟨(f j).isNuSplitPlace.1, (f j).isNuSplitPlace.2, _, (f j).frobeniusDatum.isPlaceOver, rfl⟩ |
| 541 | |
| 542 | /-- Let `E` be a CM field containing a primitive `5040`-th root of unity, let `P i` be finite |
| 543 | places of `E` indexed by a linear order `J`, and let `j : J`. The union of a set `A` of places with |
| 544 | the closure under conjugation of all the `P i` lies in the union of `A` with the closures of the |
| 545 | `P i` for `j ≤ i` and of the `P i` for `i < j`. -/ |
| 546 | private lemma New.Selmer.union_conjClosure_range_subset {E : Type} [Field E] |
| 547 | [CMFieldWithRoot5040 E] {J : Type} [LinearOrder J] (A : Set (FinPlace E)) |
| 548 | (P : J → FinPlace E) (j : J) : |
| 549 | A ∪ Set.conjClosure (.range P) ⊆ |
| 550 | A ∪ Set.conjClosure (.range fun i : Set.Ici j ↦ P i) ∪ |
| 551 | Set.conjClosure (.range fun i : Set.Iio j ↦ P i) := by |
| 552 | have h_range : Set.range P = |
| 553 | (Set.range fun i : Set.Ici j ↦ P i) ∪ .range fun i : Set.Iio j ↦ P i := by |
| 554 | simp [← Set.image_eq_range P, ← Set.image_union, Set.union_comm (.Ici j)] |
| 555 | simp only [h_range, Set.conjClosure, Set.preimage_union, Set.subset_def, Set.mem_union] |
| 556 | tauto |
| 557 | |
| 558 | /-- Let the entries `f j`, of exponents `ty j`, be indexed by a finite linear order `J`, and suppose |
| 559 | that each may follow the earlier ones with test element `g j`, loss `n` and Frobenius data in `W`. |
| 560 | Let `z` be an even class of exponent `ty j`: a cocycle on `Gal(Ω/E)` in `(O/ℓ^ν)(-ty j)`, written as |
| 561 | a function with values in `Unit → O/ℓ^ν`, invariant under complex conjugation and trivial on the |
| 562 | elements of trivial cyclotomic character in the decomposition groups above `ℓ`, here allowed to |
| 563 | ramify at `ℓ`, at the places of the entries and at their conjugates. Let it vanish at the tame |
| 564 | generators of the places before `j` and at the Frobenius elements of those among them of exponent |
| 565 | `ty j`. Then `n` kills the value of `z` at the tame generator of the `j`-th place. -/ |
| 566 | lemma New.Selmer.TriangleEntry.nsmul_tameGenerator_eq_zero_of_mayFollow {ℓ : ℕ} {E : Type} |
| 567 | [ThePrime ℓ] [Field E] [CMFieldWithRoot5040 E] {ν t n : ℕ} {W : Set (FrobeniusDatum E)} |
| 568 | {J : Type} [Fintype J] [LinearOrder J] {ty : J → Fin t} {g : J → Gal(Ω/E)} |
| 569 | {f : J → TriangleEntry ℓ E ν} (hf : ∀ j : J, |
| 570 | MayFollow (fun i : Set.Iio j ↦ ty i) (fun i : Set.Iio j ↦ f i) (ty j) (g j) n W (f j)) |
| 571 | {O : CoeffRing ℓ} {j : J} {z : Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)} |
| 572 | (hz : z ∈ evenClasses O (Set.range fun i : J ↦ (f i).frobeniusDatum.place) ν (ty j)) |
| 573 | (hz_tame : ∀ i : J, i < j → z (f i).frobeniusDatum.isPlaceOver.tameGenerator = 0) |
| 574 | (hz_frob : ∀ i : J, i < j → ty i = ty j → z (f i).frobeniusDatum.frob = 0) : |
| 575 | n • z (f j).frobeniusDatum.isPlaceOver.tameGenerator = 0 := by |
| 576 | -- As `z` kills the earlier tame generators, it is unramified at the earlier places, so the |
| 577 | -- reciprocity law of the `j`-th Kummer map applies at the places from `j` on. |
| 578 | have h_subset : placesDividing E ℓ ∪ Set.conjClosure |
| 579 | (.range fun i : J ↦ (f i).frobeniusDatum.place) ⊆ |
| 580 | placesDividing E ℓ ∪ Set.conjClosure (.range fun i : Set.Ici j ↦ (f i).frobeniusDatum.place) ∪ |
| 581 | Set.conjClosure (.range fun i : Set.Iio j ↦ (f i).frobeniusDatum.place) := |
| 582 | union_conjClosure_range_subset _ _ j |
| 583 | obtain ⟨hz_mem, hz_even⟩ := hz |
| 584 | have h_tame : ∀ i : Set.Iio j × Bool, |
| 585 | z (withConjInv (fun i : Set.Iio j ↦ (f i).frobeniusDatum.isPlaceOver.tameGenerator.val) i) = |
| 586 | 0 := by |
| 587 | simp +contextual [idOrConjInv, cocycle_apply_inv (mem_selmerModule_iff.1 hz_mem).1, |
| 588 | hz_even.1, hz_tame, -smul_eq_zero] |
| 589 | have hz_later : z ∈ evenClasses O (.range fun i : Set.Ici j ↦ (f i).frobeniusDatum.place) ν |
| 590 | (ty j) := |
| 591 | ⟨(isTameGeneratorFamily fun i : Set.Iio j ↦ f i).mem_selmerModule_of_tame_eq_zero hz_mem h_tame |
| 592 | h_subset |
| 593 | fun _ _ ↦ tateTwist_eq_one_of_cyclotomicChar_eq_one, hz_even⟩ |
| 594 | have h_allowed : ∀ i : Set.Ici j, primeBelowPlus (f i).frobeniusDatum.place ∉ |
| 595 | (f j).avoidedPrimes := fun ⟨i, hji⟩ ↦ by |
| 596 | obtain rfl | hlt := eq_or_lt_of_le (α := J) hji |
| 597 | · exact (hf j).notMem |
| 598 | · exact (hf i).notMem_earlier ⟨j, hlt⟩ |
| 599 | -- The `j`-th map vanishes at the later Frobenius elements. |
| 600 | have h_zero (i : Set.Ici j) (hi : i ≠ ⊥) : (f j).kummerCandidate (f i).frobeniusDatum.frob = 0 := |
| 601 | (hf i).apply_eq_zero ⟨j, hi.bot_lt⟩ |
| 602 | have h_inj : Injective fun i : Set.Ici j ↦ primeBelowPlus (f i).frobeniusDatum.place := |
| 603 | (primeBelowPlus_injective_of_mayFollow hf).injOn.injective |
| 604 | have h_frob : ∀ i : {i : Set.Iio j | ty i = ty j}, z (f i).frobeniusDatum.frob = 0 := |
| 605 | fun ⟨⟨i, hi⟩, hty⟩ ↦ hz_frob i hi hty |
| 606 | -- So the reciprocity law of the `j`-th map applies, with `j` as the least of the later indices. |
| 607 | exact (hf j).isKummerMap.nsmul_apply_tameGenerator_eq_zero (hf j).familyPrimes_subset |
| 608 | (w := fun i : Set.Ici j ↦ (f i).frobeniusDatum) (fun i ↦ (f i).isNuSplitPlace) h_inj h_allowed |
| 609 | (j := ⊥) |
| 610 | h_zero hz_later h_frob (hf j).two_mul_dvd |
| 611 | |
| 612 | /-- If the datum `x` is `ν`-split (`IsNuSplitPlace`: its prime is not above `ℓ` and its Frobenius |
| 613 | element fixes `μ_{ℓ^ν}`), then `ℓ ^ ν` divides `x.place.q - 1`, i.e. the norm `q` of its place is |
| 614 | `1` modulo `ℓ ^ ν`. -/ |
| 615 | lemma New.Selmer.IsNuSplitPlace.prime_pow_dvd_q_sub_one {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 616 | [CMFieldWithRoot5040 E] {ν : ℕ} {x : FrobeniusDatum E} (hx : IsNuSplitPlace (ℓ := ℓ) ν x) : |
| 617 | ℓ ^ ν ∣ x.place.q - 1 := |
| 618 | have h_modEq : x.place.q ≡ 1 [MOD ℓ ^ ν] := (x.isFrob_inv.mem_ker_cyclotomicCharMod_iff |
| 619 | (by simp [x.isPlaceOver.valuation_natCast_eq_one_iff, hx.1])).1 (inv_mem hx.2) |
| 620 | h_modEq.symm.dvd' |
| 621 | |
| 622 | /-- Places of prime norm above distinct primes of the real subfield are distinct from each other and |
| 623 | from all their conjugates. -/ |
| 624 | lemma New.Selmer.isConjApart_of_injective_primeBelowPlus {E : Type} [Field E] |
| 625 | [CMFieldWithRoot5040 E] {J : Type} {x : J → FrobeniusDatum E} |
| 626 | (hx : Injective fun j : J ↦ primeBelowPlus (x j).place) : |
| 627 | IsConjApart fun j : J ↦ (x j).place := by |
| 628 | refine ⟨.of_comp (f := primeBelowPlus) hx, fun i j hij ↦ ?_⟩ |
| 629 | obtain rfl : i = j := hx (by simp only [← hij, primeBelowPlus_star]) |
| 630 | -- A place of prime norm is not its own conjugate. |
| 631 | exact isSplit_of_q_prime (x i).prime_q hij |
| 632 | |
| 633 | /-- Let `ℓ` be a prime, `cyc` the `ℓ`-adic cyclotomic character, and `E` a CM field with a primitive |
| 634 | `5040`-th root of unity and at least four infinite places, inside the algebraic closure `Ω` of `ℚ`, |
| 635 | that lies in the cyclotomic field of level `N > 0`. Let `N + t < y`, let `γ` generate `Gal(Ω/E)` |
| 636 | topologically modulo the kernel of `cyc`, let `cyc γ ^ a - 1` divide `ℓ ^ h` for `0 < a < t`, let |
| 637 | `ℓ ≤ y ^ 2` or `h = 0`, and suppose that for all `ν` and `g` there is a `δ` of trivial `cyc` such |
| 638 | that `W` contains most Frobenii near `δ ^ ℓ ^ ν * g`. Then there is a finite linear order `J` with a |
| 639 | monotone map `ty` (the exponent) to the `e` with `0 < e < t` such that for each `ν > 0` some |
| 640 | Taylor–Wiles places `Q` of level `ℓ ^ ν` indexed by `J` have their Frobenius data in `W` and satisfy |
| 641 | `IsPrimeTriangle` for `γ⁻¹` with bounds `b = y * h` and `c = y ^ 22 * h`. This says, with `τ j` the |
| 642 | chosen generator of tame inertia and `φ j` the Frobenius element at the `j`-th place: |
| 643 | * the `φ j` fix `μ_{ℓ^ν}` and the places are not above `ℓ`; |
| 644 | * there is a finite set `s` of test points of trivial `cyc` with `(#J + #s + 1) * b ≤ c`, such that |
| 645 | a cocycle unramified off `ℓ` that vanishes at `γ⁻¹` and on `s` is zero, and for each exponent `e` |
| 646 | and each point of `s` some `φ j` of exponent `e` is where the even classes unramified off `ℓ` take |
| 647 | twice their value at that point; |
| 648 | * if an even class of exponent `ty j`, allowed to ramify at the places and their conjugates, |
| 649 | vanishes at the earlier `τ i` and at the earlier `φ i` of the same exponent, then `ℓ ^ b` kills |
| 650 | its value at `τ j`; |
| 651 | * `∏_{k ≠ e} (cyc γ ^ e - cyc γ ^ k)` and, for `e > 0`, `4 (cyc γ ^ e - 1) ^ 2` divide `ℓ ^ b`. -/ |
| 652 | lemma New.Selmer.exists_isPrimeTriangle {ℓ : ℕ} {E : Type} [ThePrime ℓ] [Field E] |
| 653 | [CMFieldWithRoot5040 E] (t : ℕ) {N y h : ℕ} {γ : Gal(Ω/E)} [NeZero N] |
| 654 | (hE : ∀ x : E, algebraMap E Ω x ∈ cycloField N) (hN : N + t < y) |
| 655 | (hγ_gen : (cyclotomicChar Ω ℓ).IsGeneratorModKer γ) |
| 656 | (hγ_dvd : ∀ a ∈ Set.Ioo 0 t, (cyclotomicChar Ω ℓ γ ^ a).val - 1 ∣ ℓ ^ h) |
| 657 | (hy : ℓ ≤ y ^ 2 ∨ h = 0) (h_inf_places : 4 ≤ Core.numInfPlaces E) {W : Set (FrobeniusDatum E)} |
| 658 | (hW : ∀ (ν : ℕ) (g : Gal(Ω/E)), ∃ δ : Gal(Ω/E), |
| 659 | cyclotomicChar Ω ℓ δ = 1 ∧ W ∈ mostFrobeniiAt E (δ ^ ℓ ^ ν * g)) : |
| 660 | ∃ (J : Type) (_ : Fintype J) (_ : LinearOrder J) (ty : J →o {e : Fin t // 0 < e.val}), |
| 661 | ∀ ν > (0 : ℕ), ∃ Q : TaylorWilesPlaces E J (ℓ ^ ν), |
| 662 | IsPrimeTriangle ν Q.place (fun j : J ↦ (Q.frobData j).isPlaceOver.tameGenerator) |
| 663 | (fun j : J ↦ (Q.frobData j).frob) γ⁻¹ t ty (y * h) (y ^ 22 * h) ∧ |
| 664 | ∀ j : J, Q.frobData j ∈ W := by |
| 665 | -- `J` has one place for each exponent `0 < e < t` and each test point `i ∈ testPoints`. In the |
| 666 | -- order of `J` choose a Kummer map and then a place, with `i` as test element. The test points |
| 667 | -- have trivial cyclotomic character, and with `γ⁻¹` they detect the cocycles unramified off `ℓ`. |
| 668 | obtain ⟨testPoints, h_ker, h_card, h_detect⟩ := |
| 669 | exists_detecting_points_mem_ker hE ℓ hγ_gen.inv |
| 670 | have hty : t + 2 ≤ y := by grind [NeZero.pos N] |
| 671 | -- `4` divides `cyc γ ^ e - 1`, which divides `ℓ ^ h`; so `4 (cyc γ ^ e - 1) ^ 2` divides |
| 672 | -- `ℓ ^ (3 h)`. |
| 673 | have h_four (e : {e : Fin t // 0 < e.val}) : |
| 674 | (4 * ((cyclotomicChar Ω ℓ γ ^ e.val.val).val - 1) ^ 2 : ℤ_[ℓ]) ∣ ℓ ^ (3 * h) := by |
| 675 | have he : (cyclotomicChar Ω ℓ γ ^ e.1.val).val - 1 ∣ ℓ ^ h := hγ_dvd _ ⟨e.2, e.1.isLt⟩ |
| 676 | have h_dvd : (2 ^ 2 : ℤ_[ℓ]) ∣ ℓ ^ h := |
| 677 | (four_dvd_cyclotomicChar_sub_one (γ ^ e.val.val)).trans (by simpa using he) |
| 678 | calc (4 * ((cyclotomicChar Ω ℓ γ ^ e.val.val).val - 1) ^ 2 : ℤ_[ℓ]) |
| 679 | = 2 ^ 2 * ((cyclotomicChar Ω ℓ γ ^ e.val.val).val - 1) ^ 2 := by norm_num |
| 680 | _ ∣ ℓ ^ h * (ℓ ^ h) ^ 2 := mul_dvd_mul h_dvd (pow_dvd_pow_of_dvd he 2) |
| 681 | _ = ℓ ^ (3 * h) := by ring |
| 682 | -- Well-order the test points, and order `J` lexicographically, first by the exponent. |
| 683 | obtain ⟨points_order, points_wf⟩ := exists_wellFoundedLT testPoints |
| 684 | let J : Type := {e : Fin t // 0 < e.val} ×ₗ testPoints |
| 685 | let ty : J →o {e : Fin t // 0 < e.val} := ⟨fun j ↦ (ofLex j).1, Prod.Lex.monotone_fst⟩ |
| 686 | refine ⟨J, inferInstance, inferInstance, ty, fun ν hν ↦ ?_⟩ |
| 687 | let ty' : J → Fin t := fun j ↦ ty j |
| 688 | let g' : J → Gal(Ω/E) := fun j ↦ (ofLex j).2 |
| 689 | obtain ⟨f, hf⟩ := TriangleEntry.exists_forall_mayFollow hν h_inf_places hty hγ_dvd (hW ν) ty' |
| 690 | (g := g') (fun j ↦ h_ker _ (coe_mem _)) fun ⟨j⟩ ↦ dvd_of_mul_right_dvd (h_four (ty j)) |
| 691 | have h_apart : IsConjApart fun j : J ↦ (f j).frobeniusDatum.place := |
| 692 | isConjApart_of_injective_primeBelowPlus (TriangleEntry.primeBelowPlus_injective_of_mayFollow hf) |
| 693 | refine ⟨⟨fun j ↦ (f j).frobeniusDatum, h_apart, fun j ↦ |
| 694 | (f j).isNuSplitPlace.prime_pow_dvd_q_sub_one⟩, |
| 695 | { isTameGeneratorFamily := TriangleEntry.isTameGeneratorFamily f |
| 696 | exists_test_points := ⟨testPoints, h_ker, ?_, fun O e ↦ h_detect, fun e i hi ↦ ?_⟩ |
| 697 | prod_dvd := fun e ↦ ?_ |
| 698 | pow_smul_eq_zero := fun O j z hz h_earlier ↦ |
| 699 | TriangleEntry.nsmul_tameGenerator_eq_zero_of_mayFollow hf hz (fun i hi ↦ (h_earlier i hi).1) |
| 700 | fun i hi h_eq ↦ (h_earlier i hi).2 (Subtype.ext h_eq) |
| 701 | four_mul_sq_dvd := fun O e ↦ ?_ }, fun j ↦ (hf j).mem⟩ |
| 702 | · -- There are at most `(t + 2) * y ^ 20 ≤ y ^ 21` places and points, each of cost `y * h`. |
| 703 | obtain hℓy | rfl := hy |
| 704 | · have h_one : testPoints.card + 1 ≤ 2 * y ^ 20 := by |
| 705 | grind [h_card y (by omega) hℓy, Nat.one_le_pow 20 y (by omega)] |
| 706 | grw [h_one, card_lex, card_prod, card_subtype_le, card_coe, h_card y (by omega) hℓy, |
| 707 | Fintype.card_fin, ← add_mul, hty] |
| 708 | exact le_of_eq (by ring) |
| 709 | · simp |
| 710 | · -- At the place of index `(e, i)` the even classes take twice their value at `i`. |
| 711 | exact ⟨toLex (e, ⟨i, hi⟩), rfl, (hf (toLex (e, ⟨i, hi⟩))).even_apply⟩ |
| 712 | · simpa using mul_prod_pow_sub_pow_dvd hty hγ_dvd e (one_dvd _) |
| 713 | · simpa [cyclotomicInv, map_ofNat] using map_dvd (algebraMap _ O) |
| 714 | (dvd_of_mul_right_dvd (mul_prod_pow_sub_pow_dvd hty hγ_dvd e.val (h_four e))) |