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 Mathlib.Algebra.GroupWithZero.Submonoid.CancelMulZero |
| 5 | import Mathlib.Algebra.Order.Star.Real |
| 6 | import Mathlib.Data.Rat.Cast.OfScientific |
| 7 | import Mathlib.Topology.Algebra.Module.Compact |
| 8 | import Mathlib.Topology.Connected.Separation |
| 9 | import Mathlib.Topology.MetricSpace.Ultra.TotallySeparated |
| 10 | public import New.Congruences.LocalLoss.LocalLattices |
| 11 | public import New.Congruences.FirstOrder.EvenClasses |
| 12 | public import New.Congruences.FirstOrder.FittingBlock |
| 13 | import Lib.ClassField.GaloisCohomology.TameSelmerCocycles |
| 14 | public import Lib.Cyclotomic.OddSha -- shake: keep (needed public by an exposed definition) |
| 15 | import New.Congruences.FirstOrder.TateTwistCocycles |
| 16 | import New.Congruences.GaloisRepresentations.AttachedRepresentations |
| 17 | import New.Congruences.GaloisRepresentations.RowsAndColumnsFromLabels |
| 18 | import New.Congruences.LocalLoss.CrystallineDefect |
| 19 | import New.Congruences.LocalLoss.TateDualBound |
| 20 | |
| 21 | /-! |
| 22 | # Constants, trace relations, lattices and local defects for Ribet's method |
| 23 | |
| 24 | This file fixes the constants of Ribet's method: the bound `New.Selmer.oddClassBound` for the odd |
| 25 | classes, the local defect bound, the error term `New.Selmer.denominatorError` and the clearing |
| 26 | bound `New.Selmer.clearingBound`. It checks the trace relations and chooses block diagonal lattices |
| 27 | for representations with the trace of a twisted main summand plus `t` powers of the cyclotomic |
| 28 | character. It adds up the crystalline colengths of the summands and bounds the local defects. |
| 29 | Here `New.ellVal` is the valuation on `ℚ̄_ℓ` with `ellVal ℓ = 1`, with negative values replaced |
| 30 | by 0, and `New.inertiaAbove S` is the union of the inertia groups above `S`. The primes |
| 31 | `p₀ = D.levelPrime 0` and `p₁ = D.levelPrime 1` give the principal level. |
| 32 | |
| 33 | ## Main definitions and results |
| 34 | |
| 35 | * `New.Selmer.exists_blockDiagonal_lattice`: let the trace form be non-degenerate on the span of the |
| 36 | image of `R'`, let `R'` have the trace of the twisted main summand `ψ R` plus the characters |
| 37 | `O(-e)`, `e < t`, and let the twisted lattice `ψ' R₀` span all matrices over `O`. Then `R'` has a |
| 38 | lattice that is block diagonal with summands `ψ' R₀` and the characters. |
| 39 | * `New.Selmer.crystallineColength_le_sum_dualDefect`: at each place `v` above `ℓ` let the lattices |
| 40 | of all `u x` and of `ρ` lie in the class `InClass (F v) (C v) (U v)`. Then the crystalline members |
| 41 | have colength, among Ribet's cocycles modulo `ℓ ^ M`, at most the sum over `v` of the defects |
| 42 | `dualDefect`. |
| 43 | |
| 44 | Notions from other files: |
| 45 | * `New.CoeffRing`: rings of integers of finite Galois extensions of `ℚ_ℓ` inside `ℚ̄_ℓ`; their |
| 46 | `normLength` is length over `O`, scaled so that `O/ℓ` has length 1. |
| 47 | * `New.Selmer.tateTwist`: the rank-one representation `O(-e)`, given by the power `e` of the inverse |
| 48 | `New.Selmer.cyclotomicInv` of the cyclotomic character. |
| 49 | * `New.Selmer.crystallineColength`: the length of the cocycles of a summand that obey the linear |
| 50 | relations among the `u x g - 1`, modulo those that obey the crystalline relations above `ℓ`. |
| 51 | * `New.Selmer.IsLiftSetting`: a descent pair `V` (`New.DescentPair`) has the places of the data and |
| 52 | of the twist `ϑ`, an odd rank `card r ≤ D.r` and an odd difference of ranks `V.rankDiff ≤ D.t`. |
| 53 | Its type polynomials `c i` are monic squarefree polynomials of degree `card r` over the residue |
| 54 | fields at the chosen places above `p₀` and `p₁`, with conditions on their roots. |
| 55 | * `New.Lift.InClass F C U`: the local lattices `Y` such that `Bmax ⊗ Y` is spanned by the periods |
| 56 | fixed both near `1` and along the filter `F`, the Hodge–Tate jumps lie in the sets `U`, and every |
| 57 | polynomial `Q` with `C s Q` kills the inertial element `s` on the periods. |
| 58 | |
| 59 | ## Relation to the literature |
| 60 | |
| 61 | The torsion cocycles that Ribet's method produces in the summands of a lift's Galois representation |
| 62 | need not reduce from crystalline ones. Local duality and a case analysis on ℓ bound their total |
| 63 | distance from the crystalline condition, over all summands and places above ℓ, by an explicit bound. |
| 64 | It is known that torsion crystalline classes can miss reductions of crystalline ones by a bounded |
| 65 | defect that vanishes for small weights. Related work: Sweeting, Bloch–Kato conjecture for |
| 66 | four-dimensional symplectic representations, 2025; Chang–Diamond, Extensions of rank one |
| 67 | (φ,Γ)-modules, 2011; T. Liu, Torsion p-adic Galois representations and a conjecture of Fontaine, |
| 68 | 2007. |
| 69 | -/ |
| 70 | |
| 71 | @[expose] public section |
| 72 | |
| 73 | namespace New.Selmer |
| 74 | |
| 75 | section RibetElement |
| 76 | |
| 77 | open Matrix Polynomial Fintype Module Filter ENNReal Finset CoeffRing |
| 78 | |
| 79 | open IsDiscreteValuationRing (addVal) |
| 80 | |
| 81 | section Constants |
| 82 | |
| 83 | variable {P : Parameters} (D : Data P) (ℓ : ℕ) |
| 84 | |
| 85 | /-- A positive integer, at most `2 ^ (4 (N + t + 3) ^ 27) h_E` for the conductor `N` and the class |
| 86 | number `h_E`, whose valuation in large coefficient rings bounds, for each `0 < e < t`, the length of |
| 87 | the odd classes (`shaOdd`) in `(O/ℓ^ν)(-e)`, and for `e = 0` the length of the unramified |
| 88 | homomorphisms. -/ |
| 89 | noncomputable def oddClassBound : ℕ := |
| 90 | (exists_length_shaOdd_le D.cyclotomicConductor D.t D.E D.algebraMap_mem_cycloField).choose |
| 91 | |
| 92 | lemma oddClassBound_ne_zero : oddClassBound D ≠ 0 := |
| 93 | (exists_length_shaOdd_le D.cyclotomicConductor D.t D.E D.algebraMap_mem_cycloField).choose_spec.1 |
| 94 | |
| 95 | /-- The chosen bound for the odd classes is at most `2 ^ (4 (N + t + 3) ^ 27)` times the class |
| 96 | number of `E`, where `N` is the conductor of the cyclotomic field that contains `E`. -/ |
| 97 | lemma oddClassBound_le : oddClassBound D ≤ |
| 98 | 2 ^ (4 * (D.cyclotomicConductor + D.t + 3) ^ 27) * NumberField.classNumber D.E := by |
| 99 | obtain ⟨-, h_size, -⟩ := |
| 100 | (exists_length_shaOdd_le D.cyclotomicConductor D.t D.E D.algebraMap_mem_cycloField).choose_spec |
| 101 | exact h_size |
| 102 | |
| 103 | /-- For every sufficiently large coefficient ring `O`, the valuation of `oddClassBound D` bounds |
| 104 | the length of the odd classes `shaOdd` in `(O/ℓ^ν)(-e)`, for all `e < t` and all `ν`. -/ |
| 105 | lemma eventually_length_shaOdd_le [ThePrime ℓ] : ∀ᶠ O : CoeffRing ℓ in atTop, ∀ e < D.t, ∀ ν : ℕ, |
| 106 | length O (shaOdd ℓ D.E O e ν) ≤ addVal O (oddClassBound D) := by |
| 107 | obtain ⟨-, -, h_odd⟩ := |
| 108 | (exists_length_shaOdd_le D.cyclotomicConductor D.t D.E D.algebraMap_mem_cycloField).choose_spec |
| 109 | exact (eventually_exists_isPrimitiveRoot _).mono fun O hO ↦ h_odd ℓ O ⟨hO, inferInstance⟩ |
| 110 | |
| 111 | /-- The number `loc_ℓ = 4 f defect_ℓ`: a bound, per unit of rank, for the local defect above `ℓ`. |
| 112 | Here `f = D.f` is the number of infinite places of `E`, and `defect_ℓ = defectBound D ℓ` is an |
| 113 | explicit number that depends only on `D` and `ℓ`. -/ |
| 114 | noncomputable def localDefectBound : NNReal := 4 * D.f * defectBound D ℓ |
| 115 | |
| 116 | /-- The error term `e_ℓ`, with crude constants. Its four terms pay for the class group and the odd |
| 117 | classes, the places above `p₀ p₁` (the principal level `D.M`), the idempotent and the automorphisms, |
| 118 | and the congruences between the characters `O(-e)`. Here `D.f` is the number of infinite places of |
| 119 | `E`, `D.halfGap = D.r ^ 8`, and `D.chosenGroupOrder` is the product of the orders of |
| 120 | `GL (D.r * D.t)` over the residue fields at the chosen places above `p₀` and `p₁`. -/ |
| 121 | noncomputable def denominatorError : ℝ≥0∞ := |
| 122 | D.t * padicValNat ℓ (oddClassBound D) + 8 * D.f * D.t * padicValNat ℓ D.chosenGroupOrder + |
| 123 | 2 * padicValNat ℓ D.chosenGroupOrder + |
| 124 | ((4 * D.t + 1) * D.halfGap ^ 22 + D.halfGap) * padicValNat ℓ D.chosenGroupOrder |
| 125 | |
| 126 | /-- The error term `denominatorError D ℓ` is the cast of a natural number, a combination of the |
| 127 | `ℓ`-adic valuations of `oddClassBound D` and `D.chosenGroupOrder`. -/ |
| 128 | lemma denominatorError_eq_natCast : |
| 129 | denominatorError D ℓ = |
| 130 | ((D.t * padicValNat ℓ (oddClassBound D) + 8 * D.f * D.t * padicValNat ℓ D.chosenGroupOrder + |
| 131 | 2 * padicValNat ℓ D.chosenGroupOrder + |
| 132 | ((4 * D.t + 1) * D.halfGap ^ 22 + D.halfGap) * padicValNat ℓ D.chosenGroupOrder : ℕ) : |
| 133 | ℝ≥0∞) := by |
| 134 | simp [denominatorError] |
| 135 | |
| 136 | lemma denominatorError_ne_top : denominatorError D ℓ ≠ ⊤ := |
| 137 | (denominatorError_eq_natCast D ℓ).trans_ne (ENNReal.natCast_ne_top _) |
| 138 | |
| 139 | /-- The clearing bound `β_ℓ = loc_ℓ + (1 + 2 t) e'_ℓ + e_ℓ + v_ℓ(N)` per unit of rank of a main |
| 140 | summand at `ℓ`, where `N = D.chosenGroupOrder`. Here `loc_ℓ = localDefectBound D ℓ` bounds the local |
| 141 | defect, `e'_ℓ = twistError ℓ D` is the number `(4 f + 3) r v_ℓ(N) + 2 ^ (-ℓ)` allowed for the Selmer |
| 142 | length and for the ramification of a twist, and `e_ℓ` is the error term `denominatorError`. -/ |
| 143 | noncomputable def clearingBound : NNReal := |
| 144 | localDefectBound D ℓ + (1 + 2 * D.t) * twistError ℓ D + (denominatorError D ℓ).toNNReal + |
| 145 | padicValNat ℓ D.chosenGroupOrder |
| 146 | |
| 147 | variable {D ℓ} |
| 148 | |
| 149 | /-- Let `1 ≤ r' ≤ D.r` and `t' ≤ D.t`. Let `sel` and `ram` be at most the allowance |
| 150 | `e'_ℓ = twistError ℓ D`. Then `sel + 2 t' ram + r' loc_ℓ + e_ℓ + v_ℓ(N) ≤ r' β_ℓ`. Here |
| 151 | `N = D.chosenGroupOrder` is a product of orders of general linear groups over residue fields, |
| 152 | `loc_ℓ = localDefectBound D ℓ` bounds the local defect above `ℓ` per unit of rank, |
| 153 | `e_ℓ = denominatorError D ℓ` is an error term, and `β_ℓ = clearingBound D ℓ` is by definition |
| 154 | `loc_ℓ + (1 + 2 D.t) e'_ℓ + e_ℓ + v_ℓ(N)`. -/ |
| 155 | lemma add_denominatorError_le_mul_clearingBound {r' t' : ℕ} (hr' : r' ∈ Set.Icc 1 D.r) |
| 156 | (ht' : t' ≤ D.t) {sel ram : ℝ≥0∞} (h_sel : sel ≤ twistError ℓ D) |
| 157 | (h_ram : ram ≤ twistError ℓ D) : |
| 158 | sel + 2 * t' * ram + r' * localDefectBound D ℓ + denominatorError D ℓ + |
| 159 | padicValNat ℓ D.chosenGroupOrder ≤ r' * clearingBound D ℓ := by |
| 160 | set err : ℝ≥0∞ := ↑(twistError ℓ D) |
| 161 | set loc : ℝ≥0∞ := ↑(localDefectBound D ℓ) |
| 162 | set v : ℝ≥0∞ := ↑(padicValNat ℓ D.chosenGroupOrder) |
| 163 | have h_one : (1 : ℝ≥0∞) ≤ r' := Nat.one_le_cast.2 hr'.1 |
| 164 | calc |
| 165 | _ ≤ err + 2 * D.t * err + r' * loc + denominatorError D ℓ + v := by gcongr |
| 166 | _ = r' * loc + 1 * ((1 + 2 * D.t) * err + denominatorError D ℓ + v) := by ring |
| 167 | _ ≤ r' * loc + r' * ((1 + 2 * D.t) * err + denominatorError D ℓ + v) := by gcongr |
| 168 | _ = r' * clearingBound D ℓ := by |
| 169 | simp [clearingBound, err, loc, v, coe_toNNReal (denominatorError_ne_top D ℓ), mul_add, |
| 170 | add_assoc] |
| 171 | |
| 172 | /-- The cost of `t' ≤ D.t` characters, an inequality between numbers. Let `v` be the `ℓ`-adic |
| 173 | valuation of `D.chosenGroupOrder`, let `h ≤ v` and put `sep = D.halfGap * h`. Let |
| 174 | `(k + nTest) sep ≤ halfGap ^ 22 h` and `nDetect ≤ 2 (k + nTest)`. Let `tame ≤ 2 ram + 8 D.f v` (the |
| 175 | cost of the tame places, and the ramification of the twist). Each character costs the valuation of |
| 176 | `oddClassBound D`, `tame`, and `2 nDetect sep`; a further `(k + 1) sep` is paid once. With `2 v` |
| 177 | this is at most `2 t' ram` plus the error term `denominatorError D ℓ`. -/ |
| 178 | lemma mul_padicValNat_add_le_add_denominatorError {t' h k nTest nDetect : ℕ} (ht' : t' ≤ D.t) |
| 179 | (h_le : h ≤ padicValNat ℓ D.chosenGroupOrder) |
| 180 | (h_points : (k + nTest) * (D.halfGap * h) ≤ D.halfGap ^ 22 * h) |
| 181 | (h_detect : nDetect ≤ 2 * (k + nTest)) |
| 182 | {tame ram : ℝ≥0∞} (h_tame : tame ≤ 2 * ram + 8 * D.f * padicValNat ℓ D.chosenGroupOrder) : |
| 183 | t' * padicValNat ℓ (oddClassBound D) + t' * (tame + 2 * nDetect * (D.halfGap * h : ℕ)) + |
| 184 | (k + 1) * (D.halfGap * h : ℕ) + 2 * padicValNat ℓ D.chosenGroupOrder ≤ |
| 185 | 2 * t' * ram + denominatorError D ℓ := by |
| 186 | unfold denominatorError |
| 187 | set v : ℕ := padicValNat ℓ D.chosenGroupOrder |
| 188 | set odd : ℕ := padicValNat ℓ (oddClassBound D) |
| 189 | -- the multiples of `sep`, counted in `ℕ` |
| 190 | have h_sep : t' * (2 * nDetect * (D.halfGap * h)) + (k + 1) * (D.halfGap * h) ≤ |
| 191 | ((4 * D.t + 1) * D.halfGap ^ 22 + D.halfGap) * v := calc |
| 192 | _ ≤ D.t * (2 * (2 * (k + nTest)) * (D.halfGap * h)) + |
| 193 | (k + nTest + 1) * (D.halfGap * h) := by |
| 194 | gcongr |
| 195 | exact k.le_add_right nTest |
| 196 | _ = (4 * D.t + 1) * ((k + nTest) * (D.halfGap * h)) + D.halfGap * h := by ring |
| 197 | _ ≤ (4 * D.t + 1) * (D.halfGap ^ 22 * v) + D.halfGap * v := by grw [h_points, h_le] |
| 198 | _ = _ := by ring |
| 199 | calc |
| 200 | _ = t' * odd + t' * tame + 2 * v + |
| 201 | (t' * (2 * nDetect * (D.halfGap * h)) + (k + 1) * (D.halfGap * h) : ℕ) := by |
| 202 | push_cast |
| 203 | ring |
| 204 | _ ≤ t' * odd + t' * (2 * ram + 8 * D.f * v) + 2 * v + |
| 205 | (((4 * D.t + 1) * D.halfGap ^ 22 + D.halfGap) * v : ℕ) := by gcongr |
| 206 | _ = 2 * t' * ram + (t' * odd + 8 * D.f * t' * v + 2 * v + |
| 207 | ((4 * D.t + 1) * D.halfGap ^ 22 + D.halfGap) * v) := by |
| 208 | push_cast |
| 209 | ring |
| 210 | _ ≤ _ := by gcongr |
| 211 | |
| 212 | end Constants |
| 213 | |
| 214 | variable {ℓ : ℕ} [ThePrime ℓ] {P : Parameters} {D : Data P} |
| 215 | {K Y n r : Type} [Fintype n] [DecidableEq n] [Fintype r] [DecidableEq r] |
| 216 | {t ν : ℕ} {w : K → FinPlace D.E} {τ φ : K → AbsGal D} {O : CoeffRing ℓ} |
| 217 | |
| 218 | /-- Ribet's cocycles vanish on the kernel of `u`: a cocycle `z` that obeys the linear relations |
| 219 | among the `u x g - 1` vanishes at every `g` with `u x g = 1` for all `x`. -/ |
| 220 | lemma ribetCocycles.apply_eq_zero {u : Y → AbsGal D →* Matrix n n O} |
| 221 | {ρ : AbsGal D →* Matrix r r O} {b : ↑O} {z : AbsGal D → r → QuotSpan b} |
| 222 | (hz : z ∈ ribetCocycles u ρ b) {g : AbsGal D} (hg : ∀ x : Y, u x g = 1) : z g = 0 := by |
| 223 | simpa using (mem_ribetCocycles.1 hz).2 (.single g 1) (by simp [funext_iff, hg]) |
| 224 | |
| 225 | open Ideal IsLocallyConstant in |
| 226 | /-- Let `z` be a cocycle for `ρ` modulo `b` that obeys the linear relations among the `u x g - 1` |
| 227 | (`ribetCocycles`), where the `u x` are continuous and trivial on the inertia groups outside |
| 228 | `S`. Then `z` is continuous and unramified outside `S`, so it lies in the Selmer module for `S` |
| 229 | and for every set `L` of relations that it obeys. -/ |
| 230 | lemma ribetCocycles.mem_selmerModule [Fintype Y] {u : Y → AbsGal D →* Matrix n n O} |
| 231 | (hu_cont : ∀ x : Y, Continuous (u x)) {S : Set (FinPlace D.E)} |
| 232 | (h_unr : ∀ g : AbsGal D, g ∈ inertiaAbove Sᶜ → ∀ x : Y, u x g = 1) |
| 233 | {ρ : AbsGal D →* Matrix r r O} {b : ↑O} [NeZero b] {z : AbsGal D → r → QuotSpan b} |
| 234 | (hz : z ∈ ribetCocycles u ρ b) {L : Set (AbsGal D →₀ Matrix r r O)} |
| 235 | (hzL : z ∈ obeying L (QuotSpan b)) : z ∈ selmerModule ρ S L (QuotSpan b) := by |
| 236 | -- By Artin–Rees the pairs `(u g - 1 + b ^ k • v, z g)` lie in a module `W` whose elements are |
| 237 | -- determined by their first coordinate. |
| 238 | obtain ⟨k, W, h_inj, hW⟩ := exists_graph_subrepresentation u ρ hz |
| 239 | have h_determined {g g' : AbsGal D} {v : Y → Matrix n n O} |
| 240 | (h_eq : (fun x ↦ u x g' - 1) + b ^ k • 0 = (fun x ↦ u x g - 1) + b ^ k • v) : z g' = z g := by |
| 241 | have h_pair : ((fun x ↦ u x g' - 1) + b ^ k • 0, z g') = |
| 242 | ((fun x ↦ u x g - 1) + b ^ k • v, z g) := |
| 243 | congrArg Subtype.val (h_inj (a₁ := ⟨_, hW g' 0⟩) (a₂ := ⟨_, hW g v⟩) h_eq) |
| 244 | exact congrArg Prod.snd h_pair |
| 245 | have h_coc : ∀ g g' : AbsGal D, z (g * g') = z g + ρ g • z g' := |
| 246 | mem_obeying_cocycleRelations.1 hz.1 |
| 247 | refine mem_selmerModule_iff.2 ⟨h_coc, fun g hg ↦ apply_eq_zero hz (h_unr g hg), hzL, ?_⟩ |
| 248 | -- So `z g` depends only on `u g` modulo `b ^ k`, which is locally constant in `g`. |
| 249 | have h_red : IsLocallyConstant fun g x ↦ (u x g).map (span {b ^ k}).mkQ := (iff_continuous _).2 |
| 250 | (continuous_pi fun x ↦ (hu_cont x).matrix_map (span {b ^ k}).continuous_mkQ) |
| 251 | refine (iff_eventually_eq _).2 fun g ↦ (h_red.eventually_eq g).mono fun g' hg' ↦ ?_ |
| 252 | have h_dvd (x : Y) (i j : n) : b ^ k ∣ u x g' i j - u x g i j := |
| 253 | mk_span_eq_iff_dvd_sub.1 (congrFun₃ hg' x i j) |
| 254 | choose v hv using h_dvd |
| 255 | refine h_determined (v := fun x ↦ of (v x)) ?_ |
| 256 | ext |
| 257 | simp [← hv] |
| 258 | |
| 259 | /-- Let every `u x` be conjugate self-dual with twist `t`. Let `w j` be new places with tame |
| 260 | generators `τ j` and elements `φ j` that fix the `ℓ ^ ν`-th roots of unity. Let `𝒥` be a trace |
| 261 | ideal. Then `𝒥` is also a trace ideal for the doubled families `withConjInv τ`, `withConjInv φ`, |
| 262 | which add the inverses of the conjugates; both copies of `j` use the variable `X j`. -/ |
| 263 | lemma isTraceIdeal_withConjInv (hw : IsTameGeneratorFamily ν w τ φ) |
| 264 | {S : Subalgebra O (Y → MvPolynomial K (PadicAlgCl ℓ))} |
| 265 | {𝒥 : Submodule S (Y → MvPolynomial K (PadicAlgCl ℓ))} {H : K → O[X]} |
| 266 | {u : Y → GalRep ℓ D.E n} (hu : ∀ x : Y, IsConjSelfDual t (u x)) |
| 267 | (h𝒥 : IsTraceIdeal 𝒥 (fun (x : Y) (g : AbsGal D) ↦ (u x g).val) (ℓ ^ ν : ↑O) τ φ id H) : |
| 268 | IsTraceIdeal 𝒥 (fun (x : Y) (g : AbsGal D) ↦ (u x g).val) (ℓ ^ ν : ↑O) (withConjInv τ) |
| 269 | (withConjInv φ) Prod.fst H := by |
| 270 | -- On the copy `(j, true)` the relation is the old one. On `(j, false)`, duality turns each trace |
| 271 | -- into a power of `χ = cyclotomicInv` times a trace at `g' = (g ^ c)⁻¹`. As `χ` is `1` at |
| 272 | -- `τ_j ^ (-c)` and `1` modulo `ℓ ^ ν` at `φ_j ^ (-c)`, the new relation is `χ g ^ (t - 1)` times |
| 273 | -- the old one at `g'`, up to a combination of the `ℓ ^ ν • trace`. |
| 274 | refine ⟨h𝒥.X_mem, h𝒥.charpoly_coeff_mem, h𝒥.smul_trace_mem, fun g ⟨j, copy⟩ ↦ ?_⟩ |
| 275 | cases copy |
| 276 | case true => exact h𝒥.trace_relation_mem g j |
| 277 | let k : K × Bool := (j, false) |
| 278 | let g' : AbsGal D := (conjGal g)⁻¹ |
| 279 | let χ : AbsGal D →* O := cyclotomicInv ℓ D.E O |
| 280 | have h_dual (f : K → AbsGal D) (i : ℕ) (x : Y) : |
| 281 | (u x (withConjInv f k ^ i * g)).val.trace = |
| 282 | χ (withConjInv f k ^ i * g) ^ (t - 1) • (u x (f j ^ i * g')).val.trace := by |
| 283 | simpa [k, g', χ, idOrConjInv, cyclotomicInv, trace_mul_comm _⁻¹, O.val.smul_def] using |
| 284 | (hu x).trace_conj ((f j)⁻¹ ^ i * conjGal g) |
| 285 | obtain ⟨hχτ : χ (withConjInv τ k) = 1, hχφ⟩ := hw.cyclotomicInv_withConjInv_eq_one_and_dvd O k |
| 286 | have h_cong : ∀ i : ℕ, ∃ a : ↑O, χ (withConjInv φ k) ^ i - 1 = ℓ ^ ν * a := hχφ |
| 287 | choose d hd using h_cong |
| 288 | have h_one (x : Y) : (u x g).val.trace = χ g ^ (t - 1) • (u x g').val.trace := by |
| 289 | simpa using h_dual τ 0 x |
| 290 | have h_τ (x : Y) : ((u x (withConjInv τ k)).val * u x g).trace = |
| 291 | χ g ^ (t - 1) • ((u x (τ j)).val * u x g').trace := by |
| 292 | simpa [hχτ] using h_dual τ 1 x |
| 293 | have h_φ (i : ℕ) (x : Y) : ((u x (withConjInv φ k)).val ^ i * u x g).trace = |
| 294 | ((1 + ℓ ^ ν * d ((t - 1) * i)) * χ g ^ (t - 1)) • ((u x (φ j)).val ^ i * u x g').trace := by |
| 295 | simpa [mul_pow, ← pow_mul', ← hd] using h_dual φ i x |
| 296 | have h_smul (c : ↑O) {f : Y → MvPolynomial K (PadicAlgCl ℓ)} (hf : f ∈ 𝒥) : |
| 297 | c • f ∈ 𝒥 := by |
| 298 | rw [Algebra.smul_def] |
| 299 | exact 𝒥.smul_mem ⟨_, S.algebraMap_mem c⟩ hf |
| 300 | -- expand `G` in powers and apply `h_φ` to each of them; `err` collects the multiples of `ℓ ^ ν` |
| 301 | let G : O[X] := (X - 1) * H j |
| 302 | let err (x : Y) : PadicAlgCl ℓ := ∑ i ∈ range (G.natDegree + 1), |
| 303 | (d ((t - 1) * i) * G.coeff i) • (ℓ ^ ν : ↑O) • (u x (φ j ^ i * g')).val.trace |
| 304 | have h_G (x : Y) : (aeval (u x (withConjInv φ k)).val G * u x g).trace = |
| 305 | χ g ^ (t - 1) • ((aeval (u x (φ j)).val G * u x g').trace + err x) := by |
| 306 | simp only [err, aeval_eq_sum_range, sum_mul, trace_sum, smul_mul_assoc, trace_smul, h_φ, |
| 307 | smul_add, smul_sum, smul_smul, ← sum_add_distrib, map_mul, map_pow, Units.val_mul, |
| 308 | Units.val_pow_eq_pow_val] |
| 309 | refine sum_congr rfl fun i _ ↦ ?_ |
| 310 | rw [← add_smul] |
| 311 | congr 1 |
| 312 | ring |
| 313 | have h_err : (fun x : Y ↦ MvPolynomial.C (err x)) ∈ 𝒥 := by |
| 314 | have h_expand : (fun x : Y ↦ (.C (err x) : MvPolynomial K (PadicAlgCl ℓ))) = |
| 315 | ∑ i ∈ range (G.natDegree + 1), (d ((t - 1) * i) * G.coeff i) • |
| 316 | fun x : Y ↦ .C ((ℓ ^ ν : ↑O) • (u x (φ j ^ i * g')).val.trace) := by |
| 317 | funext x |
| 318 | simp [err, Subalgebra.smul_def, MvPolynomial.smul_eq_C_mul] |
| 319 | rw [h_expand] |
| 320 | exact sum_mem fun i _ ↦ h_smul _ (h𝒥.smul_trace_mem (φ j ^ i * g')) |
| 321 | have h_X_err : (fun x : Y ↦ MvPolynomial.X j * MvPolynomial.C (err x)) ∈ 𝒥 := |
| 322 | 𝒥.smul_mem ⟨_, h𝒥.X_mem j⟩ h_err |
| 323 | -- `rel a b γ`: the trace of the relation that ties `a` to `b`, multiplied by `γ` |
| 324 | let rel (a b γ : AbsGal D) (x : Y) : MvPolynomial K (PadicAlgCl ℓ) := |
| 325 | .C (((u x a).val - 1) * u x γ).trace - .X j * .C (aeval (u x b).val G * u x γ).trace |
| 326 | have h_old : rel (τ j) (φ j) g' ∈ 𝒥 := h𝒥.trace_relation_mem g' j |
| 327 | have h_new : rel (withConjInv τ k) (withConjInv φ k) g = |
| 328 | χ g ^ (t - 1) • (rel (τ j) (φ j) g' - fun x : Y ↦ .X j * .C (err x)) := by |
| 329 | funext x |
| 330 | simp only [rel, sub_mul, one_mul, trace_sub, h_one x, h_τ, h_G, Pi.smul_apply, Pi.sub_apply, |
| 331 | Subalgebra.smul_def, smul_eq_mul, MvPolynomial.smul_eq_C_mul, map_sub, map_add, map_mul] |
| 332 | ring |
| 333 | change rel (withConjInv τ k) (withConjInv φ k) g ∈ 𝒥 |
| 334 | rw [h_new] |
| 335 | exact h_smul _ (sub_mem h_old h_X_err) |
| 336 | |
| 337 | /-- A subalgebra over the integers of `ℚ̄_ℓ`, read as a subalgebra over a coefficient ring. -/ |
| 338 | abbrev restrictToCoeffRing {A : Type} [CommRing A] [Algebra (PadicAlgCl ℓ) A] |
| 339 | [Algebra (intQpBar ℓ) A] [IsScalarTower (intQpBar ℓ) (PadicAlgCl ℓ) A] |
| 340 | (S : Subalgebra (intQpBar ℓ) A) (O : CoeffRing ℓ) : Subalgebra O A := |
| 341 | ⟨S.toSubsemiring, fun a ↦ by |
| 342 | have h := S.algebraMap_mem ⟨a, norm_le_one a⟩ |
| 343 | rw [IsScalarTower.algebraMap_apply (intQpBar ℓ) (PadicAlgCl ℓ) A] at h |
| 344 | exact h⟩ |
| 345 | |
| 346 | /-- Let `w j` be new places: `w j` is not above `ℓ`, `τ j` is a tame generator at `w j`, and `φ j` |
| 347 | fixes the `ℓ ^ ν`-th roots of unity. Let `u' x` be lattices over `O` in the conjugate self-dual |
| 348 | `u x`. Let the `S`-module `𝒥` be a trace ideal (`IsTraceIdeal`) for the `u x` over the integers of |
| 349 | `ℚ̄_ℓ`: it contains `ℓ ^ ν` times the traces and the traces of the relations that tie `τ j` to `φ j` |
| 350 | through `X j` and `H j`, and `S` contains the `X j` and the coefficients of the characteristic |
| 351 | polynomials. Let the polynomials `H' j` over `O` be equal to the `H j`. Then `𝒥` is a trace ideal |
| 352 | for the `u' x` over `O` and the doubled families `withConjInv τ`, `withConjInv φ`, which add the |
| 353 | inverses of the conjugates; both copies of `j` use `X j` and `H' j`. -/ |
| 354 | lemma IsTraceIdeal.of_isLatticeIn (hw : IsTameGeneratorFamily ν w τ φ) |
| 355 | {u : Y → GalRep ℓ D.E n} (hu : ∀ x : Y, IsConjSelfDual t (u x)) |
| 356 | {u' : Y → AbsGal D →* Matrix n n O} (hu' : ∀ x : Y, IsLatticeIn (u x) (u' x)) |
| 357 | {S : Subalgebra (intQpBar ℓ) (Y → MvPolynomial K (PadicAlgCl ℓ))} |
| 358 | {𝒥 : Submodule S (Y → MvPolynomial K (PadicAlgCl ℓ))} {H : K → (intQpBar ℓ)[X]} |
| 359 | (h𝒥 : IsTraceIdeal 𝒥 (fun (x : Y) (g : AbsGal D) ↦ (u x g).val) (ℓ ^ ν) τ φ id H) |
| 360 | {H' : K → O[X]} |
| 361 | (hH' : ∀ j : K, (H' j).map (algebraMap O (PadicAlgCl ℓ)) = (H j).map (intQpBar ℓ).subtype) : |
| 362 | IsTraceIdeal (S := restrictToCoeffRing S O) 𝒥 (fun x : Y ↦ u' x) (ℓ ^ ν) (withConjInv τ) |
| 363 | (withConjInv φ) Prod.fst H' := by |
| 364 | -- first change the ring of coefficients and add the conjugates, then pass to the lattices |
| 365 | have h_conj : IsTraceIdeal (S := restrictToCoeffRing S O) 𝒥 |
| 366 | (fun (x : Y) (g : AbsGal D) ↦ (u x g).val) (ℓ ^ ν) (withConjInv τ) (withConjInv φ) |
| 367 | Prod.fst H' := by |
| 368 | refine isTraceIdeal_withConjInv hw hu |
| 369 | ⟨h𝒥.X_mem, h𝒥.charpoly_coeff_mem, fun g ↦ ?_, fun g j ↦ ?_⟩ |
| 370 | · simpa [Algebra.smul_def] using! h𝒥.smul_trace_mem g |
| 371 | · simpa [hH', ← aeval_map_algebraMap (PadicAlgCl ℓ)] using! h𝒥.trace_relation_mem g j |
| 372 | -- `F x` carries `u' x` to `u x` and keeps traces |
| 373 | have h_algHom (x : Y) : ∃ F : Matrix n n O →ₐ[O] Matrix n n (PadicAlgCl ℓ), |
| 374 | (∀ g : AbsGal D, F (u' x g) = u x g) ∧ ∀ A : Matrix n n O, (F A).trace = A.trace.val := by |
| 375 | obtain ⟨F, -, hF, hF_det_trace⟩ := (hu' x).exists_algHom |
| 376 | exact ⟨F, hF, fun A ↦ (hF_det_trace A).2⟩ |
| 377 | choose F hF hF_trace using h_algHom |
| 378 | refine ⟨h_conj.X_mem, fun g k ↦ ?_, fun g ↦ ?_, fun g k ↦ ?_⟩ |
| 379 | · simpa [↓(hu' _).charpoly_eq_map] using h_conj.charpoly_coeff_mem g k |
| 380 | · simpa [← (hu' _).trace_eq, O.val.smul_def] using h_conj.smul_trace_mem g |
| 381 | · simpa [← hF, aeval_algHom_apply (F _), ← map_mul, sub_mul, hF_trace] using |
| 382 | h_conj.trace_relation_mem g k |
| 383 | |
| 384 | /-- The summand `e` of `summandRep T`, the family of a main summand `T` and `t` characters, is the |
| 385 | `1 × 1` matrix of the power `e` of the inverse cyclotomic character `cyclotomicInv`. -/ |
| 386 | lemma summandRep_some_apply (T : AbsGal D →* Matrix r r O) (e : Fin t) (g : AbsGal D) : |
| 387 | summandRep T (some e) g = |
| 388 | of fun _ _ : SummandCoordIndex r (some e) ↦ cyclotomicInv ℓ D.E O g ^ (e : ℕ) := |
| 389 | rfl |
| 390 | |
| 391 | /-- The index set of a main summand and `t` characters, as a sum and as a family of summands. -/ |
| 392 | def summandCoordIndexEquiv (r : Type) (t : ℕ) : |
| 393 | r ⊕ Fin t ≃ Sigma (SummandCoordIndex r (t := t)) where |
| 394 | toFun := Sum.elim (fun a ↦ ⟨none, a⟩) fun e ↦ ⟨some e, ()⟩ |
| 395 | invFun := Sigma.rec (Option.rec .inl fun e _ ↦ .inr e) |
| 396 | left_inv := by rintro (_ | _) <;> rfl |
| 397 | right_inv := by rintro ⟨_ | _, _⟩ <;> rfl |
| 398 | |
| 399 | /-- The block diagonal sum of a main summand `T` and the `t` characters `cyclotomicInv ^ e` is the |
| 400 | matrix with `T g` and a diagonal matrix on the diagonal, reindexed by `summandCoordIndexEquiv`. -/ |
| 401 | lemma blockDiagonal'_summandRep (T : AbsGal D →* Matrix r r O) (g : AbsGal D) : |
| 402 | blockDiagonal' (fun i : Option (Fin t) ↦ summandRep T i g) = |
| 403 | reindex (summandCoordIndexEquiv r t) (summandCoordIndexEquiv r t) |
| 404 | (fromBlocks (T g) 0 0 (diagonal fun e : Fin t ↦ cyclotomicInv ℓ D.E O g ^ e.val)) := by |
| 405 | refine (reindex _ _).symm_apply_eq.1 ?_ |
| 406 | ext1 (_ | _) (_ | _) |
| 407 | · simp [blockDiagonal', summandCoordIndexEquiv] |
| 408 | rfl |
| 409 | · simp [blockDiagonal', summandCoordIndexEquiv] |
| 410 | · simp [blockDiagonal', summandCoordIndexEquiv] |
| 411 | · simp [blockDiagonal', summandCoordIndexEquiv, summandRep_some_apply, diagonal] |
| 412 | rfl |
| 413 | |
| 414 | /-- Let the trace form be non-degenerate on the span of the image of `R'` (`IsTraceNondeg`). Let |
| 415 | `R'` have the trace of the twisted main summand `ψ R` plus the characters `O(-e)`, `e < t`, and let |
| 416 | the twisted lattice `ψ' R₀` span all matrices over `O`. Then `R'` has a lattice that is block |
| 417 | diagonal with summands `ψ' R₀` and the characters (`summandRep`), the summands being placed by |
| 418 | `ϵ`. -/ |
| 419 | lemma exists_blockDiagonal_lattice {ψ : AbsGal D →* PadicAlgCl ℓ} {R : GalRep ℓ D.E r} |
| 420 | {R' : GalRep ℓ D.E n} (hR' : IsTraceNondeg R') |
| 421 | (h_trace : ∀ g : AbsGal D, (R' g).val.trace = |
| 422 | ψ g * (R g).val.trace + ∑ e ∈ range t, cyclotomicInv ℓ D.E (PadicAlgCl ℓ) g ^ e) |
| 423 | {R₀ : AbsGal D →* Matrix r r O} (hR₀ : IsLatticeIn R R₀) {ψ' : AbsGal D →* O} |
| 424 | (hψ' : ∀ g : AbsGal D, ψ' g = ψ g) |
| 425 | (h_span : Submodule.span O (.range (twistRep (.id O) ψ' R₀)) = ⊤) |
| 426 | (ϵ : Sigma (SummandCoordIndex r (t := t)) ≃ n) : |
| 427 | ∃ v : AbsGal D →* Matrix n n O, IsLatticeIn R' v ∧ ∀ g : AbsGal D, v g = reindex ϵ ϵ |
| 428 | (blockDiagonal' fun i : Option (Fin t) ↦ summandRep (twistRep (.id O) ψ' R₀) i g) := by |
| 429 | set T : AbsGal D →* Matrix r r O := twistRep (.id O) ψ' R₀ |
| 430 | -- `Φ` puts a family of blocks along the diagonal; `ρ` is the family of summands over `ℚ̄_ℓ` |
| 431 | let Φ (A : Type) [CommRing A] := (reindexAlgEquiv A A ϵ).toAlgHom.comp blockDiagonalAlgHom |
| 432 | let ρ : AbsGal D →* ∀ i : Option (Fin t), |
| 433 | Matrix (SummandCoordIndex r i) (SummandCoordIndex r i) (PadicAlgCl ℓ) := |
| 434 | .pi fun i ↦ O.val.val.mapMatrix.toMonoidHom.comp (summandRep T i) |
| 435 | have h_semi : HasSemiprimeSpan (PadicAlgCl ℓ) ρ := by |
| 436 | intro y _ hy |
| 437 | ext (_ | e) a b |
| 438 | · -- on `T`, `y M y = 0` extends from `M = T g` to all matrices `M`; take an elementary one |
| 439 | have h_all : LinearMap.mulLeftRight O (y none, y none) ∘ₗ |
| 440 | (Algebra.linearMap O (PadicAlgCl ℓ)).mapMatrix = 0 := |
| 441 | LinearMap.ext_on_range h_span fun g ↦ congrFun (hy g) none |
| 442 | simpa [Matrix.mul_apply, single_apply, ite_and] using |
| 443 | congrFun₂ (LinearMap.congr_fun h_all (.single b a 1)) a b |
| 444 | · -- on a character, `y * y = 0` is an equation between numbers |
| 445 | let y_e : Matrix Unit Unit (PadicAlgCl ℓ) := y (some e) |
| 446 | have h_sq_all : y * y = 0 := by simpa using hy 1 |
| 447 | have h_sq : y_e * y_e = 0 := congrFun h_sq_all (some e) |
| 448 | have h_entry : y_e () () * y_e () () = 0 := by |
| 449 | simpa [Matrix.mul_apply] using congrFun₂ h_sq () () |
| 450 | exact mul_self_eq_zero.1 h_entry |
| 451 | -- both traces are the sum of the traces of the summands |
| 452 | have h_trace_main (g : AbsGal D) : (ρ g none).trace = ψ g * (R g).val.trace := by |
| 453 | change ((T g).map O.val.val).trace = _ |
| 454 | rw [← hR₀.trace_eq, ← hψ'] |
| 455 | simp [T, twistRep, trace, mul_sum] |
| 456 | have h_trace_char (g : AbsGal D) (e : Fin t) : |
| 457 | (ρ g (some e)).trace = cyclotomicInv ℓ D.E (PadicAlgCl ℓ) g ^ e.val := by |
| 458 | change ((summandRep T (some e) g).map O.val.val).trace = _ |
| 459 | rw [summandRep_some_apply] |
| 460 | simp [trace, cyclotomicInv] |
| 461 | simp! [map_pow, inv_pow] |
| 462 | have h_trace_eq (g : AbsGal D) : (R' g).val.trace = (Φ (PadicAlgCl ℓ) (ρ g)).trace := calc |
| 463 | _ = ∑ i : Option (Fin t), (ρ g i).trace := by |
| 464 | simp only [h_trace, sum_range, Fintype.sum_option, h_trace_main, h_trace_char] |
| 465 | _ = _ := by simp [Φ, trace, ← ϵ.sum_comp, Fintype.sum_sigma] |
| 466 | -- equal traces make `R'` conjugate to `Φ ρ`, which has entries in `O` |
| 467 | obtain ⟨Z, hZ⟩ := hR'.exists_conj_of_trace_eq ρ (Φ _) h_semi h_trace_eq |
| 468 | refine ⟨(Φ O).toMonoidHom.comp (.pi (summandRep T)), ⟨Z, fun g ↦ ?_⟩, fun _ ↦ rfl⟩ |
| 469 | have h_map : (Φ O fun i ↦ summandRep T i g).map O.val.val = Φ (PadicAlgCl ℓ) (ρ g) := by |
| 470 | change _ = Φ (PadicAlgCl ℓ) fun i ↦ (summandRep T i g).map O.val.val |
| 471 | simp [Φ, ← submatrix_map, blockDiagonal'_map] |
| 472 | change _ = (Φ O fun i ↦ summandRep T i g).map O.val.val |
| 473 | rw [h_map] |
| 474 | simp [hZ, mul_assoc] |
| 475 | |
| 476 | /-- Let the representations `u x`, indexed by the type `Y`, have lattices over `O` off `𝓧`. |
| 477 | For `x ∈ 𝓧`, assume non-degenerate trace form (`IsTraceNondeg`) and let the trace of `u x` be |
| 478 | that of the twisted main summand `ψ (R x)` plus the characters `O(-e)`, `e < t`, where the |
| 479 | twisted lattice `ψ' x R₀ x` spans all matrices. Then there are lattices in all these |
| 480 | representations that, for `x ∈ 𝓧`, are block diagonal with the twisted lattice of the main summand |
| 481 | and the characters. -/ |
| 482 | lemma exists_blockDiagonal_lattices {u : Y → GalRep ℓ D.E n} {𝓧 : Set Y} |
| 483 | (hu : ∀ x : 𝓧, IsTraceNondeg (u x)) |
| 484 | (h_lat : ∀ x : ↥(𝓧ᶜ), ∃ v : AbsGal D →* Matrix n n O, IsLatticeIn (u x) v) |
| 485 | {ψ : AbsGal D →* PadicAlgCl ℓ} {R : 𝓧 → GalRep ℓ D.E r} |
| 486 | (h_trace : ∀ (x : 𝓧) (g : AbsGal D), (u x g).val.trace = |
| 487 | ψ g * (R x g).val.trace + ∑ e ∈ range t, cyclotomicInv ℓ D.E (PadicAlgCl ℓ) g ^ e) |
| 488 | {R₀ : 𝓧 → AbsGal D →* Matrix r r O} (hR₀ : ∀ x : 𝓧, IsLatticeIn (R x) (R₀ x)) |
| 489 | {ψ' : 𝓧 → AbsGal D →* O} (hψ' : ∀ (x : 𝓧) (g : AbsGal D), ψ' x g = ψ g) |
| 490 | (h_span : ∀ x : 𝓧, Submodule.span O (.range (twistRep (.id O) (ψ' x) (R₀ x))) = ⊤) |
| 491 | (ϵ : Sigma (SummandCoordIndex r (t := t)) ≃ n) : |
| 492 | ∃ u' : Y → AbsGal D →* Matrix n n O, (∀ x : Y, IsLatticeIn (u x) (u' x)) ∧ |
| 493 | ∀ (x : 𝓧) (g : AbsGal D), u' x g = reindex ϵ ϵ (blockDiagonal' |
| 494 | fun i : Option (Fin t) ↦ summandRep (twistRep (.id O) (ψ' x) (R₀ x)) i g) := by |
| 495 | classical |
| 496 | choose v hv hv_block using fun x : 𝓧 ↦ |
| 497 | exists_blockDiagonal_lattice (hu x) (h_trace x) (hR₀ x) (hψ' x) (h_span x) ϵ |
| 498 | choose v' hv' using h_lat |
| 499 | refine ⟨fun x ↦ if hx : x ∈ 𝓧 then v ⟨x, hx⟩ else v' ⟨x, hx⟩, fun x ↦ ?_, |
| 500 | by simpa using hv_block⟩ |
| 501 | by_cases hx : x ∈ 𝓧 |
| 502 | · simpa [hx] using hv ⟨x, hx⟩ |
| 503 | · simpa [hx] using hv' ⟨x, hx⟩ |
| 504 | |
| 505 | section Model |
| 506 | |
| 507 | variable {ψ : AbsGal D →* PadicAlgCl ℓ} {R : GalRep ℓ D.E r} {Q : Finset (FinPlace D.E)} |
| 508 | {γ : AbsGal D} {R₀ : AbsGal D →* Matrix r r O} {ψ' : AbsGal D →* O} {ζ' : ↑O} |
| 509 | |
| 510 | /-- Let `R₀`, `ψ'`, `ζ'` be a model over `O` (`IsTwistedLattice`): `R₀` is a lattice in `R`, `ψ'` |
| 511 | is `ψ` with values in `O`, and `γ` acts on the twisted lattice `ψ' R₀` by the |
| 512 | scalar `ζ'`. Then `ψ' R₀` agrees with `R₀` at every `g` with `ψ g = 1`. -/ |
| 513 | lemma IsTwistedLattice.twistRep_apply_eq_of_eq_one (h_model : IsTwistedLattice ψ R γ R₀ ψ' ζ') |
| 514 | {g : AbsGal D} (hg : ψ g = 1) : twistRep (.id O) ψ' R₀ g = R₀ g := by |
| 515 | ext |
| 516 | simp [twistRep, h_model.twist_eq, hg] |
| 517 | |
| 518 | /-- Let `R₀`, `ψ'`, `ζ'` be a model over `O` (`IsTwistedLattice`): `R₀` is a lattice in `R`, `ψ'` |
| 519 | is `ψ` with values in `O`, and the inertial element `γ` acts on the twisted |
| 520 | lattice `ψ' R₀` by the scalar `ζ'`. Let `ψ` come from the norm-one torus with modulus `Q` |
| 521 | (`IsFromU1`). Let `R` be a main summand (`IsMainSummandLike`): a conjugate self-dual representation |
| 522 | of twist `t` and empty level, with Hodge–Tate jumps `J` read through the isomorphism `ℂ ≃ ℚ̄_ℓ` |
| 523 | fixed by `PadicIso ℓ`; only that `R` is unramified outside `ℓ p₀ p₁` (`p₀ p₁ = D.M`) is used. Then |
| 524 | `ψ' R₀` is unramified outside `ℓ p₀ p₁`, `Q` and `Q̄`. -/ |
| 525 | lemma IsTwistedLattice.twistRep_eq_one_of_mem_inertiaAbove [PadicIso ℓ] |
| 526 | (h_model : IsTwistedLattice ψ R γ R₀ ψ' ζ') |
| 527 | (hψ : IsFromU1 (placesDividing D.E ℓ) Q ψ) {J : (D.E →+* ℂ) → Multiset ℤ} |
| 528 | (h_summand : IsMainSummandLike D t J R) (g : AbsGal D) |
| 529 | (hg : g ∈ inertiaAbove (placesDividing D.E ℓ ∪ placesAboveM D ∪ .conjClosure Q)ᶜ) : |
| 530 | twistRep (.id O) ψ' R₀ g = 1 := by |
| 531 | obtain ⟨v, hv, hg⟩ := hg |
| 532 | rw [h_model.twistRep_apply_eq_of_eq_one (hψ.eq_one_of_mem_inertiaAbove g ⟨v, mt .inr hv, hg⟩)] |
| 533 | exact h_model.isLatticeIn.eq_one |
| 534 | (h_summand.eq_one_of_mem_inertiaAbove g ⟨v, by simpa using mt .inl hv, hg⟩) |
| 535 | |
| 536 | end Model |
| 537 | |
| 538 | /-- Let the `τ j` be tame generators at places `w j` off `ℓ`. Let `u x`, `x : Y`, be finitely many |
| 539 | continuous representations over `O`, unramified outside `ℓ p₀ p₁` (`p₀ p₁ = D.M`), `Q`, the `w j` |
| 540 | and their conjugates, and let `T` be unramified outside `ℓ p₀ p₁`, `Q` and `Q̄`. Consider the |
| 541 | cocycles in `T` modulo `ℓ ^ m` that obey the linear relations among the `u x g - 1`. Those that |
| 542 | vanish at `γ`, at the `τ j` and at the inverses of their conjugates have length at most |
| 543 | `crystallineColength T u m`, the length of all of them modulo those obeying the crystalline |
| 544 | relations above `ℓ`, plus the length of the Selmer cocycles `selmerCocycles T Q m γ`. -/ |
| 545 | lemma length_ribetCocyclesVanishingOn_le [Fintype Y] (hw : IsTameGeneratorFamily ν w τ φ) |
| 546 | {Q : Finset (FinPlace D.E)} |
| 547 | {u : Y → AbsGal D →* Matrix n n O} (hu_cont : ∀ x : Y, Continuous (u x)) |
| 548 | (hu_unr : ∀ g ∈ inertiaAbove (placesDividing D.E ℓ ∪ placesAboveM D ∪ |
| 549 | (.conjClosure Q ∪ (Set.range w).conjClosure))ᶜ, ∀ x : Y, u x g = 1) |
| 550 | {T : AbsGal D →* Matrix r r O} |
| 551 | (hT_unr : ∀ g ∈ inertiaAbove (placesDividing D.E ℓ ∪ placesAboveM D ∪ .conjClosure Q)ᶜ, T g = 1) |
| 552 | (m : ℕ) (γ : AbsGal D) : |
| 553 | length O (ribetCocyclesVanishingOn u T (QuotSpan (ℓ ^ m : ↑O)) (.range (withConjInv τ)) γ) ≤ |
| 554 | crystallineColength T u m + length O (selmerCocycles T Q m γ) := by |
| 555 | set Z : Submodule O (AbsGal D → r → QuotSpan (ℓ ^ m : ↑O)) := |
| 556 | ribetCocyclesVanishingOn u T (QuotSpan (ℓ ^ m : ↑O)) (.range (withConjInv τ)) γ |
| 557 | let Zf : Submodule O (AbsGal D → r → QuotSpan (ℓ ^ m : ↑O)) := |
| 558 | obeying (crysRelations T) (QuotSpan (ℓ ^ m : ↑O)) |
| 559 | -- A cocycle that kills the tame generators is unramified at the places `w j`; so the members of |
| 560 | -- `Z` that lie in `H¹_f` above `ℓ` are Selmer cocycles. |
| 561 | have h_selmer : Z ⊓ Zf ≤ selmerCocycles T Q m γ := by |
| 562 | rintro z ⟨hzZ, hz_crys⟩ |
| 563 | obtain ⟨hz, hzτ, hzγ⟩ := (mem_ribetCocyclesVanishingOn u).1 hzZ |
| 564 | have hz_sel : z ∈ selmerModule T (placesDividing D.E ℓ ∪ placesAboveM D ∪ |
| 565 | (.conjClosure Q ∪ (Set.range w).conjClosure)) (crysRelations T) (QuotSpan (ℓ ^ m : ↑O)) := |
| 566 | ribetCocycles.mem_selmerModule hu_cont hu_unr hz hz_crys |
| 567 | have hz_tame (k : K × Bool) : z (withConjInv τ k) = 0 := hzτ _ ⟨k, rfl⟩ |
| 568 | have hz_unr : z ∈ selmerModule T (placesDividing D.E ℓ ∪ placesAboveM D ∪ .conjClosure Q) |
| 569 | (crysRelations T) (QuotSpan (ℓ ^ m : ↑O)) := by |
| 570 | rw [← Set.union_assoc] at hz_sel |
| 571 | exact hw.mem_selmerModule_of_tame_eq_zero hz_sel hz_tame .rfl fun g hg _ ↦ hT_unr g hg |
| 572 | exact ⟨hz_unr, hzγ⟩ |
| 573 | rw [← relLength_add_length_inf Z Zf] |
| 574 | exact add_le_add (relLength_mono (inf_le_left.trans inf_le_left) le_rfl) (length_mono h_selmer) |
| 575 | |
| 576 | open scoped Classical in |
| 577 | /-- Let the places `w j` off `ℓ`, with tame generators `τ j`, elements `φ j` and monotone exponents |
| 578 | `0 < ty j < t`, form a triangle of primes for `g₀` up to `ℓ ^ sep`; `c` bounds `sep` times the |
| 579 | number of places and test points. Let the `u x` be continuous and unramified outside `ℓ p₀ p₁` |
| 580 | (`p₀ p₁ = D.M`), `Q`, the `w j` and their conjugates, and let `e < t`. Let `Z` consist of character |
| 581 | cocycles: cocycles in `O/ℓ^ν(-e)` that obey the relations among the `u x g - 1`, vanish at tame |
| 582 | generators `δ` of places `q` covering the remaining places prime to `ℓ` and at the inverses of their |
| 583 | conjugates, and, if they vanish at `γ`, have their value at `g₀` killed by every `χ g - 1`, |
| 584 | `χ = cyclotomicInv ^ e`. Here `γ` lies in inertia at a place not above `ℓ`. Then `HasTriangleCost` |
| 585 | holds along the `j` with `ty j = e`: for the members `Z₀` of `Z` that vanish on some set, agreement |
| 586 | at the earlier `τ i`, `φ i` and the inverses of their conjugates gives agreement at `τ j` up to |
| 587 | `ℓ ^ sep`, and the length of `Z / Z₀`, plus the length modulo `ℓ ^ sep`-torsion of any submodule of |
| 588 | `Z₀` that vanishes at the tame generators and agrees at the `φ j`, is at most the colength |
| 589 | `crystallineColength` of the crystalline members among Ribet's cocycles plus the length of `shaOdd`, |
| 590 | the cocycles unramified off `ℓ` that change sign under `conjGal`. Moreover a member of `Z` is zero |
| 591 | if it vanishes at the `τ j`, the inverses of their conjugates and on a set `s` that detects the |
| 592 | cocycles unramified outside `ℓ` (`IsDetectedBy`). -/ |
| 593 | lemma hasTriangleCost_of_isCharacterCocycle [Fintype Y] [Fintype K] [LinearOrder K] |
| 594 | {ty : K →o {e : Fin t // 0 < e.val}} {g₀ : AbsGal D} {sep c : ℕ} |
| 595 | (h_tri : IsPrimeTriangle ν w τ φ g₀ t ty sep c) {u : Y → AbsGal D →* Matrix n n O} |
| 596 | (hu_cont : ∀ x : Y, Continuous (u x)) {W : Type} {q : W → FinPlace D.E} {δ : W → AbsGal D} |
| 597 | (hq : IsTameGeneratorFamily 0 q δ 1) {Q : Finset (FinPlace D.E)} |
| 598 | (hq_cover : placesAboveM D ∪ .conjClosure Q ⊆ placesDividing D.E ℓ ∪ (Set.range q).conjClosure) |
| 599 | (hu_unr : ∀ g ∈ inertiaAbove (placesDividing D.E ℓ ∪ placesAboveM D ∪ |
| 600 | (.conjClosure Q ∪ (Set.range w).conjClosure))ᶜ, ∀ x : Y, u x g = 1) |
| 601 | (e : Fin t) {γ : AbsGal D} (hγ : γ ∈ inertiaAbove (placesDividing D.E ℓ)ᶜ) |
| 602 | {s : Finset (AbsGal D)} (hs : IsDetectedBy |
| 603 | (selmerModule (tateTwist ℓ D.E O e) (placesDividing D.E ℓ) ∅ (QuotSpan (ℓ ^ ν : ↑O))) s) |
| 604 | {Z : Submodule O (AbsGal D → Unit → QuotSpan (ℓ ^ ν : ↑O))} |
| 605 | (hZ : ∀ z ∈ Z, IsCharacterCocycle u (cyclotomicInv ℓ D.E O ^ e.val) (withConjInv δ) γ g₀ z) : |
| 606 | HasTriangleCost Z τ (fun j : K ↦ (conjGal (τ j))⁻¹) φ (fun j : K ↦ (conjGal (φ j))⁻¹) |
| 607 | {j : K | (ty j).val = e} (ℓ ^ sep) |
| 608 | (crystallineColength (tateTwist ℓ D.E O e) u ν + length O (shaOdd ℓ D.E O e ν)) ∧ |
| 609 | IsDetectedBy Z (s ∪ image (withConjInv τ) univ) := by |
| 610 | have h_cover : placesDividing D.E ℓ ∪ placesAboveM D ∪ |
| 611 | (.conjClosure Q ∪ (Set.range w).conjClosure) ⊆ |
| 612 | placesDividing D.E ℓ ∪ (Set.range w).conjClosure ∪ (Set.range q).conjClosure := by |
| 613 | rintro v ((hv | hv) | hv | hv) |
| 614 | · exact .inl (.inl hv) |
| 615 | · exact (hq_cover (.inl hv)).imp_left .inl |
| 616 | · exact (hq_cover (.inr hv)).imp_left .inl |
| 617 | · exact .inl (.inr hv) |
| 618 | have h_obey : Z ≤ ribetCocycles u (tateTwist ℓ D.E O e) (ℓ ^ ν) := fun z hz ↦ (hZ z hz).1 |
| 619 | have h_tame : ∀ z ∈ Z, ∀ k : W × Bool, z (withConjInv δ k) = 0 := fun z hz ↦ by |
| 620 | obtain ⟨-, h_vanish, -⟩ := hZ z hz |
| 621 | exact h_vanish |
| 622 | -- A member of `Z` that is unramified off `ℓ` vanishes at `γ`, so `(χ g₀ - 1) z(g₀) = 0`. |
| 623 | have h_g₀ : ∀ z ∈ Z, |
| 624 | z ∈ selmerModule (tateTwist ℓ D.E O e) (placesDividing D.E ℓ) ∅ (QuotSpan (ℓ ^ ν : ↑O)) → |
| 625 | (cyclotomicInv ℓ D.E O g₀ ^ e.val - 1) • z g₀ = 0 := by |
| 626 | intro z hz hz_sel |
| 627 | obtain ⟨-, h_unram, -⟩ := mem_selmerModule_iff.1 hz_sel |
| 628 | obtain ⟨-, -, h_kill⟩ := hZ z hz |
| 629 | exact h_kill (h_unram γ hγ) g₀ |
| 630 | -- The members of `Z` are unramified off `ℓ` and the new places. |
| 631 | have h_unr : Z ≤ selmerModule (tateTwist ℓ D.E O e) |
| 632 | (placesDividing D.E ℓ ∪ (Set.range w).conjClosure) ∅ (QuotSpan (ℓ ^ ν : ↑O)) := |
| 633 | fun z hz ↦ hq.mem_selmerModule_of_tame_eq_zero |
| 634 | (ribetCocycles.mem_selmerModule hu_cont hu_unr (h_obey hz) (by simp [obeying])) |
| 635 | (h_tame z hz) h_cover (fun _ _ ↦ tateTwist_eq_one_of_cyclotomicChar_eq_one) |
| 636 | refine ⟨hasTriangleCost_tateTwist h_tri h_unr h_g₀ ?_, fun z hz hzs ↦ hs z ?_ ?_⟩ |
| 637 | · exact add_le_add (relLength_mono h_obey le_rfl) le_rfl |
| 638 | · -- `z` kills the tame generators at the new places, so it is unramified off `ℓ` |
| 639 | exact h_tri.isTameGeneratorFamily.mem_selmerModule_of_tame_eq_zero (h_unr hz) |
| 640 | (fun k ↦ hzs _ (by simp)) .rfl (fun _ _ ↦ tateTwist_eq_one_of_cyclotomicChar_eq_one) |
| 641 | · exact fun g hg ↦ hzs g (mem_union_left _ hg) |
| 642 | |
| 643 | variable [PadicIso ℓ] |
| 644 | |
| 645 | open Period Lift GaloisRep in |
| 646 | /-- Let `V` be a descent pair of ranks `card r < card n`, with type polynomials `c i` over the |
| 647 | residue fields at its chosen places above `p₀` and `p₁`, forming a lift setting for the twist `ϑ`. |
| 648 | Let `t ≤ D.t`, and let `v` be a place above `ℓ` and above `D.levelPrime 0` or `D.levelPrime 1`. Then |
| 649 | `ℓ = D.levelPrime k` for some `k`. Fix any jumps `J`, any level `S` and an element `s` of inertia at |
| 650 | `v` (`IsWeilPair (toGp s) 0`). Consider the conjugate self-dual representations (`IsRepOfType`) with |
| 651 | these jumps and level on which inertia at the chosen places acts through the roots of |
| 652 | `scaledTypePoly V c i * (X - 1) ^ t`, where `scaledTypePoly` rescales the roots of `c i` by the |
| 653 | character of `V`. Let `O ⊆ ℚ̄_ℓ` be a coefficient ring (`CoeffRing ℓ`). The polynomials over `O` |
| 654 | whose images over `ℚ̄_ℓ` kill `s` on all these representations (`IsKilledBy`) satisfy `IsTameType`: |
| 655 | they include `X ^ e - 1`, with `e` the least common multiple of the `ℓ ^ i - 1` for `1 ≤ i ≤ D.r`, |
| 656 | and a monic polynomial over `ℤ_[ℓ]` of degree at most `(D.r + D.t) * D.r`. -/ |
| 657 | lemma isTameType_of_mem_placesAboveM {V : DescentPair D.E r n} |
| 658 | {c : ∀ i : V.ChosenIndex, (ResField (V.chosenPlace i))[X]} {ϑ : D.Twist} |
| 659 | (hc : IsLiftSetting V c ϑ) (ht : t ≤ D.t) |
| 660 | {J : (D.E →+* ℂ) → Multiset ℤ} {S : Set (FinPlace D.E)} |
| 661 | (v : placesDividing D.E ℓ) (hv : v.val ∈ placesAboveM D) : |
| 662 | ∃ k : Fin 2, ℓ = D.levelPrime k ∧ |
| 663 | ∀ s : decompGroup (AbsGal D) (placeOver v.val), IsWeilPair (toGp s) 0 → |
| 664 | IsTameType ℓ D.r ((D.r + D.t) * D.r) fun Q : O[X] ↦ v.val ∈ placesAboveM D ∧ |
| 665 | ∀ R : GalRep ℓ D.E n, |
| 666 | IsRepOfType V t J (fun i : V.ChosenIndex ↦ scaledTypePoly V c i * (X - 1) ^ t) S R → |
| 667 | IsKilledBy (decompRep R (placeOver v.val)) s 0 (Q.map O.val.val) := by |
| 668 | let ⟨k, hk⟩ : |
| 669 | ∃ k : Fin 2, (D.levelPrime k : NumberField.RingOfIntegers D.E) ∈ v.val.asIdeal := hv |
| 670 | have hℓ : D.levelPrime k = ℓ := (v.val.natCast_prime_mem_iff_eq hk).mp v.property |
| 671 | refine ⟨k, hℓ.symm, fun s hs ↦ ?_⟩ |
| 672 | obtain ⟨γ, -, hγ⟩ := exists_inertiaGroup_isInertiaSpectrum n hc hk v.val.isPlaceOver_placeOver t |
| 673 | obtain ⟨μ, hμ, -⟩ := hγ s ((localChart ℓ D.E v).isWeilPair_zero_iff.1 hs) |
| 674 | refine isTameType_of_roots (M := μ) (by grw [hμ.card_eq, hc.rank_le.1, ht]) |
| 675 | (by simpa only [hℓ] using hμ.exists_pow_eq_one) fun Q hQ ↦ ⟨hv, fun R hR ↦ ?_⟩ |
| 676 | -- `∏ (X - y)`, `y ∈ μ`, kills `s` on `R`, and `Q` vanishes on `μ` |
| 677 | exact (hμ.polyKillsAt hR).isKilledBy_of_roots hs |
| 678 | (by simpa [eval_multiset_prod, eval_map, sub_eq_zero] using! hQ) |
| 679 | |
| 680 | omit [PadicIso ℓ] in |
| 681 | open Period Lift in |
| 682 | /-- Ribet's cocycles above `ℓ`. At each place `v` above `ℓ`, let the restrictions of all `u x` and |
| 683 | of `ρ` lie in the class `InClass (F v) (C v) (U v)` of local lattices. This means three things. |
| 684 | Their periods are admissible along the filter `F v`. Their Hodge–Tate jumps lie in the sets `U v`. |
| 685 | Each inertial `s` is killed by every polynomial `Q` with `C v s Q`. Take the cocycles of `ρ` modulo |
| 686 | `ℓ ^ M` that obey the linear relations among the `u x g - 1`. Those that also obey the crystalline |
| 687 | relations above `ℓ` have colength at most the sum over `v` of the `dualDefect`. This defect is the |
| 688 | length of the crystalline cocycles of the Tate dual of `ρ`, modulo those orthogonal under cup |
| 689 | product to the class. -/ |
| 690 | lemma crystallineColength_le_sum_dualDefect [Fintype Y] {u : Y → AbsGal D →* Matrix n n O} |
| 691 | {ρ : AbsGal D →* Matrix r r O} |
| 692 | {F : ∀ v : placesDividing D.E ℓ, Filter (decompGroup (AbsGal D) (placeOver v.val))} |
| 693 | {C : ∀ v : placesDividing D.E ℓ, decompGroup (AbsGal D) (placeOver v.val) → O[X] → Prop} |
| 694 | {U : placesDividing D.E ℓ → (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ} |
| 695 | (hu : ∀ (v : placesDividing D.E ℓ) (x : Y), InClass (F v) (C v) (U v) (localLattice (u x) v)) |
| 696 | (hρ : ∀ v : placesDividing D.E ℓ, InClass (F v) (C v) (U v) (localLattice ρ v)) (M : ℕ) : |
| 697 | crystallineColength ρ u M ≤ ∑ v : placesDividing D.E ℓ, |
| 698 | dualDefect (InClass (F v) (C v) (U v)) (localLattice ρ v).tateDual := by |
| 699 | rw [crystallineColength, obeying_crysRelations] |
| 700 | exact (relLength_iInf_le _ _).trans (sum_le_sum fun v _ ↦ |
| 701 | relLength_ribetCocycles_le (localChart ℓ D.E v).inducesPlace.2.1 (hu v) M (hρ v)) |
| 702 | |
| 703 | open Period in |
| 704 | /-- Let `R` be a main summand (`IsMainSummandLike`), in particular conjugate self-dual with |
| 705 | Hodge–Tate jumps `J`, and let `T` agree on the decomposition group at `v` with a lattice `T₀` in |
| 706 | `R`. An element `g` of the absolute Galois group `Gp ℓ` of `ℚ_ℓ` gives an embedding |
| 707 | `coefficientEmbedding O g` of `O` and, through the chart `localChart` at `v`, a complex embedding |
| 708 | `σ` of `E`. At this embedding of `O` the summand `T` has the jumps `J σ`, and `O(-e)` has the single |
| 709 | jump `e`. -/ |
| 710 | lemma hasJumps_localLattice_summandRep {J : (D.E →+* ℂ) → Multiset ℤ} {R : GalRep ℓ D.E r} |
| 711 | (h_summand : IsMainSummandLike D t J R) {T T₀ : AbsGal D →* Matrix r r O} |
| 712 | (hT₀ : IsLatticeIn R T₀) |
| 713 | {v : placesDividing D.E ℓ} (hTT₀ : ∀ g ∈ decompGroup (AbsGal D) (placeOver v.val), T g = T₀ g) |
| 714 | (i : Option (Fin t)) (g : Gp ℓ) : |
| 715 | HasJumps (localLattice (summandRep T i) v).ρ (coefficientEmbedding O g) |
| 716 | (i.elim (J (complexEmbeddingOf ((localChart ℓ D.E v).e.comp (algebraMap D.E Ω)) g)) |
| 717 | fun e : Fin t ↦ {↑e}) := by |
| 718 | rcases i with _ | e |
| 719 | · let G := decompGroup (AbsGal D) (placeOver v.val) |
| 720 | have h_restrict : T.comp G.subtype = T₀.comp G.subtype := MonoidHom.ext fun s ↦ hTT₀ s s.2 |
| 721 | change HasJumps (matrixLattice (T.comp G.subtype)).ρ _ _ |
| 722 | rw [h_restrict] |
| 723 | exact h_summand.toIsConjSelfDualOfLevel.hasJumps_localLattice hT₀ v g |
| 724 | · intro a |
| 725 | rw [hasJumps_of_cyclotomicGp_zpow _ (tateTwist_smul _), finrank_pi] |
| 726 | simp! |
| 727 | |
| 728 | omit [DecidableEq r] in |
| 729 | open NumberField in |
| 730 | /-- At each place `v` above `ℓ`, a summand costs the local degree (the index of the decomposition |
| 731 | group in the absolute Galois group of `ℚ_ℓ`) times its rank times the explicit number |
| 732 | `defectBound D ℓ`, divided by `D.t` for a character. For a main summand of rank `r' = card r ≥ 1` |
| 733 | and `t ≤ D.t` characters the total is at most `r' · localDefectBound D ℓ`. -/ |
| 734 | lemma sum_index_mul_defectBound_le (hr : 1 ≤ card r) (ht : t ≤ D.t) : |
| 735 | ∑ i : Option (Fin t), ∑ v : placesDividing D.E ℓ, |
| 736 | ((localChart ℓ D.E v).toGp.range.index : ℝ≥0∞) * |
| 737 | (card (SummandCoordIndex r i) * (defectBound D ℓ / (if i = none then 1 else D.t : ℕ)) : |
| 738 | NNReal) ≤ |
| 739 | card r * localDefectBound D ℓ := by |
| 740 | classical |
| 741 | -- The local degree at `v` counts the embeddings of `E` that belong to `v`, out of `2 f`. |
| 742 | have h_degrees : ∑ v : placesDividing D.E ℓ, (localChart ℓ D.E v).toGp.range.index ≤ 2 * D.f := by |
| 743 | simpa [finrank_eq_two_mul_card_infinitePlace] using |
| 744 | sum_localChart_index_le_finrank (ℓ := ℓ) (E := D.E) |
| 745 | -- The main summand costs `r' defectBound`, and the characters together cost at most as much. |
| 746 | have h_blocks : ∑ i : Option (Fin t), |
| 747 | (card (SummandCoordIndex r i) * (defectBound D ℓ / (if i = none then 1 else D.t : ℕ)) : |
| 748 | NNReal) ≤ |
| 749 | 2 * card r * defectBound D ℓ := |
| 750 | calc |
| 751 | _ = card r * defectBound D ℓ + t * (defectBound D ℓ / D.t) := by simp [SummandCoordIndex] |
| 752 | _ ≤ card r * defectBound D ℓ + (card r * D.t : ℕ) * (defectBound D ℓ / D.t) := by |
| 753 | grw [ht, ← Nat.le_mul_of_pos_left D.t hr] |
| 754 | _ = 2 * card r * defectBound D ℓ := by |
| 755 | push_cast |
| 756 | field [Nat.cast_ne_zero.2 D.t_odd.pos.ne'] |
| 757 | calc |
| 758 | _ = ((∑ v : placesDividing D.E ℓ, (localChart ℓ D.E v).toGp.range.index : ℕ) : ℝ≥0∞) * |
| 759 | (∑ i : Option (Fin t), card (SummandCoordIndex r i) * |
| 760 | (defectBound D ℓ / (if i = none then 1 else D.t : ℕ)) : NNReal) := by |
| 761 | rw [Nat.cast_sum, ENNReal.ofNNReal_finsetSum, Finset.sum_mul_sum, sum_comm] |
| 762 | _ ≤ ((2 * D.f : ℕ) : ℝ≥0∞) * (2 * card r * defectBound D ℓ : NNReal) := by gcongr |
| 763 | _ = card r * localDefectBound D ℓ := by |
| 764 | rw [localDefectBound] |
| 765 | push_cast |
| 766 | ring |
| 767 | |
| 768 | open Period Lift Function GaloisRep in |
| 769 | /-- Let the descent pair `V`, with type polynomials `c i` at its chosen places, be a lift setting |
| 770 | for the twist `ϑ` (`IsLiftSetting`). Let `R` be a main summand of rank `r' = card r`, and let the |
| 771 | `ρ x` be representations of rank `card n` on which inertia at the chosen places acts through the |
| 772 | roots of `scaledTypePoly V c i * (X - 1) ^ t` (`IsRepOfType`). Over every sufficiently large |
| 773 | coefficient ring `O`, let the `u x` be lattices in the `ρ x`, and for one index `π` let `u π` be |
| 774 | block diagonal with summands `T` and the characters `O(-e)`, `e < t`, placed by `ϵ`, where `T` |
| 775 | agrees above `ℓ` with a lattice `T₀` in `R`. Then at each place `v` above `ℓ` there is a class |
| 776 | `InClass (F v) (C v) (U v)` of local lattices that contains the restrictions of all `u x` and of the |
| 777 | summands of `u π`. The defect `dualDefect` of a summand at `v` is the length of the crystalline |
| 778 | cocycles of its Tate dual modulo those orthogonal to the class; the defects of the `t + 1` summands |
| 779 | at all places above `ℓ`, scaled so that `O/ℓ` has length 1 (`normLength`), add up to at most |
| 780 | `r' · localDefectBound D ℓ`. -/ |
| 781 | lemma eventually_exists_inClass_sum_dualDefect_le {V : DescentPair D.E r n} |
| 782 | {c : ∀ i : V.ChosenIndex, (ResField (V.chosenPlace i))[X]} {ϑ : D.Twist} |
| 783 | (hc : IsLiftSetting V c ϑ) |
| 784 | {J J' : (D.E →+* ℂ) → Multiset ℤ} {S : Set (FinPlace D.E)} {R : GalRep ℓ D.E r} |
| 785 | {ρ : Y → GalRep ℓ D.E n} (h_summand : IsMainSummandLike D t J R) |
| 786 | (h_type : ∀ x : Y, |
| 787 | IsRepOfType V t J' (fun i : V.ChosenIndex ↦ scaledTypePoly V c i * (X - 1) ^ t) S (ρ x)) |
| 788 | (ϵ : Sigma (SummandCoordIndex r (t := t)) ≃ n) (π : Y) : |
| 789 | ∀ᶠ O : CoeffRing ℓ in atTop, ∀ (T T₀ : AbsGal D →* Matrix r r O) |
| 790 | (u : Y → AbsGal D →* Matrix n n O), |
| 791 | (∀ g : AbsGal D, |
| 792 | u π g = reindex ϵ ϵ (blockDiagonal' fun i : Option (Fin t) ↦ summandRep T i g)) → |
| 793 | (∀ x : Y, IsLatticeIn (ρ x) (u x)) → IsLatticeIn R T₀ → |
| 794 | (∀ v ∈ placesDividing D.E ℓ, ∀ g ∈ decompGroup (AbsGal D) (placeOver v), T g = T₀ g) → |
| 795 | ∃ (F : ∀ v : placesDividing D.E ℓ, Filter (decompGroup (AbsGal D) (placeOver v.val))) |
| 796 | (C : ∀ v : placesDividing D.E ℓ, decompGroup (AbsGal D) (placeOver v.val) → O[X] → Prop) |
| 797 | (U : placesDividing D.E ℓ → (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ), |
| 798 | (∀ (v : placesDividing D.E ℓ) (x : Y), InClass (F v) (C v) (U v) (localLattice (u x) v)) ∧ |
| 799 | (∀ (v : placesDividing D.E ℓ) (i : Option (Fin t)), |
| 800 | InClass (F v) (C v) (U v) (localLattice (summandRep T i) v)) ∧ |
| 801 | ∑ i : Option (Fin t), ∑ v : placesDividing D.E ℓ, O.normLength |
| 802 | (dualDefect (InClass (F v) (C v) (U v)) (localLattice (summandRep T i) v).tateDual) ≤ |
| 803 | card r * localDefectBound D ℓ := by |
| 804 | classical |
| 805 | -- Fix a place `v` above `ℓ`. The lattices `u x` lie in a class of local lattices, and so do the |
| 806 | -- summands of `u π`. Apply the defect bound at each `v` and sum over the summands and places. |
| 807 | filter_upwards [eventually_all.2 fun v : placesDividing D.E ℓ ↦ |
| 808 | normLength_dualDefect_le_of_isSummandClass h_summand.toIsMainSummandWeights |
| 809 | (localChart ℓ D.E v).inducesPlace.2] |
| 810 | with O h_place T T₀ u hπ hu_lat hT₀ hTT₀ |
| 811 | -- `L v i`: the summands at `v`; `f`: the splitting of `u π` into its summands |
| 812 | let G (v : placesDividing D.E ℓ) : Subgroup (AbsGal D) := decompGroup (AbsGal D) (placeOver v.val) |
| 813 | let L (v : placesDividing D.E ℓ) (i : Option (Fin t)) : GalLattice O (G v) := |
| 814 | localLattice (summandRep T i) v |
| 815 | let f : (n → ↑O) ≃ₗ[O] ∀ i : Option (Fin t), SummandCoordIndex r i → ↑O := |
| 816 | LinearEquiv.funCongrLeft O O ϵ ≪≫ₗ .piCurry O fun _ _ ↦ O |
| 817 | have hf (v : placesDividing D.E ℓ) (i : Option (Fin t)) (g : G v) (x : n → ↑O) : |
| 818 | f (u π g *ᵥ x) i = (L v i).ρ g (f x i) := by |
| 819 | simp [L, f, funext_iff, hπ, mulVec_apply_eq_sum, ← ϵ.sum_comp, Fintype.sum_sigma, |
| 820 | blockDiagonal'_apply', Sigma.curry] |
| 821 | -- `σ v g`: the complex embeddings of `E` that belong to `v`. In the class at `v` the jumps are |
| 822 | -- those of the representations of a type. Above `p₀ p₁` the lattices are potentially crystalline, |
| 823 | -- and `C v s Q` says that `Q` kills `s` on every representation of the given type; elsewhere they |
| 824 | -- are crystalline (`F v = ⊤`) and `C v` is empty. |
| 825 | let σ (v : placesDividing D.E ℓ) : Gp ℓ → D.E →+* ℂ := |
| 826 | complexEmbeddingOf ((localChart ℓ D.E v).e.comp (algebraMap D.E Ω)) |
| 827 | let F (v : placesDividing D.E ℓ) : Filter (G v) := ⨅ _ : v.val ∈ placesAboveM D, ⊥ |
| 828 | let C (v : placesDividing D.E ℓ) (s : G v) (Q : O[X]) : Prop := v.val ∈ placesAboveM D ∧ |
| 829 | ∀ R₀ : GalRep ℓ D.E n, |
| 830 | IsRepOfType V t J' (fun i ↦ scaledTypePoly V c i * (X - 1) ^ t) S R₀ → |
| 831 | IsKilledBy (decompRep R₀ (placeOver v.val)) s 0 (Q.map O.val.val) |
| 832 | let U (v : placesDividing D.E ℓ) : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ := |
| 833 | Multiset.toFinset ∘ (fun g ↦ J' (σ v g)) ∘ surjInv coefficientEmbedding_surjective |
| 834 | have hu (v : placesDividing D.E ℓ) (x : Y) : |
| 835 | (∀ g : Gp ℓ, HasJumps (localLattice (u x) v).ρ (coefficientEmbedding O g) (J' (σ v g))) ∧ |
| 836 | InClass (F v) (C v) (U v) (localLattice (u x) v) := |
| 837 | hasJumps_and_inClass_localLattice v (h_type x).toIsConjSelfDualOfLevel (h_type x) (hu_lat x) |
| 838 | -- a summand embeds equivariantly in `u π`, so it belongs to the class |
| 839 | have hL (v : placesDividing D.E ℓ) (i : Option (Fin t)) : InClass (F v) (C v) (U v) (L v i) := by |
| 840 | refine InClass.of_jointly_injective (fun _ ↦ (hu v π).2) |
| 841 | (fun () ↦ f.symm ∘ₗ .single O (fun i ↦ L v i) i) ?_ (by simp) |
| 842 | simp [f.symm_apply_eq, funext_iff, hf, fun g ↦ Pi.apply_single fun i ↦ (L v i).ρ g] |
| 843 | -- every jump of `u π` is a jump of some summand |
| 844 | have h_jump_from (v : placesDividing D.E ℓ) (γ : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) (a : ℤ) (ha : a ∈ U v γ) : |
| 845 | ∃ i : Option (Fin t), jump (L v i).ρ γ a ≠ 0 := by |
| 846 | obtain ⟨g, rfl, ha'⟩ : ∃ g : Gp ℓ, coefficientEmbedding O g = γ ∧ a ∈ J' (σ v g) := |
| 847 | ⟨_, surjInv_eq coefficientEmbedding_surjective γ, by simpa [U] using ha⟩ |
| 848 | have h_jump : jump (localLattice (u π) v).ρ (coefficientEmbedding O g) a ≠ 0 := |
| 849 | ((hu v π).1 g a).trans_ne (by simpa using ha') |
| 850 | exact exists_jump_of_jointly_injective (fun i ↦ (hL v i).isPotentiallyCrystalline) |
| 851 | (fun i ↦ .proj i ∘ₗ f.toLinearMap) (hf v) (by simp [← funext_iff, ← Pi.zero_def]) h_jump |
| 852 | have h_defect (i : Option (Fin t)) (v : placesDividing D.E ℓ) : |
| 853 | O.normLength (dualDefect (InClass (F v) (C v) (U v)) (L v i).tateDual) ≤ |
| 854 | (localChart ℓ D.E v).toGp.range.index * |
| 855 | (card (SummandCoordIndex r i) * (defectBound D ℓ / (if i = none then 1 else D.t : ℕ)) : |
| 856 | NNReal) := by |
| 857 | have h_rank (j : Option (Fin t)) : finrank O (L v j) = card (SummandCoordIndex r j) := |
| 858 | finrank_pi _ |
| 859 | rw [← h_rank] |
| 860 | have h_jumps := hasJumps_localLattice_summandRep h_summand hT₀ (hTT₀ v v.property) |
| 861 | refine h_place v ⟨?_, h_jump_from v, h_jumps none, fun c ↦ h_jumps (some c), h_rank none⟩ |
| 862 | i (hL v i) |
| 863 | -- the class is tame above `p₀ p₁` and crystalline elsewhere |
| 864 | by_cases hv : v.val ∈ placesAboveM D |
| 865 | · exact .inl (isTameType_of_mem_placesAboveM hc h_summand.t_le v hv) |
| 866 | · exact .inr (by simp [F, C, hv, funext_iff]) |
| 867 | refine ⟨F, C, U, fun v x ↦ (hu v x).2, hL, ?_⟩ |
| 868 | exact (sum_le_sum fun i _ ↦ sum_le_sum fun v _ ↦ h_defect i v).trans |
| 869 | (sum_index_mul_defectBound_le h_summand.rank_mem.1 h_summand.t_le) |
| 870 | |
| 871 | open GaloisRep in |
| 872 | /-- Let the descent pair `V` with type polynomials `c i` be a lift setting for `ϑ`, and let `R` be a |
| 873 | representation of a type on which inertia at the chosen places acts through the roots of the scaled |
| 874 | type polynomials times `(X - 1) ^ t`. Then each element `g` of inertia at a place above `p₀ p₁` and |
| 875 | prime to `ℓ` acts on `R` with order dividing `D.chosenGroupOrder`. -/ |
| 876 | lemma pow_chosenGroupOrder_eq_one_of_mem_inertiaAbove {V : DescentPair D.E r n} |
| 877 | {c : ∀ i : V.ChosenIndex, (ResField (V.chosenPlace i))[X]} {ϑ : D.Twist} |
| 878 | (hc : IsLiftSetting V c ϑ) |
| 879 | {J : (D.E →+* ℂ) → Multiset ℤ} {S : Set (FinPlace D.E)} {R : GalRep ℓ D.E n} |
| 880 | (hR : IsRepOfType V t J (fun i : V.ChosenIndex ↦ scaledTypePoly V c i * (X - 1) ^ t) S R) |
| 881 | {g : AbsGal D} (hg : g ∈ inertiaAbove (placesAboveM D \ placesDividing D.E ℓ)) : |
| 882 | (R g).val ^ D.chosenGroupOrder = 1 := by |
| 883 | obtain ⟨v, ⟨⟨i, hvi⟩, hvℓ⟩, A, hA : IsPlaceOver A v, hgA⟩ := hg |
| 884 | -- `R g` is killed by `∏ (X - y)`, `y ∈ μ`, and the order of each `y` divides some |
| 885 | -- `D.levelPrime i ^ d - 1`, which divides `chosenGroupOrder` |
| 886 | obtain ⟨γ, -, hγ⟩ := exists_inertiaGroup_isInertiaSpectrum n hc hvi hA t |
| 887 | obtain ⟨μ, hμ, -⟩ := hγ g hgA |
| 888 | have h_root (y : PadicAlgCl ℓ) (hy : y ∈ μ) : y ^ D.chosenGroupOrder = 1 := by |
| 889 | obtain ⟨d, ⟨hd_pos, hd_le⟩, hyd⟩ := hμ.exists_pow_eq_one y hy |
| 890 | obtain ⟨m, hm⟩ : D.levelPrime i ^ d - 1 ∣ D.chosenGroupOrder := |
| 891 | levelPrime_pow_sub_one_dvd_chosenGroupOrder D ⟨hd_pos, hd_le.trans D.nat_le_of_hasLogBound⟩ |
| 892 | rw [hm, pow_mul, hyd, one_pow] |
| 893 | -- inertia acts through a finite group, so a polynomial that vanishes on `μ` kills `R g` |
| 894 | have h_finite : IsFiniteTypeAt R A := (hR.local_conditions v (·.2 (.inr ⟨i, hvi⟩)) hA).1 |
| 895 | have h_aeval : aeval (R g).val (X ^ D.chosenGroupOrder - 1 : (PadicAlgCl ℓ)[X]) = 0 := |
| 896 | h_finite.aeval_eq_zero_of_roots (hA.valuation_natCast_eq_one_iff.2 hvℓ) hgA |
| 897 | (hμ.polyKillsAt hR) _ |
| 898 | (by simpa [eval_multiset_prod, sub_eq_zero] using h_root) |
| 899 | simpa [sub_eq_zero] using h_aeval |
| 900 | |
| 901 | /-- Let `V` with type polynomials `c i` form a lift setting (`IsLiftSetting`), and let `ψ` be an |
| 902 | auxiliary twist (`IsAuxTwist`): it comes from the norm-one torus with modulus `Q`, the places of `Q` |
| 903 | avoid the places `badPlaces D ℓ` that divide `ℓ p₀ p₁` or the level `D.N`, and the valuations of |
| 904 | `ψ - 1` at tame generators over `Q` add up to at most `ram`. Let the `u x` be representations of a |
| 905 | type with the scaled type polynomials, on which inertia above `Q` and `Q̄` satisfies |
| 906 | `(g - ψ g) (g - 1) = 0`, and let `u' x` and `ψ'` be models over `O`. Then there are finitely many |
| 907 | places `q j` prime to `ℓ`, covering `Q` and the places above `p₀ p₁` prime to `ℓ` up to conjugation, |
| 908 | with tame generators `δ j`. For each `δ` among the `δ j` and the inverses of their conjugates |
| 909 | (`withConjInv δ`) there is a polynomial `o` such that `o(δ) (δ - 1)` vanishes on every `u' x`, and |
| 910 | the valuations of the `o(1)` add up to at most `2 ram + 8 f v_ℓ(N)`, where `f = D.f` is the number |
| 911 | of infinite places of `E` and `N = D.chosenGroupOrder`. -/ |
| 912 | lemma exists_tame_relations {V : DescentPair D.E r n} |
| 913 | {c : ∀ i : V.ChosenIndex, (ResField (V.chosenPlace i))[X]} {ϑ : D.Twist} |
| 914 | (hc : IsLiftSetting V c ϑ) {ψ : AbsGal D →* PadicAlgCl ℓ} |
| 915 | {Q : Finset (FinPlace D.E)} {ram : ℝ≥0∞} (h_twist : IsAuxTwist (badPlaces D ℓ) Q ψ ram) |
| 916 | {J : (D.E →+* ℂ) → Multiset ℤ} {S : Set (FinPlace D.E)} {u : Y → GalRep ℓ D.E n} |
| 917 | (h_type : ∀ x : Y, |
| 918 | IsRepOfType V t J (fun i : V.ChosenIndex ↦ scaledTypePoly V c i * (X - 1) ^ t) S (u x)) |
| 919 | (h_quad : ∀ x : Y, ∀ g ∈ inertiaAbove (Set.conjClosure Q), |
| 920 | ((u x g).val - ψ g • 1) * ((u x g).val - 1) = 0) |
| 921 | {u' : Y → AbsGal D →* Matrix n n O} (hu' : ∀ x : Y, IsLatticeIn (u x) (u' x)) |
| 922 | {ψ' : AbsGal D →* O} (hψ' : ∀ g : AbsGal D, ψ' g = ψ g) : |
| 923 | ∃ (W : Type) (_ : Fintype W) (q : W → FinPlace D.E) (δ : W → AbsGal D) (o : W × Bool → O[X]), |
| 924 | IsTameGeneratorFamily 0 q δ 1 ∧ |
| 925 | placesAboveM D ∪ .conjClosure Q ⊆ placesDividing D.E ℓ ∪ (Set.range q).conjClosure ∧ |
| 926 | (∀ (k : W × Bool) (x : Y), aeval (u' x (withConjInv δ k)) (o k * (X - 1)) = 0) ∧ |
| 927 | O.normLength (∑ k : W × Bool, addVal O ((o k).eval 1)) ≤ |
| 928 | 2 * ram + 8 * D.f * padicValNat ℓ D.chosenGroupOrder := by |
| 929 | -- The places are those of `Q`, with `o = ψ(δ) - X`, and the set `M` of places above `p₀ p₁` prime |
| 930 | -- to `ℓ`, with `o = (X ^ N - 1) / (X - 1)`. |
| 931 | obtain ⟨-, hψ : IsFromU1 (placesDividing D.E ℓ) Q ψ, σ, hσ : |
| 932 | IsTameGeneratorFamily 0 Subtype.val σ 1, |
| 933 | h_ram : ∑ k : Q, ellVal (ψ (σ k) - 1) ≤ ram⟩ := h_twist |
| 934 | have h_fin : (placesAboveM D \ placesDividing D.E ℓ).Finite := |
| 935 | (badPlaces D ℓ).finite_toSet.subset fun v hv ↦ |
| 936 | placesDividing_union_subset_badPlaces D ℓ (.inr hv.1) |
| 937 | let M : Finset (FinPlace D.E) := h_fin.toFinset |
| 938 | have hM (v : M) : v.val ∈ placesAboveM D \ placesDividing D.E ℓ := h_fin.mem_toFinset.1 v.property |
| 939 | let q : Q ⊕ M → FinPlace D.E := Sum.elim (↑) (↑) |
| 940 | let δ : Q ⊕ M → AbsGal D := Sum.elim σ fun v ↦ v.val.isPlaceOver_placeOver.tameGenerator |
| 941 | have hq : IsTameGeneratorFamily 0 q δ 1 := by |
| 942 | rintro (v | v) |
| 943 | · exact hσ v |
| 944 | · exact ⟨(hM v).2, map_one _, placeOver v.val, v.val.isPlaceOver_placeOver, rfl⟩ |
| 945 | have h_inertia (k : (Q ⊕ M) × Bool) {S : Set (FinPlace D.E)} |
| 946 | (hS : q k.1 ∈ S ∧ star (q k.1) ∈ S) : withConjInv δ k ∈ inertiaAbove S := by |
| 947 | obtain ⟨-, -, A, hA : IsPlaceOver A (q k.1), hδA : hA.tameGenerator = δ k.1⟩ := hq k.1 |
| 948 | exact idOrConjInv_mem_inertiaAbove hA (by simp [← hδA]) hS _ |
| 949 | let o (k : (Q ⊕ M) × Bool) : O[X] := |
| 950 | k.1.elim (fun _ ↦ C (ψ' (withConjInv δ k)) - X) fun _ ↦ ∑ i ∈ range D.chosenGroupOrder, X ^ i |
| 951 | refine ⟨Q ⊕ M, inferInstance, q, δ, o, hq, ?_, fun k x ↦ ?_, ?_⟩ |
| 952 | · have h_range : Set.range q = ↑Q ∪ placesAboveM D \ placesDividing D.E ℓ := |
| 953 | Set.ext (by simp [q, M]) |
| 954 | rw [h_range] |
| 955 | rintro v (hv | hv | hv) |
| 956 | · by_cases hvℓ : v ∈ placesDividing D.E ℓ |
| 957 | · exact .inl hvℓ |
| 958 | · exact .inr (.inl (.inr ⟨hv, hvℓ⟩)) |
| 959 | · exact .inr (.inl (.inl hv)) |
| 960 | · exact .inr (.inr (.inl hv)) |
| 961 | · -- it suffices to check the relation on `u x`, which is the image of `u' x` under `F` |
| 962 | obtain ⟨F, hF_inj : Function.Injective F, hF : ∀ g : AbsGal D, F (u' x g) = u x g, -⟩ := |
| 963 | (hu' x).exists_algHom |
| 964 | apply hF_inj |
| 965 | obtain ⟨j | j, b⟩ := k |
| 966 | · -- at `Q` the eigenvalues are `1` and `ψ g` |
| 967 | set g : AbsGal D := withConjInv δ (.inl j, b) with hg |
| 968 | have h_prod : (ψ g • 1 - (u x g).val) * ((u x g).val - 1) = 0 := by |
| 969 | rw [← neg_sub, neg_mul, h_quad x g (h_inertia _ (by simp [q])), neg_zero] |
| 970 | have h_scalar : F (algebraMap O (Matrix n n O) (ψ' g)) = ψ g • 1 := by |
| 971 | rw [F.commutes, ← hψ', Algebra.algebraMap_eq_smul_one, O.val.smul_def] |
| 972 | simpa [o, ← hg, hF, h_scalar, -AlgHom.commutes] using h_prod |
| 973 | · -- above `p₀ p₁` the order divides `N` |
| 974 | have h_pow : (u x (withConjInv δ (.inr j, b))).val ^ D.chosenGroupOrder = 1 := |
| 975 | pow_chosenGroupOrder_eq_one_of_mem_inertiaAbove hc (h_type x) |
| 976 | (h_inertia _ (by simpa [q] using hM j)) |
| 977 | simpa [o, hF, geom_sum_mul, sub_eq_zero] using h_pow |
| 978 | · have h_card : (#M : ℝ≥0∞) ≤ 4 * D.f := |
| 979 | mod_cast card_le_of_subset_placesAboveM D (T := M) (by simp [M]) |
| 980 | calc |
| 981 | -- `o(1)` is `ψ (σ k) - 1` at both copies of `k ∈ Q`, `N` at both copies of a place of `M` |
| 982 | _ = 2 * ∑ k : Q, ellVal (ψ (σ k) - 1) + 2 * #M * padicValNat ℓ D.chosenGroupOrder := by |
| 983 | simp [o, δ, ellVal_natCast (NeZero.ne D.chosenGroupOrder), hψ', hψ.apply_idOrConjInv, |
| 984 | sum_prod_type, two_mul, add_mul, sum_add_distrib] |
| 985 | ring |
| 986 | _ ≤ 2 * ram + 2 * (4 * D.f) * padicValNat ℓ D.chosenGroupOrder := by gcongr |
| 987 | _ = 2 * ram + 8 * D.f * padicValNat ℓ D.chosenGroupOrder := by ring |
| 988 | |
| 989 | end RibetElement |
| 990 | |
| 991 | end New.Selmer |