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.RingTheory.TotallySplit |
| 5 | public import Lib.GaloisRep.Main.LocalConditions |
| 6 | public import Lib.General.Algebra.FittingIdealsAndLengths |
| 7 | public import Lib.General.NumberTheory.PadicLimitsValuation |
| 8 | public import New.Reduction.Data.AdmissibleData |
| 9 | import Lib.ClassField.Places.TameInertia |
| 10 | import Lib.PadicHodge.Crystalline.HodgeTateForms |
| 11 | |
| 12 | /-! |
| 13 | # Local loss above ℓ: main summand weights, b-places, crystalline relations and crystalline colength |
| 14 | |
| 15 | This file provides the data for the bound on the loss of a lift at the places of `E` above `ℓ` |
| 16 | (`New.Selmer.eventually_exists_inClass_sum_dualDefect_le`). It defines the conditions on the weights |
| 17 | of a main summand and the unit of that bound, and studies the signs of the embeddings in a Galois |
| 18 | orbit that define b-places. Fix `ι : ℂ ≃ ℚ̄_ℓ` through `New.PadicIso`. For `e : E → ℚ̄_ℓ` and `g` in |
| 19 | `New.Gp ℓ`, |
| 20 | `New.Selmer.complexEmbeddingOf e g = ι⁻¹ ∘ g⁻¹ ∘ e`. `New.Selmer.cmSign σ` is `1` if `σ` belongs to |
| 21 | the CM type and `-1` if not. |
| 22 | |
| 23 | ## Main definitions and results |
| 24 | |
| 25 | * `New.Selmer.crystallineLoss`, `New.Selmer.defectBound`: the crystalline loss, and the unit of the |
| 26 | bound on the total loss of a lift. |
| 27 | * `New.Selmer.ribetCocycles.exists_graph_subrepresentation`: for an element `a` of a noetherian ring |
| 28 | `O` and finitely many matrix representations `u x` of a group, a cocycle with values in `(O/aO)^d` |
| 29 | that obeys every linear relation among the families `(u x g - 1)_x` comes from an equivariant map |
| 30 | on a subrepresentation, given by its graph. Its domain contains the families `(u x g - 1)_x` and |
| 31 | all multiples of a power of `a` (Artin–Rees). |
| 32 | * `New.Selmer.SummandCoordIndex`, `New.Selmer.summandRep`: the summands of a lift, namely the main |
| 33 | summand and `t` powers of the inverse cyclotomic character (`New.Selmer.tateTwist`). |
| 34 | * `New.Selmer.crysCocyclesAt`, `New.Selmer.crysRelations`: the crystalline cocycles at `v`, and the |
| 35 | union over the places `v` above `ℓ` of the linear relations that hold on them, read as relations |
| 36 | on functions on the global Galois group. |
| 37 | * `New.Selmer.crystallineColength`: the length by which cocycles in `New.Selmer.ribetCocycles`, with |
| 38 | values in `(O/ℓ^M O)^n`, can miss these relations. |
| 39 | |
| 40 | Notions from other files: |
| 41 | * `New.Parameters`: The fixed parameters: a multiple `q₀` of `18480 = 16 · 3 · 5 · 7 · 11` and a |
| 42 | prime `d` with `d ≡ q₀/2 - 1 mod q₀`. For these, `P.E s = K(ζ)`, where `K = ℚ(√-d)` and `P.ζ s` is |
| 43 | a root of unity of order `P.q₁ s = 3^c 2^s q₀`, `c = ⌊log₃ s⌋ + 5`. The group `P.Φ s` of infinite |
| 44 | places of `P.E s` is identified with `(ℤ/q₁)ˣ`, and `P.placeClass` reduces it modulo a divisor of |
| 45 | `q₁`. |
| 46 | * `New.Data`: The admissible data `D`. Among them are the ranks `m`, `r`, `k = r + 1 - m`, the |
| 47 | length `t = 5r`, the weight `natB` and the set `D.bPlaces` of b-places of `D.E = P.E D.towerExp`, |
| 48 | which lies in the cyclotomic field of order `D.cyclotomicConductor = q₁ d`. |
| 49 | * `New.Gp`: The absolute Galois group G_p = Gal(Q̄_p over Q_p). |
| 50 | * `New.Period.crysCocycles`: Z_f(T), the module of maps c: Γ → T such that some y in B⊗T, B = B_max, |
| 51 | has 1⊗c(g) = gy − y for all g. |
| 52 | * `New.CoeffRing`: Rings of integers of finite Galois extensions of `ℚ_ℓ` inside `ℚ̄_ℓ`. |
| 53 | |
| 54 | ## Relation to the literature |
| 55 | |
| 56 | See `Lib.PadicHodge.BlochKato` and `Lib.ClassField.Places.LocalFields` for sources. |
| 57 | -/ |
| 58 | |
| 59 | @[expose] public section |
| 60 | |
| 61 | noncomputable section |
| 62 | |
| 63 | namespace New.Selmer |
| 64 | |
| 65 | /-! |
| 66 | ## Signs of embeddings, jump conditions of a main summand and the defect bound |
| 67 | |
| 68 | * `New.Selmer.IsMainSummandWeights`: where the jumps of a main summand lie and how many are small or |
| 69 | negative. |
| 70 | |
| 71 | The numbers `D.k = D.r + 1 - D.m`, `D.halfGap = D.r ^ 8` (half the gap) and `D.natB` are read off |
| 72 | the data. |
| 73 | -/ |
| 74 | |
| 75 | section MainSummandWeights |
| 76 | |
| 77 | variable {E : Type*} [Field E] {P : Parameters} (D : Data P) |
| 78 | |
| 79 | open scoped Classical in |
| 80 | /-- The sign of a complex embedding σ of E: 1 if σ is the embedding the CM type chooses at its |
| 81 | place, and −1 otherwise. -/ |
| 82 | def cmSign [c : PlaceEmbedding E] (σ : E →+* ℂ) : ℤˣ := |
| 83 | if σ = c.Φ (NumberField.InfinitePlace.mk σ) then 1 else -1 |
| 84 | |
| 85 | /-- The complex embedding ι⁻¹ ∘ g⁻¹ ∘ e of E, for e: E → ℚ̄_ℓ and g in G_ℓ. -/ |
| 86 | def complexEmbeddingOf {ℓ : ℕ} [Fact ℓ.Prime] [PadicIso ℓ] (e : E →+* PadicAlgCl ℓ) (g : Gp ℓ) : |
| 87 | E →+* ℂ := |
| 88 | ιℓ.symm.toRingHom.comp (g⁻¹.toRingHom.comp (α := E) e) |
| 89 | |
| 90 | /-- The conditions on the jumps `J σ` (a multiset of integers for each complex embedding `σ`) of a |
| 91 | main summand of rank `r` with a string of length `t`, for admissible data `D`: each jump is low or |
| 92 | near `∓w_j(σ)`, where `w_j = D.liftWeight j` is the weight of the `j`-th lift, `j ≤ D.m`; few jumps |
| 93 | have `|u| ≤ 2 halfGap²`, and at most `r` jumps at `σ` and `σ̄` together are negative. -/ |
| 94 | structure IsMainSummandWeights (r t : ℕ) (J : (D.E →+* ℂ) → Multiset ℤ) where |
| 95 | /-- The rank `r` lies between `1` and `D.r`. -/ |
| 96 | rank_mem : r ∈ Set.Icc 1 D.r |
| 97 | /-- The length `t` of the string is at most `D.t`. -/ |
| 98 | t_le : t ≤ D.t |
| 99 | /-- For one `j ≤ m`, each jump `u` at an embedding `σ` is low, `Δ / 4 ≤ |u| ≤ 2 m Δ` with |
| 100 | `Δ = D.gap = 2 halfGap`, or high: within `D.t` of `-w_j(σ)` if `σ` is in the CM type, of `w_j(σ)` |
| 101 | otherwise. -/ |
| 102 | low_or_high : ∃ j ≤ D.m, ∀ σ : D.E →+* ℂ, ∀ u ∈ J σ, |
| 103 | D.gap ≤ 4 * u.natAbs ∧ u.natAbs ≤ 2 * D.m * D.gap ∨ |
| 104 | |cmSign σ * u + D.liftWeight j (NumberField.InfinitePlace.mk σ)| ≤ D.t |
| 105 | /-- At most `r m / k` jumps `u` at `σ` are small: `|u| ≤ 2 halfGap²`. -/ |
| 106 | card_small_le (σ : D.E →+* ℂ) : (J σ).countP (·.natAbs ≤ 2 * D.halfGap ^ 2) * D.k ≤ r * D.m |
| 107 | /-- At most `r` jumps at `σ` and `σ̄` together are negative. -/ |
| 108 | card_neg_le (σ : D.E →+* ℂ) : (J σ).countP (· < 0) + (J (star σ)).countP (· < 0) ≤ r |
| 109 | |
| 110 | /-- Let `σ` be a complex embedding of the field `E` of the admissible data `D`, with sign |
| 111 | `cmSign σ` equal to `1` if `σ` belongs to the CM type and `-1` if not. Let `w` be the weight |
| 112 | `D.liftWeight j` of the character of the `j`-th lift at the infinite place of `σ`, and let |
| 113 | `D.t = 5 * D.r`. If an integer `u` lies within `D.t` of `-cmSign σ * w`, then `|u|` exceeds every |
| 114 | `B` with `B + D.t < w`. -/ |
| 115 | lemma lt_natAbs_of_abs_add_liftWeight_le {D : Data P} {j B : ℕ} {σ : D.E →+* ℂ} {u : ℤ} |
| 116 | (hB : B + D.t < D.liftWeight j (NumberField.InfinitePlace.mk σ)) |
| 117 | (h_near : |cmSign σ * u + D.liftWeight j (NumberField.InfinitePlace.mk σ)| ≤ D.t) : |
| 118 | B < u.natAbs := by |
| 119 | rw [abs_le] at h_near |
| 120 | obtain hσ | hσ := Int.units_eq_one_or (cmSign σ) <;> |
| 121 | simp only [hσ, Units.val_neg, Units.val_one] at h_near <;> omega |
| 122 | |
| 123 | /-- The crystalline loss of three natural numbers h, b, l: the l-adic valuation of the product of |
| 124 | (2b)! and P^(h³), where P is the product of the natural numbers k with |
| 125 | max(b − 30h³, 0) < k ≤ b + 30h³. -/ |
| 126 | @[irreducible] |
| 127 | def crystallineLoss (h b l : ℕ) : ℕ := |
| 128 | padicValNat l |
| 129 | ((2 * b).factorial * (∏ k ∈ Finset.Ioc (b - 30 * h ^ 3) (b + 30 * h ^ 3), k) ^ h ^ 3) |
| 130 | |
| 131 | /-- The unit at `l` of the bound on the loss of a lift, for the data `D`: |
| 132 | `10⁶ (m/k) (natB v_l(M) + crystallineLoss halfGap natB l)`, where `v_l` is the `l`-adic valuation |
| 133 | and `M = D.M` is the product of the two level primes. -/ |
| 134 | def defectBound (l : ℕ) : NNReal := |
| 135 | 10 ^ 6 * (D.m / D.k * (D.natB * padicValNat l D.M + crystallineLoss D.halfGap D.natB l)) |
| 136 | |
| 137 | end MainSummandWeights |
| 138 | |
| 139 | /-! |
| 140 | ## Spacing and signs of the b-places in a Galois orbit |
| 141 | |
| 142 | For `e : E → ℚ̄_ℓ`, each `g` gives a complex embedding `New.Selmer.complexEmbeddingOf e g`, and so |
| 143 | an infinite place. The infinite places of `E` form a group identified with `(ℤ/q₁)ˣ` through the |
| 144 | action on the root of unity `New.Parameters.ζ`. |
| 145 | |
| 146 | The results use two properties of the set `D.bPlaces` of b-places: its members have class `-1` |
| 147 | modulo `q₀` (`New.Data.placeClass_of_mem_bPlaces`) and it is sparse (`New.Data.sparse`). |
| 148 | -/ |
| 149 | |
| 150 | section BPlaceSpacing |
| 151 | |
| 152 | open Fact Int ZMod IsCyclotomicExtension Parameters IsAlgClosed |
| 153 | |
| 154 | variable {P : Parameters} {D : Data P} {ℓ : ℕ} [hp : Fact ℓ.Prime] |
| 155 | |
| 156 | /-- The field `D.E` of the data `D` lies in the cyclotomic field of order |
| 157 | `D.cyclotomicConductor = q₁ d`. So an element `g` of `Gp ℓ = Gal(ℚ̄_ℓ/ℚ_ℓ)` that fixes every `ζ` in |
| 158 | `ℚ̄_ℓ` with `ζ ^ D.cyclotomicConductor = 1` has `g (e x) = e x` for every embedding `e : D.E → ℚ̄_ℓ` |
| 159 | and every `x`. -/ |
| 160 | lemma fixes_emb_of_fixes_rootsOfUnity {e : D.E →+* PadicAlgCl ℓ} {g : Gp ℓ} |
| 161 | (h_roots : ∀ ζ : PadicAlgCl ℓ, ζ ^ D.cyclotomicConductor = 1 → g ζ = ζ) (x : D.E) : |
| 162 | g (e x) = e x := by |
| 163 | -- `e` extends to an embedding `ψ` of the cyclotomic field, which a root of unity generates |
| 164 | let _ : Algebra (P.E D.towerExp) (cycloField (P.q₁ D.towerExp * P.d)) := toCycloField.toAlgebra |
| 165 | obtain ⟨ψ, hψ⟩ : ∃ ψ : cycloField D.cyclotomicConductor →ₐ[ℚ] PadicAlgCl ℓ, |
| 166 | ψ.domRestrict D.E = e.toRatAlgHom := |
| 167 | surjective_domRestrict_of_isAlgebraic (E := cycloField D.cyclotomicConductor) e.toRatAlgHom |
| 168 | have h_zeta : g (ψ (zeta D.cyclotomicConductor ℚ _)) = ψ (zeta D.cyclotomicConductor ℚ _) := |
| 169 | h_roots _ (by rw [← map_pow, zeta_pow, map_one]) |
| 170 | have h_fix : (g.restrictScalars ℚ : PadicAlgCl ℓ →ₐ[ℚ] PadicAlgCl ℓ).comp ψ = ψ := |
| 171 | ((zeta_spec D.cyclotomicConductor ℚ _).powerBasis ℚ).algHom_ext h_zeta |
| 172 | have hx : ψ (algebraMap D.E (cycloField D.cyclotomicConductor) x) = e x := DFunLike.congr_fun hψ x |
| 173 | rw [← hx] |
| 174 | exact DFunLike.congr_fun h_fix _ |
| 175 | |
| 176 | /-- A complex embedding `σ` sends `√-d` to `cmSign σ` times the chosen square root of `-d`. -/ |
| 177 | lemma map_sqrtNegDInE_eq_cmSign_mul (σ : D.E →+* ℂ) : |
| 178 | σ (P.sqrtNegDInE D.towerExp) = cmSign σ * QuadField.sqrtNegD P.d := by |
| 179 | -- `σ` or its conjugate is chosen by the CM type at its place, and conjugation negates `√-d` |
| 180 | obtain hσ | hσ := Φ_mk_eq_or_star_eq σ <;> rw [← hσ] <;> simp [cmSign, ← RCLike.star_def] |
| 181 | |
| 182 | /-- Let `E = K(ζ)` with `K = ℚ(√-d)` and `ζ = P.ζ D.towerExp` a root of unity. For an infinite place |
| 183 | `w` of `E`, `Φ w` is the embedding at `w` that belongs to the CM type, the one that sends `√-d` to |
| 184 | the chosen complex root. For a complex embedding `σ` with place `w`, `Φ w` sends `ζ` to |
| 185 | `σ ζ ^ cmSign σ`. -/ |
| 186 | lemma map_zeta_eq_zpow_cmSign (σ : D.E →+* ℂ) : |
| 187 | Φ (NumberField.InfinitePlace.mk σ) (P.ζ D.towerExp) = σ (P.ζ D.towerExp) ^ (cmSign σ).val := by |
| 188 | obtain hσ | hσ := Φ_mk_eq_or_star_eq σ |
| 189 | · -- `σ` is the embedding chosen by the CM type at its place: sign `1` |
| 190 | rw [← hσ] |
| 191 | simp [cmSign] |
| 192 | · -- `σ` is its conjugate: sign `-1`, and conjugation inverts `P.ζ` |
| 193 | rw [← hσ] |
| 194 | simp [cmSign, ← RCLike.star_def, ← map_star_complex] |
| 195 | |
| 196 | variable [PadicIso ℓ] |
| 197 | |
| 198 | /-- Let `P` be the parameters of the data `D`, `ζ = P.ζ D.towerExp` the root of unity of order `q₁` |
| 199 | in `E`, `e : E → ℚ̄_ℓ`, and `g`, `g'` in `Gp ℓ = Gal(ℚ̄_ℓ/ℚ_ℓ)`, with complex embeddings |
| 200 | `σ = complexEmbeddingOf e g = ι⁻¹ ∘ g⁻¹ ∘ e` and `σ' = ι⁻¹ ∘ g'⁻¹ ∘ e` for the fixed `ι : ℂ ≃ ℚ̄_ℓ`. |
| 201 | Suppose `g' * g⁻¹` raises `e ζ ^ ℓ ^ a` to the power `ℓ ^ n`. Let `y` be the ratio of the places of |
| 202 | `σ` and `σ'` in the group `P.Φ D.towerExp ≃ (ℤ/q₁)ˣ` of infinite places of `E`. For `m ∣ q₁` prime |
| 203 | to `ℓ ^ a`, the reduction `P.placeClass hm y` of `y` modulo `m` is |
| 204 | `cmSign σ * cmSign σ' * ℓ ^ n`. -/ |
| 205 | lemma placeClass_eq_cmSign_mul_pow (e : D.E →+* PadicAlgCl ℓ) (g g' : Gp ℓ) (a n : ℕ) |
| 206 | (h_act : (g' * g⁻¹) (e (P.ζ D.towerExp) ^ ℓ ^ a) = (e (P.ζ D.towerExp) ^ ℓ ^ a) ^ ℓ ^ n) |
| 207 | {y : P.Φ D.towerExp} (m : ℕ) (hm : m ∣ P.q₁ D.towerExp) (h_coprime : (ℓ ^ a).Coprime m) |
| 208 | (hy : NumberField.InfinitePlace.mk (complexEmbeddingOf e g') * y = |
| 209 | NumberField.InfinitePlace.mk (complexEmbeddingOf e g)) : |
| 210 | (P.placeClass hm y).val = |
| 211 | (cmSign (complexEmbeddingOf e g) * cmSign (complexEmbeddingOf e g') : ℤ) * ℓ ^ n := by |
| 212 | -- A place sends `P.ζ` to the value of its embedding or to the inverse, according to `cmSign`, and |
| 213 | -- `y` acts on `P.ζ` as the power `k`, its class mod `q₁`. Comparing the two places on `P.ζ` |
| 214 | -- gives an equation between powers of the primitive root `z`, hence a congruence of exponents. |
| 215 | set z : PadicAlgCl ℓ := e (P.ζ D.towerExp) |
| 216 | set k : ℕ := (P.placeMulEquiv D.towerExp y : ZMod (P.q₁ D.towerExp)).val |
| 217 | have z_prim : IsPrimitiveRoot z (P.q₁ D.towerExp) := |
| 218 | isPrimitiveRoot_zeta.map_of_injective e.injective |
| 219 | have h_places : |
| 220 | complexEmbeddingOf e g (P.ζ D.towerExp) ^ (cmSign (complexEmbeddingOf e g)).val = |
| 221 | (complexEmbeddingOf e g' (P.ζ D.towerExp) ^ (cmSign (complexEmbeddingOf e g')).val) ^ |
| 222 | k := by |
| 223 | rw [← map_zeta_eq_zpow_cmSign, ← map_zeta_eq_zpow_cmSign, ← hy, phi_mul, galOfPlace_zeta, |
| 224 | map_pow] |
| 225 | generalize cmSign (complexEmbeddingOf e g) = s, |
| 226 | cmSign (complexEmbeddingOf e g') = s' at h_places ⊢ |
| 227 | -- carry the equation over to `PadicAlgCl ℓ` by `ιℓ`, then apply `g'` |
| 228 | have h_padic : (g' * g⁻¹) z ^ s.val = (z ^ s'.val) ^ k := by |
| 229 | simpa [complexEmbeddingOf] using congrArg (fun w : ℂ ↦ g' (ιℓ w)) h_places |
| 230 | -- raise to the power `ℓ ^ a`, where `h_act` applies |
| 231 | have h_pow : z ^ ((ℓ : ℤ) ^ n * s * ℓ ^ a) = z ^ ((s' : ℤ) * k * ℓ ^ a) := |
| 232 | calc |
| 233 | z ^ ((ℓ : ℤ) ^ n * s * ℓ ^ a) = ((z ^ ℓ ^ a) ^ ℓ ^ n) ^ s.val := by |
| 234 | simp only [← zpow_natCast, ← zpow_mul, Nat.cast_pow, mul_rotate ((ℓ : ℤ) ^ a)] |
| 235 | _ = ((g' * g⁻¹) z ^ s.val) ^ ℓ ^ a := by |
| 236 | rw [← h_act, map_pow, ← zpow_natCast, ← zpow_natCast, zpow_comm] |
| 237 | _ = z ^ ((s' : ℤ) * k * ℓ ^ a) := by |
| 238 | simp only [h_padic, ← zpow_natCast, ← zpow_mul, Nat.cast_pow] |
| 239 | have h_dvd : (P.q₁ D.towerExp : ℤ) ∣ (ℓ ^ n * s - s' * k) * ℓ ^ a := by |
| 240 | have z_ne : z ≠ 0 := z_prim.ne_zero (NeZero.ne _) |
| 241 | rw [← z_prim.zpow_eq_one_iff_dvd, sub_mul, zpow_sub₀ z_ne, h_pow, |
| 242 | div_self (zpow_ne_zero _ z_ne)] |
| 243 | -- modulo `m` the factor `ℓ ^ a` cancels |
| 244 | have h_dvd_sub : (m : ℤ) ∣ ℓ ^ n * s - s' * k := |
| 245 | h_coprime.symm.cast.dvd_of_dvd_mul_right (mod_cast hm.natCast.trans h_dvd) |
| 246 | have h_mod : ((s' : ℤ) * k : ZMod m) = ℓ ^ n * (s : ℤ) := |
| 247 | mod_cast (intCast_eq_intCast_iff_dvd_sub (s' * k) (ℓ ^ n * s) m).2 h_dvd_sub |
| 248 | -- multiply by the sign `s'`, whose square is `1` |
| 249 | calc |
| 250 | (P.placeClass hm y).val = (s' : ℤ) * ((s' : ℤ) * k) := by |
| 251 | simp [k, placeClass, unitsMap, ← mul_assoc, ← Int.cast_mul] |
| 252 | _ = (s * s' : ℤ) * ℓ ^ n := by simp [h_mod, mul_comm, mul_left_comm, mul_assoc] |
| 253 | |
| 254 | /-- Spacing of the b-places `D.bPlaces`, the sparse set of infinite places of `E` of weight `b` in |
| 255 | the data `D`. Let `e : E → ℚ̄_ℓ` for a prime `ℓ ≤ D.k * D.t = (D.r + 1 - D.m) * (5 * D.r)`, and let |
| 256 | `0 < i < n < l₀ s`, where `s = D.towerExp` and `l₀ s` is the least power of `3` above `27 s`. Let |
| 257 | `g' * g⁻¹` and `g' * g₁⁻¹` in `Gp ℓ` raise `e ζ ^ ℓ ^ a` to the powers `ℓ ^ n` and `ℓ ^ i`, where |
| 258 | `ζ = P.ζ s` generates `E` over `K = ℚ(√-d)`. Each `γ` in `Gp ℓ = Gal(ℚ̄_ℓ/ℚ_ℓ)` gives the complex |
| 259 | embedding `complexEmbeddingOf e γ = ι⁻¹ ∘ γ⁻¹ ∘ e`, for the fixed `ι : ℂ ≃ ℚ̄_ℓ`. If the embeddings |
| 260 | given by `g` and `g'` lie over b-places, then the one given by `g₁` does not. -/ |
| 261 | lemma notMem_bPlaces_of_short_arc {e : D.E →+* PadicAlgCl ℓ} {g g' g₁ : Gp ℓ} {a i n : ℕ} |
| 262 | (h_mem : NumberField.InfinitePlace.mk (complexEmbeddingOf e g) ∈ D.bPlaces) |
| 263 | (h_mem' : NumberField.InfinitePlace.mk (complexEmbeddingOf e g') ∈ D.bPlaces) |
| 264 | (h_act : (g' * g⁻¹) (e (P.ζ D.towerExp) ^ ℓ ^ a) = (e (P.ζ D.towerExp) ^ ℓ ^ a) ^ ℓ ^ n) |
| 265 | (h_act₁ : (g' * g₁⁻¹) (e (P.ζ D.towerExp) ^ ℓ ^ a) = (e (P.ζ D.towerExp) ^ ℓ ^ a) ^ ℓ ^ i) |
| 266 | (hℓ_le : ℓ ≤ D.k * D.t) (hi_pos : 0 < i) (hi_lt : i < n) (hn_lt : n < l₀ D.towerExp) : |
| 267 | NumberField.InfinitePlace.mk (complexEmbeddingOf e g₁) ∉ D.bPlaces := by |
| 268 | -- By `placeClass_eq_cmSign_mul_pow`, the ratios of the places of `g₁` and `g` to that of `g'` are |
| 269 | -- `± ℓ ^ i` and `± ℓ ^ n` modulo the part of `q₁` prime to `ℓ`, which the sparseness of |
| 270 | -- `D.bPlaces` excludes. |
| 271 | intro h_mem₁ |
| 272 | have h_coprime : (ℓ ^ a).Coprime (ordCompl[ℓ] D.q₁) := |
| 273 | (Nat.coprime_ordCompl hp.out (NeZero.ne D.q₁)).pow_left a |
| 274 | let place (γ : Gp ℓ) : P.Φ D.towerExp := NumberField.InfinitePlace.mk (complexEmbeddingOf e γ) |
| 275 | have h_ratio (γ : Gp ℓ) (j : ℕ) |
| 276 | (h : (g' * γ⁻¹) (e (P.ζ D.towerExp) ^ ℓ ^ a) = (e (P.ζ D.towerExp) ^ ℓ ^ a) ^ ℓ ^ j) : |
| 277 | (P.placeClass (Nat.ordCompl_dvd D.q₁ ℓ) (place γ / place g')).val = |
| 278 | (cmSign (complexEmbeddingOf e γ) * cmSign (complexEmbeddingOf e g') : ℤ) * ℓ ^ j := |
| 279 | placeClass_eq_cmSign_mul_pow e γ g' a j h _ (Nat.ordCompl_dvd D.q₁ ℓ) h_coprime |
| 280 | (mul_div_cancel (place g') (place γ)) |
| 281 | exact D.sparse ℓ hp.out hℓ_le i n hi_pos hi_lt hn_lt |
| 282 | ⟨place g', h_mem', place g₁, h_mem₁, place g, h_mem, |
| 283 | cmSign (complexEmbeddingOf e g₁) * cmSign (complexEmbeddingOf e g'), |
| 284 | cmSign (complexEmbeddingOf e g) * cmSign (complexEmbeddingOf e g'), |
| 285 | h_ratio g₁ i h_act₁, h_ratio g n h_act⟩ |
| 286 | |
| 287 | /-- If the prime `ℓ` divides `q₁`, then for `e : D.E → ℚ̄_ℓ` and `g`, `g'` in `Gp ℓ` the complex |
| 288 | embeddings `complexEmbeddingOf e g` and `complexEmbeddingOf e g'` do not have opposite signs |
| 289 | `cmSign`: otherwise `x = (1 + √-d) / 2` and `1 - x` would have the same norm `< 1`. -/ |
| 290 | private lemma cmSign_ne_neg_of_dvd_q₁ {e : D.E →+* PadicAlgCl ℓ} {g g' : Gp ℓ} |
| 291 | (hℓ_q₁ : ℓ ∣ D.q₁) : |
| 292 | cmSign (complexEmbeddingOf e g) ≠ -cmSign (complexEmbeddingOf e g') := by |
| 293 | intro h_neg |
| 294 | -- `g * g'⁻¹` sends `x = (1 + √-d) / 2` to `1 - x`, so both have the same norm; |
| 295 | -- it is `< 1` as `ℓ` divides `x * (1 - x)`, against `x + (1 - x) = 1`. |
| 296 | set x : PadicAlgCl ℓ := e (P.betaKInE D.towerExp) |
| 297 | have sqrt_sum : complexEmbeddingOf e g (P.sqrtNegDInE D.towerExp) + |
| 298 | complexEmbeddingOf e g' (P.sqrtNegDInE D.towerExp) = 0 := by |
| 299 | rw [map_sqrtNegDInE_eq_cmSign_mul, map_sqrtNegDInE_eq_cmSign_mul, h_neg] |
| 300 | simp |
| 301 | -- apply `g ∘ ιℓ` to `sqrt_sum` |
| 302 | have x_conj : (g * g'⁻¹) x = 1 - x := by |
| 303 | have h_padic : 2 * x - 1 + (2 * (g * g'⁻¹) x - 1) = 0 := by |
| 304 | simpa [sqrtNegDInE, map_ofNat, complexEmbeddingOf] using |
| 305 | congrArg (fun w : ℂ ↦ g (ιℓ w)) sqrt_sum |
| 306 | linear_combination h_padic / 2 |
| 307 | -- the Galois group acts on `PadicAlgCl ℓ` by isometries |
| 308 | have norm_eq : ‖1 - x‖ = ‖x‖ := by simp [← x_conj] |
| 309 | have x_mul : x * (1 - x) = ((P.d + 1) / 4 : ℕ) := by |
| 310 | simpa [map_ofNat] using congrArg |
| 311 | (fun w : NumberField.RingOfIntegers (P.E D.towerExp) ↦ e w) |
| 312 | (P.betaKInE_mul_one_sub D.towerExp) |
| 313 | have norm_mul_lt : ‖x‖ * ‖x‖ < 1 := |
| 314 | calc |
| 315 | ‖x‖ * ‖x‖ = ‖(((P.d + 1) / 4 : ℕ) : PadicAlgCl ℓ)‖ := by rw [← x_mul, norm_mul, norm_eq] |
| 316 | _ < 1 := by |
| 317 | rw [← map_natCast (algebraMap ℚ_[ℓ] _), PadicAlgCl.norm_extends] |
| 318 | exact Padic.norm_natCast_lt_one_iff.2 (P.dvd_d_add_one_div_four_of_dvd_q₁ out hℓ_q₁) |
| 319 | have one_le : 1 ≤ ‖x‖ := by simpa [norm_eq] using dist_triangle_max 1 (1 - x) 0 |
| 320 | exact (one_le_mul_of_one_le_of_one_le one_le one_le).not_gt norm_mul_lt |
| 321 | |
| 322 | /-- Let the prime `ℓ` divide `D.cyclotomicConductor = q₁ d`, let `e : E → ℚ̄_ℓ`, and let `g`, `g'` |
| 323 | be in `Gp ℓ = Gal(ℚ̄_ℓ/ℚ_ℓ)`. Suppose the complex embeddings |
| 324 | `complexEmbeddingOf e g = ι⁻¹ ∘ g⁻¹ ∘ e` and `ι⁻¹ ∘ g'⁻¹ ∘ e`, for the fixed `ι : ℂ ≃ ℚ̄_ℓ`, both |
| 325 | lie over b-places: members of the set `D.bPlaces` of infinite places of `E` of weight `b`, all of |
| 326 | class `-1` modulo `q₀`. Then both or neither belong to the CM type, so their signs `cmSign` |
| 327 | agree. -/ |
| 328 | lemma cmSign_eq_of_mem_bPlaces {e : D.E →+* PadicAlgCl ℓ} {g g' : Gp ℓ} |
| 329 | (h_mem : NumberField.InfinitePlace.mk (complexEmbeddingOf e g) ∈ D.bPlaces) |
| 330 | (h_mem' : NumberField.InfinitePlace.mk (complexEmbeddingOf e g') ∈ D.bPlaces) |
| 331 | (hℓ_cond : ℓ ∣ D.cyclotomicConductor) : |
| 332 | cmSign (complexEmbeddingOf e g) = cmSign (complexEmbeddingOf e g') := by |
| 333 | -- Suppose the signs are opposite; the case `ℓ ∣ q₁` is `cmSign_ne_neg_of_dvd_q₁`, and |
| 334 | -- otherwise `ℓ = d`. |
| 335 | by_contra h_ne |
| 336 | have h_neg : cmSign (complexEmbeddingOf e g) = -cmSign (complexEmbeddingOf e g') := |
| 337 | units_ne_iff_eq_neg.1 h_ne |
| 338 | by_cases hℓ_q₁ : ℓ ∣ D.q₁ |
| 339 | · exact cmSign_ne_neg_of_dvd_q₁ hℓ_q₁ h_neg |
| 340 | · -- `ℓ = d`: `g' * g⁻¹` acts on `P.ζ` as some power `d ^ n`, so the ratio of the two places is |
| 341 | -- both `-d ^ n` and `1` modulo `q₀` (b-places have class `-1`); but no power of `d` is `-1`. |
| 342 | have ℓ_eq : ℓ = P.d := |
| 343 | (Nat.prime_dvd_prime_iff_eq out out).1 ((hp.out.dvd_mul.1 hℓ_cond).resolve_left hℓ_q₁) |
| 344 | have hζ_pow : (e (P.ζ D.towerExp) ^ ℓ ^ 0) ^ D.q₁ = 1 := by |
| 345 | simp [← map_pow, isPrimitiveRoot_zeta.pow_eq_one] |
| 346 | obtain ⟨n, hn⟩ : ∃ n : ℕ, |
| 347 | (g' * g⁻¹) (e (P.ζ D.towerExp) ^ ℓ ^ 0) = (e (P.ζ D.towerExp) ^ ℓ ^ 0) ^ ℓ ^ n := |
| 348 | exists_apply_eq_pow hℓ_q₁ hζ_pow (g' * g⁻¹) |
| 349 | let τ : P.Φ D.towerExp := NumberField.InfinitePlace.mk (complexEmbeddingOf e g) |
| 350 | let τ' : P.Φ D.towerExp := NumberField.InfinitePlace.mk (complexEmbeddingOf e g') |
| 351 | have hq₀_dvd : P.q₀ ∣ P.q₁ D.towerExp := P.q₀.dvd_mul_right (towerDeg D.towerExp) |
| 352 | have h_ratio : (P.placeClass hq₀_dvd (τ / τ')).val = |
| 353 | (cmSign (complexEmbeddingOf e g) * cmSign (complexEmbeddingOf e g') : ℤ) * ℓ ^ n := |
| 354 | placeClass_eq_cmSign_mul_pow e g g' 0 n hn P.q₀ hq₀_dvd (by simp) (mul_div_cancel τ' τ) |
| 355 | have h_one : (1 : ZMod P.q₀) = -P.d ^ n := by |
| 356 | simpa [τ, τ', D.placeClass_of_mem_bPlaces, h_mem, h_mem', h_neg, ℓ_eq] using h_ratio |
| 357 | exact P.d_pow_ne_neg_one n (by rw [h_one, neg_neg]) |
| 358 | |
| 359 | end BPlaceSpacing |
| 360 | |
| 361 | /-! ## Cocycles obeying the relations among the u(g) − 1, and summands of a lift -/ |
| 362 | |
| 363 | section CocyclesAndSummands |
| 364 | |
| 365 | open Matrix LinearMap Module Submodule Finsupp Ideal |
| 366 | |
| 367 | open scoped Pointwise |
| 368 | |
| 369 | section Cocycles |
| 370 | |
| 371 | variable {O X G σ d : Type*} [CommRing O] [Group G] [Fintype σ] [DecidableEq σ] [Fintype d] |
| 372 | [DecidableEq d] (u : X → G →* Matrix σ σ O) (ρ : G →* Matrix d d O) |
| 373 | |
| 374 | /-- For finite `X` and noetherian `O`, a cocycle `c : G → (O/a)^d` in `ribetCocycles u ρ a` extends |
| 375 | to an equivariant map on a submodule: for some `k` there is a subrepresentation `Y` of (families of |
| 376 | matrices) × `(O/a)^d`, with `g` acting by left multiplication with `(u x g)_x` and through `ρ` |
| 377 | (`actionRep`), whose points are determined by their first component and which contains |
| 378 | `((u x g - 1)_x + a ^ k • v, c g)` for all `g` and all families `v`. |
| 379 | |
| 380 | This is a consequence of the Artin–Rees lemma for the principal ideal `(a)`: with `I` the span of |
| 381 | the families `(u x g - 1)_x`, the elements of `I` divisible by `a ^ k` lie in `a • I` for some |
| 382 | `k`. -/ |
| 383 | lemma ribetCocycles.exists_graph_subrepresentation [Finite X] [IsNoetherianRing O] {a : O} |
| 384 | {c : G → d → QuotSpan a} (hc : c ∈ ribetCocycles u ρ a) : |
| 385 | ∃ (k : ℕ) (Y : Subrepresentation ((actionRep O (X → Matrix σ σ O) (MonoidHom.pi u)).prod |
| 386 | (actionRep O (d → QuotSpan a) ρ))), |
| 387 | Function.Injective (fun y : Y.toSubmodule ↦ y.val.fst) ∧ |
| 388 | ∀ (g : G) (v : X → Matrix σ σ O), ((fun x : X ↦ u x g - 1) + a ^ k • v, c g) ∈ Y := by |
| 389 | -- `Y` is the graph of the map that sends `u g - 1` to `c g`, extended by zero to `a ^ (k + 1)` |
| 390 | -- times everything. By Artin–Rees, for a suitable `k` the span of the `u g - 1` meets these |
| 391 | -- multiples inside `a` times the span, where the map vanishes as `a` kills its values. |
| 392 | let L : (G →₀ O) →ₗ[O] X → Matrix σ σ O := linearCombination O fun g x ↦ u x g - 1 |
| 393 | let C : (G →₀ O) →ₗ[O] d → QuotSpan a := linearCombination O c |
| 394 | obtain ⟨h_coc, h_ker : ∀ θ : G →₀ O, L θ = 0 → C θ = 0⟩ := mem_ribetCocycles.1 hc |
| 395 | obtain ⟨k, hk⟩ : ∃ k : ℕ, ∀ n ≥ k, a ^ n • (⊤ : Submodule O (X → Matrix σ σ O)) ⊓ L.range = |
| 396 | a ^ (n - k) • (a ^ k • ⊤ ⊓ L.range) := by |
| 397 | simpa only [span_singleton_pow, ideal_span_singleton_smul] using |
| 398 | (span {a}).exists_pow_inf_eq_pow_smul L.range |
| 399 | -- `N (θ, v) = (L θ + a ^ (k + 1) • v, C θ)`, and `Y` is its range |
| 400 | let N : (G →₀ O) × (X → Matrix σ σ O) →ₗ[O] (X → Matrix σ σ O) × (d → QuotSpan a) := |
| 401 | (L.prod C).coprod (a ^ (k + 1) • inl O (X → Matrix σ σ O) (d → QuotSpan a)) |
| 402 | -- the action of `g` on the target of `N` is induced by a linear map `shift g` of the source |
| 403 | let shift (g : G) : End O ((G →₀ O) × (X → Matrix σ σ O)) := |
| 404 | prodMap (lsum O fun h ↦ lsingle (g * h) - lsingle g) (mulLeft O fun x ↦ u x g) |
| 405 | have h_shift (g : G) : |
| 406 | ((actionRep O (X → Matrix σ σ O) (MonoidHom.pi u)).prod (actionRep O (d → QuotSpan a) ρ)) g |
| 407 | ∘ₗ N = N ∘ₗ shift g := by |
| 408 | -- both components are checked on the generators, by the cocycle rule and `mul_sub` |
| 409 | ext <;> simp [N, L, C, shift, h_coc, mul_sub] |
| 410 | refine ⟨k + 1, ⟨N.range, ?_⟩, ?_, fun g v ↦ ?_⟩ |
| 411 | · rintro g _ ⟨z, rfl⟩ |
| 412 | exact ⟨shift g z, (LinearMap.congr_fun (h_shift g) z).symm⟩ |
| 413 | · -- a point `N (θ, v)` of `Y` with first component zero is zero |
| 414 | refine (injective_iff_map_eq_zero |
| 415 | (domRestrict (fst O (X → Matrix σ σ O) (d → QuotSpan a)) N.range)).2 ?_ |
| 416 | rintro ⟨_, ⟨θ, v⟩, rfl⟩ (h_fst : (N (θ, v)).fst = 0) |
| 417 | have hv : L θ = a ^ (k + 1) • -v := by simpa [N, add_eq_zero_iff_eq_neg] using h_fst |
| 418 | -- by `hk`, `L θ = L (a • η)` for some `η`; so `C θ = a • C η = 0` |
| 419 | have h_mem : L θ ∈ a ^ (k + 1) • (⊤ : Submodule O (X → Matrix σ σ O)) ⊓ L.range := |
| 420 | ⟨⟨-v, Submodule.mem_top, hv.symm⟩, L.mem_range_self θ⟩ |
| 421 | rw [hk (k + 1) k.le_succ] at h_mem |
| 422 | obtain ⟨w, ⟨-, η, hw : L η = w⟩, hη : a ^ (k + 1 - k) • w = L θ⟩ := h_mem |
| 423 | have h_aη : a • C η = 0 := funext fun i : d ↦ smul_quot_eq_zero_of_dvd dvd_rfl (C η i) |
| 424 | have h_snd : C θ = 0 := by simpa [h_aη] using h_ker (a • η - θ) (by simp [← hη, hw]) |
| 425 | exact Subtype.ext (Prod.ext h_fst (by simpa [N] using h_snd)) |
| 426 | · exact ⟨(.single g 1, v), by simp [N, L, C]⟩ |
| 427 | |
| 428 | end Cocycles |
| 429 | |
| 430 | /-- The index sets of the summands of a lift: `r` for the main summand, and one point for each of |
| 431 | the `t` characters, which are `1 × 1` summands. -/ |
| 432 | def SummandCoordIndex (r : Type) {t : ℕ} : Option (Fin t) → Type |
| 433 | | none => r |
| 434 | | .some _ => Unit |
| 435 | |
| 436 | /-- Each index set `SummandCoordIndex r i` is finite if `r` is. -/ |
| 437 | instance {r : Type} [inst : Fintype r] {t : ℕ} : |
| 438 | ∀ i : Option (Fin t), Fintype (SummandCoordIndex r i) |
| 439 | | none => inst |
| 440 | | .some _ => PUnit.fintype |
| 441 | |
| 442 | /-- Each index set `SummandCoordIndex r i` has decidable equality if `r` has. -/ |
| 443 | instance {r : Type} [inst : DecidableEq r] {t : ℕ} : |
| 444 | ∀ i : Option (Fin t), DecidableEq (SummandCoordIndex r i) |
| 445 | | none => inst |
| 446 | | .some _ => instDecidableEqPUnit |
| 447 | |
| 448 | variable {d : Type} [Fintype d] [DecidableEq d] {t ℓ : ℕ} [ThePrime ℓ] {E : Type} [Field E] |
| 449 | [EmbeddedNumberField E] {O : CoeffRing ℓ} (T : Gal(Ω/E) →* Matrix d d O) |
| 450 | |
| 451 | /-- The summands of a lift: `T` on the main summand, and on the summand of `e : Fin t` the Tate |
| 452 | twist `O(-e)`, the `e`-th power of the inverse cyclotomic character. -/ |
| 453 | def summandRep : ∀ i : Option (Fin t), Gal(Ω/E) →* Matrix (SummandCoordIndex d i) |
| 454 | (SummandCoordIndex d i) O |
| 455 | | none => T |
| 456 | | Option.some e => tateTwist ℓ E O e |
| 457 | |
| 458 | end CocyclesAndSummands |
| 459 | |
| 460 | /-! |
| 461 | ## Crystalline conditions above ℓ as relations on cocycles, and crystalline colength |
| 462 | |
| 463 | * `New.Selmer.localChart`: a chosen identification of the decomposition group at `v` with an open |
| 464 | subgroup of `Gal(ℚ̄_ℓ / ℚ_ℓ)`. It supplies actual local data for the universally quantified |
| 465 | conditions `IsGoodAt`, `IsFiniteTypeAt`, `HasJumpsAt` and `PolyKillsAt` at the chosen place. |
| 466 | |
| 467 | A relation is a finitely supported matrix-valued `f`, and `c` obeys it if `∑ γ, f γ • c γ = 0`. |
| 468 | `New.relationsOn Z` is the set of relations that hold on `Z`, `New.obeying R B` the module of |
| 469 | functions with values in `Bⁿ` that obey the relations `R`, and `New.relLength S T` the length of |
| 470 | `S / (S ⊓ T)`. |
| 471 | -/ |
| 472 | |
| 473 | section CrystallineConditions |
| 474 | |
| 475 | variable (ℓ : ℕ) [ThePrime ℓ] {n : Type*} [Fintype n] [DecidableEq n] |
| 476 | (E : Type) [Field E] [EmbeddedNumberField E] (v : placesDividing E ℓ) {O : CoeffRing ℓ} |
| 477 | |
| 478 | /-- A chosen embedding Ω → ℚ̄_ℓ that induces the chosen place of Ω above v, together with the |
| 479 | homomorphism to Gal(ℚ̄_ℓ over ℚ_ℓ) from the decomposition group of that place that goes with it in |
| 480 | the sense of `New.GaloisRep.InducesPlace`. -/ |
| 481 | instance localChart : GaloisRep.PadicPlaceEmbedding E (placeOver v.val) ℓ := |
| 482 | -- Membership of `v` in `placesDividing E ℓ` implies that `ℓ` has valuation less than 1 |
| 483 | -- at `placeOver v.1`. First choose an embedding inducing exactly that place, then use |
| 484 | -- `exists_inducesPlace` to choose the compatible open embedding of its decomposition group. |
| 485 | -- Both chosen maps are read off the type of `loc`. |
| 486 | have loc := |
| 487 | (exists_inducesPlace E _ |
| 488 | (exists_comap_intQpBar_eq |
| 489 | (v.1.isPlaceOver_placeOver.valuation_natCast_lt_one_iff.2 v.2)).choose_spec).choose_spec |
| 490 | { isOpen_range := ⟨loc.2.1.isOpen_range⟩, inducesPlace := loc, .. } |
| 491 | |
| 492 | variable {ℓ E} (u : Gal(Ω/E) →* Matrix n n O) |
| 493 | |
| 494 | /-- For g in Gal(ℚ̄_ℓ over ℚ_ℓ), the embedding of the coefficient ring O in ℂ_ℓ sending x to |
| 495 | g(x). -/ |
| 496 | def coefficientEmbedding (O : CoeffRing ℓ) (g : Gp ℓ) : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ] := |
| 497 | IsScalarTower.toAlgHom ℤ_[ℓ] (PadicAlgCl ℓ) ℂ_[ℓ] |
| 498 | |>.comp (g.toAlgHom.restrictScalars ℤ_[ℓ]) |
| 499 | |>.comp O.val.val |
| 500 | |
| 501 | /-- The O-module Z_f at v: crystalline cocycles (`New.Period.crysCocycles`) of the decomposition |
| 502 | group of the chosen place above v, with values in O^n acted on through u. -/ |
| 503 | def crysCocyclesAt : Submodule O (decompGroup Gal(Ω/E) (placeOver v.val) → n → ↑O) := |
| 504 | Period.crysCocycles |
| 505 | (actionRep O (n → ↑O) (u.comp (decompGroup Gal(Ω/E) (placeOver v.val)).subtype)) |
| 506 | |
| 507 | /-- The linear relations that hold on the crystalline cocycles `New.Selmer.crysCocyclesAt v u` for |
| 508 | some v above ℓ, extended by zero from the decomposition group to relations on functions on |
| 509 | Gal(Ω/E). -/ |
| 510 | def crysRelations : Set (Gal(Ω/E) →₀ Matrix n n O) := |
| 511 | ⋃ v : placesDividing E ℓ, Finsupp.mapDomain Subtype.val '' relationsOn (crysCocyclesAt v u) |
| 512 | |
| 513 | /-- The crystalline colength of the summand `u` modulo `ℓ ^ M`, with respect to a family `w` of |
| 514 | matrix representations of Gal(Ω/E): the length of the module of cocycles for `u` with values in |
| 515 | `(O/ℓ^M)^n` that obey every linear relation among the `(w x g - 1)_x` (`New.Selmer.ribetCocycles`), |
| 516 | modulo those that also obey the relations `New.Selmer.crysRelations u` of the crystalline cocycles |
| 517 | above `ℓ`. -/ |
| 518 | abbrev crystallineColength {X σ : Type*} [Fintype σ] [DecidableEq σ] |
| 519 | (w : X → Gal(Ω/E) →* Matrix σ σ O) (M : ℕ) : ℕ∞ := |
| 520 | relLength (ribetCocycles w u (ℓ ^ M)) (obeying (crysRelations u) (QuotSpan ((ℓ : ↑O) ^ M))) |
| 521 | |
| 522 | /-- Let `E` be an embedded number field, `O` the ring of integers of a finite Galois extension |
| 523 | of `ℚ_ℓ` in `ℚ̄_ℓ`, and `u` a matrix |
| 524 | representation of `Gal(Ω/E)` over `O`. A function `c : Gal(Ω/E) → (O/a)^n` obeys the relations |
| 525 | `New.Selmer.crysRelations u` if and only if, for every place `v` of `E` above `ℓ`, its restriction |
| 526 | to the decomposition group of the chosen place over `v` obeys every linear relation |
| 527 | (`New.relationsOn`) that holds on the crystalline cocycles `New.Selmer.crysCocyclesAt v u`. -/ |
| 528 | lemma obeying_crysRelations (u : Gal(Ω/E) →* Matrix n n O) {a : ↑O} : |
| 529 | obeying (crysRelations u) (QuotSpan a) = |
| 530 | ⨅ v : placesDividing E ℓ, (obeying (relationsOn (crysCocyclesAt v u)) (QuotSpan a)).comap |
| 531 | (LinearMap.funLeft O (n → QuotSpan a) (↑)) := by |
| 532 | ext c |
| 533 | -- A relation pushed forward by `Finsupp.mapDomain` is evaluated on the restriction of `c`. |
| 534 | simp [crysRelations, obeying, forall_comm (α := _ →₀ _), LinearMap.funLeft] |
| 535 | |
| 536 | end CrystallineConditions |
| 537 | |
| 538 | /-! |
| 539 | ## Embeddings at a place above ℓ, local degree and Tate twists |
| 540 | |
| 541 | `New.Selmer.IsCompletionGroup e j` says that `j` is an open embedding onto the elements that fix |
| 542 | `e E`. |
| 543 | -/ |
| 544 | |
| 545 | section LocalEmbeddings |
| 546 | |
| 547 | open Period IsAlgClosed GaloisRep Set Algebra.IsAlgebraic Setoid QuotientGroup |
| 548 | |
| 549 | variable {ℓ : ℕ} [ThePrime ℓ] {E Γ : Type _} [Field E] [Group Γ] [TopologicalSpace Γ] |
| 550 | {e : E →+* PadicAlgCl ℓ} {j : Γ →* Gp ℓ} |
| 551 | |
| 552 | /-- Every `ℤ_ℓ`-algebra map `O → ℂ_ℓ` is the restriction of an element of `Gp ℓ`, the Galois |
| 553 | group of `ℚ̄_ℓ` over `ℚ_ℓ`: it equals `coefficientEmbedding O g` for some `g`. -/ |
| 554 | lemma coefficientEmbedding_surjective {O : CoeffRing ℓ} : (coefficientEmbedding O).Surjective := by |
| 555 | intro γ |
| 556 | -- Extend `γ` to an embedding `φ` of the algebraic extension `PadicAlgCl ℓ` of `O` in the |
| 557 | -- algebraically closed field `ℂ_[ℓ]`; every such embedding comes from an element of `Gp ℓ`. |
| 558 | let : Algebra O ℂ_[ℓ] := γ.toAlgebra |
| 559 | have : Algebra.IsAlgebraic O (PadicAlgCl ℓ) := (isAlgebraic_iff_top ℤ_[ℓ] O).1 inferInstance |
| 560 | have : Module.IsTorsionFree O ℂ_[ℓ] := (faithfulSMul_tower_top ℤ_[ℓ] O ℂ_[ℓ]).to_isTorsionFree |
| 561 | let φ : PadicAlgCl ℓ →ₐ[O] ℂ_[ℓ] := IsAlgClosed.lift |
| 562 | obtain ⟨g, hg⟩ := exists_gp_eq_algHom (φ.restrictScalars ℤ_[ℓ]) |
| 563 | refine ⟨g, AlgHom.ext fun x ↦ ?_⟩ |
| 564 | calc coefficientEmbedding O g x = φ x := (hg x).symm |
| 565 | _ = γ x := φ.commutes x |
| 566 | |
| 567 | /-- Let `emb` be an embedding `Ω → ℚ̄_ℓ` that induces the place `A` of `Ω`, with its map |
| 568 | `emb.toGp` from the decomposition group of `A` to `Gp ℓ = Gal(ℚ̄_ℓ/ℚ_ℓ)`. An element `g` of this |
| 569 | group acts on `O` through the Tate twist `tateTwist ℓ E O c`, the `c`-th power of the inverse |
| 570 | cyclotomic character, as the power `-c` of the local cyclotomic character at `emb.toGp g`. -/ |
| 571 | lemma tateTwist_smul [CMFieldWithRoot5040 E] {O : CoeffRing ℓ} {A : ClosurePlace} |
| 572 | {emb : PadicPlaceEmbedding E A ℓ} (c : ℕ) (g : decompGroup Gal(Ω/E) A) (x : Unit → ↑O) : |
| 573 | tateTwist ℓ E O c g.val • x = cyclotomicGp (emb.toGp g) ^ (-c : ℤ) • x := by |
| 574 | simp [funext_iff, emb.cyclotomicGp_eq_cyclotomicChar, tateTwist, cyclotomicInv, Units.smul_def, |
| 575 | Algebra.smul_def] |
| 576 | |
| 577 | variable [PadicIso ℓ] |
| 578 | |
| 579 | /-- Let `j : Γ → Gp ℓ` be an open embedding whose image is the group of elements that fix `e E` |
| 580 | pointwise (`IsCompletionGroup e j`). Then `g` and `g'` give the same complex embedding |
| 581 | `ι⁻¹ ∘ g⁻¹ ∘ e` if and only if `g * g'⁻¹` is in the image of `j`. -/ |
| 582 | lemma IsCompletionGroup.complexEmbeddingOf_eq_iff (hj : IsCompletionGroup e j) {g g' : Gp ℓ} : |
| 583 | complexEmbeddingOf e g = complexEmbeddingOf e g' ↔ g * g'⁻¹ ∈ j.range := by |
| 584 | have h_range : ∀ g : Gp ℓ, g ∈ j.range ↔ ∀ x : E, g (e x) = e x := hj.2 |
| 585 | -- the left side says that `g⁻¹` and `g'⁻¹` agree on `e E`, the right that `g * g'⁻¹` fixes it |
| 586 | simp [complexEmbeddingOf, g.symm_apply_eq, eq_comm, RingHom.ext_iff, h_range] |
| 587 | |
| 588 | /-- Inversion identifies the left cosets of a completion group with the complex embeddings |
| 589 | at its place. The coset of `g` corresponds to `complexEmbeddingOf e g⁻¹`. -/ |
| 590 | noncomputable def IsCompletionGroup.cosetEquivEmbeddings (hj : IsCompletionGroup e j) : |
| 591 | Gp ℓ ⧸ j.range ≃ range (complexEmbeddingOf e) := by |
| 592 | -- Two elements give the same embedding iff their inverses lie in one coset of `j.range`. |
| 593 | have h_left (g g' : Gp ℓ) : leftRel j.range g g' ↔ ker (complexEmbeddingOf e) g⁻¹ g'⁻¹ := by |
| 594 | change leftRel j.range g g' ↔ complexEmbeddingOf e g⁻¹ = complexEmbeddingOf e g'⁻¹ |
| 595 | rw [hj.complexEmbeddingOf_eq_iff, leftRel_eq, inv_inv] |
| 596 | exact (Quotient.congr (Equiv.inv (Gp ℓ)) h_left).trans (quotientKerEquivRange _) |
| 597 | |
| 598 | /-- Translating a coset by `g` right-multiplies its inverse representative by `g⁻¹`. -/ |
| 599 | lemma IsCompletionGroup.cosetEquivEmbeddings_smul (hj : IsCompletionGroup e j) |
| 600 | (g : Gp ℓ) (q : Gp ℓ ⧸ j.range) : |
| 601 | (hj.cosetEquivEmbeddings (g • q) : E →+* ℂ) = complexEmbeddingOf e (q.out⁻¹ * g⁻¹) := by |
| 602 | conv_lhs => rw [← q.out_eq] |
| 603 | change complexEmbeddingOf e (g * q.out)⁻¹ = _ |
| 604 | rw [mul_inv_rev] |
| 605 | |
| 606 | /-- Let `j : Γ → Gp ℓ` be an open embedding whose image is the group of elements that fix `e E` |
| 607 | pointwise. The index of this image is the number of distinct complex embeddings |
| 608 | `complexEmbeddingOf e g = ι⁻¹ ∘ g⁻¹ ∘ e`, for `g` in `Gp ℓ`. -/ |
| 609 | lemma IsCompletionGroup.index_eq_card_range (hj : IsCompletionGroup e j) : |
| 610 | j.range.index = Nat.card (range (complexEmbeddingOf e)) := |
| 611 | Nat.card_congr hj.cosetEquivEmbeddings |
| 612 | |
| 613 | /-- The index of a completion group is at most the degree of the number field, since its orbit |
| 614 | is a subset of the complex embeddings. -/ |
| 615 | lemma IsCompletionGroup.index_le_finrank [NumberField E] (hj : IsCompletionGroup e j) : |
| 616 | j.range.index ≤ Module.finrank ℚ E := by |
| 617 | rw [hj.index_eq_card_range] |
| 618 | calc |
| 619 | _ ≤ Nat.card (E →+* ℂ) := Finite.card_subtype_le _ |
| 620 | _ = _ := by simp [NumberField.Embeddings.card] |
| 621 | |
| 622 | /-- Let `E` be an embedded number field, and `ι : ℂ ≃ ℚ̄_ℓ` the isomorphism fixed by `PadicIso ℓ`. |
| 623 | Let `v` and `w` be places of `E` |
| 624 | above the prime `ℓ`, and `e_v`, `e_w` the restrictions to `E` of the embeddings `Ω → ℚ̄_ℓ` of their |
| 625 | charts `localChart`. If `ι⁻¹ ∘ g⁻¹ ∘ e_v = ι⁻¹ ∘ g'⁻¹ ∘ e_w` for some `g` and `g'` in |
| 626 | `Gp ℓ = Gal(ℚ̄_ℓ/ℚ_ℓ)`, then `v = w`: a complex embedding determines its place above `ℓ`. -/ |
| 627 | lemma eq_of_complexEmbeddingOf_localChart_eq [EmbeddedNumberField E] {v w : placesDividing E ℓ} |
| 628 | {g g' : Gp ℓ} |
| 629 | (h_eq : complexEmbeddingOf ((localChart ℓ E v).e.comp (algebraMap E Ω)) g = |
| 630 | complexEmbeddingOf ((localChart ℓ E w).e.comp (algebraMap E Ω)) g') : |
| 631 | v = w := by |
| 632 | -- the valuation ring that the chart at a place pulls back lies over that place |
| 633 | have h_over (v : placesDividing E ℓ) : |
| 634 | IsPlaceOver ((intQpBar ℓ).comap (localChart ℓ E v).e) v.val := by |
| 635 | obtain ⟨⟨h_comap : (intQpBar ℓ).comap (localChart ℓ E v).e = placeOver v.val, -⟩, -⟩ := |
| 636 | (localChart ℓ E v).inducesPlace |
| 637 | simpa only [h_comap] using FinPlace.isPlaceOver_placeOver v.val |
| 638 | ext x |
| 639 | -- `x` lies in the place exactly when its image has norm `< 1`, and `Gp ℓ` acts by isometries. |
| 640 | have h_norm : |
| 641 | ‖(ιℓ (complexEmbeddingOf ((localChart ℓ E v).e.comp (algebraMap E Ω)) g x) : ℂ_[ℓ])‖ < 1 ↔ |
| 642 | ‖(ιℓ (complexEmbeddingOf ((localChart ℓ E w).e.comp (algebraMap E Ω)) g' x) : ℂ_[ℓ])‖ < |
| 643 | 1 := by |
| 644 | rw [h_eq] |
| 645 | simpa [← h_over v x, ← h_over w x, comap_apply_lt_one_iff, complexEmbeddingOf, |
| 646 | ← UniformSpace.Completion.algEquiv_smul_coe] using h_norm |
| 647 | |
| 648 | open scoped Classical in |
| 649 | /-- Let `E` be an embedded number field, and `ι : ℂ ≃ ℚ̄_ℓ` the isomorphism fixed by `PadicIso ℓ`. |
| 650 | For each place `v` of `E` above the |
| 651 | prime `ℓ`, the chart `localChart ℓ E v` has an embedding `Ω → ℚ̄_ℓ` that induces a place above `v`. |
| 652 | Its restriction `e` to `E` gives the complex embeddings `complexEmbeddingOf e g = ι⁻¹ ∘ g⁻¹ ∘ e`, |
| 653 | for `g` in `Gp ℓ = Gal(ℚ̄_ℓ/ℚ_ℓ)`. For distinct `v` these sets of embeddings are disjoint, so the |
| 654 | sums of `a` over them add up to at most the sum of `a` over all complex embeddings of `E`. -/ |
| 655 | lemma sum_complexEmbeddingOf_le [EmbeddedNumberField E] (a : (E →+* ℂ) → ℕ) : |
| 656 | ∑ v : placesDividing E ℓ, |
| 657 | ∑ σ : E →+* ℂ with |
| 658 | ∃ g : Gp ℓ, complexEmbeddingOf ((localChart ℓ E v).e.comp (algebraMap E Ω)) g = σ, |
| 659 | a σ ≤ |
| 660 | ∑ σ : E →+* ℂ, a σ := by |
| 661 | let R (v : placesDividing E ℓ) : Finset (E →+* ℂ) := |
| 662 | {σ : E →+* ℂ | ∃ g : Gp ℓ, complexEmbeddingOf ((localChart ℓ E v).e.comp |
| 663 | (algebraMap E Ω)) g = σ} |
| 664 | -- An embedding determines its place, so the sets for distinct places are disjoint. |
| 665 | have h_disj : Set.PairwiseDisjoint (Finset.univ : Finset (placesDividing E ℓ)) R := |
| 666 | fun v _ w _ hvw ↦ Finset.disjoint_filter.2 fun σ _ ⟨g, hg⟩ ⟨g', hg'⟩ ↦ |
| 667 | hvw (eq_of_complexEmbeddingOf_localChart_eq (hg.trans hg'.symm)) |
| 668 | rw [← Finset.sum_biUnion h_disj] |
| 669 | exact Finset.sum_le_sum_of_subset (Finset.subset_univ _) |
| 670 | |
| 671 | /-- The sum of the local chart indices over the places above `ℓ` is at most the degree of `E` |
| 672 | over `ℚ`, since distinct places contribute disjoint sets of complex embeddings. -/ |
| 673 | lemma sum_localChart_index_le_finrank [EmbeddedNumberField E] : |
| 674 | ∑ v : placesDividing E ℓ, (localChart ℓ E v).toGp.range.index ≤ Module.finrank ℚ E := by |
| 675 | classical |
| 676 | simpa [(localChart ℓ E _).inducesPlace.2.index_eq_card_range, Fintype.card_subtype, |
| 677 | NumberField.Embeddings.card] using sum_complexEmbeddingOf_le (ℓ := ℓ) fun _ : E →+* ℂ ↦ 1 |
| 678 | |
| 679 | end LocalEmbeddings |
| 680 | |
| 681 | end New.Selmer |
| 682 | |
| 683 | end |