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.AlgebraicGeometry.Morphisms.WeaklyEtale |
| 4 | import Mathlib.CategoryTheory.EffectiveEpi.Comp |
| 5 | import Mathlib.RingTheory.Coalgebra.CoassocSimps |
| 6 | import Mathlib.RingTheory.PiTensorProduct |
| 7 | import Mathlib.Topology.Algebra.Group.Units |
| 8 | import TauCeti.Analysis.Normed.Ring.Ultra |
| 9 | public import Lib.Shimura.HeckeTower.HeckeData |
| 10 | public import Lib.Shimura.ThetaModuli.ThetaFamilyRigidity |
| 11 | import Lib.Shimura.AbelianScheme.IsogenyFlatness |
| 12 | import Lib.Shimura.AbelianScheme.Pairings |
| 13 | import Lib.Shimura.Uniformisation.LieExponential |
| 14 | import Lib.Weil.Unramified.SplitHecke |
| 15 | |
| 16 | /-! |
| 17 | # Properties of a Kuga–Sato tower, Hecke operators at split places, torsion counts and levels |
| 18 | |
| 19 | The structure `New.Variety.Model` collects the geometry of a tower of Kuga–Sato varieties that the |
| 20 | point count uses. K(𝔑) denotes the principal level `New.Variety.levelGU n 𝔑`. τ_{w,j} denotes the |
| 21 | Hecke element `New.Variety.heckeSum` at a safe split place w of E. The file shows that these |
| 22 | elements lie in the Hecke algebra of K(𝔑). It counts the `I`-torsion of the adelic module |
| 23 | `New.AdelicTorsion E n`: it has N(I) ^ card n elements, where N(I) is the norm of the ideal I. It |
| 24 | proves finiteness statements for multiplication by integers on the abelian schemes of a family |
| 25 | `X : New.ThetaFamily D Z τ`. |
| 26 | |
| 27 | ## Main definitions and results |
| 28 | |
| 29 | * `New.Variety.Model`: the tower of varieties with its properties. |
| 30 | * `New.Variety.asAlgebraHom_heckeSum`: τ_{w,j} acts on K(𝔑)-fixed vectors as a central element times |
| 31 | the j-th Hecke operator of GL_n(E_w); `New.Variety.tauHecke` is τ_{w,j} in the Hecke algebra. |
| 32 | * `New.Variety.Model.exists_isHeckeAction`: the commuting operators on F(Z), for the base Z of a |
| 33 | model and a functor F with descent. |
| 34 | * `New.card_torsionBySet_adelicTorsion`: for `I ≠ 0` the `I`-torsion of `New.AdelicTorsion E n` has |
| 35 | `N(I) ^ card n` elements. |
| 36 | * `New.Variety.exists_level_conj_mem`: a principal level deep enough for finitely many isogenies. |
| 37 | |
| 38 | Notions from other files: |
| 39 | * `New.Variety.SplitFinPlace`: The finite places w of E with w̄ ≠ w, that is, those split over the |
| 40 | maximal real subfield. |
| 41 | * `New.Variety.levelGU`: the principal level K(𝔑), the similitudes in `GL_n(Ô E)` that are congruent |
| 42 | to `1` modulo `𝔑`. |
| 43 | * `New.Variety.conjAtSplit w g`: for a split place w, the adelic matrix that is g⁻ᵀ at w, the |
| 44 | conjugate of g at w̄, and 1 elsewhere. |
| 45 | * `New.Variety.heckeSum n k w j`: the Hecke element τ_{w,j}, the sum of |
| 46 | `New.Variety.invHeckeIsogeny w U` over the subspaces U of dimension j. |
| 47 | * `New.Variety.IsSafe`: Safe places w of E: the place u of ℚ(√−d₀) below w satisfies |
| 48 | `New.GaloisRep.IsSplitPrimeToDisc`, and 𝔑 lies neither in w nor in any place above ū. |
| 49 | |
| 50 | ## Relation to the literature |
| 51 | |
| 52 | Known result: Hecke algebra of a pair acting by correspondences on the base of a tower. Here only a |
| 53 | semigroup acts, and only far enough up the tower, and the algebra is a subalgebra of the group ring. |
| 54 | The cohomology theory may be any functor to modules for which the base is the invariants of each |
| 55 | cover. Source: Shimura, Introduction to the arithmetic theory of automorphic functions, 1971, ch. 3 |
| 56 | and 7–8. |
| 57 | |
| 58 | See also `Lib.Shimura.IntegralModel.TowerExistence`, `Lib.Shimura.Uniformisation.AppellHumbert` and |
| 59 | `Lib.Shimura.AbelianScheme.IsogenyFlatness`. |
| 60 | -/ |
| 61 | |
| 62 | @[expose] public section |
| 63 | |
| 64 | noncomputable section |
| 65 | |
| 66 | /-! |
| 67 | ## The tower of varieties and its required properties |
| 68 | |
| 69 | Conventions: `New.Variety.levelGU n 𝔑` is the principal level K(𝔑) in the similitude group |
| 70 | `New.Variety.GU`; `New.Variety.GUPlus` is the monoid of similitudes with integral inverse; |
| 71 | `New.Variety.ModuliPoint E n ν` is the type of analytic points a = (frame, reflection, ν marked |
| 72 | vectors), with isomorphisms `New.Variety.ModuliPoint.IsLevelIso` and the action a·(g, α) |
| 73 | `New.Variety.ModuliPoint.act`. |
| 74 | -/ |
| 75 | |
| 76 | section Model |
| 77 | |
| 78 | open NumberField CategoryTheory AlgebraicGeometry Fintype Module |
| 79 | |
| 80 | /-- The tower of Kuga–Sato varieties over `R`, given by a list of properties. A level `i` is a |
| 81 | finite set of pairs (non-zero integer of `E`, element of `New.Variety.GUPlus`), ordered by |
| 82 | inclusion. The data are a base Z = `base`, schemes W_i = `cover i` with legs p_g = `leg i g` from |
| 83 | W_i to Z (π = p_1), sets s_i = `legIndices i`, finite groups Δ_i = `deckGroup i` acting through |
| 84 | `deck i`, maps m_α = `mulMap α` of Z, complex points `point i` and the relative dimension |
| 85 | `dimension` of Z; the other fields are properties of these. -/ |
| 86 | structure New.Variety.Model {E : Type} [Field E] [CMBase E] (n : Type) |
| 87 | [Fintype n] [DecidableEq n] (d₀ : ℕ) [HasQuadSubfield d₀ E] (𝔑 : 𝓞 E) (ν : ℕ) |
| 88 | (R : Subalgebra (𝓞 E) E) where |
| 89 | /-- The base scheme Z over `Spec R`. -/ |
| 90 | base : Over (Spec ⟨R⟩) |
| 91 | /-- The scheme W_i over `Spec R` at level `i`. -/ |
| 92 | cover : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n) → Over (Spec ⟨R⟩) |
| 93 | /-- The set s_i of adelic matrices whose legs the fields at level `i` speak about. -/ |
| 94 | legIndices (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : Set (GL n (𝔸f E)) |
| 95 | /-- The legs p_g : W_i → Z, one for each coset gK(𝔑); the leg of `1` is called π. -/ |
| 96 | leg (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : |
| 97 | GL n (𝔸f E) ⧸ levelGU n 𝔑 → (cover i ⟶ base) |
| 98 | /-- The identity lies in every s_i. -/ |
| 99 | one_mem (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : 1 ∈ legIndices i |
| 100 | /-- For `g` in `GUPlus E n` and any level `j`, all large levels `i` have g ∈ s_i and a map |
| 101 | f : W_i → W_j with p_q ∘ f = p_{gq} for all q ∈ s_j. -/ |
| 102 | eventually_translate {g : GL n (𝔸f E)} (j : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : |
| 103 | g ∈ GUPlus E n → |
| 104 | ∀ᶠ i in Filter.atTop, g ∈ legIndices i ∧ ∃ f, ∀ q ∈ legIndices j, f ≫ leg j q = leg i (g * q) |
| 105 | /-- The finite group Δ_i at level `i`. -/ |
| 106 | deckGroup (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : FiniteGrp |
| 107 | /-- The action of Δ_i on W_i. -/ |
| 108 | deck (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : |
| 109 | deckGroup i →* CategoryTheory.End (cover i) |
| 110 | /-- For each δ ∈ Δ_i there is κ ∈ K(𝔑) with p_q ∘ δ = p_{κq} for all q ∈ s_i. -/ |
| 111 | deck_comp_leg (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) (δ : (deckGroup i).toGrp) : |
| 112 | ∃ κ : levelGU n 𝔑, ∀ q ∈ legIndices i, (deck i δ).asHom ≫ leg i q = leg i (κ.val * q) |
| 113 | /-- The maps m_α : Z → Z, one for each family `α` of `ν` integers of `E`. -/ |
| 114 | mulMap (α : Fin ν → 𝓞 E) : base ⟶ base |
| 115 | /-- The complex point [a]_i of W_i attached to `a`. -/ |
| 116 | point (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : |
| 117 | ModuliPoint E n ν → (specOver R ℂ ⟶ cover i) |
| 118 | /-- Every complex point of W_i is some [a]_i. -/ |
| 119 | point_surjective (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : (point i).Surjective |
| 120 | /-- π[a]_i = π[b]_i exactly when `a` and `b` are isomorphic at level K(𝔑). -/ |
| 121 | point_eq_iff (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) (a b : ModuliPoint E n ν) : |
| 122 | point i a ≫ leg i ⟦1⟧ = point i b ≫ leg i ⟦1⟧ ↔ |
| 123 | ∃ z : GL n E, a.IsLevelIso (levelGU n 𝔑) z b |
| 124 | /-- For `g` in `GUPlus E n` with g ∈ s_i, m_α p_g [a]_i = π[a·(g, α)]_i. -/ |
| 125 | point_leg {i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)} g (α : Fin ν → 𝓞 E) |
| 126 | (a : ModuliPoint E n ν) : ↑g ∈ legIndices i → |
| 127 | point i a ≫ leg i g.val ≫ mulMap α = point i (a.act g α) ≫ leg i ⟦1⟧ |
| 128 | /-- The relative dimension of Z over `Spec R`. -/ |
| 129 | dimension : ℕ |
| 130 | /-- Z is smooth over `Spec R` of relative dimension `dimension`. -/ |
| 131 | smooth : SmoothOfRelativeDimension dimension base.hom |
| 132 | /-- Z is proper over `Spec R`. -/ |
| 133 | [proper : IsProper base.hom] |
| 134 | /-- W_i is a closed subscheme of a projective space over `Spec R`. -/ |
| 135 | [projective (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : HasProjEmbedding (cover i).hom] |
| 136 | /-- W_i is reduced. -/ |
| 137 | [isReduced (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : |
| 138 | AlgebraicGeometry.IsReduced (cover i).left] |
| 139 | /-- π is onto, and its fibres in characteristic `0` are torsors under Δ_i. -/ |
| 140 | covering (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) : IsGaloisCovering (leg i ⟦1⟧) (deck i) |
| 141 | /-- Let g ∈ s_i and let z : a·(g, α) ≅ a at level K(𝔑) have separable characteristic polynomial, |
| 142 | with `a.reflection` the involution `markedReflection` of `z` at its `μ`-th listed root. Then at |
| 143 | [a]_i the polynomial `localTerm` is a constant times det(1 - X (dπ)⁻¹ d(m_α p_g)), in the sense |
| 144 | of `IsTangentPoly`. -/ |
| 145 | tangent (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) (g : GUPlus E n) (α : Fin ν → 𝓞 E) |
| 146 | (a : ModuliPoint E n ν) (z : GL n E) (μ : n) : |
| 147 | g.val ∈ legIndices i → z.val.charpoly.Separable → a.reflection = markedReflection z μ → |
| 148 | (a.act g α).IsLevelIso (levelGU n 𝔑) z a → |
| 149 | IsTangentPoly dimension ((algPoints (ℂ) (CommRingCat.of R)).map (leg i ⟦1⟧)) |
| 150 | ((algPoints (ℂ) (CommRingCat.of R)).map (leg i g.val ≫ mulMap α)) |
| 151 | ⟨point i a⟩ (localTerm α z.val.charpoly μ) |
| 152 | /-- The congruence relation at a split place `w` satisfying `IsSafe`, with residue field k_w of |
| 153 | order q = p^f: if `𝔭` contains the image of `w` and all g_A = `invHeckeIsogeny w A` lie in s_i, A |
| 154 | a subspace of k_wⁿ of dimension r, then ∑_A (-1)^r q^{r(r-1)/2} [Frob_p^{(n-r)f} p_{g_A}(x)] = 0 |
| 155 | in the sense of `CongruenceRelation`. -/ |
| 156 | congruence (w : SplitFinPlace E) : IsSafe 𝔑 w.val → |
| 157 | ∀ i (𝔭 : Set R), (∀ c ∈ w.val.asIdeal, algebraMap (𝓞 E) R c ∈ 𝔭) → |
| 158 | (∀ A, invHeckeIsogeny w A ∈ legIndices i) → |
| 159 | let r (A : Submodule (ResField (w : FinPlace E)) (n → ResField (w : FinPlace E))) := |
| 160 | finrank (ResField w.val) A |
| 161 | ∀ ⦃p f : ℕ⦄ [Fact p.Prime], w.val.q = p ^ f → |
| 162 | CongruenceRelation (fun A ↦ (-1) ^ r A * w.val.q ^ (r A).choose 2) 𝔭 p |
| 163 | (fun A ↦ (card n - r A) * f) |
| 164 | (leg i <| invHeckeIsogeny w ·) |
| 165 | |
| 166 | end Model |
| 167 | |
| 168 | /-! |
| 169 | ## Hecke elements τ_{w,j} at safe split places and their operators |
| 170 | |
| 171 | * `New.Variety.conj_conjAtSplit`, `New.Variety.conjAtSplit_dualComponent` (with its two parts |
| 172 | `New.Variety.conjAtSplit_dualComponent_mem_levelGU` and |
| 173 | `New.Variety.commute_inv_conjAtSplit_dualComponent_mul`): the embedding `New.Variety.conjAtSplit` |
| 174 | of GL_n(E_w) into the similitudes `New.Variety.GU` and its retraction `New.Variety.dualComponent`. |
| 175 | -/ |
| 176 | |
| 177 | section LocalHecke |
| 178 | |
| 179 | open NumberField Matrix CategoryTheory Set Module WithZero Valued |
| 180 | |
| 181 | namespace New.Variety |
| 182 | |
| 183 | section |
| 184 | |
| 185 | variable {E : Type} [Field E] [NumberField E] [IsCMField E] |
| 186 | {n : Type} [Fintype n] [DecidableEq n] |
| 187 | {𝔑 : 𝓞 E} {d₀ : ℕ} [HasQuadSubfield d₀ E] |
| 188 | {k W : Type} [CommRing k] [AddCommGroup W] [Module k W] |
| 189 | {π : Representation k (GL n (𝔸f E)) W} {w : SplitFinPlace E} (g : GL n (LocField w.val)) |
| 190 | (s s' : SafePlace 𝔑 × ℕ) {x : W} |
| 191 | |
| 192 | /-- The endomorphism of the unitary group {g : gᴴg = 1} of matrices over R indexed by `n` that |
| 193 | applies the involution of R to each entry. -/ |
| 194 | def entryConj {R : Type*} [CommRing R] [StarRing R] : |
| 195 | U (1 : Matrix n n R) →* U (1 : Matrix n n R) := |
| 196 | (invTransposeGL.toMonoidHom.comp (U 1).subtype).codRestrict (U (1 : Matrix n n R)) fun g ↦ |
| 197 | -- transpose the equation that makes `g⁻¹` unitary |
| 198 | mem_unitaryGroupOf_iff.2 <| mul_eq_one_comm.1 (by |
| 199 | change g⁻¹.val.valᵀ * (g⁻¹.val.valᵀᴴ * 1) = 1 |
| 200 | simpa [star_eq_conjTranspose, -coe_units_inv, conjTranspose, transpose_map] using |
| 201 | congrArg Matrix.transpose (mem_unitaryGroupOf_iff.1 g⁻¹.property)) |
| 202 | |
| 203 | /-- The conjugated matrix `conjAtSplit w g` is unitary with respect to conjugate transpose. -/ |
| 204 | @[simp] |
| 205 | lemma conjAtSplit_unitary : (conjAtSplit w g).valᴴ * conjAtSplit w g = 1 := by |
| 206 | have h := mem_unitaryGroupOf_iff.1 (entryConj (ofSplitPlace w.property g)).property |
| 207 | rw [Matrix.mul_one, star_eq_conjTranspose] at h |
| 208 | exact h |
| 209 | |
| 210 | /-- `conjAtSplit w g` is a unitary similitude (with multiplier `1`). -/ |
| 211 | @[simp] |
| 212 | lemma conjAtSplit_mem_GU : conjAtSplit w g ∈ GU E n := ⟨1, rfl, 1, by simp⟩ |
| 213 | |
| 214 | /-- Evaluation of `conjAtSplit w g` at place `w` yields the inverse transpose `(g⁻¹)ᵀ`. -/ |
| 215 | @[simp] |
| 216 | lemma evalAt_conjAtSplit : (conjAtSplit w g).map (evalAt w.val) = invTransposeGL g := by |
| 217 | change invTransposeGL ((ofSplitPlace w.property g).atPlace w.val) = invTransposeGL g |
| 218 | rw [atPlace_ofSplitPlace] |
| 219 | |
| 220 | /-- At a place `u` other than `w` and its conjugate, the component of `conjAtSplit w g` is `1`. -/ |
| 221 | lemma evalAt_conjAtSplit_of_ne {u : FinPlace E} (hu : u ≠ w.val) (hu' : star u ≠ w) : |
| 222 | (conjAtSplit w g).map (evalAt u) = 1 := |
| 223 | invTransposeGL.map_eq_one_iff.mpr (atPlace_ofSplitPlace_of_ne w.property _ hu hu') |
| 224 | |
| 225 | /-- The dual component map extracts the original matrix `g` from `conjAtSplit w g`. -/ |
| 226 | @[simp] |
| 227 | lemma dualComponent_conjAtSplit : dualComponent w (conjAtSplit w g) = g := by simp [dualComponent] |
| 228 | |
| 229 | /-- Let w be a split place and g a unitary similitude. Then conjugating `conjAtSplit w m` by g gives |
| 230 | `conjAtSplit w` of the conjugate of m by the component `dualComponent w g`. -/ |
| 231 | lemma conj_conjAtSplit {g : GL n (𝔸f E)} (hg : g ∈ GU E n) (m : GL n (LocField (w : FinPlace E))) : |
| 232 | g * conjAtSplit w m * g⁻¹ = conjAtSplit w (dualComponent w g * m * (dualComponent w g)⁻¹) := by |
| 233 | obtain ⟨c, hc, ε, hframe⟩ := hg |
| 234 | -- `gᴴ * g` is a scalar matrix, so every unitary matrix preserves this form too. |
| 235 | have h_scalar : g.valᴴ * g.val = (c⁻¹ : E) • finAdeleIncl ℚ E ε • 1 := by |
| 236 | simpa [hc.ne', map_smul'] using congrArg (fun M : Matrix n n (𝔸f E) ↦ (c⁻¹ : E) • M) hframe |
| 237 | have h_mem : conjAtSplit w m ∈ U (g.valᴴ * 1 * g.val) := by |
| 238 | simp [mem_unitaryGroupOf_iff, star_eq_conjTranspose, h_scalar] |
| 239 | -- Hence both sides are unitary. They are trivial off `w` and its conjugate, and they have the |
| 240 | -- same component at `w`. |
| 241 | have h_mem' : conjAtSplit w (dualComponent w g * m * (dualComponent w g)⁻¹) ∈ |
| 242 | U (1 : Matrix n n (𝔸f E)) := by |
| 243 | rw [mem_unitaryGroupOf_iff, Matrix.mul_one, star_eq_conjTranspose] |
| 244 | exact conjAtSplit_unitary (w := w) (dualComponent w g * m * (dualComponent w g)⁻¹) |
| 245 | have h_conj_eq : U.conj g rfl ⟨conjAtSplit w m, h_mem⟩ = |
| 246 | ⟨conjAtSplit w (dualComponent w g * m * (dualComponent w g)⁻¹), h_mem'⟩ := by |
| 247 | refine Gf.eq_of_supportedOn (S := {w.val}) ?_ ?_ ?_ <;> |
| 248 | simp_all [Gf.atPlace, dualComponent, evalAt_conjAtSplit_of_ne] |
| 249 | exact congrArg Subtype.val h_conj_eq |
| 250 | |
| 251 | /-- A unitary similitude whose component `dualComponent w g` is `1` commutes with the image of |
| 252 | `conjAtSplit w`. -/ |
| 253 | lemma commute_conjAtSplit {g : GL n (𝔸f E)} (hg : g ∈ GU E n ⊓ (dualComponent w).ker) |
| 254 | (m : GL n (LocField w.val)) : Commute g (conjAtSplit w m) := by |
| 255 | obtain ⟨hg_GU, hg_ker⟩ := hg |
| 256 | have h_one : dualComponent w g = 1 := MonoidHom.mem_ker.mp hg_ker |
| 257 | have h_conj : g * conjAtSplit w m * g⁻¹ = conjAtSplit w m := by |
| 258 | simp [conj_conjAtSplit hg_GU, h_one] |
| 259 | exact eq_mul_of_mul_inv_eq h_conj |
| 260 | |
| 261 | /-- `conjAtSplit w g` is an integral matrix exactly when `g` lies in the maximal compact subgroup |
| 262 | `localIntGL n w` of `GL_n(E_w)`. -/ |
| 263 | lemma conjAtSplit_mem_intGL_iff {g : GL n (LocField (w : FinPlace E))} : |
| 264 | conjAtSplit w g ∈ intGL n (Ô E) ↔ g ∈ localIntGL n w.val := by |
| 265 | change invTransposeGL (ofSplitPlace w.property g).val ∈ intGL n (Ô E) ↔ g ∈ localIntGL n w.val |
| 266 | rw [invTransposeGL_mem_intGL] |
| 267 | exact ofSplitPlace_mem_stdLevel w.property g |
| 268 | |
| 269 | /-! ### The level, place by place -/ |
| 270 | |
| 271 | /-- A similitude g in GL_n(Ô) lies in the principal level K(𝔑) if at each place u dividing 𝔑 it |
| 272 | has the same u-component as some element of K(𝔑). -/ |
| 273 | lemma mem_levelGU_of_map_evalAt_eq {g : GL n (𝔸f E)} (hGU : g ∈ GU E n) (hint : g ∈ intGL n (Ô E)) |
| 274 | (h_places : ∀ u : FinPlace E, 𝔑 ∈ u.asIdeal → ∃ κ ∈ levelGU n 𝔑, |
| 275 | g.map (evalAt u) = κ.map (evalAt u)) : |
| 276 | g ∈ levelGU n 𝔑 := by |
| 277 | -- Divisibility of an entry of `g - 1` by `𝔑` is read at the places `u` that divide `𝔑`, and |
| 278 | -- there `g` agrees with an element `κ` of the level. |
| 279 | have h_entry (i j : n) : (g.val - 1) i j ∈ Ô E ∙ algebraMap (𝓞 E) (𝔸f E) 𝔑 := by |
| 280 | refine mem_span_iff_valuation_le.mpr ⟨?_, fun u hu ↦ ?_⟩ |
| 281 | · exact sub_mem ((mem_intGL.mp hint).1 i j) |
| 282 | ((mem_intGL.mp (one_mem (intGL n (Ô E)))).1 i j) |
| 283 | obtain ⟨κ, hκ, h_loc⟩ := h_places u hu |
| 284 | have hκ_entries : ∀ i j : n, (κ.val - 1) i j ∈ Ô E ∙ algebraMap (𝓞 E) (𝔸f E) 𝔑 := |
| 285 | (Subgroup.mem_inf.mp hκ).right.right |
| 286 | obtain ⟨-, hκ_le⟩ := mem_span_iff_valuation_le.mp (hκ_entries i j) |
| 287 | have h_entry_u : g.1 i j u = κ.1 i j u := congrArg (fun M : GL n (LocField u) ↦ M.1 i j) h_loc |
| 288 | simpa [h_entry_u] using hκ_le u hu |
| 289 | exact ⟨hGU, hint, h_entry⟩ |
| 290 | |
| 291 | /-- For `𝔑 ≠ 0`, the preimage of the principal level K(𝔑) under `conjAtSplit w` is open in |
| 292 | `GL_n(E_w)`. -/ |
| 293 | lemma isOpen_comap_conjAtSplit (h𝔑 : 𝔑 ≠ 0) : |
| 294 | IsOpen ((levelGU n 𝔑).comap (conjAtSplit w)).carrier := by |
| 295 | have h_cont : Continuous (conjAtSplit (n := n) w) := .of_coeHom_comp |
| 296 | (Units.continuous_coe_inv.comp (continuous_ofSplitPlace w.property).subtypeVal).matrix_transpose |
| 297 | exact .and (by simp) ((isOpen_congruenceGL_span h𝔑).preimage h_cont) |
| 298 | |
| 299 | /-- Let w be split with 𝔑 ∉ w̄, and let κ ∈ K(𝔑). Then `conjAtSplit w (dualComponent w κ)`, the |
| 300 | unitary element equal to κ at w and to 1 away from w and w̄, lies in K(𝔑). -/ |
| 301 | lemma conjAtSplit_dualComponent_mem_levelGU (h_notMem : 𝔑 ∉ (star w.val).asIdeal) |
| 302 | {κ : GL n (𝔸f E)} (hκ : κ ∈ levelGU n 𝔑) : |
| 303 | conjAtSplit w (dualComponent w κ) ∈ levelGU n 𝔑 := by |
| 304 | have hκ_int : κ ∈ intGL n (Ô E) := (Subgroup.mem_inf.mp hκ).right.left |
| 305 | have h_int : conjAtSplit w (dualComponent w κ) ∈ intGL n (Ô E) := |
| 306 | conjAtSplit_mem_intGL_iff.mpr ((invTransposeGL_mem_intGL _).mpr (mem_intGL_Ô.mp hκ_int _)) |
| 307 | -- At a place `u` containing `𝔑` the element agrees with `κ` (if `u = w`) or with `1`, since |
| 308 | -- `u ≠ star w` by `h_notMem`. |
| 309 | refine mem_levelGU_of_map_evalAt_eq (conjAtSplit_mem_GU _) h_int fun u hu ↦ ?_ |
| 310 | by_cases huw : w = u |
| 311 | · subst huw |
| 312 | exact ⟨κ, hκ, evalAt_conjAtSplit _⟩ |
| 313 | · refine ⟨1, one_mem _, ?_⟩ |
| 314 | simp (disch := grind [star_star]) [evalAt_conjAtSplit_of_ne] |
| 315 | |
| 316 | /-- Let κ be a unitary similitude and c = `conjAtSplit w (dualComponent w κ)`. Then c⁻¹κ commutes |
| 317 | with every element `conjAtSplit w m` of the image of `conjAtSplit w`. -/ |
| 318 | lemma commute_inv_conjAtSplit_dualComponent_mul {κ : GL n (𝔸f E)} (hκ_GU : κ ∈ GU E n) |
| 319 | (m : GL n (LocField w.val)) : |
| 320 | Commute ((conjAtSplit w (dualComponent w κ))⁻¹ * κ) (conjAtSplit w m) := by |
| 321 | -- The element `(conjAtSplit w (dualComponent w κ))⁻¹ * κ` is trivial at `w`. |
| 322 | have h_GU : (conjAtSplit w (dualComponent w κ))⁻¹ * κ ∈ GU E n := |
| 323 | mul_mem (inv_mem (conjAtSplit_mem_GU _)) hκ_GU |
| 324 | have h_ker : (conjAtSplit w (dualComponent w κ))⁻¹ * κ ∈ (dualComponent w).ker := by simp |
| 325 | exact commute_conjAtSplit ⟨h_GU, h_ker⟩ m |
| 326 | |
| 327 | /-- Both `conjAtSplit_dualComponent_mem_levelGU` and `commute_inv_conjAtSplit_dualComponent_mul`: |
| 328 | for w split with 𝔑 ∉ w̄ and κ ∈ K(𝔑), c = `conjAtSplit w (dualComponent w κ)` lies in K(𝔑), and |
| 329 | c⁻¹κ commutes with the whole image of `conjAtSplit w`. -/ |
| 330 | lemma conjAtSplit_dualComponent (h_notMem : 𝔑 ∉ (star w.val).asIdeal) {κ : GL n (𝔸f E)} |
| 331 | (hκ : κ ∈ levelGU n 𝔑) : |
| 332 | conjAtSplit w (dualComponent w κ) ∈ levelGU n 𝔑 ∧ |
| 333 | ∀ m : GL n (LocField (w : FinPlace E)), |
| 334 | Commute ((conjAtSplit w (dualComponent w κ))⁻¹ * κ) (conjAtSplit w m) := |
| 335 | ⟨conjAtSplit_dualComponent_mem_levelGU h_notMem hκ, |
| 336 | commute_inv_conjAtSplit_dualComponent_mul (Subgroup.mem_inf.mp hκ).left⟩ |
| 337 | |
| 338 | /-- Let w̄ ∤ 𝔑 and let b be a combination of elements g of D. Assume that each g in D lies in |
| 339 | `New.Variety.GUPlus` and commutes with everything commuting with the local group at w. If in every |
| 340 | representation b sends K(𝔑)-fixed vectors to vectors fixed by the preimage of K(𝔑) under |
| 341 | `New.Variety.conjAtSplit` at w, then b lies in the Hecke algebra `heckeAlgebra n k 𝔑`: the |
| 342 | combinations of elements of `GUPlus E n` that in every representation send K(𝔑)-fixed vectors to |
| 343 | K(𝔑)-fixed vectors. -/ |
| 344 | lemma mem_heckeAlgebra_of_mem_fixedToEigen (h_notMem : 𝔑 ∉ (star w.val).asIdeal) |
| 345 | {D : Set (GL n (𝔸f E))} {b : MonoidAlgebra k (GL n (𝔸f E))} (hb : b ∈ spanOn k D) |
| 346 | (hD_GUPlus_comm : ∀ g ∈ D, g ∈ GUPlus E n ∧ |
| 347 | ∀ d : GL n (𝔸f E), (∀ m : GL n (LocField (w : FinPlace E)), Commute d (conjAtSplit w m)) → |
| 348 | Commute d g) |
| 349 | (h_fixed : b ∈ fixedToEigen (levelGU n 𝔑) (conjAtSplit w)) : |
| 350 | b ∈ heckeAlgebra n k 𝔑 := by |
| 351 | have hD_GUPlus : D ⊆ GUPlus E n := fun g hg ↦ (hD_GUPlus_comm g hg).left |
| 352 | refine ⟨Submodule.span_mono (Set.image_mono hD_GUPlus) hb, fun W' _ _ π y hy κ ↦ ?_⟩ |
| 353 | -- Write `κ = c * (c⁻¹ * κ)` with `c = conjAtSplit w (dualComponent w κ)`: the second factor |
| 354 | -- commutes with `b` and fixes `y`, and `c` fixes `b y` by `h_fixed`. |
| 355 | have hκ_GU : κ.val ∈ GU E n := (Subgroup.mem_inf.mp κ.prop).left |
| 356 | set c : GL n (𝔸f E) := conjAtSplit w (dualComponent w κ.val) |
| 357 | have hc : c ∈ levelGU n 𝔑 := conjAtSplit_dualComponent_mem_levelGU h_notMem κ.prop |
| 358 | have hb_comm : Commute (MonoidAlgebra.of k _ (c⁻¹ * κ.val)) b := by |
| 359 | refine .span_right ?_ _ hb |
| 360 | rintro _ ⟨g, hg, rfl⟩ |
| 361 | obtain ⟨-, hg_comm⟩ := hD_GUPlus_comm g hg |
| 362 | exact (hg_comm _ (commute_inv_conjAtSplit_dualComponent_mul hκ_GU)).map _ |
| 363 | have h_comm_y : π c (π.asAlgebraHom (MonoidAlgebra.of k _ (c⁻¹ * κ.val) * b) y) = |
| 364 | π c (π.asAlgebraHom (b * MonoidAlgebra.of k _ (c⁻¹ * κ.val)) y) := by |
| 365 | rw [hb_comm.eq] |
| 366 | calc π κ.val (π.asAlgebraHom b y) = π c (π.asAlgebraHom b y) := by |
| 367 | simpa [hy κ, hy ⟨c⁻¹, inv_mem hc⟩] using h_comm_y |
| 368 | _ = (1 : k) • π.asAlgebraHom b y := h_fixed hy ⟨dualComponent w κ, hc⟩ |
| 369 | |
| 370 | /-! ### The Hecke elements -/ |
| 371 | |
| 372 | omit [IsCMField E] in |
| 373 | lemma commute_scalar_GL (z : (𝔸f E)ˣ) (g : GL n (𝔸f E)) : Commute g (.scalar n z) := |
| 374 | (g.scalar_commute z).symm |
| 375 | |
| 376 | /-- For a finite idele x of K₀ and z = `centralScalar x`, the scalar matrix of the conjugate of x, |
| 377 | the matrix zᴴz is the scalar matrix of the norm of x to ℚ. -/ |
| 378 | private lemma conjTranspose_centralScalar_mul_centralScalar (x : (𝔸f (QuadField d₀))ˣ) : |
| 379 | ((centralScalar (n := n) x : GL n (𝔸f E)) : Matrix n n (𝔸f E))ᴴ * |
| 380 | (centralScalar (n := n) x : GL n (𝔸f E)) = |
| 381 | finAdeleIncl ℚ E ((x.map (adeleNorm ℚ (QuadField d₀)) : (𝔸f ℚ)ˣ) : 𝔸f ℚ) • 1 := by |
| 382 | -- The norm from the quadratic field to `ℚ` is `y * star y`: this holds for field elements |
| 383 | -- (`norm_maximalRealSubfield_eq_mul_star`, the maximal real subfield being `ℚ`), hence for adeles |
| 384 | -- by density. |
| 385 | have h_norm (y : 𝔸f (QuadField d₀)) : |
| 386 | finAdeleIncl _ E y * star (finAdeleIncl _ E y) = finAdeleIncl ℚ E (adeleNorm ℚ _ y) := by |
| 387 | revert y |
| 388 | refine denseRange_algebraMap_finAdele.eq fun i ↦ ?_ |
| 389 | simp [← map_mul, ← map_star_CM, ← norm_maximalRealSubfield_eq_mul_star, RingHom.ext_iff, |
| 390 | ← Algebra.norm_eq_of_ringEquiv (CMExtension.equivMaximalRealSubfield ℚ _)] |
| 391 | simp [smul_one_eq_diagonal, h_norm, starRingEnd_apply] |
| 392 | |
| 393 | /-- The scalar matrix `centralScalar x` of a finite idele x of K₀ is a unitary similitude. -/ |
| 394 | lemma mem_GU_centralScalar (x : (𝔸f (QuadField d₀))ˣ) : centralScalar x ∈ GU E n := |
| 395 | mem_GU_of_gram_eq _ (conjTranspose_centralScalar_mul_centralScalar x) |
| 396 | |
| 397 | /-- For a finite idele x of K₀ and a rational c equal to the idelic absolute value of the norm of x |
| 398 | to ℚ, the scalar matrix `centralScalar x` is a frame for the scalar form c·1. -/ |
| 399 | lemma isScalarFrame_centralScalar (x : (𝔸f (QuadField d₀))ˣ) {c : ℚ} |
| 400 | (hc : c = finIdeleAbs (x.map (adeleNorm ℚ (QuadField d₀)))) : |
| 401 | IsScalarFrame (centralScalar x : GL n (𝔸f E)) c := |
| 402 | isScalarFrame_of_gram_eq _ (conjTranspose_centralScalar_mul_centralScalar x) hc |
| 403 | |
| 404 | /-- The Hecke element `τ_{w,j} = heckeSum n k w j` is a combination of the elements |
| 405 | `invHeckeIsogeny w U`. -/ |
| 406 | lemma heckeSum_mem_spanOn {j : ℕ} : heckeSum n k w j ∈ spanOn k (range (invHeckeIsogeny w)) := |
| 407 | sum_mem fun U _ ↦ Submodule.subset_span ⟨invHeckeIsogeny w U, ⟨U, rfl⟩, rfl⟩ |
| 408 | |
| 409 | /-- Let `x` be a unit of the completion at `w`, and let `u` be a place whose restriction to `K₀` is |
| 410 | not the conjugate of that of `w`. Then the `u`-component of the scalar matrix `centralScalar` of |
| 411 | the norm of the local idele of `x` is `1`. -/ |
| 412 | lemma evalAt_centralScalar_of_ne {w u : FinPlace E} |
| 413 | (h_below : u.below (QuadField d₀) ≠ star (w.below (QuadField d₀))) (x : (LocField w)ˣ) : |
| 414 | (centralScalar (n := n) ((locIdele w x).map (adeleNorm (QuadField d₀) E))).map |
| 415 | (evalAt u) = 1 := by |
| 416 | -- The norm of a local idele is local at `w.below _`. Since `centralScalar` conjugates, the value |
| 417 | -- is read at `star u`, which does not lie above that place. |
| 418 | ext1 |
| 419 | simp (disch := |
| 420 | grind [below_star, star_star]) [adeleNorm_locIdele, adeleMap_apply _ rfl, starRingEnd_apply] |
| 421 | |
| 422 | /-- The matrix of the inverse of `centralScalar x` is the scalar matrix of the conjugate of |
| 423 | `x⁻¹`. -/ |
| 424 | private lemma val_inv_centralScalar (x : (𝔸f (QuadField d₀))ˣ) : |
| 425 | (((centralScalar (n := n) x)⁻¹ : GL n (𝔸f E)) : Matrix n n (𝔸f E)) = |
| 426 | diagonal fun _ : n ↦ |
| 427 | starRingEnd (𝔸f E) (finAdeleIncl (QuadField d₀) E ((x⁻¹ : (𝔸f (QuadField d₀))ˣ) : 𝔸f _)) := |
| 428 | rfl |
| 429 | |
| 430 | private lemma val_inv_conjAtSplit (g : GL n (LocField (w : FinPlace E))) : |
| 431 | (((conjAtSplit w g)⁻¹ : GL n (𝔸f E)) : Matrix n n (𝔸f E)) = |
| 432 | ((singleGL (w : FinPlace E) g : Matrix n n (𝔸f E)) * |
| 433 | star (singleGL (w : FinPlace E) g⁻¹ : Matrix n n (𝔸f E)))ᵀ := |
| 434 | rfl |
| 435 | |
| 436 | /-- For a split finite place w of E and a subspace U of k_wⁿ of dimension r, where k_w is the |
| 437 | residue field at w, the matrix `invHeckeIsogeny w U` lies in `GUPlus E n`: it is a similitude whose |
| 438 | inverse has integral entries. This matrix is the scalar matrix of the conjugate of the (−r)-th power |
| 439 | of `uniformizerNorm w`, the norm to K₀ of the idele that is a uniformiser at w and 1 elsewhere, |
| 440 | times `conjAtSplit w` of the transpose of `basicCosetRep U`, an integral matrix at w whose |
| 441 | determinant has order r. -/ |
| 442 | lemma invHeckeIsogeny_mem_GUPlus (w : SplitFinPlace E) |
| 443 | (U : Submodule (ResField (w : FinPlace E)) (n → ResField (w : FinPlace E))) : |
| 444 | invHeckeIsogeny w U ∈ GUPlus E n := by |
| 445 | -- Put `D = (basicCosetRep U)ᵀ` and `q = uniformizerNorm w`. The inverse of `invHeckeIsogeny w U` |
| 446 | -- is the transpose of the product of `singleGL w D` and the conjugate transpose of |
| 447 | -- `q ^ dim U • singleGL w D⁻¹`; both are integral. |
| 448 | obtain ⟨h_int, -, h_det⟩ := basicCosetRep_mem_basicDoubleCoset U |
| 449 | have h_mul_locGL_mem (g : GL n (LocField w.val)) (a : 𝔸f E) (ha : a ∈ Ô E) |
| 450 | (hg : ∀ i j : n, v (a w * g i j) ≤ 1) (i j : n) : |
| 451 | a * singleGL _ g i j ∈ Ô E := by |
| 452 | rw [mem_Ô, ← and_forall_ne w.val] |
| 453 | by_cases h_ij : i = j <;> simp_all [singleGL, mem_Ô] |
| 454 | -- `q` is integral, and its image in the adeles of `E` is not a unit at `w`. |
| 455 | have h_loc_mem : ((locIdele w.val (uniformizer w.val) : (𝔸f E)ˣ) : 𝔸f E) ∈ Ô E := by |
| 456 | simp +decide +contextual [mem_Ô, ← and_forall_ne w.val] |
| 457 | have hq_int : (uniformizerNorm w).val ∈ Ô (QuadField d₀) := adeleNorm_mem_Ô h_loc_mem |
| 458 | have hq_lt : v (finAdeleIncl (QuadField d₀) E (uniformizerNorm w).val w) < 1 := by |
| 459 | -- `norm_localNorm` meets `uniformizerNorm w` at the place below `w` only by unfolding |
| 460 | -- `uniformizerNorm` and the local idele, so these steps are used as equations. |
| 461 | refine (isEquiv_comap_locMap _ rfl).lt_one_iff_lt_one.mpr ?_ |
| 462 | rw [← toNormedField.norm_lt_one_iff] |
| 463 | refine (norm_localNorm ..).trans_lt ?_ |
| 464 | simp +decide |
| 465 | -- `D⁻¹ = (det D)⁻¹ • adjugate D`, and `q ^ dim U` absorbs `det D`, of order `dim U` at `w`. |
| 466 | have h_inv (i j : n) : |
| 467 | v (finAdeleIncl (QuadField d₀) E ((uniformizerNorm w).val ^ finrank (ResField w.val) U) w * |
| 468 | (transposeGL (basicCosetRep U))⁻¹ i j) ≤ 1 := by |
| 469 | have h_adj : v ((basicCosetRep U).valᵀ.adjugate i j) ≤ 1 := |
| 470 | (IsIntMatrix.transpose (R := (LocInt _).toSubring) h_int).adjugate i j |
| 471 | have h_pow := pow_le_one' (v_uniformizer_inv_mul_le_one_iff.2 hq_lt) (finrank (ResField w.1) U) |
| 472 | simpa [mul_comm (exp _), inv_def, h_det, mul_pow, mul_assoc] using mul_le_one' h_pow h_adj |
| 473 | refine ⟨mul_mem (mem_GU_centralScalar _) (conjAtSplit_mem_GU _), ?_⟩ |
| 474 | unfold invHeckeIsogeny |
| 475 | -- write the inverse as the transpose of `singleGL w D * (q ^ dim U • singleGL w D⁻¹)ᴴ` |
| 476 | rw [_root_.mul_inv_rev, Units.val_mul, val_inv_centralScalar, ← smul_eq_mul_diagonal, |
| 477 | val_inv_conjAtSplit, ← transpose_smul, ← mul_smul_comm, starRingEnd_apply, ← star_smul] |
| 478 | refine IsIntMatrix.transpose (.mul ?_ (.conjTranspose ?_)) |
| 479 | · have h_loc : ∀ i j : n, |
| 480 | (singleGL _ (transposeGL (basicCosetRep U)) : Matrix n n (𝔸f E)) i j ∈ Ô E := by |
| 481 | simpa [h_int] using h_mul_locGL_mem (transposeGL (basicCosetRep U)) 1 |
| 482 | exact h_loc |
| 483 | · exact h_mul_locGL_mem _ _ ((adeleMap_mem_Ô _).2 (pow_mem hq_int _)) h_inv |
| 484 | |
| 485 | /-- Let `x` be fixed by the level K(𝔑), and let `w` be the safe place of the pair `s = (w, j)`. Then |
| 486 | `x` is fixed by GL_n(O_w) (`New.localIntGL`), acting through `New.Variety.conjAtSplit w`. -/ |
| 487 | lemma SafePlace.mem_levelSpace_conjAtSplit (hx : x ∈ levelSpace π (levelGU n 𝔑)) : |
| 488 | x ∈ levelSpace (π.comp (conjAtSplit s.1)) (localIntGL n (s.1.val : FinPlace E)) := by |
| 489 | intro a |
| 490 | -- `conjAtSplit _ a` is a unitary similitude with integral entries, and it is `1` at every place |
| 491 | -- dividing `𝔑`, which is neither the safe place nor its conjugate. |
| 492 | have h_int : conjAtSplit s.1 a ∈ intGL n (Ô E) := conjAtSplit_mem_intGL_iff.mpr a.prop |
| 493 | have h_one (u : FinPlace E) (hu : 𝔑 ∈ u.asIdeal) : |
| 494 | (conjAtSplit s.1 a).map (evalAt u) = (1 : GL n (𝔸f E)).map (evalAt u) := by |
| 495 | simp (disch := grind [IsSafe, below_star, star_star]) [evalAt_conjAtSplit_of_ne] |
| 496 | exact hx ⟨_, mem_levelGU_of_map_evalAt_eq (conjAtSplit_mem_GU _) h_int |
| 497 | fun u hu ↦ ⟨1, one_mem _, h_one u hu⟩⟩ |
| 498 | |
| 499 | /-- Let `s = (w, j)` with `w` a safe place, and let `x` be fixed by K(𝔑) in the representation `π`. |
| 500 | Then τ_{w,j} sends `x` to the j-th Hecke operator of GL_n(E_w) (acting through |
| 501 | `conjAtSplit w`) applied to `x`, followed by the central scalar of the inverse of |
| 502 | `New.Variety.uniformizerNorm w ^ j`. -/ |
| 503 | lemma asAlgebraHom_heckeSum (h : x ∈ levelSpace π (levelGU n 𝔑)) : |
| 504 | π.asAlgebraHom (heckeSum n k s.1 s.2) x = |
| 505 | π (centralScalar (uniformizerNorm s.1.val ^ s.2)⁻¹) |
| 506 | (heckeGL (π.comp (conjAtSplit s.1)) s.2 x) := by |
| 507 | -- Both sides are sums over the subspaces `U` of dimension `s.2`, and they agree term by term: |
| 508 | -- in each term of τ the power of the uniformiser's norm is `finrank U`, that is `s.2`. |
| 509 | have h_sum : heckeSum n k s.1 s.2 = |
| 510 | ∑ U ∈ {U : Submodule (ResField (s.1.val : FinPlace E)) (n → ResField (s.1.val : FinPlace E)) | |
| 511 | finrank (ResField (s.1.val : FinPlace E)) U = s.2}, |
| 512 | MonoidAlgebra.of k (GL n (𝔸f E)) (centralScalar (uniformizerNorm s.1.val ^ s.2)⁻¹ * |
| 513 | conjAtSplit s.1 (transposeGL (basicCosetRep U))) := |
| 514 | Finset.sum_congr rfl fun U hU ↦ by rw [invHeckeIsogeny, (Finset.mem_filter.mp hU).right] |
| 515 | simp [h_sum, heckeGL_eq_sum (SafePlace.mem_levelSpace_conjAtSplit s h)] |
| 516 | |
| 517 | /-- For `s = (w, j)` with `w` a safe place, τ_{w,j} lies in the Hecke algebra of the level K(𝔑). -/ |
| 518 | lemma heckeSum_mem_heckeAlgebra : heckeSum n k s.1 s.2 ∈ heckeAlgebra n k 𝔑 := by |
| 519 | refine mem_heckeAlgebra_of_mem_fixedToEigen (s.1.prop.2.2 _ (below_star _)) heckeSum_mem_spanOn |
| 520 | ?_ fun W _ _ π y hy a ↦ ?_ |
| 521 | · -- Each term of `τ` is a central element times an element in the image of `conjAtSplit`. |
| 522 | rintro _ ⟨U, rfl⟩ |
| 523 | exact ⟨invHeckeIsogeny_mem_GUPlus _ U, fun d hd ↦ (commute_scalar_GL _ d).mul_right (hd _)⟩ |
| 524 | · -- `τ y` is a central translate of a spherical Hecke operator on `y`, fixed by `localIntGL`. |
| 525 | rw [asAlgebraHom_heckeSum s hy] |
| 526 | exact map_mem_levelSpace_of_commute |
| 527 | ((isHeckeFunction_basicDoubleCoset _).heckeFun_mem |
| 528 | (SafePlace.mem_levelSpace_conjAtSplit s hy)) |
| 529 | (fun _ ↦ by simp [commute_scalar_GL, Commute.map]) |
| 530 | ⟨a, conjAtSplit_mem_intGL_iff.mp a.prop.2.1⟩ |
| 531 | |
| 532 | /-- For s = (w, j), with w a safe split place and j a natural number, the element τ_{w,j} as a |
| 533 | member of the Hecke algebra of level K(𝔑) over k. The pair is one argument so that words in |
| 534 | these elements are lists. -/ |
| 535 | def tauHecke : heckeAlgebra n k 𝔑 := ⟨heckeSum n k s.1 s.2, heckeSum_mem_heckeAlgebra s⟩ |
| 536 | |
| 537 | /-- The element τ_{w,j} of the Hecke algebra keeps the vectors fixed by K(𝔑). -/ |
| 538 | lemma asAlgebraHom_tauHecke_mem_levelSpace (h : x ∈ levelSpace π (levelGU n 𝔑)) : |
| 539 | π.asAlgebraHom (tauHecke s).val x ∈ levelSpace π (levelGU n 𝔑) := |
| 540 | (heckeSum_mem_heckeAlgebra s).right h |
| 541 | |
| 542 | /-- Let π be a representation of GL_n(𝔸f E) on the k-module W, and let s = (w, j) and s' be pairs of |
| 543 | a split place of E that is safe for the level 𝔑 (`SafePlace 𝔑`) and a natural number. The Hecke |
| 544 | elements τ_{w,j} = `tauHecke s` and `tauHecke s'` of level K(𝔑) over k then act through π by |
| 545 | commuting operators on any vector `x` fixed by K(𝔑) = `levelGU n 𝔑`, the similitudes in GL_n(Ô_E) |
| 546 | congruent to 1 modulo 𝔑. -/ |
| 547 | lemma asAlgebraHom_tauHecke_comm (h : x ∈ levelSpace π (levelGU n 𝔑)) : |
| 548 | π.asAlgebraHom (tauHecke s).val (π.asAlgebraHom (tauHecke s').val x) = |
| 549 | π.asAlgebraHom (tauHecke s').val (π.asAlgebraHom (tauHecke s).val x) := by |
| 550 | -- By `asAlgebraHom_heckeSum`, τ_{w,j} is a central element `z w j` times a Hecke operator |
| 551 | -- `H w j`. |
| 552 | let z (w : SafePlace 𝔑) (j : ℕ) : GL n (𝔸f E) := centralScalar (uniformizerNorm w.val ^ j)⁻¹ |
| 553 | let H (w : SafePlace 𝔑) (j : ℕ) (y : W) : W := heckeGL (π.comp (conjAtSplit w.val)) j y |
| 554 | have h_central (w : SafePlace 𝔑) (j : ℕ) (g : GL n (𝔸f E)) (y : W) : |
| 555 | π (z w j) (π g y) = π g (π (z w j) y) := |
| 556 | LinearMap.congr_fun ((commute_scalar_GL _ g).symm.map π).eq y |
| 557 | -- The inner central element moves out of the outer Hecke operator. |
| 558 | have h_prod (w : SafePlace 𝔑) (i : ℕ) (w' : SafePlace 𝔑) (j : ℕ) : |
| 559 | π.asAlgebraHom (tauHecke (w, i)).val (π.asAlgebraHom (tauHecke (w', j)).val x) = |
| 560 | π (z w i) (π (z w' j) (H w i (H w' j x))) := |
| 561 | calc |
| 562 | _ = π (z w i) (H w i (π.asAlgebraHom (tauHecke (w', j)).val x)) := |
| 563 | asAlgebraHom_heckeSum (w, i) (asAlgebraHom_tauHecke_mem_levelSpace (w', j) h) |
| 564 | _ = π (z w i) (H w i (π (z w' j) (H w' j x))) := |
| 565 | congrArg (fun y ↦ π (z w i) (H w i y)) (asAlgebraHom_heckeSum (w', j) h) |
| 566 | _ = π (z w i) (π (z w' j) (H w i (H w' j x))) := |
| 567 | congrArg (π (z w i)) (map_heckeFun (π := π.comp (conjAtSplit w.val)) (π (z w' j)) |
| 568 | (by simp) fun g ↦ h_central w' j (conjAtSplit w.val g) (H w' j x)).symm |
| 569 | -- Through the inverse transpose, `π` is a representation of the unitary group in which `x` is |
| 570 | -- spherical at every safe place; there the Hecke operators commute. |
| 571 | let ρ : Representation k (Gf E n) W := π.comp (invTransposeGL.toMonoidHom.comp (U 1).subtype) |
| 572 | have h_sph (w : SafePlace 𝔑) : x ∈ sphericalAt ρ (w.val : FinPlace E) := |
| 573 | (mem_sphericalAt_iff w.val.property).mpr (SafePlace.mem_levelSpace_conjAtSplit (w, 0) h) |
| 574 | obtain ⟨⟨w, i⟩, w', j⟩ := s, s' |
| 575 | have h_comm : H w i (H w' j x) = H w' j (H w i x) := |
| 576 | heckeSplit_comm w.val.property w'.val.property i j (h_sph w) (h_sph w') |
| 577 | rw [h_prod, h_prod, h_comm, h_central] |
| 578 | |
| 579 | end |
| 580 | |
| 581 | open LinearMap Submodule |
| 582 | |
| 583 | variable {E : Type} [Field E] [CMBase E] {n : Type} [Fintype n] [DecidableEq n] {𝔑 : 𝓞 E} {d₀ : ℕ} |
| 584 | [HasQuadSubfield d₀ E] {k : Type} [CommRing k] {ν : ℕ} {R : Subalgebra (𝓞 E) E} |
| 585 | (T : Model n d₀ 𝔑 ν R) |
| 586 | (F : (Over (AlgebraicGeometry.Spec (CommRingCat.of R)))ᵒᵖ ⥤ ModuleCat.{2} k) |
| 587 | |
| 588 | /-- For a contravariant functor F to k-modules, the pull-back F(Z) → F(W_i) along the leg of level |
| 589 | `i` at the coset `q`. -/ |
| 590 | def Model.legPullback (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) |
| 591 | (q : GL n (𝔸f E) ⧸ levelGU n 𝔑) : F.obj (Opposite.op T.base) →ₗ[k] F.obj |
| 592 | (Opposite.op (T.cover i)) := |
| 593 | (F.map (T.leg i q).op).hom |
| 594 | |
| 595 | /-- The operators t(w, j) on F(Z), indexed by a safe place w and a natural number j, are the action |
| 596 | of the Hecke elements τ_{w,j}, read on the level `I w`. -/ |
| 597 | structure Model.IsHeckeAction (I : SafePlace 𝔑 → Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) |
| 598 | (t : SafePlace 𝔑 × ℕ → Module.End k (F.obj (Opposite.op T.base))) : Prop where |
| 599 | /-- The operators commute. -/ |
| 600 | commute (s s' : SafePlace 𝔑 × ℕ) : Commute (t s) (t s') |
| 601 | /-- Pulled back to the level `I w`, t(w, j) is the sum of the legs over τ_{w,j}. -/ |
| 602 | legPullback_comp (w : SafePlace 𝔑) (j : ℕ) : |
| 603 | T.legPullback F (I w) ⟦1⟧ ∘ₗ t (w, j) = cosetSum (T.legPullback F (I w)) (heckeSum n k w j) |
| 604 | /-- On deep levels, a word L in the Hecke elements acts as the same word in the operators: for a |
| 605 | ring k', b ∈ k'[G] supported on `GUPlus E n` and Ψ additive, the sum of Ψ of the legs over |
| 606 | b · L(τ) is the sum over b of Ψ of the legs composed with L(t). -/ |
| 607 | eventually_cosetSum_mul_prod (k' : Type) [CommRing k'] (L : List (SafePlace 𝔑 × ℕ)) |
| 608 | {b : MonoidAlgebra k' (GL n (𝔸f E))} (hb : b ∈ spanOn k' (GUPlus E n)) : |
| 609 | ∀ᶠ i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n) in Filter.atTop, |
| 610 | ∀ {N : Type 2} [AddCommGroup N] [Module k' N] |
| 611 | (Ψ : (F.obj (Opposite.op T.base) →ₗ[k] F.obj (Opposite.op (T.cover i))) →+ N), |
| 612 | cosetSum (fun q : GL n (𝔸f E) ⧸ levelGU n 𝔑 ↦ Ψ (T.legPullback F i q)) |
| 613 | (b * (L.map tauHecke).prod.val) = |
| 614 | cosetSum (fun q : GL n (𝔸f E) ⧸ levelGU n 𝔑 ↦ Ψ (T.legPullback F i q ∘ₗ (L.map t).prod)) b |
| 615 | |
| 616 | variable {T : Model n d₀ 𝔑 ν R} |
| 617 | {F : (Over (AlgebraicGeometry.Spec (CommRingCat.of R)))ᵒᵖ ⥤ ModuleCat.{2} k} |
| 618 | |
| 619 | /-- Suppose the level `I w` has legs for all `invHeckeIsogeny w U`, and each t(w, j), pulled back to |
| 620 | the level `I w`, is the sum of the legs over τ_{w,j} (`cosetSum`: the legs at the cosets of the |
| 621 | terms of τ_{w,j}, weighted by their coefficients). Then on deep levels a word in the Hecke elements |
| 622 | acts as the same word in the operators t. -/ |
| 623 | lemma Model.eventually_cosetSum_mul_prod_of_legPullback_comp |
| 624 | {I : SafePlace 𝔑 → Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)} |
| 625 | (hI : ∀ (w : SafePlace 𝔑) (U : Submodule (ResField (w.val : FinPlace E)) |
| 626 | (n → ResField (w.val : FinPlace E))), invHeckeIsogeny w.val U ∈ T.legIndices (I w)) |
| 627 | {t : SafePlace 𝔑 × ℕ → Module.End k (F.obj (Opposite.op T.base))} |
| 628 | (ht : ∀ (w : SafePlace 𝔑) (j : ℕ), |
| 629 | T.legPullback F (I w) ⟦1⟧ ∘ₗ t (w, j) = cosetSum (T.legPullback F (I w)) (heckeSum n k w j)) |
| 630 | (k' : Type) [CommRing k'] (L : List (SafePlace 𝔑 × ℕ)) |
| 631 | {b : MonoidAlgebra k' (GL n (𝔸f E))} (hb : b ∈ spanOn k' (GUPlus E n)) : |
| 632 | ∀ᶠ i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n) in Filter.atTop, |
| 633 | ∀ {N : Type 2} [AddCommGroup N] [Module k' N] |
| 634 | (Ψ : (F.obj (Opposite.op T.base) →ₗ[k] F.obj (Opposite.op (T.cover i))) →+ N), |
| 635 | cosetSum (fun q : GL n (𝔸f E) ⧸ levelGU n 𝔑 ↦ Ψ (T.legPullback F i q)) |
| 636 | (b * (L.map tauHecke).prod.val) = |
| 637 | cosetSum (fun q ↦ Ψ (T.legPullback F i q ∘ₗ (L.map t).prod)) b := by |
| 638 | -- Induction on the word `L`; for its first letter, induction on `b` in the span. For a single |
| 639 | -- element `g`, a deep level has a map `f` that translates the legs by `g` |
| 640 | -- (`eventually_translate`), and pulling `ht` back along `f` removes the letter. |
| 641 | induction L generalizing b with |
| 642 | | nil => simp [End.one_eq_id] |
| 643 | | cons s L ih => |
| 644 | obtain ⟨w, j⟩ := s |
| 645 | induction hb using span_induction with |
| 646 | | zero => simp [cosetSum, cosetFn] |
| 647 | | add b b' _ _ hb hb' => |
| 648 | filter_upwards [hb, hb'] with i h_b h_b' N _ _ Ψ |
| 649 | -- both sides are additive in `b`: add the two cases |
| 650 | simpa [add_mul, cosetSum, cosetFn] using congrArg₂ (· + ·) (h_b Ψ) (h_b' Ψ) |
| 651 | | smul c b _ hb => |
| 652 | filter_upwards [hb] with i h_b N _ _ Ψ |
| 653 | -- both sides are linear in `b`: scale the case of `b` by `c` |
| 654 | simpa [cosetSum, cosetFn] using congrArg (c • ·) (h_b Ψ) |
| 655 | | mem b hb => |
| 656 | have h_supp : b * (tauHecke (w, j)).val ∈ spanOn k' (GUPlus E n) := |
| 657 | spanOn.mul (subset_span hb) (heckeSum_mem_heckeAlgebra (w, j)).left |
| 658 | fun g₁ hg₁ g₂ hg₂ ↦ mul_mem hg₁ hg₂ |
| 659 | obtain ⟨g, hg, rfl⟩ := hb |
| 660 | filter_upwards [ih h_supp, T.eventually_translate (I w) hg] with i h_ih ⟨hg_s, f, hf⟩ N _ _ Ψ |
| 661 | -- On a deep level, `f` translates the legs by `g`; pull `ht w j` back along `f`. |
| 662 | have h_leg : |
| 663 | ∑ U ∈ {U : Submodule (ResField (w.val : FinPlace E)) (n → ResField (w.val : FinPlace E)) | |
| 664 | finrank (ResField (w.val : FinPlace E)) U = j}, |
| 665 | T.legPullback F i ↑(g * invHeckeIsogeny w.val U) ∘ₗ (L.map t).prod = |
| 666 | T.legPullback F i g ∘ₗ (t (w, j) * (L.map t).prod) := by |
| 667 | -- apply `F.map f.op` to `ht w j` at `(L.map t).prod y` |
| 668 | ext y |
| 669 | have h_apply := LinearMap.congr_fun (ht w j) ((L.map t).prod y) |
| 670 | simpa [← F.map_comp_apply, ← op_comp, legPullback, hf, hI, T.one_mem, cosetSum, cosetFn, |
| 671 | heckeSum] using congrArg (F.map f.op) h_apply.symm |
| 672 | -- Remove the word `L` by `h_ih`; what is left is the sum over `g * tauHecke (w, j)`. |
| 673 | calc |
| 674 | _ = cosetSum (fun q ↦ Ψ (T.legPullback F i q)) (MonoidAlgebra.of k' (GL n (𝔸f E)) g * |
| 675 | (tauHecke (w, j)).val * (L.map tauHecke).prod.val) := by simp [cosetSum, cosetFn] |
| 676 | _ = cosetSum (fun q ↦ Ψ (T.legPullback F i q ∘ₗ (L.map t).prod)) |
| 677 | (MonoidAlgebra.of k' (GL n (𝔸f E)) g * (tauHecke (w, j)).val) := h_ih Ψ |
| 678 | _ = cosetSum (fun q ↦ Ψ (T.legPullback F i q ∘ₗ (((w, j) :: L).map t).prod)) |
| 679 | (MonoidAlgebra.of k' (GL n (𝔸f E)) g) := by |
| 680 | simpa [tauHecke, cosetSum, cosetFn, heckeSum] using congrArg Ψ h_leg |
| 681 | |
| 682 | /-! ### The operators on the base of a model -/ |
| 683 | |
| 684 | /-- Let `T` be a model of the Kuga–Sato tower over `R`, with base Z = `T.base`, schemes |
| 685 | W_i = `T.cover i` over levels `i`, legs W_i → Z and finite deck groups Δ_i = `T.deckGroup i`, and |
| 686 | let F be a contravariant functor to k-modules. Suppose each pull-back along the leg of 1 is |
| 687 | injective with image containing the Δ_i-invariants, and that for every safe place w and subspace U |
| 688 | of the residue-field space, `invHeckeIsogeny w U` lies in `T.legIndices (I w)`, the set of matrices |
| 689 | g whose legs p_g at level `I w` the fields of `T` speak about. Then the Hecke elements act on F(Z) |
| 690 | by commuting operators, in the sense of `New.Variety.Model.IsHeckeAction`. |
| 691 | |
| 692 | Known result: Hecke algebra of a pair and its action by correspondences on the base of a tower. -/ |
| 693 | lemma Model.exists_isHeckeAction |
| 694 | (h_inj : ∀ i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n), |
| 695 | Function.Injective (T.legPullback F i ⟦1⟧)) |
| 696 | (h_descent : ∀ (i : Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)) |
| 697 | (y : F.obj (Opposite.op (T.cover i))), |
| 698 | (∀ δ : T.deckGroup i, F.map (T.deck i δ).asHom.op y = y) → y ∈ (T.legPullback F i ⟦1⟧).range) |
| 699 | {I : SafePlace 𝔑 → Finset (nonZeroDivisors (𝓞 E) × GUPlus E n)} |
| 700 | (hI : ∀ (w : SafePlace 𝔑) (U : Submodule (ResField (w.val : FinPlace E)) |
| 701 | (n → ResField (w.val : FinPlace E))), invHeckeIsogeny w.val U ∈ T.legIndices (I w)) : |
| 702 | ∃ t : SafePlace 𝔑 × ℕ → Module.End k (F.obj (Opposite.op T.base)), T.IsHeckeAction F I t := by |
| 703 | -- The sum of the legs over τ_{w,j} is invariant under the deck group, since the function of |
| 704 | -- τ_{w,j} on the cosets is left invariant under the level. So it factors through the injective |
| 705 | -- pull-back along the leg of 1, and this defines t(w, j). |
| 706 | have exists_t (w : SafePlace 𝔑) (j : ℕ) : ∃ t : Module.End k (F.obj (Opposite.op T.base)), |
| 707 | T.legPullback F (I w) ⟦1⟧ ∘ₗ t = cosetSum (T.legPullback F (I w)) (heckeSum n k w j) := by |
| 708 | refine ⟨_, codRestrictOfInjective_comp _ _ (h_inj _) fun x ↦ h_descent _ _ fun δ ↦ ?_⟩ |
| 709 | -- `δ` moves the leg at `q` to the leg at `κ * q`, for some `κ` in the level. |
| 710 | obtain ⟨κ, hδ⟩ := T.deck_comp_leg (I w) δ |
| 711 | -- The image `a` of τ_{w,j} in the permutation module on the cosets is fixed by `κ`. |
| 712 | let ρ := Representation.ofMulAction k (GL n (𝔸f E)) (GL n (𝔸f E) ⧸ levelGU n 𝔑) |
| 713 | let a : MonoidAlgebra k (GL n (𝔸f E) ⧸ levelGU n 𝔑) := |
| 714 | ρ.asAlgebraHom (heckeSum n k w j) (MonoidAlgebra.single ⟦1⟧ 1) |
| 715 | have h_fixed : ρ κ a = a := |
| 716 | (asAlgebraHom_tauHecke_mem_levelSpace (w, j) single_one_mem_levelSpace κ).trans (one_smul k a) |
| 717 | -- sum the legs against the coefficients of `ρ κ a = a` |
| 718 | simpa [ρ, a, ← F.map_comp_apply, ← op_comp, legPullback, hδ, hI, cosetSum, cosetFn, heckeSum] |
| 719 | using congrArg (fun b ↦ Finsupp.linearCombination k (T.legPullback F (I w)) b.coeff x) h_fixed |
| 720 | choose t₀ ht using exists_t |
| 721 | let t (s : SafePlace 𝔑 × ℕ) : Module.End k (F.obj (Opposite.op T.base)) := t₀ s.1 s.2 |
| 722 | have h_word := eventually_cosetSum_mul_prod_of_legPullback_comp (t := t) hI ht |
| 723 | refine ⟨t, fun s s' ↦ ?_, ht, h_word⟩ |
| 724 | -- Commutation: on a deep level, a word of two letters at `b = 1` computes a product `t a * t b`, |
| 725 | -- and the two products of `tauHecke` act alike on the trivial coset. |
| 726 | have h_deep (a b : SafePlace 𝔑 × ℕ) : ∀ᶠ i in Filter.atTop, T.legPullback F i ⟦1⟧ ∘ₗ (t a * t b) = |
| 727 | cosetSum (T.legPullback F i) (tauHecke a * tauHecke b : heckeAlgebra n k 𝔑).val := by |
| 728 | filter_upwards [h_word k [a, b] (b := 1) (subset_span ⟨1, (GUPlus E n).one_mem, rfl⟩)] |
| 729 | with i hi |
| 730 | simpa [cosetSum, cosetFn] using (hi (AddMonoidHom.id _)).symm |
| 731 | obtain ⟨i, h_left, h_right⟩ := ((h_deep s s').and (h_deep s' s)).exists |
| 732 | refine (cancel_left (h_inj i)).mp ?_ |
| 733 | rw [h_left, h_right] |
| 734 | -- `↓`: the fixed coset vector must be recognised before `cosetSum` unfolds around it |
| 735 | simp [asAlgebraHom_tauHecke_comm s, ↓single_one_mem_levelSpace, cosetSum, cosetFn] |
| 736 | |
| 737 | end New.Variety |
| 738 | |
| 739 | end LocalHecke |
| 740 | |
| 741 | /-! |
| 742 | ## Adelic torsion and multiplication by integers |
| 743 | |
| 744 | Degrees and torsion on the abelian schemes of a family `X : New.ThetaFamily D Z τ`. |
| 745 | |
| 746 | `New.ThetaObject X T` is a point `T ⟶ Z` of the base `Z` of the family. For such a point `y`, |
| 747 | `y.groupScheme` is the abelian scheme over `T` pulled back along it, and `𝟙_ _ ⟶ y.groupScheme` is |
| 748 | the group of its sections. `New.AdelicTorsion E n` is the module `(𝔸f E / Ô E)ⁿ`, an adelic model of |
| 749 | `(E / 𝓞 E)ⁿ`. |
| 750 | -/ |
| 751 | |
| 752 | namespace New |
| 753 | |
| 754 | open CategoryTheory AlgebraicGeometry AddSubgroup NumberField Submodule Variety FractionalIdeal |
| 755 | Module LinearMap Ideal Nat MonoidalCategory |
| 756 | |
| 757 | section |
| 758 | |
| 759 | variable {E : Type} [Field E] [NumberField E] {n : Type} [Fintype n] |
| 760 | |
| 761 | /-- For a non-zero ideal I of O_E, the submodule of (𝔸_f / Ô)ⁿ killed by I has N(I)^|n| |
| 762 | elements, where N(I) is the absolute norm and |n| the size of the index set. -/ |
| 763 | lemma card_torsionBySet_adelicTorsion {I : Ideal (𝓞 E)} (hI : I ≠ ⊥) : |
| 764 | Nat.card (torsionBySet (𝓞 E) (AdelicTorsion E n) I) = I.absNorm ^ Fintype.card n := by |
| 765 | classical |
| 766 | -- Under `frameTorsionClass 1 : Eⁿ → AdelicTorsion E n`, onto with kernel `𝓞ⁿ`, the `I`-torsion |
| 767 | -- is the image of `(I⁻¹)ⁿ`, so it is `(I⁻¹ ⧸ 𝓞)ⁿ`, and `I⁻¹ ⧸ 𝓞 ≃ 𝓞 ⧸ I`. |
| 768 | let 𝔞 : FractionalIdeal (nonZeroDivisors (𝓞 E)) E := I |
| 769 | have h𝔞 : 𝔞 ≠ 0 := coeIdeal_ne_zero.2 hI |
| 770 | let J : 𝔞⁻¹.coeToSubmodule →ₗ[𝓞 E] E := 𝔞⁻¹.coeToSubmodule.subtype |
| 771 | have h_comap : (torsionBySet (𝓞 E) (AdelicTorsion E n) I).comap (frameTorsionClass 1) = |
| 772 | (J.compLeft n).range := by |
| 773 | ext |
| 774 | simp_rw [Submodule.mem_comap, mem_torsionBySet_iff, ← map_smul, ← mem_ker] |
| 775 | simp [ker_frameTorsionClass_one, J, 𝔞, range_compLeft, mem_inv_iff h𝔞, Algebra.smul_def, |
| 776 | mul_comm, forall_comm (α := n)] |
| 777 | have h_index : (comap J 1).toAddSubgroup.index = I.absNorm := by |
| 778 | let ι : 𝓞 E →+ E := AddSubgroupClass.subtype (integralClosure ℤ E) |
| 779 | rw [show (comap J 1).toAddSubgroup.index = (I.toAddSubgroup.map ι).relIndex (.map ι ⊤) by |
| 780 | simpa [ι, 𝔞, J] using! card_congr (quotientEquiv 𝔞⁻¹ 1 1 𝔞 (by simp [h𝔞]) |
| 781 | (by simp [𝔞, mem_inv_iff h𝔞]) coeIdeal_le_one h𝔞 (inv_ne_zero h𝔞)).toEquiv, |
| 782 | relIndex_map_map_of_injective _ ⊤ Subtype.val_injective, relIndex_top_right] |
| 783 | exact (Ideal.absNorm_of_ne_bot hI).symm |
| 784 | -- The torsion is `(I⁻¹)ⁿ` modulo `𝓞ⁿ`, a subgroup whose index is a product. |
| 785 | rw [show torsionBySet (𝓞 E) (AdelicTorsion E n) I = |
| 786 | (frameTorsionClass (E := E) (n := n) 1 ∘ₗ J.compLeft n).range by |
| 787 | rw [range_comp, ← h_comap, map_comap_eq_of_surjective frameTorsionClass_surjective], |
| 788 | ← card_congr (quotKerEquivRange _).toEquiv, ker_comp, ker_frameTorsionClass_one] |
| 789 | change (AddSubgroup.pi Set.univ fun _ : n ↦ (comap J 1).toAddSubgroup).index = _ |
| 790 | simp [index_pi, h_index] |
| 791 | |
| 792 | end |
| 793 | |
| 794 | variable {E : Type} [Field E] [CMBase E] {D : PEL E} {R : CommRingCat} {Z : Scheme} |
| 795 | {τ : Z ⟶ Spec (CommRingCat.of (𝓞 E))} {X : ThetaFamily D Z τ} (y : ThetaObject X (Spec R)) |
| 796 | [IsLocalRing R] (x : ThetaObject X (Spec ⟨ℂ⟩)) |
| 797 | |
| 798 | /-- On the abelian scheme of an object y over a local ring, multiplication by a non-zero element |
| 799 | a of O_E is finite, flat and surjective. -/ |
| 800 | lemma ThetaObject.isIsogeny_smul_id {a : 𝓞 E} (ha : a ≠ 0) : |
| 801 | IsIsogeny (a • 𝟙 y.groupScheme) := by |
| 802 | -- `a` divides its norm `N ≠ 0`. Multiplication by `N` is quasi-finite and onto, and it factors |
| 803 | -- through `a` on either side; so `a` is quasi-finite and onto, hence an isogeny. |
| 804 | let N : ℕ := (span {a}).absNorm |
| 805 | obtain ⟨c, hc⟩ : ∃ c : 𝓞 E, c * a = N := mem_span_singleton'.mp (span {a}).absNorm_mem |
| 806 | have hN : N ≠ 0 := by simpa [N] |
| 807 | have h_comp {b c : 𝓞 E} (h : c * b = N) : |
| 808 | (N • 𝟙 y.groupScheme).left = (b • 𝟙 y.groupScheme).left ≫ (c • 𝟙 y.groupScheme).left := by |
| 809 | simp [← Over.comp_left, smul_smul, h, cast_smul_eq_nsmul] |
| 810 | -- `N` pulls the embedding class back to `N ^ 2` times itself, so its fibres are finite |
| 811 | have h_fin : LocallyQuasiFinite (N • 𝟙 y.groupScheme).left := |
| 812 | locallyQuasiFinite_of_pull_picClass y.isProjEmbedding (pow_ne_zero 2 hN) |
| 813 | (pull_nsmul_eq_sq_smul y.hasClassLaws.1 N) |
| 814 | have h_onto : Surjective (N • 𝟙 y.groupScheme).left := IsAbelianScheme.nsmul_surjective N hN |
| 815 | rw [h_comp hc] at h_fin |
| 816 | rw [h_comp ((mul_comm a c).trans hc)] at h_onto |
| 817 | exact isIsogeny_of_locallyQuasiFinite _ (.of_comp _ (c • 𝟙 y.groupScheme).left) |
| 818 | (.of_comp (c • 𝟙 y.groupScheme).left _) |
| 819 | |
| 820 | /-- Let A be the abelian variety of an object of the family over ℂ. Every injective O_E-linear map |
| 821 | from `New.AdelicTorsion E D.Index` to A(ℂ) has all torsion points of A(ℂ) in its image. -/ |
| 822 | lemma ThetaObject.exists_apply_eq_of_torsion |
| 823 | {f : AdelicTorsion E D.Index →ₗ[𝓞 E] 𝟙_ (Over (Spec (CommRingCat.of ℂ))) ⟶ x.groupScheme} |
| 824 | (hf : Function.Injective f) (y : 𝟙_ (Over (Spec (CommRingCat.of ℂ))) ⟶ x.groupScheme) |
| 825 | (hy_torsion : ∃ m : ℕ, m ≠ 0 ∧ m • y = 0) : ∃ l : AdelicTorsion E D.Index, f l = y := by |
| 826 | -- `f` embeds the `m`-torsion of `AdelicTorsion E D.Index` into the `m`-torsion of |
| 827 | -- `x.groupScheme`; both have `m ^ (2 * abelianDim E D.Index)` elements. |
| 828 | obtain ⟨m, hm, hy⟩ := hy_torsion |
| 829 | obtain ⟨u⟩ := x.isProjEmbedding.nonempty_uniformisation x.smoothOfRelativeDimension |
| 830 | have := finite_of_card_ne_zero ((u.card_torsion hm).trans_ne (pow_ne_zero _ hm)) |
| 831 | exact (((Subtype.map_injective (q := (m • · = 0)) |
| 832 | (p := (· ∈ torsionBySet (𝓞 E) _ (span {(m : 𝓞 E)} : Ideal (𝓞 E)))) |
| 833 | (fun l hl => by simp_all [← map_nsmul, cast_smul_eq_nsmul]) hf).bijective_of_nat_card_le <| |
| 834 | le_of_eq <| by |
| 835 | rw [u.card_torsion hm, card_torsionBySet_adelicTorsion (by simpa), absNorm_span_natCast, |
| 836 | finrank_fin_fun, RingOfIntegers.rank, finrank_eq_two_mul_card_infinitePlace, abelianDim] |
| 837 | ring).surjective ⟨y, hy⟩).elim fun l hl => ⟨l, congrArg Subtype.val hl⟩ |
| 838 | |
| 839 | end New |
| 840 | |
| 841 | /-! ## Levels for finitely many isogenies, torsion classes and finite index -/ |
| 842 | |
| 843 | section TowerLevels |
| 844 | |
| 845 | open NumberField Subgroup Submodule nonZeroDivisors |
| 846 | |
| 847 | namespace New.Variety |
| 848 | |
| 849 | variable {E n : Type} [Field E] [NumberField E] [IsCMField E] [Fintype n] [DecidableEq n] {𝔑 : 𝓞 E} |
| 850 | (𝔪 : (𝓞 E)⁰) |
| 851 | |
| 852 | @[simp] |
| 853 | lemma levelGU_inf_one : levelGU n 𝔑 ⊓ levelGU n 1 = levelGU n 𝔑 := |
| 854 | -- No place divides the level `1`, so the local condition is empty. |
| 855 | inf_eq_left.mpr fun _ hg ↦ mem_levelGU_of_map_evalAt_eq (Subgroup.mem_inf.mp hg).left |
| 856 | (Subgroup.mem_inf.mp hg).right.left fun w hw ↦ (w.isPrime.one_notMem hw).elim |
| 857 | |
| 858 | open scoped Classical in |
| 859 | /-- Let `𝔑 ≠ 0` and let `s` be a finite set of pairs `(𝔞, g)` of a nonzero integer of `E` and a |
| 860 | similitude in `New.Variety.GUPlus`. There is a level `m` with `g⁻¹ K(m) g ⊆ K(𝔑) ∩ K(𝔞)` for all |
| 861 | `(𝔞, g)` in `s` and for the pairs `(1, 1)` and `(m, 1)`. -/ |
| 862 | lemma exists_level_conj_mem (h𝔑 : 𝔑 ≠ 0) (s : Finset ((𝓞 E)⁰ × GUPlus E n)) : |
| 863 | ∃ m : (𝓞 E)⁰, ∀ x ∈ insert (m, 1) (insert 1 s), ∀ k ∈ levelGU n (m : 𝓞 E), |
| 864 | (x.2 : GL n (𝔸f E))⁻¹ * k * x.2 ∈ levelGU n 𝔑 ⊓ levelGU n x.1 := by |
| 865 | -- Each condition on `k` is open and holds at `k = 1`, so the finitely many of them hold on a |
| 866 | -- congruence subgroup of some non-zero integer level `M`. |
| 867 | obtain ⟨M, hM, hL⟩ := exists_congruenceGL_subset <| (insert 1 s).eventually_all.mpr fun x _ ↦ |
| 868 | ContinuousAt.preimage_mem_nhds (f := fun k : GL n (𝔸f E) ↦ (x.2 : GL n (𝔸f E))⁻¹ * k * x.2) |
| 869 | (by fun_prop) <| ((isOpen_congruenceGL_span h𝔑).inter |
| 870 | (isOpen_congruenceGL_span (show (x.1 : 𝓞 E) ≠ 0 by simp))).mem_nhds (by simp) |
| 871 | refine ⟨⟨M, by simpa⟩, (Finset.forall_mem_insert ..).mpr ⟨fun k hk ↦ ?_, fun x hx k hk ↦ ?_⟩⟩ |
| 872 | · exact ⟨⟨by simpa using hk.1, by simpa using (hL k (by simpa using hk.2) 1 (by simp)).1⟩, |
| 873 | by simpa using hk⟩ |
| 874 | · exact and_and_left.mp ⟨(GU E n).mul_mem (mul_mem (inv_mem x.2.property.1) hk.1) x.2.property.1, |
| 875 | hL k (by simpa using hk.2) x hx⟩ |
| 876 | |
| 877 | /-- For a non-zero element 𝔪 of O_E, the set of non-zero elements of (𝔸_f / Ô)ⁿ ≅ (E / O_E)ⁿ |
| 878 | killed by 𝔪. -/ |
| 879 | abbrev NonzeroTorsion (n : Type) : Type := {s : torsionBy (𝓞 E) (AdelicTorsion E n) 𝔪.val // s ≠ 0} |
| 880 | |
| 881 | /-- For a non-zero element 𝔪 of O_E, the 𝔪-torsion of (𝔸_f / Ô)ⁿ is finite. -/ |
| 882 | instance finite_torsionBy : Finite (torsionBy (𝓞 E) (AdelicTorsion E n) 𝔪.val) := by |
| 883 | apply Nat.finite_of_card_ne_zero |
| 884 | rw [← torsionBySet_span_singleton_eq, card_torsionBySet_adelicTorsion (by simp)] |
| 885 | simp |
| 886 | |
| 887 | /-- For non-zero 𝔪, the level K(𝔪) ∩ K(𝔑) has finite index in K(𝔑). -/ |
| 888 | instance : ((levelGU n 𝔪).subgroupOf (levelGU n 𝔑)).FiniteIndex := by |
| 889 | -- `levelGU n 𝔪` is the intersection of `GU E n` with a congruence subgroup; treat each. |
| 890 | refine ⟨relIndex_inf_ne_zero ?_ ?_⟩ |
| 891 | · simp [relIndex_eq_one.mpr, levelGU] |
| 892 | · -- An open subgroup has finite index in the compact group of integral matrices, which |
| 893 | -- contains `levelGU n 𝔑`. |
| 894 | have h_le : levelGU n 𝔑 ≤ intGL n (Ô E) := fun g hg ↦ (Subgroup.mem_inf.mp hg).right.left |
| 895 | exact mt (relIndex_eq_zero_of_le_right h_le) |
| 896 | ((isCompact_intGL isCompact_Ô).relIndex_ne_zero (isOpen_congruenceGL_span (by simp))) |
| 897 | |
| 898 | end New.Variety |
| 899 | |
| 900 | end TowerLevels |
| 901 | |
| 902 | end |