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 | public import Mathlib.Analysis.CStarAlgebra.Module.Constructions |
| 4 | import Mathlib.Topology.Algebra.Group.Units |
| 5 | import TauCeti.GroupTheory.DoubleCoset.Basic |
| 6 | import TauCeti.LinearAlgebra.Matrix.Determinant.Basic |
| 7 | public import Lib.Adelic.TraceFormula.LineCount |
| 8 | public import Lib.Shimura.HeckeTower.HeckeData |
| 9 | import Lib.General.LinearAlgebra.HermiteForm |
| 10 | |
| 11 | /-! |
| 12 | # The stabiliser of a line at a finite place |
| 13 | |
| 14 | Let `w` be a finite place of the number field `E`, with local field `LocField w` (the `E_w` of |
| 15 | `GL_n(E_w)`), valuation `v`, ring of integers `𝒪`, uniformiser `ϖ` and residue field of `q` |
| 16 | elements. In the formulas, `n` also stands for the cardinality of the index type `n`, and the |
| 17 | exponent `n - 2` is an integer. Let `J_line ⊂ GL_n(𝒪)` be the stabiliser of the line of a basis |
| 18 | vector `e_i` modulo `w`. We write `diag (ϖ, 1, …, 1)` for the diagonal matrix with `ϖ` at the index |
| 19 | `i` and `1` elsewhere. Let `T⁺`, `T⁻` be the operators of the double cosets of this matrix and of |
| 20 | its inverse, and let `e_sph` be the mean over chosen lifts to `GL_n(𝒪)` of the elements of `GL_n` of |
| 21 | the residue field, which on vectors fixed by the kernel of the reduction modulo `w` is the mean over |
| 22 | `GL_n(𝒪)`. On the vectors fixed by `J_line`, `T⁻` is the adjoint of `T⁺` in a unitary representation |
| 23 | (`inner_lineRaise`), and `T⁺ T⁻ = q ^ (n - 2) (1 + (q ^ n - 1) e_sph)` (`lineRaise_lineLower`). The |
| 24 | positive powers of `lineHecke`, the element of the group algebra that acts as `T⁺`, are supported on |
| 25 | integral matrices whose characteristic polynomial has the simple root `0` modulo `w` |
| 26 | (`lineHecke_pow_mem_spanOn`). |
| 27 | |
| 28 | Notions from other files: |
| 29 | * `localIntGL n w` is `GL_n(𝒪)`, and `reduceGL` is its reduction to `GL_n` of the residue field |
| 30 | `ResField w`. |
| 31 | * `parabolic lev` is the subgroup of invertible matrices that are block upper triangular for the |
| 32 | level function `lev`. |
| 33 | * `levelSpace ρ J` is the space of vectors fixed by `J` in the representation `ρ`. |
| 34 | * `heckeCoset ρ J t` is the sum of `ρ g` over chosen representatives `g` of the cosets in |
| 35 | `J t J / J`. |
| 36 | |
| 37 | ## Relation to the literature |
| 38 | |
| 39 | A relation in the Hecke algebra of a parahoric subgroup of `GL_n`, proved by a direct count of |
| 40 | cosets. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | noncomputable section |
| 46 | |
| 47 | namespace New |
| 48 | |
| 49 | open NumberField Matrix Finset Valued MonoidAlgebra Variety InnerProductSpace DoubleCoset |
| 50 | |
| 51 | /-! ### Double cosets -/ |
| 52 | |
| 53 | section DoubleCoset |
| 54 | |
| 55 | variable {R : Type*} [CommRing R] {G W ι : Type} [Group G] {J : Subgroup G} {t : G} |
| 56 | |
| 57 | variable (R) in |
| 58 | /-- The sum in the group algebra `R[G]` of the chosen representatives of the cosets in `J t J / J`. |
| 59 | It is zero if there are infinitely many of them. -/ |
| 60 | def doubleCosetSum (J : Subgroup G) (t : G) : R[G] := |
| 61 | ∑ᶠ q : G ⧸ J, .single q.out ((doubleCoset t J J).indicator 1 q.out) |
| 62 | |
| 63 | /-- If finitely many cosets of `J` meet `J t J`, the sum of their representatives is a finite |
| 64 | sum. -/ |
| 65 | lemma doubleCosetSum_eq_sum |
| 66 | (h_fin : HasFiniteCosets J ((doubleCoset t J J).indicator (1 : G → R))) : |
| 67 | doubleCosetSum R J t = |
| 68 | ∑ q ∈ h_fin.toFinset, .single q.out ((doubleCoset t J J).indicator 1 q.out) := by |
| 69 | refine finsum_eq_sum_of_support_subset _ fun q hq ↦ h_fin.mem_toFinset.2 fun h_zero ↦ hq ?_ |
| 70 | simp only [h_zero, MonoidAlgebra.single_zero] |
| 71 | |
| 72 | /-- If finitely many cosets of `J` meet `J t J`, the sum of their representatives in the group |
| 73 | algebra is supported on `J t J`. -/ |
| 74 | lemma doubleCosetSum_mem_spanOn |
| 75 | (h_fin : HasFiniteCosets J ((doubleCoset t J J).indicator (1 : G → R))) : |
| 76 | doubleCosetSum R J t ∈ spanOn R (doubleCoset t J J) := by |
| 77 | rw [doubleCosetSum_eq_sum h_fin] |
| 78 | refine sum_mem fun q hq ↦ ?_ |
| 79 | have h_mem : q.out ∈ doubleCoset t J J := Set.mem_of_indicator_ne_zero (h_fin.mem_toFinset.1 hq) |
| 80 | rw [Set.indicator_of_mem h_mem] |
| 81 | exact Submodule.subset_span ⟨q.out, h_mem, rfl⟩ |
| 82 | |
| 83 | section Module |
| 84 | |
| 85 | variable [AddCommGroup W] [Module R W] {ρ : Representation R G W} {y : W} |
| 86 | |
| 87 | /-- If finitely many cosets of `J` meet `J t J`, the sum of their representatives acts in a |
| 88 | representation `ρ` as the operator `heckeCoset ρ J t` of the double coset. -/ |
| 89 | lemma asAlgebraHom_doubleCosetSum |
| 90 | (h_fin : HasFiniteCosets J ((doubleCoset t J J).indicator (1 : G → R))) : |
| 91 | ρ.asAlgebraHom (doubleCosetSum R J t) = heckeCoset ρ J t := by |
| 92 | ext y |
| 93 | simp [doubleCosetSum_eq_sum h_fin, heckeCoset, heckeFun_eq_sum_toFinset h_fin] |
| 94 | |
| 95 | /-- Every element of `J` fixes every vector of `levelSpace ρ J`. -/ |
| 96 | lemma apply_of_mem_levelSpace (hy : y ∈ levelSpace ρ J) {g : G} (hg : g ∈ J) : ρ g y = y := by |
| 97 | simpa using mem_levelSpace.1 hy ⟨g, hg⟩ |
| 98 | |
| 99 | /-- The translate `ρ g y` of a vector fixed by `J` depends only on the coset `g J`. -/ |
| 100 | lemma apply_eq_of_inv_mul_mem (hy : y ∈ levelSpace ρ J) {g h : G} (h_mem : g⁻¹ * h ∈ J) : |
| 101 | ρ h y = ρ g y := by |
| 102 | rw [← mul_inv_cancel_left g h, map_mul, mul_apply_eq_comp, apply_of_mem_levelSpace hy h_mem] |
| 103 | |
| 104 | /-- Membership in `J t J` is unchanged by right multiplication with an element of `J`. -/ |
| 105 | lemma mul_mem_doubleCoset_iff_of_mem {g k : G} (hk : k ∈ J) : |
| 106 | g * k ∈ doubleCoset t J J ↔ g ∈ doubleCoset t J J := by |
| 107 | refine ⟨fun h ↦ ?_, fun h ↦ mul_mem_doubleCoset_of_mem_right h hk⟩ |
| 108 | simpa only [mul_inv_cancel_right] using mul_mem_doubleCoset_of_mem_right h (inv_mem hk) |
| 109 | |
| 110 | /-- On a vector fixed by `J`, the operator of `J t J` is the sum over any family `r` in `J t J` that |
| 111 | meets each coset `j t J` exactly once. -/ |
| 112 | lemma heckeCoset_eq_sum (hy : y ∈ levelSpace ρ J) {s : Finset ι} {r : ι → G} |
| 113 | (h_mem : ∀ a ∈ s, r a ∈ doubleCoset t J J) |
| 114 | (h_inj : ∀ a ∈ s, ∀ b ∈ s, (r a)⁻¹ * r b ∈ J → a = b) |
| 115 | (h_cover : ∀ j ∈ J, ∃ a ∈ s, (r a)⁻¹ * (j * t) ∈ J) : |
| 116 | heckeCoset ρ J t y = ∑ a ∈ s, ρ (r a) y := by |
| 117 | -- The indicator of `J t J` is right `J`-invariant, and the cosets `r a J` cover its support. |
| 118 | have h_right (g : G) (k : J) : (doubleCoset t J J).indicator (1 : G → R) (g * k) = |
| 119 | (doubleCoset t J J).indicator 1 g := by |
| 120 | classical simp [Set.indicator_apply, mul_mem_doubleCoset_iff_of_mem k.property] |
| 121 | have h_all (g : G) (hg : (doubleCoset t J J).indicator (1 : G → R) g ≠ 0) : |
| 122 | ∃ a ∈ s, (r a : G ⧸ J) = g := by |
| 123 | obtain ⟨j, hj, l, hl, rfl⟩ := mem_doubleCoset.1 (Set.mem_of_indicator_ne_zero hg) |
| 124 | obtain ⟨a, ha, h_coset⟩ := h_cover j hj |
| 125 | exact ⟨a, ha, QuotientGroup.eq.2 (by simpa only [mul_assoc] using mul_mem h_coset hl)⟩ |
| 126 | rw [heckeCoset, (heckeFun_eq_sum h_right hy |
| 127 | (fun a ha b hb h_eq ↦ h_inj a ha b hb (QuotientGroup.eq.1 h_eq)) h_all).2] |
| 128 | exact sum_congr rfl fun a ha ↦ by simp [Set.indicator_of_mem (h_mem a ha)] |
| 129 | |
| 130 | end Module |
| 131 | |
| 132 | /-- In a unitary representation `ρ` of a group `G`, let `x` and `y` be fixed by the subgroup `J` and |
| 133 | let the `r a` lie in `J t J`. Then each `⟪ρ (r a) x, y⟫` equals `⟪ρ t x, y⟫`, so the sum over |
| 134 | `a ∈ s` is this times `#s`. -/ |
| 135 | lemma inner_sum_of_mem_doubleCoset [NormedAddCommGroup W] [InnerProductSpace ℂ W] |
| 136 | {ρ : Representation ℂ G W} (hρ : ∀ (g : G) (x y : W), ⟪ρ g x, ρ g y⟫_ℂ = ⟪x, y⟫_ℂ) {x y : W} |
| 137 | (hx : x ∈ levelSpace ρ J) (hy : y ∈ levelSpace ρ J) {s : Finset ι} {r : ι → G} |
| 138 | (h_mem : ∀ a ∈ s, r a ∈ doubleCoset t J J) : |
| 139 | ⟪∑ a ∈ s, ρ (r a) x, y⟫_ℂ = #s • ⟪ρ t x, y⟫_ℂ := by |
| 140 | rw [sum_inner, ← sum_const] |
| 141 | refine sum_congr rfl fun a ha ↦ ?_ |
| 142 | obtain ⟨j, hj, l, hl, h_eq⟩ := mem_doubleCoset.1 (h_mem a ha) |
| 143 | calc ⟪ρ (r a) x, y⟫_ℂ |
| 144 | _ = ⟪ρ j (ρ t (ρ l x)), ρ j y⟫_ℂ := by simp [h_eq, apply_of_mem_levelSpace hy hj] |
| 145 | _ = ⟪ρ t x, y⟫_ℂ := by rw [hρ, apply_of_mem_levelSpace hx hl] |
| 146 | |
| 147 | end DoubleCoset |
| 148 | |
| 149 | section LineStabilizer |
| 150 | |
| 151 | variable {E n : Type} [Field E] [NumberField E] [Fintype n] [DecidableEq n] (w : FinPlace E) (i : n) |
| 152 | |
| 153 | attribute [local instance] Prop.linearOrder |
| 154 | |
| 155 | /-- The stabiliser `J_line` in `GL_n(𝒪)` of the line of the basis vector `e_i` modulo `w`. -/ |
| 156 | def lineStabilizer : Subgroup (GL n (LocField w)) := |
| 157 | ((parabolic (· ≠ i)).comap reduceGL).map (localIntGL n w).subtype |
| 158 | |
| 159 | /-- The stabiliser in `GL_n(𝒪)` of the hyperplane spanned by the `e_j`, `j ≠ i`, modulo `w`. -/ |
| 160 | def hyperplaneStabilizer : Subgroup (GL n (LocField w)) := |
| 161 | ((parabolic (· = i)).comap reduceGL).map (localIntGL n w).subtype |
| 162 | |
| 163 | /-- The matrix `diag (ϖ, 1, …, 1)`, with the uniformiser `ϖ` of `w` at the index `i` and `1` |
| 164 | elsewhere. -/ |
| 165 | def lineElement : GL n (LocField w) := diagGL fun j : n ↦ if j = i then uniformizer w else 1 |
| 166 | |
| 167 | /-- The line stabilizer subgroup is contained in the local integral general linear group. -/ |
| 168 | lemma lineStabilizer_le_localIntGL : lineStabilizer w i ≤ localIntGL n w := |
| 169 | Subgroup.map_subtype_le _ |
| 170 | |
| 171 | /-- The stabiliser of a line modulo `w` is open, as it contains the kernel of the reduction. -/ |
| 172 | lemma isOpen_lineStabilizer : (lineStabilizer w i).IsOpen := by |
| 173 | refine Subgroup.isOpen_mono (fun g hg ↦ ?_) (isOpen_localCongruence (m := 0)) |
| 174 | obtain ⟨h_int, h_one⟩ := mem_localCongruence_zero.1 hg |
| 175 | have h_mem : reduceGL ⟨g, h_int⟩ ∈ parabolic (· ≠ i) := by simp only [h_one, one_mem] |
| 176 | exact ⟨⟨g, h_int⟩, Subgroup.mem_comap.2 h_mem, rfl⟩ |
| 177 | |
| 178 | instance : CompactSpace (lineStabilizer w i) := |
| 179 | isCompact_iff_compactSpace.1 <| (isCompact_localIntGL w).of_isClosed_subset |
| 180 | ((lineStabilizer w i).isClosed_of_isOpen (isOpen_lineStabilizer w i)) |
| 181 | (lineStabilizer_le_localIntGL w i) |
| 182 | |
| 183 | /-- For every `t`, the indicator function of `J t J`, where `J` is the stabiliser of a line modulo |
| 184 | `w`, is invariant under `J` on both sides and lives on finitely many cosets of `J`. -/ |
| 185 | lemma isHeckeFunction_indicator_doubleCoset (t : GL n (LocField w)) : |
| 186 | IsHeckeFunction (lineStabilizer w i) ((doubleCoset t (lineStabilizer w i) |
| 187 | (lineStabilizer w i)).indicator (1 : GL n (LocField w) → ℂ)) := |
| 188 | isHeckeFunction_doubleCoset (isOpen_lineStabilizer w i) t |
| 189 | |
| 190 | /-- The matrix of `lineElement w i` is `diag (ϖ, 1, …, 1)` with `ϖ` at `i`. -/ |
| 191 | lemma coe_lineElement : |
| 192 | (lineElement w i).val = diagonal fun j : n ↦ if j = i then (uniformizer w).val else 1 := by |
| 193 | simp [lineElement, apply_ite Units.val] |
| 194 | |
| 195 | /-- The matrix of the inverse of `lineElement w i` is `diag (ϖ⁻¹, 1, …, 1)` with `ϖ⁻¹` at `i`. -/ |
| 196 | lemma coe_lineElement_inv : |
| 197 | (lineElement w i)⁻¹.val = diagonal fun j : n ↦ if j = i then (uniformizer w).val⁻¹ else 1 := by |
| 198 | simp [lineElement, ← map_inv, apply_ite Units.val, apply_ite Inv.inv] |
| 199 | |
| 200 | variable {w : FinPlace E} {i : n} {g h : GL n (LocField w)} {k l : localIntGL n w} |
| 201 | |
| 202 | /-- Every entry of a matrix in `localIntGL n w` has valuation at most `1`. -/ |
| 203 | lemma v_le_one_of_mem_localIntGL (hg : g ∈ localIntGL n w) (a b : n) : v (g a b) ≤ 1 := |
| 204 | (mem_intGL.1 hg).1 a b |
| 205 | |
| 206 | /-- The reduction `reduceGL` takes a product in `GL_n(𝒪)` to the product of the reductions. -/ |
| 207 | lemma reduceGL_mul (k l : localIntGL n w) : |
| 208 | reduceGL (k * l : localIntGL n w) = reduceGL k * reduceGL l := reduceGL.map_mul k l |
| 209 | |
| 210 | /-- The reduction `reduceGL` takes an inverse in `GL_n(𝒪)` to the inverse of the reduction. -/ |
| 211 | lemma reduceGL_inv (k : localIntGL n w) : reduceGL (k⁻¹ : localIntGL n w) = (reduceGL k)⁻¹ := |
| 212 | reduceGL.map_inv k |
| 213 | |
| 214 | /-- For `k` in `GL_n(𝒪)`, the entries of `reduceGL k` are the residues of those of `k`, computed by |
| 215 | `residueOrZero`, which reduces integral elements and is `0` elsewhere. -/ |
| 216 | lemma coe_reduceGL (k : localIntGL n w) : |
| 217 | (reduceGL k).val = (k : GL n (LocField w)).val.map residueOrZero := by |
| 218 | ext a b |
| 219 | -- The entries of `reduceGL k` are by definition the residues of the integral entries of `k`. |
| 220 | exact (residueOrZero_coe ⟨k.val a b, v_le_one_of_mem_localIntGL k.property a b⟩).symm |
| 221 | |
| 222 | /-- An entry of the reduction of `k ∈ GL_n(𝒪)` vanishes exactly when that of `k` has valuation |
| 223 | less than `1`. -/ |
| 224 | lemma reduceGL_apply_eq_zero_iff {a b : n} : (reduceGL k).val a b = 0 ↔ v (k.val a b) < 1 := by |
| 225 | rw [coe_reduceGL, Matrix.map_apply, residueOrZero_eq_zero, |
| 226 | (v_le_one_of_mem_localIntGL k.property a b).lt_iff_ne] |
| 227 | |
| 228 | /-- An element of `GL_n(𝒪)` stabilises the line of `e_i` modulo `w` exactly when its reduction is |
| 229 | block upper triangular for `(· ≠ i)`. -/ |
| 230 | lemma coe_mem_lineStabilizer : k.val ∈ lineStabilizer w i ↔ reduceGL k ∈ parabolic (· ≠ i) := |
| 231 | Subgroup.mem_map_iff_mem (localIntGL n w).subtype_injective |
| 232 | |
| 233 | /-- An element of `GL_n(𝒪)` stabilises the hyperplane of the `e_j`, `j ≠ i`, modulo `w` exactly |
| 234 | when its reduction is block upper triangular for `(· = i)`. -/ |
| 235 | lemma coe_mem_hyperplaneStabilizer : |
| 236 | k.val ∈ hyperplaneStabilizer w i ↔ reduceGL k ∈ parabolic (· = i) := |
| 237 | Subgroup.mem_map_iff_mem (localIntGL n w).subtype_injective |
| 238 | |
| 239 | /-- The stabiliser of the line of `e_i` modulo `w` consists of the elements of |
| 240 | `localIntGL n w = GL_n(𝒪)` whose column `i` has valuation `v` less than `1` off the diagonal. -/ |
| 241 | lemma mem_lineStabilizer : |
| 242 | g ∈ lineStabilizer w i ↔ g ∈ localIntGL n w ∧ ∀ j ≠ i, v (g j i) < 1 := by |
| 243 | have h_iff (hg : g ∈ localIntGL n w) : g ∈ lineStabilizer w i ↔ ∀ j ≠ i, v (g j i) < 1 := by |
| 244 | simp [coe_mem_lineStabilizer (k := ⟨g, hg⟩), mem_parabolic_ne, reduceGL_apply_eq_zero_iff] |
| 245 | have h_le : lineStabilizer w i ≤ localIntGL n w := lineStabilizer_le_localIntGL w i |
| 246 | exact ⟨fun hg ↦ ⟨h_le hg, (h_iff (h_le hg)).1 hg⟩, fun ⟨hg, h_lt⟩ ↦ (h_iff hg).2 h_lt⟩ |
| 247 | |
| 248 | /-- The stabiliser of the hyperplane of the `e_j`, `j ≠ i`, modulo `w` consists of the elements of |
| 249 | `localIntGL n w = GL_n(𝒪)` whose row `i` has valuation `v` less than `1` off the diagonal. -/ |
| 250 | lemma mem_hyperplaneStabilizer : |
| 251 | g ∈ hyperplaneStabilizer w i ↔ g ∈ localIntGL n w ∧ ∀ j ≠ i, v (g i j) < 1 := by |
| 252 | have h_iff (hg : g ∈ localIntGL n w) : g ∈ hyperplaneStabilizer w i ↔ ∀ j ≠ i, v (g i j) < 1 := by |
| 253 | simp [coe_mem_hyperplaneStabilizer (k := ⟨g, hg⟩), mem_parabolic_eq, reduceGL_apply_eq_zero_iff] |
| 254 | have h_le : hyperplaneStabilizer w i ≤ localIntGL n w := Subgroup.map_subtype_le _ |
| 255 | exact ⟨fun hg ↦ ⟨h_le hg, (h_iff (h_le hg)).1 hg⟩, fun ⟨hg, h_lt⟩ ↦ (h_iff hg).2 h_lt⟩ |
| 256 | |
| 257 | /-- The cosets `k J_line` and `l J_line` agree exactly when `l e_i` lies on the line of `k e_i` |
| 258 | modulo `w`. -/ |
| 259 | lemma inv_mul_mem_lineStabilizer : k.val⁻¹ * l.val ∈ lineStabilizer w i ↔ |
| 260 | ∃ c : ResField w, (reduceGL l).val.col i = c • (reduceGL k).val.col i := by |
| 261 | rw [← Subgroup.coe_inv, ← Subgroup.coe_mul, coe_mem_lineStabilizer, reduceGL_mul, reduceGL_inv, |
| 262 | inv_mul_mem_parabolic_ne] |
| 263 | |
| 264 | /-- The cosets `J k` and `J l` of the stabiliser `J` of the hyperplane agree exactly when the |
| 265 | `i`-th row of `l` is a multiple of that of `k` modulo `w`. -/ |
| 266 | lemma mul_inv_mem_hyperplaneStabilizer : l.val * k.val⁻¹ ∈ hyperplaneStabilizer w i ↔ |
| 267 | ∃ c : ResField w, (reduceGL l).val.row i = c • (reduceGL k).val.row i := by |
| 268 | rw [← Subgroup.coe_inv, ← Subgroup.coe_mul, coe_mem_hyperplaneStabilizer, reduceGL_mul, |
| 269 | reduceGL_inv, mul_inv_mem_parabolic_eq] |
| 270 | |
| 271 | /-- A product `x ϖ` with the uniformiser lies in the maximal ideal exactly when `x` is integral. -/ |
| 272 | lemma v_mul_uniformizer_lt_one_iff {x : LocField w} : v (x * (uniformizer w).1) < 1 ↔ v x ≤ 1 := by |
| 273 | rw [← v_uniformizer_inv_mul_le_one_iff, mul_comm x, inv_mul_cancel_left₀ (uniformizer w).ne_zero] |
| 274 | |
| 275 | /-- The uniformiser of `w` has valuation less than `1`. -/ |
| 276 | lemma v_uniformizer_lt_one : v (uniformizer w).val < 1 := by |
| 277 | rw [← one_mul (uniformizer w).val, v_mul_uniformizer_lt_one_iff, map_one] |
| 278 | |
| 279 | omit [Fintype n] in |
| 280 | /-- A property `p` of index pairs holds everywhere if it holds at `(i, i)`, on the rest of row `i` |
| 281 | and of column `i`, and off both. -/ |
| 282 | lemma forall_entries (i : n) {p : n → n → Prop} (h_diag : p i i) (h_row : ∀ j ≠ i, p i j) |
| 283 | (h_col : ∀ j ≠ i, p j i) (h_rest : ∀ a ≠ i, ∀ b ≠ i, p a b) (a b : n) : p a b := by |
| 284 | by_cases ha : a = i <;> by_cases hb : b = i <;> simp_all |
| 285 | |
| 286 | /-- Conjugation `g ↦ t⁻¹ g t` by `t = diag (ϖ, 1, …, 1)`, where the uniformiser `ϖ` is at the index |
| 287 | `i`, takes the stabiliser in `GL_n(𝒪)` of the hyperplane spanned by the `e_j`, `j ≠ i`, modulo `w` |
| 288 | onto the stabiliser of the line of `e_i`. -/ |
| 289 | lemma conj_lineElement_mem_lineStabilizer_iff : |
| 290 | (lineElement w i)⁻¹ * g * lineElement w i ∈ lineStabilizer w i ↔ |
| 291 | g ∈ hyperplaneStabilizer w i := by |
| 292 | -- Conjugation divides the `i`-th row by `ϖ`, multiplies the `i`-th column by `ϖ`, and keeps the |
| 293 | -- determinant. |
| 294 | set g' : GL n (LocField w) := (lineElement w i)⁻¹ * g * lineElement w i with hg' |
| 295 | have h_entry (a b : n) : g' a b = (if a = i then (uniformizer w).val⁻¹ else 1) * g a b * |
| 296 | if b = i then (uniformizer w).val else 1 := by |
| 297 | simp only [hg', Units.val_mul, coe_lineElement_inv, coe_lineElement, mul_diagonal, diagonal_mul] |
| 298 | have h_diag : v (g' i i) ≤ 1 ↔ v (g i i) ≤ 1 := by simp [h_entry, mul_right_comm _ (g i i)] |
| 299 | have h_row (j : n) (hj : j ≠ i) : v (g' i j) ≤ 1 ↔ v (g i j) < 1 := by |
| 300 | rw [h_entry, ite_eq_left rfl, ite_eq_right hj, mul_one, v_uniformizer_inv_mul_le_one_iff] |
| 301 | have h_col (j : n) (hj : j ≠ i) : v (g' j i) < 1 ↔ v (g j i) ≤ 1 := by |
| 302 | rw [h_entry, ite_eq_left rfl, ite_eq_right hj, one_mul, v_mul_uniformizer_lt_one_iff] |
| 303 | have h_rest (a b : n) (ha : a ≠ i) (hb : b ≠ i) : v (g' a b) ≤ 1 ↔ v (g a b) ≤ 1 := by |
| 304 | simp [h_entry, ha, hb] |
| 305 | have h_det : g'.val.det = g.val.det := by rw [hg', Units.val_mul, Units.val_mul, det_units_conj'] |
| 306 | have h_Kw (x : GL n (LocField w)) : |
| 307 | x ∈ localIntGL n w ↔ (∀ a b : n, v (x a b) ≤ 1) ∧ v x.val.det = 1 := mem_intGL_iff_det |
| 308 | rw [mem_lineStabilizer, mem_hyperplaneStabilizer, h_Kw, h_Kw, h_det] |
| 309 | constructor |
| 310 | · rintro ⟨⟨h_int, h_unit⟩, h_small⟩ |
| 311 | have h_small' (j : n) (hj : j ≠ i) : v (g i j) < 1 := (h_row j hj).1 (h_int i j) |
| 312 | exact ⟨⟨forall_entries i (h_diag.1 (h_int i i)) (fun j hj ↦ (h_small' j hj).le) |
| 313 | (fun j hj ↦ (h_col j hj).1 (h_small j hj)) |
| 314 | fun a ha b hb ↦ (h_rest a b ha hb).1 (h_int a b), h_unit⟩, h_small'⟩ |
| 315 | · rintro ⟨⟨h_int, h_unit⟩, h_small⟩ |
| 316 | have h_small' (j : n) (hj : j ≠ i) : v (g' j i) < 1 := (h_col j hj).2 (h_int j i) |
| 317 | exact ⟨⟨forall_entries i (h_diag.2 (h_int i i)) (fun j hj ↦ (h_row j hj).2 (h_small j hj)) |
| 318 | (fun j hj ↦ (h_small' j hj).le) |
| 319 | fun a ha b hb ↦ (h_rest a b ha hb).2 (h_int a b), h_unit⟩, h_small'⟩ |
| 320 | |
| 321 | /-- A chosen element of `GL_n(𝒪)` with reduction `M`, for an invertible matrix `M` over the residue |
| 322 | field. -/ |
| 323 | def liftMatrix (M : Matrix n n (ResField w)) : localIntGL n w := |
| 324 | Function.invFun (fun k : localIntGL n w ↦ (reduceGL k).val) M |
| 325 | |
| 326 | /-- For an invertible matrix `M` over the residue field, the chosen lift `liftMatrix M` reduces to |
| 327 | `M`. -/ |
| 328 | lemma reduceGL_liftMatrix {M : Matrix n n (ResField w)} (hM_det : M.det ≠ 0) : |
| 329 | (reduceGL (liftMatrix M)).val = M := by |
| 330 | obtain ⟨k, hk⟩ := reduceGL_surjective (GeneralLinearGroup.mkOfDetNeZero M hM_det) |
| 331 | exact Function.invFun_eq (f := fun k : localIntGL n w ↦ (reduceGL k).1) ⟨k, congrArg Units.val hk⟩ |
| 332 | |
| 333 | /-- The reduction of `liftMatrix g.val` is `g`, for `g` in `GL_n` of the residue field. -/ |
| 334 | lemma reduceGL_liftMatrix_val (g : GL n (ResField w)) : reduceGL (liftMatrix g.val) = g := |
| 335 | Units.ext (reduceGL_liftMatrix g.det_ne_zero) |
| 336 | |
| 337 | /-- The representative of the coset in `J_line diag (ϖ, 1, …, 1) J_line / J_line` that corresponds |
| 338 | to the hyperplane on which the linear form `ξ` with `ξ e_i = 1` vanishes. -/ |
| 339 | def raiseCosetRep (i : n) (ξ : n → ResField w) : GL n (LocField w) := |
| 340 | (liftMatrix (updateRow 1 i ξ)).val⁻¹ * lineElement w i |
| 341 | |
| 342 | /-- The representative of the coset in `J_line diag (ϖ, 1, …, 1)⁻¹ J_line / J_line` that corresponds |
| 343 | to the line of a vector `z` with `z i = 1`. -/ |
| 344 | def lowerCosetRep (i : n) (z : n → ResField w) : GL n (LocField w) := |
| 345 | (lineElement w i)⁻¹ * (liftMatrix (updateCol 1 i z)).val |
| 346 | |
| 347 | variable {ξ z : n → ResField w} |
| 348 | |
| 349 | /-- For `ξ i = 1`, the chosen lift of the identity with row `i` replaced by `ξ` has this matrix as |
| 350 | its reduction. -/ |
| 351 | lemma reduceGL_liftMatrix_updateRow (hξ : ξ i = 1) : |
| 352 | (reduceGL (liftMatrix (updateRow 1 i ξ))).val = updateRow 1 i ξ := |
| 353 | reduceGL_liftMatrix (by simp [det_updateRow_one, hξ]) |
| 354 | |
| 355 | /-- For `z i = 1`, the chosen lift of the identity with column `i` replaced by `z` has this matrix |
| 356 | as its reduction. -/ |
| 357 | lemma reduceGL_liftMatrix_updateCol (hz : z i = 1) : |
| 358 | (reduceGL (liftMatrix (updateCol 1 i z))).val = updateCol 1 i z := |
| 359 | reduceGL_liftMatrix (by simp [det_updateCol_one, hz]) |
| 360 | |
| 361 | /-- If `z i = 1`, the column `i` of the reduction of the lift of `updateCol 1 i z` is `z`. -/ |
| 362 | lemma col_reduceGL_liftMatrix_updateCol (hz : z i = 1) : |
| 363 | (reduceGL (liftMatrix (updateCol 1 i z))).val.col i = z := |
| 364 | funext fun _ ↦ by simp [reduceGL_liftMatrix_updateCol hz] |
| 365 | |
| 366 | /-- For `ξ i = 1`, `raiseCosetRep i ξ` lies in the double coset of `diag (ϖ, 1, …, 1)` for the |
| 367 | stabiliser of the line of `e_i` modulo `w`. -/ |
| 368 | lemma raiseCosetRep_mem_doubleCoset (hξ : ξ i = 1) : |
| 369 | raiseCosetRep i ξ ∈ |
| 370 | doubleCoset (lineElement w i) (lineStabilizer w i) (lineStabilizer w i) := by |
| 371 | have h_mem : (liftMatrix (updateRow 1 i ξ)).val ∈ lineStabilizer w i := |
| 372 | coe_mem_lineStabilizer.2 <| mem_parabolic_ne.2 fun j hj ↦ by |
| 373 | simp [reduceGL_liftMatrix_updateRow hξ, hj] |
| 374 | exact mem_doubleCoset.2 ⟨_, inv_mem h_mem, 1, one_mem _, by rw [mul_one, raiseCosetRep]⟩ |
| 375 | |
| 376 | /-- For `z i = 1`, `lowerCosetRep i z` lies in the double coset of `diag (ϖ, 1, …, 1)⁻¹` for the |
| 377 | stabiliser of the line of `e_i` modulo `w`. -/ |
| 378 | lemma lowerCosetRep_mem_doubleCoset (hz : z i = 1) : |
| 379 | lowerCosetRep i z ∈ |
| 380 | doubleCoset (lineElement w i)⁻¹ (lineStabilizer w i) (lineStabilizer w i) := by |
| 381 | have h_mem : (liftMatrix (updateCol 1 i z)).val ∈ hyperplaneStabilizer w i := |
| 382 | coe_mem_hyperplaneStabilizer.2 <| mem_parabolic_eq.2 fun j hj ↦ by |
| 383 | simp [reduceGL_liftMatrix_updateCol hz, hj, hj.symm] |
| 384 | -- Conjugation by `diag (ϖ, 1, …, 1)` takes the lift into the stabiliser of the line. |
| 385 | exact mem_doubleCoset.2 |
| 386 | ⟨_, conj_lineElement_mem_lineStabilizer_iff.2 h_mem, 1, one_mem _, by simp [lowerCosetRep]⟩ |
| 387 | |
| 388 | omit [Fintype n] [DecidableEq n] in |
| 389 | /-- If two vectors with `i`-th coordinate `1` are proportional, they are equal. -/ |
| 390 | lemma eq_of_eq_smul_of_apply_eq_one {z z' : n → ResField w} {c : ResField w} (hz : z i = 1) |
| 391 | (hz' : z' i = 1) (h_eq : z' = c • z) : z = z' := by |
| 392 | subst h_eq |
| 393 | simp_all [show c = 1 by simpa [hz] using hz'] |
| 394 | |
| 395 | /-- For `ξ i = 1` and `k` in `GL_n(𝒪)`, the coset `k⁻¹ diag (ϖ, 1, …, 1) J_line` is that of the |
| 396 | representative `raiseCosetRep i ξ` exactly when `ξ` is a multiple of the `i`-th row of `k` modulo |
| 397 | `w`. Here `J_line` is the stabiliser of the line of `e_i` modulo `w`. -/ |
| 398 | lemma raiseCosetRep_inv_mul_mem_lineStabilizer_iff (hξ : ξ i = 1) : |
| 399 | (raiseCosetRep i ξ)⁻¹ * (k.val⁻¹ * lineElement w i) ∈ lineStabilizer w i ↔ |
| 400 | ∃ c : ResField w, ξ = c • (reduceGL k).val.row i := by |
| 401 | have h_conj : (raiseCosetRep i ξ)⁻¹ * (k.val⁻¹ * lineElement w i) = (lineElement w i)⁻¹ * |
| 402 | ((liftMatrix (updateRow 1 i ξ)).val * k.val⁻¹) * lineElement w i := by |
| 403 | simp [raiseCosetRep, mul_assoc] |
| 404 | rw [h_conj, conj_lineElement_mem_lineStabilizer_iff, mul_inv_mem_hyperplaneStabilizer, |
| 405 | reduceGL_liftMatrix_updateRow hξ, show (updateRow 1 i ξ).row i = ξ from updateRow_self] |
| 406 | |
| 407 | /-- For `z i = 1` and `k` in `GL_n(𝒪)`, the coset `diag (ϖ, 1, …, 1)⁻¹ k J_line` is that of the |
| 408 | representative `lowerCosetRep i z` exactly when the `i`-th column of `k` modulo `w` is a multiple of |
| 409 | `z`. Here `J_line` is the stabiliser of the line of `e_i` modulo `w`. -/ |
| 410 | lemma lowerCosetRep_inv_mul_mem_lineStabilizer_iff (hz : z i = 1) : |
| 411 | (lowerCosetRep i z)⁻¹ * ((lineElement w i)⁻¹ * k.val) ∈ lineStabilizer w i ↔ |
| 412 | ∃ c : ResField w, (reduceGL k).val.col i = c • z := by |
| 413 | have h_cancel : (lowerCosetRep i z)⁻¹ * ((lineElement w i)⁻¹ * k.val) = |
| 414 | (liftMatrix (updateCol 1 i z)).val⁻¹ * k.val := by simp [lowerCosetRep, mul_assoc] |
| 415 | rw [h_cancel, inv_mul_mem_lineStabilizer, col_reduceGL_liftMatrix_updateCol hz] |
| 416 | |
| 417 | end LineStabilizer |
| 418 | |
| 419 | /-! ### The operators -/ |
| 420 | |
| 421 | section Operators |
| 422 | |
| 423 | variable {E n : Type} [Field E] [NumberField E] [Fintype n] [DecidableEq n] (w : FinPlace E) (i : n) |
| 424 | |
| 425 | /-- The sum in the group algebra of chosen representatives of the cosets in |
| 426 | `J_line diag (ϖ, 1, …, 1) J_line / J_line`. -/ |
| 427 | def lineHecke : ℂ[GL n (LocField w)] := doubleCosetSum ℂ (lineStabilizer w i) (lineElement w i) |
| 428 | |
| 429 | /-- The sum in the group algebra of chosen representatives of the cosets in |
| 430 | `J_line diag (ϖ, 1, …, 1)⁻¹ J_line / J_line`. It acts as `T⁻`. -/ |
| 431 | def lineHeckeLower : ℂ[GL n (LocField w)] := |
| 432 | doubleCosetSum ℂ (lineStabilizer w i) (lineElement w i)⁻¹ |
| 433 | |
| 434 | variable (n) in |
| 435 | /-- The mean in the group algebra of chosen lifts to `GL_n(𝒪)` of all elements of `GL_n` of the |
| 436 | residue field. -/ |
| 437 | def sphericalMeanElement : ℂ[GL n (LocField w)] := |
| 438 | (Nat.card (GL n (ResField w)) : ℂ)⁻¹ • ∑ᶠ g : GL n (ResField w), .single (liftMatrix g.val).val 1 |
| 439 | |
| 440 | variable {w} {W : Type} [AddCommGroup W] [Module ℂ W] (ρ : Representation ℂ (GL n (LocField w)) W) |
| 441 | |
| 442 | /-- The operator `T⁺`, the sum over the cosets in `J_line diag (ϖ, 1, …, 1) J_line / J_line`. -/ |
| 443 | def lineRaise : Module.End ℂ W := heckeCoset ρ (lineStabilizer w i) (lineElement w i) |
| 444 | |
| 445 | /-- The operator `T⁻`, the sum over the cosets in `J_line diag (ϖ, 1, …, 1)⁻¹ J_line / J_line`. -/ |
| 446 | def lineLower : Module.End ℂ W := heckeCoset ρ (lineStabilizer w i) (lineElement w i)⁻¹ |
| 447 | |
| 448 | /-- The operator `e_sph`, the action of the mean of chosen lifts to `GL_n(𝒪)` of the elements of |
| 449 | `GL_n` of the residue field. -/ |
| 450 | def sphericalMean : Module.End ℂ W := ρ.asAlgebraHom (sphericalMeanElement n w) |
| 451 | |
| 452 | /-- The translate `y[z]` of `y` by a chosen element of `GL_n(𝒪)` that takes `e_i` to `z` modulo |
| 453 | `w`. It is used for `z ≠ 0` and `y` fixed by `J_line`; then it depends only on the line of `z` |
| 454 | (`lineTranslate_eq_apply_of_col_eq_smul`). -/ |
| 455 | def lineTranslate (y : W) (z : n → ResField w) : W := |
| 456 | ρ (Function.invFun (fun k : localIntGL n w ↦ (reduceGL k).val.col i) z).val y |
| 457 | |
| 458 | /-- The element `lineHecke w i` of the group algebra acts on `ρ` as `lineRaise i ρ`. -/ |
| 459 | lemma asAlgebraHom_lineHecke : ρ.asAlgebraHom (lineHecke w i) = lineRaise i ρ := |
| 460 | asAlgebraHom_doubleCosetSum (isHeckeFunction_indicator_doubleCoset w i (lineElement w i)).1 |
| 461 | |
| 462 | /-- The element `lineHeckeLower w i` of the group algebra acts on `ρ` as `lineLower i ρ`. -/ |
| 463 | lemma asAlgebraHom_lineHeckeLower : ρ.asAlgebraHom (lineHeckeLower w i) = lineLower i ρ := |
| 464 | asAlgebraHom_doubleCosetSum (isHeckeFunction_indicator_doubleCoset w i (lineElement w i)⁻¹).1 |
| 465 | |
| 466 | /-- The element `sphericalMeanElement n w` of the group algebra acts on `ρ` as |
| 467 | `sphericalMean ρ`. -/ |
| 468 | lemma asAlgebraHom_sphericalMeanElement : |
| 469 | ρ.asAlgebraHom (sphericalMeanElement n w) = sphericalMean ρ := rfl |
| 470 | |
| 471 | end Operators |
| 472 | |
| 473 | section FixedVectors |
| 474 | |
| 475 | variable {E n : Type} [Field E] [NumberField E] [Fintype n] [DecidableEq n] {w : FinPlace E} {i : n} |
| 476 | {k : localIntGL n w} {z ξ : n → ResField w} |
| 477 | |
| 478 | variable {W : Type} [AddCommGroup W] [Module ℂ W] {ρ : Representation ℂ (GL n (LocField w)) W} |
| 479 | {y : W} |
| 480 | |
| 481 | /-- The operator `lineRaise i ρ` takes a vector fixed by `lineStabilizer w i` to one fixed by |
| 482 | `lineStabilizer w i`. -/ |
| 483 | lemma lineRaise_mem (hy : y ∈ levelSpace ρ (lineStabilizer w i)) : |
| 484 | lineRaise i ρ y ∈ levelSpace ρ (lineStabilizer w i) := |
| 485 | (isHeckeFunction_indicator_doubleCoset w i (lineElement w i)).heckeFun_mem hy |
| 486 | |
| 487 | /-- The operator `lineLower i ρ` takes a vector fixed by `lineStabilizer w i` to one fixed by |
| 488 | `lineStabilizer w i`. -/ |
| 489 | lemma lineLower_mem (hy : y ∈ levelSpace ρ (lineStabilizer w i)) : |
| 490 | lineLower i ρ y ∈ levelSpace ρ (lineStabilizer w i) := |
| 491 | (isHeckeFunction_indicator_doubleCoset w i (lineElement w i)⁻¹).heckeFun_mem hy |
| 492 | |
| 493 | /-- For a vector `y` fixed by the stabiliser `J_line` of the line of `e_i` modulo `w` and `z ≠ 0`, |
| 494 | the vector `y[z] = lineTranslate i ρ y z` is the translate of `y` by any `k` in `GL_n(𝒪)` whose |
| 495 | reduction modulo `w` takes `e_i` to a multiple of `z`. -/ |
| 496 | lemma lineTranslate_eq_apply_of_col_eq_smul (hy : y ∈ levelSpace ρ (lineStabilizer w i)) |
| 497 | (hz : z ≠ 0) {c : ResField w} (hk : (reduceGL k).val.col i = c • z) : |
| 498 | lineTranslate i ρ y z = ρ k.val y := by |
| 499 | obtain ⟨g, hg⟩ := exists_col_eq i hz |
| 500 | obtain ⟨l, rfl⟩ : ∃ l : localIntGL n w, reduceGL l = g := reduceGL_surjective g |
| 501 | set k₀ : localIntGL n w := Function.invFun (fun k : localIntGL n w ↦ (reduceGL k).1.col i) z with |
| 502 | hk₀ |
| 503 | have h_col : (reduceGL k₀).val.col i = z := |
| 504 | Function.invFun_eq (f := fun k : localIntGL n w ↦ (reduceGL k).val.col i) ⟨l, hg⟩ |
| 505 | have h_mem : k₀.val⁻¹ * k.val ∈ lineStabilizer w i := |
| 506 | inv_mul_mem_lineStabilizer.2 ⟨c, by rw [hk, h_col]⟩ |
| 507 | rw [lineTranslate, ← hk₀, apply_eq_of_inv_mul_mem hy h_mem] |
| 508 | |
| 509 | /-- For a vector `y` fixed by `J_line` and `z ≠ 0` on the line of `e_i`, the translate |
| 510 | `y[z] = lineTranslate i ρ y z` is `y` itself. -/ |
| 511 | lemma lineTranslate_eq_self (hy : y ∈ levelSpace ρ (lineStabilizer w i)) (hz : z ≠ 0) |
| 512 | (h_line : ∀ j ≠ i, z j = 0) : lineTranslate i ρ y z = y := by |
| 513 | obtain ⟨c, rfl⟩ := exists_eq_smul_single_iff.2 h_line |
| 514 | have h_col : (reduceGL (1 : localIntGL n w)).val.col i = c⁻¹ • c • Pi.single i 1 := by |
| 515 | rw [inv_smul_smul₀ (left_ne_zero_of_smul hz), ← mulVec_single_one, |
| 516 | show reduceGL (1 : localIntGL n w) = 1 from reduceGL.map_one, Units.val_one, one_mulVec] |
| 517 | rw [lineTranslate_eq_apply_of_col_eq_smul hy hz h_col, Subgroup.coe_one, map_one, |
| 518 | one_apply_eq_self] |
| 519 | |
| 520 | /-- For a vector `y` fixed by the stabiliser `J_line` of the line of `e_i` modulo `w`, a vector |
| 521 | `z ≠ 0` and `k` in `GL_n(𝒪) = localIntGL n w`, the translate of `y[z] = lineTranslate i ρ y z` by |
| 522 | `k` is `y[k z]`, where `k z` is taken modulo `w` by the reduction `reduceGL`. -/ |
| 523 | lemma apply_lineTranslate (hy : y ∈ levelSpace ρ (lineStabilizer w i)) (hz : z ≠ 0) |
| 524 | (k : localIntGL n w) : |
| 525 | ρ k.val (lineTranslate i ρ y z) = lineTranslate i ρ y ((reduceGL k).val *ᵥ z) := by |
| 526 | obtain ⟨g, rfl⟩ := exists_col_eq i hz |
| 527 | obtain ⟨l, rfl⟩ : ∃ l : localIntGL n w, reduceGL l = g := reduceGL_surjective g |
| 528 | have h_ne : (reduceGL k).val *ᵥ (reduceGL l).val.col i ≠ 0 := by |
| 529 | simpa only [mulVec_zero] using (mulVec_injective_iff_isUnit.2 (reduceGL k).isUnit).ne hz |
| 530 | have h_col : (reduceGL (k * l)).val.col i = |
| 531 | (1 : ResField w) • (reduceGL k).val *ᵥ (reduceGL l).val.col i := by |
| 532 | rw [one_smul, reduceGL_mul, Units.val_mul, col_mul_eq_mulVec_col] |
| 533 | rw [lineTranslate_eq_apply_of_col_eq_smul hy hz (one_smul _ _).symm, |
| 534 | lineTranslate_eq_apply_of_col_eq_smul hy h_ne h_col, Subgroup.coe_mul, |
| 535 | map_mul, mul_apply_eq_comp] |
| 536 | |
| 537 | /-- Let `y` be fixed by `J_line`, let `k` be in `GL_n(𝒪)` and let `S`, `S'` be sets of vectors with |
| 538 | `0 ∉ S` such that `z ∈ S` exactly when `k z ∈ S'` modulo `w`. Then `k` takes the sum of the |
| 539 | translates `y[z] = lineTranslate i ρ y z` over `S` to the sum over `S'`. -/ |
| 540 | lemma apply_sum_lineTranslate (hy : y ∈ levelSpace ρ (lineStabilizer w i)) (k : localIntGL n w) |
| 541 | {S S' : Finset (n → ResField w)} (hS : 0 ∉ S) |
| 542 | (h_iff : ∀ z : n → ResField w, z ∈ S ↔ (reduceGL k).val *ᵥ z ∈ S') : |
| 543 | ρ k.val (∑ z ∈ S, lineTranslate i ρ y z) = ∑ z ∈ S', lineTranslate i ρ y z := by |
| 544 | rw [map_sum] |
| 545 | exact sum_bijective _ (mulVec_injective_iff_isUnit.2 (reduceGL k).isUnit).bijective_of_finite |
| 546 | h_iff fun z hz ↦ apply_lineTranslate hy (ne_of_mem_of_not_mem hz hS) k |
| 547 | |
| 548 | /-- On a vector fixed by `J_line`, the chosen lift of `g` to `GL_n(𝒪)` acts as any other lift |
| 549 | `k`. -/ |
| 550 | lemma apply_liftMatrix_eq (hy : y ∈ levelSpace ρ (lineStabilizer w i)) {g : GL n (ResField w)} |
| 551 | (hk : reduceGL k = g) : ρ (liftMatrix g.val).val y = ρ k.val y := |
| 552 | apply_eq_of_inv_mul_mem hy <| |
| 553 | inv_mul_mem_lineStabilizer.2 ⟨1, by rw [reduceGL_liftMatrix_val, hk, one_smul]⟩ |
| 554 | |
| 555 | /-- The operator `e_sph = sphericalMean ρ` is the mean of the actions of the chosen lifts to |
| 556 | `GL_n(𝒪)` of the elements of `GL_n` of the residue field. -/ |
| 557 | lemma sphericalMean_apply [Fintype (GL n (ResField w))] (x : W) : sphericalMean ρ x = |
| 558 | (Fintype.card (GL n (ResField w)) : ℂ)⁻¹ • ∑ g : GL n (ResField w), ρ (liftMatrix g.1).1 x := by |
| 559 | simp [sphericalMean, sphericalMeanElement, finsum_eq_sum_of_fintype] |
| 560 | |
| 561 | lemma sphericalMean_eq_self (hy_Kw : y ∈ levelSpace ρ (localIntGL n w)) : |
| 562 | sphericalMean ρ y = y := by |
| 563 | let : Fintype (GL n (ResField w)) := Fintype.ofFinite _ |
| 564 | simp [sphericalMean_apply, apply_of_mem_levelSpace hy_Kw, ← Nat.cast_smul_eq_nsmul ℂ] |
| 565 | |
| 566 | /-- For `y` fixed by `J_line` and `k₁`, `k₂` in `GL_n(𝒪)`, translating `y` by `k₂` before taking |
| 567 | `e_sph = sphericalMean ρ` and by `k₁` afterwards leaves `e_sph y` unchanged. -/ |
| 568 | lemma apply_sphericalMean_apply (hy : y ∈ levelSpace ρ (lineStabilizer w i)) |
| 569 | (k₁ k₂ : localIntGL n w) : |
| 570 | ρ k₁.val (sphericalMean ρ (ρ k₂.val y)) = sphericalMean ρ y := by |
| 571 | let : Fintype (GL n (ResField w)) := Fintype.ofFinite _ |
| 572 | have h_term (g : GL n (ResField w)) : |
| 573 | ρ k₁.val (ρ (liftMatrix g.val).val (ρ k₂.val y)) = |
| 574 | ρ (liftMatrix (reduceGL k₁ * g * reduceGL k₂).val).val y := by |
| 575 | rw [apply_liftMatrix_eq hy (k := k₁ * liftMatrix g.val * k₂) |
| 576 | (by rw [reduceGL_mul, reduceGL_mul, reduceGL_liftMatrix_val])] |
| 577 | simp [mul_apply_eq_comp] |
| 578 | -- Left and right multiplication by the reductions permutes the terms of the mean. |
| 579 | rw [sphericalMean_apply, sphericalMean_apply, map_smul, map_sum, |
| 580 | Fintype.sum_equiv ((Equiv.mulLeft (reduceGL k₁)).trans (Equiv.mulRight (reduceGL k₂))) _ |
| 581 | (fun g ↦ ρ (liftMatrix g.val).val y) h_term] |
| 582 | |
| 583 | /-- The operator `e_sph = sphericalMean ρ` takes a vector fixed by `J_line` to one fixed by |
| 584 | `GL_n(𝒪) = localIntGL n w`. -/ |
| 585 | lemma sphericalMean_mem (hy : y ∈ levelSpace ρ (lineStabilizer w i)) : |
| 586 | sphericalMean ρ y ∈ levelSpace ρ (localIntGL n w) := |
| 587 | mem_levelSpace.2 fun k ↦ by simpa using apply_sphericalMean_apply hy k 1 |
| 588 | |
| 589 | /-- For `j` in the stabiliser `J_line` of the line of `e_i` modulo `w`, the element |
| 590 | `j diag (ϖ, 1, …, 1)` lies in the coset `raiseCosetRep i ξ J_line` of some form `ξ` with |
| 591 | `ξ e_i = 1`; so these cosets cover `J_line diag (ϖ, 1, …, 1) J_line`. -/ |
| 592 | private lemma exists_raiseCosetRep_inv_mul_mem {j : GL n (LocField w)} |
| 593 | (hj : j ∈ lineStabilizer w i) : ∃ ξ : n → ResField w, |
| 594 | ξ i = 1 ∧ (raiseCosetRep i ξ)⁻¹ * (j * lineElement w i) ∈ lineStabilizer w i := by |
| 595 | obtain ⟨k, hk, rfl⟩ : ∃ k : localIntGL n w, k.val ∈ lineStabilizer w i ∧ j = k.val⁻¹ := |
| 596 | ⟨⟨j⁻¹, lineStabilizer_le_localIntGL w i (inv_mem hj)⟩, inv_mem hj, (inv_inv j).symm⟩ |
| 597 | have h_corner : (reduceGL k).val i i ≠ 0 := |
| 598 | diag_ne_zero_of_col (mem_parabolic_ne.1 (coe_mem_lineStabilizer.1 hk)) |
| 599 | -- The hyperplane is given by the `i`-th row of `k`, scaled to take the value `1` at `e_i`. |
| 600 | let ξ : n → ResField w := ((reduceGL k).val i i)⁻¹ • (reduceGL k).val.row i |
| 601 | have hξ : ξ i = 1 := by simp [ξ, h_corner] |
| 602 | exact ⟨ξ, hξ, (raiseCosetRep_inv_mul_mem_lineStabilizer_iff hξ).2 ⟨_, rfl⟩⟩ |
| 603 | |
| 604 | /-- Let `y` be fixed by the stabiliser `J_line` of the line of `e_i` modulo `w`. Then |
| 605 | `T⁺ y = lineRaise i ρ y` is the sum of its translates by the coset representatives |
| 606 | `raiseCosetRep i ξ` of `J_line diag (ϖ, 1, …, 1) J_line`, over the forms `ξ` with `ξ e_i = 1`, that |
| 607 | is, over the hyperplanes modulo `w` that do not contain `e_i`. -/ |
| 608 | lemma lineRaise_eq_sum [Fintype (ResField w)] [DecidableEq (ResField w)] |
| 609 | (hy : y ∈ levelSpace ρ (lineStabilizer w i)) : |
| 610 | lineRaise i ρ y = ∑ ξ : n → ResField w with ξ i = 1, ρ (raiseCosetRep i ξ) y := by |
| 611 | -- The representatives give distinct cosets, and these cover the double coset. |
| 612 | have h_inj (ξ η : n → ResField w) (hξ : ξ i = 1) (hη : η i = 1) |
| 613 | (h_mem : (raiseCosetRep i ξ)⁻¹ * raiseCosetRep i η ∈ lineStabilizer w i) : ξ = η := by |
| 614 | obtain ⟨c, hc⟩ := (raiseCosetRep_inv_mul_mem_lineStabilizer_iff |
| 615 | (k := liftMatrix (updateRow 1 i η)) hξ).1 h_mem |
| 616 | have h_row : (updateRow 1 i η).row i = η := updateRow_self |
| 617 | rw [reduceGL_liftMatrix_updateRow hη, h_row] at hc |
| 618 | exact (eq_of_eq_smul_of_apply_eq_one hη hξ hc).symm |
| 619 | have h_cover (j : GL n (LocField w)) (hj : j ∈ lineStabilizer w i) : ∃ ξ : n → ResField w, |
| 620 | ξ i = 1 ∧ (raiseCosetRep i ξ)⁻¹ * (j * lineElement w i) ∈ lineStabilizer w i := |
| 621 | exists_raiseCosetRep_inv_mul_mem hj |
| 622 | exact heckeCoset_eq_sum hy (fun ξ hξ ↦ raiseCosetRep_mem_doubleCoset (mem_filter.1 hξ).2) |
| 623 | (by simpa using fun ξ hξ η ↦ h_inj ξ η hξ) (by simpa using h_cover) |
| 624 | |
| 625 | /-- For `j` in the stabiliser `J_line` of the line of `e_i` modulo `w`, the element |
| 626 | `j diag (ϖ, 1, …, 1)⁻¹` lies in the coset `lowerCosetRep i z J_line` of some vector `z` with |
| 627 | `z i = 1`; so these cosets cover `J_line diag (ϖ, 1, …, 1)⁻¹ J_line`. -/ |
| 628 | private lemma exists_lowerCosetRep_inv_mul_mem {j : GL n (LocField w)} |
| 629 | (hj : j ∈ lineStabilizer w i) : ∃ z : n → ResField w, |
| 630 | z i = 1 ∧ (lowerCosetRep i z)⁻¹ * (j * (lineElement w i)⁻¹) ∈ lineStabilizer w i := by |
| 631 | have h_conj : lineElement w i * j * (lineElement w i)⁻¹ ∈ hyperplaneStabilizer w i := by |
| 632 | simpa [← conj_lineElement_mem_lineStabilizer_iff, mul_assoc] using hj |
| 633 | obtain ⟨k, hk, h_eq⟩ : ∃ k : localIntGL n w, k.val ∈ hyperplaneStabilizer w i ∧ |
| 634 | j * (lineElement w i)⁻¹ = (lineElement w i)⁻¹ * k.val := |
| 635 | ⟨⟨_, (mem_hyperplaneStabilizer.1 h_conj).1⟩, h_conj, by simp [mul_assoc]⟩ |
| 636 | have h_corner : (reduceGL k).val i i ≠ 0 := |
| 637 | diag_ne_zero_of_row (mem_parabolic_eq.1 (coe_mem_hyperplaneStabilizer.1 hk)) |
| 638 | -- The line is spanned by the `i`-th column of `k`, scaled to have the entry `1` at `i`. |
| 639 | let z : n → ResField w := ((reduceGL k).val i i)⁻¹ • (reduceGL k).val.col i |
| 640 | have hz : z i = 1 := by simp [z, h_corner] |
| 641 | rw [h_eq] |
| 642 | exact ⟨z, hz, (lowerCosetRep_inv_mul_mem_lineStabilizer_iff hz).2 |
| 643 | ⟨(reduceGL k).val i i, (smul_inv_smul₀ h_corner _).symm⟩⟩ |
| 644 | |
| 645 | /-- Let `y` be fixed by the stabiliser `J_line` of the line of `e_i` modulo `w`. Then |
| 646 | `T⁻ y = lineLower i ρ y` is the sum of its translates by the coset representatives |
| 647 | `lowerCosetRep i z` of `J_line diag (ϖ, 1, …, 1)⁻¹ J_line`, over the vectors `z` with `z i = 1`, |
| 648 | that is, over the lines modulo `w` outside the hyperplane `z i = 0`. -/ |
| 649 | lemma lineLower_eq_sum [Fintype (ResField w)] [DecidableEq (ResField w)] |
| 650 | (hy : y ∈ levelSpace ρ (lineStabilizer w i)) : |
| 651 | lineLower i ρ y = ∑ z : n → ResField w with z i = 1, ρ (lowerCosetRep i z) y := by |
| 652 | -- The representatives give distinct cosets, and these cover the double coset. |
| 653 | have h_inj (z z' : n → ResField w) (hz : z i = 1) (hz' : z' i = 1) |
| 654 | (h_mem : (lowerCosetRep i z)⁻¹ * lowerCosetRep i z' ∈ lineStabilizer w i) : z = z' := by |
| 655 | obtain ⟨c, hc⟩ := (lowerCosetRep_inv_mul_mem_lineStabilizer_iff |
| 656 | (k := liftMatrix (updateCol 1 i z')) hz).1 h_mem |
| 657 | rw [col_reduceGL_liftMatrix_updateCol hz'] at hc |
| 658 | exact eq_of_eq_smul_of_apply_eq_one hz hz' hc |
| 659 | have h_cover (j : GL n (LocField w)) (hj : j ∈ lineStabilizer w i) : ∃ z : n → ResField w, |
| 660 | z i = 1 ∧ (lowerCosetRep i z)⁻¹ * (j * (lineElement w i)⁻¹) ∈ lineStabilizer w i := |
| 661 | exists_lowerCosetRep_inv_mul_mem hj |
| 662 | exact heckeCoset_eq_sum hy (fun z hz ↦ lowerCosetRep_mem_doubleCoset (mem_filter.1 hz).2) |
| 663 | (by simpa using fun z hz z' ↦ h_inj z z' hz) (by simpa using h_cover) |
| 664 | |
| 665 | /-- For `y` fixed by `J_line` and a form `ξ` with `ξ e_i = 1`, the representative |
| 666 | `raiseCosetRep i ξ` of the coset of `T⁺` that corresponds to the hyperplane `ξ = 0` takes |
| 667 | `T⁻ y = lineLower i ρ y` to the sum of the translates `y[z] = lineTranslate i ρ y z` over the |
| 668 | vectors `z` with `ξ z = 1`, that is, over the lines outside the hyperplane `ξ = 0`. -/ |
| 669 | lemma raiseCosetRep_apply_lineLower [Fintype (ResField w)] [DecidableEq (ResField w)] |
| 670 | (hy : y ∈ levelSpace ρ (lineStabilizer w i)) (hξ : ξ i = 1) : |
| 671 | ρ (raiseCosetRep i ξ) (lineLower i ρ y) = |
| 672 | ∑ z : n → ResField w with ξ ⬝ᵥ z = 1, lineTranslate i ρ y z := by |
| 673 | set b : localIntGL n w := liftMatrix (updateRow 1 i ξ) with hb |
| 674 | have h_lower : ρ (lineElement w i) (lineLower i ρ y) = |
| 675 | ∑ z : n → ResField w with z i = 1, lineTranslate i ρ y z := by |
| 676 | rw [lineLower_eq_sum hy, map_sum] |
| 677 | refine sum_congr rfl fun z hz ↦ ?_ |
| 678 | have hz_one : z i = 1 := (mem_filter.1 hz).2 |
| 679 | have h_col : (reduceGL (liftMatrix (updateCol 1 i z))).val.col i = (1 : ResField w) • z := by |
| 680 | rw [col_reduceGL_liftMatrix_updateCol hz_one, one_smul] |
| 681 | have hz_ne : z ≠ 0 := Function.ne_iff.2 ⟨i, hz_one.trans_ne one_ne_zero⟩ |
| 682 | rw [lineTranslate_eq_apply_of_col_eq_smul hy hz_ne h_col, lowerCosetRep, ← mul_apply_eq_comp, |
| 683 | ← map_mul, |
| 684 | mul_inv_cancel_left] |
| 685 | have h_move : ρ b.val (∑ z : n → ResField w with ξ ⬝ᵥ z = 1, lineTranslate i ρ y z) = |
| 686 | ∑ z : n → ResField w with z i = 1, lineTranslate i ρ y z := by |
| 687 | refine apply_sum_lineTranslate hy b (by simp) fun z ↦ ?_ |
| 688 | rw [mem_filter_univ, mem_filter_univ, hb, reduceGL_liftMatrix_updateRow hξ, updateRow_mulVec, |
| 689 | Function.update_self] |
| 690 | calc ρ (raiseCosetRep i ξ) (lineLower i ρ y) |
| 691 | _ = ρ b.val⁻¹ (ρ (lineElement w i) (lineLower i ρ y)) := by |
| 692 | rw [raiseCosetRep, ← hb, map_mul, mul_apply_eq_comp] |
| 693 | _ = ρ b.val⁻¹ (ρ b.val (∑ z : n → ResField w with ξ ⬝ᵥ z = 1, lineTranslate i ρ y z)) := by |
| 694 | rw [h_lower, h_move] |
| 695 | _ = ∑ z : n → ResField w with ξ ⬝ᵥ z = 1, lineTranslate i ρ y z := ρ.inv_self_apply b.val _ |
| 696 | |
| 697 | /-- For `y` fixed by `J_line`, the sum of the translates `y[z] = lineTranslate i ρ y z` over all |
| 698 | `z ≠ 0`, in which each line occurs `q - 1` times, is `(q ^ n - 1) e_sph y`. Here `q` is the order |
| 699 | of the residue field, the exponent `n` stands for the number of indices and `e_sph` is |
| 700 | `sphericalMean ρ`. -/ |
| 701 | lemma sum_lineTranslate [Fintype (ResField w)] [DecidableEq (ResField w)] |
| 702 | (hy : y ∈ levelSpace ρ (lineStabilizer w i)) : |
| 703 | ∑ z : n → ResField w with z ≠ 0, lineTranslate i ρ y z = |
| 704 | ((w.q : ℂ) ^ Fintype.card n - 1) • sphericalMean ρ y := by |
| 705 | -- The sum is fixed by `GL_n(𝒪)`, so it equals its mean, and each term has the mean of `y`. |
| 706 | have h_fixed : |
| 707 | ∑ z : n → ResField w with z ≠ 0, lineTranslate i ρ y z ∈ levelSpace ρ (localIntGL n w) := by |
| 708 | refine mem_levelSpace.2 fun k ↦ ?_ |
| 709 | rw [MonoidHom.one_apply, one_smul] |
| 710 | refine apply_sum_lineTranslate hy k (by simp) fun z ↦ ?_ |
| 711 | have h_inj : Function.Injective (reduceGL k).val.mulVec := |
| 712 | mulVec_injective_iff_isUnit.2 (reduceGL k).isUnit |
| 713 | simpa only [mem_filter_univ, mulVec_zero] using (h_inj.ne_iff (x := z) (y := 0)).symm |
| 714 | have h_term (z : n → ResField w) : |
| 715 | sphericalMean ρ (lineTranslate i ρ y z) = sphericalMean ρ y := by |
| 716 | simpa [lineTranslate] using apply_sphericalMean_apply hy 1 _ |
| 717 | have h_card : (#{z : n → ResField w | z ≠ 0} : ℂ) = (w.q : ℂ) ^ Fintype.card n - 1 := by |
| 718 | rw [filter_ne', card_erase_of_mem (mem_univ _), card_univ, Nat.cast_pred Fintype.card_pos, |
| 719 | Fintype.card_fun, ← Nat.card_eq_fintype_card, card_ResField, Nat.cast_pow] |
| 720 | calc ∑ z : n → ResField w with z ≠ 0, lineTranslate i ρ y z |
| 721 | _ = sphericalMean ρ (∑ z : n → ResField w with z ≠ 0, lineTranslate i ρ y z) := |
| 722 | (sphericalMean_eq_self h_fixed).symm |
| 723 | _ = _ := by simp only [map_sum, h_term, sum_const, ← Nat.cast_smul_eq_nsmul ℂ, h_card] |
| 724 | /-- Let `ρ` be a complex representation of `GL_n(E_w)` at a finite place `w` of the number field |
| 725 | `E`, and let `y` be a vector fixed by the stabiliser `J_line` in `GL_n(𝒪_w)` of the line of `e_i` |
| 726 | modulo `w`. Then `T⁺ T⁻ y = q ^ (n - 2) (y + (q ^ n - 1) e_sph y)`. Here `T⁺ = lineRaise i ρ` and |
| 727 | `T⁻ = lineLower i ρ` are the sums over the cosets in `J_line diag (ϖ, 1, …, 1) J_line / J_line` and |
| 728 | in `J_line diag (ϖ, 1, …, 1)⁻¹ J_line / J_line`, `e_sph = sphericalMean ρ` is the action of the mean |
| 729 | of chosen lifts to `GL_n(𝒪_w)` of all elements of `GL_n` of the residue field, `q` is the order of |
| 730 | the residue field, and the exponent `n` stands for the number of indices. -/ |
| 731 | theorem lineRaise_lineLower (hy : y ∈ levelSpace ρ (lineStabilizer w i)) : |
| 732 | lineRaise i ρ (lineLower i ρ y) = (w.q : ℂ) ^ (Fintype.card n - 2 : ℤ) • |
| 733 | (y + ((w.q : ℂ) ^ Fintype.card n - 1) • sphericalMean ρ y) := by |
| 734 | classical |
| 735 | -- The line of `z` is reached once for each hyperplane that contains neither `e_i` nor `z`. |
| 736 | let : Fintype (ResField w) := Fintype.ofFinite _ |
| 737 | calc lineRaise i ρ (lineLower i ρ y) |
| 738 | _ = ∑ ξ : n → ResField w with ξ i = 1, ∑ z : n → ResField w with ξ ⬝ᵥ z = 1, |
| 739 | lineTranslate i ρ y z := by |
| 740 | rw [lineRaise_eq_sum (lineLower_mem hy)] |
| 741 | exact sum_congr rfl fun ξ hξ ↦ raiseCosetRep_apply_lineLower hy (mem_filter.1 hξ).2 |
| 742 | _ = (w.q : ℂ) ^ (Fintype.card n - 2 : ℤ) • |
| 743 | (y + ∑ z : n → ResField w with z ≠ 0, lineTranslate i ρ y z) := by |
| 744 | rw [sum_sum_dotProduct_eq_one_eq_smul fun _ ↦ lineTranslate_eq_self hy, |
| 745 | ← Nat.card_eq_fintype_card, card_ResField] |
| 746 | _ = _ := by rw [sum_lineTranslate hy] |
| 747 | |
| 748 | end FixedVectors |
| 749 | |
| 750 | section LineOperators |
| 751 | |
| 752 | variable {E n : Type} [Field E] [NumberField E] [Fintype n] [DecidableEq n] {w : FinPlace E} {i : n} |
| 753 | |
| 754 | /-- Let `W` carry a unitary representation of `GL_n` of the local field at `w`. On the vectors fixed |
| 755 | by the stabiliser `J_line` of the line of `e_i` modulo `w`, the operator `T⁻ = lineLower i ρ` of the |
| 756 | double coset of `diag (ϖ, 1, …, 1)⁻¹` is the adjoint of the operator `T⁺ = lineRaise i ρ` of the |
| 757 | double coset of `diag (ϖ, 1, …, 1)`. -/ |
| 758 | theorem inner_lineRaise {W : Type} [NormedAddCommGroup W] [InnerProductSpace ℂ W] |
| 759 | {ρ : Representation ℂ (GL n (LocField w)) W} |
| 760 | (hρ : ∀ (g : GL n (LocField w)) (x y : W), ⟪ρ g x, ρ g y⟫_ℂ = ⟪x, y⟫_ℂ) {x y : W} |
| 761 | (hx : x ∈ levelSpace ρ (lineStabilizer w i)) (hy : y ∈ levelSpace ρ (lineStabilizer w i)) : |
| 762 | ⟪lineRaise i ρ x, y⟫_ℂ = ⟪x, lineLower i ρ y⟫_ℂ := by |
| 763 | classical |
| 764 | -- The two double cosets are mutually inverse and have the same number of cosets. |
| 765 | let : Fintype (ResField w) := Fintype.ofFinite _ |
| 766 | have h_inv : ⟪ρ (lineElement w i) x, y⟫_ℂ = ⟪x, ρ (lineElement w i)⁻¹ y⟫_ℂ := by |
| 767 | rw [← hρ (lineElement w i) x, ρ.self_inv_apply] |
| 768 | have h_raise : ⟪lineRaise i ρ x, y⟫_ℂ = |
| 769 | #{ξ : n → ResField w | ξ i = 1} • ⟪ρ (lineElement w i) x, y⟫_ℂ := by |
| 770 | rw [lineRaise_eq_sum hx, inner_sum_of_mem_doubleCoset hρ hx hy |
| 771 | fun ξ hξ ↦ raiseCosetRep_mem_doubleCoset (mem_filter.1 hξ).2] |
| 772 | have h_lower : ⟪lineLower i ρ y, x⟫_ℂ = |
| 773 | #{z : n → ResField w | z i = 1} • ⟪ρ (lineElement w i)⁻¹ y, x⟫_ℂ := by |
| 774 | rw [lineLower_eq_sum hy, inner_sum_of_mem_doubleCoset hρ hy hx |
| 775 | fun z hz ↦ lowerCosetRep_mem_doubleCoset (mem_filter.1 hz).2] |
| 776 | rw [h_raise, h_inv, ← inner_conj_symm x (lineLower i ρ y), h_lower, map_nsmul, inner_conj_symm] |
| 777 | |
| 778 | /-! ### The support of the powers of `lineHecke` -/ |
| 779 | |
| 780 | variable {g h : GL n (LocField w)} |
| 781 | |
| 782 | /-- The matrix `g` is integral and keeps the line of `e_i` modulo `w`, with an invertible action on |
| 783 | the quotient by that line. -/ |
| 784 | structure KeepsLineMod (i : n) (g : GL n (LocField w)) : Prop where |
| 785 | /-- The entries are integral. -/ |
| 786 | v_le_one : ∀ a b : n, v (g a b) ≤ 1 |
| 787 | /-- The reduction has the block shape `(∗ ∗; 0 g')` with `g'` invertible. -/ |
| 788 | keepsLine : KeepsLine i (g.val.map residueOrZero) |
| 789 | |
| 790 | /-- If `g` and `h` are integral and keep the line of `e_i` modulo `w`, then so does `g * h`. -/ |
| 791 | lemma KeepsLineMod.mul (hg : KeepsLineMod i g) (hh : KeepsLineMod i h) : |
| 792 | KeepsLineMod i (g * h) where |
| 793 | v_le_one a b := (v_matrix_mul_le hg.v_le_one hh.v_le_one a b).trans_eq (one_mul 1) |
| 794 | keepsLine := by |
| 795 | rw [Units.val_mul, map_residueOrZero_mul hg.v_le_one hh.v_le_one] |
| 796 | exact hg.keepsLine.mul hh.keepsLine |
| 797 | |
| 798 | /-- If two matrices are integral and keep the line of `e_i` modulo `w`, with invertible actions on |
| 799 | the quotient, then the `(i, i)` entry of their product reduces to the product of the reduced |
| 800 | `(i, i)` entries. -/ |
| 801 | lemma KeepsLineMod.residue_mul_apply_self (hg : KeepsLineMod i g) (hh : KeepsLineMod i h) : |
| 802 | residueOrZero ((g * h) i i) = residueOrZero (g i i) * residueOrZero (h i i) := |
| 803 | calc residueOrZero ((g * h) i i) |
| 804 | _ = (g.val.map residueOrZero * h.val.map residueOrZero) i i := |
| 805 | congrFun₂ (map_residueOrZero_mul hg.v_le_one hh.v_le_one) i i |
| 806 | _ = residueOrZero (g i i) * residueOrZero (h i i) := hh.keepsLine.mul_apply_col i |
| 807 | |
| 808 | /-- An element of the stabiliser of the line of `e_i` modulo `w` is integral and keeps this line, |
| 809 | with an invertible action on the quotient. -/ |
| 810 | lemma keepsLineMod_of_mem (hg : g ∈ lineStabilizer w i) : KeepsLineMod i g where |
| 811 | v_le_one := v_le_one_of_mem_localIntGL (lineStabilizer_le_localIntGL w i hg) |
| 812 | keepsLine := by |
| 813 | rw [← coe_reduceGL ⟨g, lineStabilizer_le_localIntGL w i hg⟩] |
| 814 | exact keepsLine_of_mem_parabolic (coe_mem_lineStabilizer.1 hg) |
| 815 | |
| 816 | /-- The matrix `diag (ϖ, 1, …, 1)`, with the uniformiser at the index `i`, is integral and keeps the |
| 817 | line of `e_i` modulo `w`, with an invertible action on the quotient. -/ |
| 818 | lemma keepsLineMod_lineElement : KeepsLineMod i (lineElement w i) where |
| 819 | v_le_one a b := by |
| 820 | rw [coe_lineElement, diagonal_apply] |
| 821 | split_ifs |
| 822 | · exact v_uniformizer_lt_one.le |
| 823 | all_goals simp |
| 824 | keepsLine := by |
| 825 | have h_zero : residueOrZero (0 : LocField w) = 0 := (residueOrZero_coe 0).trans (map_zero _) |
| 826 | have h_one : residueOrZero (1 : LocField w) = 1 := (residueOrZero_coe 1).trans (map_one _) |
| 827 | rw [coe_lineElement, diagonal_map h_zero] |
| 828 | refine ⟨fun j hj ↦ diagonal_apply_ne _ hj, ?_⟩ |
| 829 | have h_block : (diagonal fun j : n ↦ residueOrZero (if j = i then (uniformizer w).val else 1) |
| 830 | ).toSquareBlockProp (· ≠ i) = 1 := by |
| 831 | ext ⟨a, ha⟩ ⟨b, hb⟩ |
| 832 | simp [toSquareBlockProp_def, diagonal_apply, Matrix.one_apply, ha, h_one] |
| 833 | simp [h_block] |
| 834 | |
| 835 | /-- If `g` and `h` keep the line of `e_i` modulo `w` and one of them has a vanishing residue in the |
| 836 | `(i, i)` entry, then their product keeps the line and has a vanishing residue there too. -/ |
| 837 | private lemma KeepsLineMod.mul_residue_eq_zero {g h : GL n (LocField w)} |
| 838 | (hg : KeepsLineMod i g) (hh : KeepsLineMod i h) |
| 839 | (h_zero : residueOrZero (g i i) = 0 ∨ residueOrZero (h i i) = 0) : |
| 840 | KeepsLineMod i (g * h) ∧ residueOrZero ((g * h) i i) = 0 := |
| 841 | ⟨hg.mul hh, by rw [hg.residue_mul_apply_self hh, mul_eq_zero]; exact h_zero⟩ |
| 842 | |
| 843 | /-- An element `g` of the double coset of `diag (ϖ, 1, …, 1)` by the stabiliser of the line of |
| 844 | `e_i` is integral, and modulo `w` it has the shape `(0 ∗; 0 g')` with `g'` invertible. -/ |
| 845 | lemma keepsLineMod_of_mem_doubleCoset |
| 846 | (hg : g ∈ doubleCoset (lineElement w i) (lineStabilizer w i) (lineStabilizer w i)) : |
| 847 | KeepsLineMod i g ∧ residueOrZero (g i i) = 0 := by |
| 848 | obtain ⟨j, hj, j', hj', rfl⟩ := mem_doubleCoset.1 hg |
| 849 | have h_corner : residueOrZero (lineElement w i i i) = 0 := by |
| 850 | simp [coe_lineElement, residueOrZero_eq_zero] |
| 851 | obtain ⟨h_left, h_zero⟩ := (keepsLineMod_of_mem hj).mul_residue_eq_zero |
| 852 | keepsLineMod_lineElement (.inr h_corner) |
| 853 | exact h_left.mul_residue_eq_zero (keepsLineMod_of_mem hj') (.inl h_zero) |
| 854 | |
| 855 | lemma spanOn_mono {G : Type} [Group G] {D D' : Set G} (h_sub : D ⊆ D') : |
| 856 | spanOn ℂ D ≤ spanOn ℂ D' := |
| 857 | Submodule.span_mono (Set.image_mono h_sub) |
| 858 | |
| 859 | variable (w i) in |
| 860 | /-- For `m > 0`, the `m`-th power of the element `lineHecke w i` of the group algebra, which acts as |
| 861 | `T⁺`, is supported on the matrices `g` such that every element of `g J_line` is integral, with `0` a |
| 862 | simple root of its characteristic polynomial modulo `w`. Here `J_line` is the stabiliser of the line |
| 863 | of `e_i` modulo `w`. -/ |
| 864 | theorem lineHecke_pow_mem_spanOn {m : ℕ} (hm : 0 < m) : lineHecke w i ^ m ∈ |
| 865 | spanOn ℂ {g : GL n (LocField w) | ∀ k ∈ lineStabilizer w i, HasSimpleZero (g * k)} := by |
| 866 | -- The shape `(0 ∗; 0 g')` modulo `w` is kept by products and by right translation by `J_line`. |
| 867 | let D : Set (GL n (LocField w)) := {g | KeepsLineMod i g ∧ residueOrZero (g i i) = 0} |
| 868 | have h_mem : lineHecke w i ∈ spanOn ℂ D := |
| 869 | spanOn_mono (fun _ ↦ keepsLineMod_of_mem_doubleCoset) |
| 870 | (doubleCosetSum_mem_spanOn (isHeckeFunction_indicator_doubleCoset w i _).1) |
| 871 | have h_mul : ∀ g ∈ D, ∀ h : GL n (LocField w), KeepsLineMod i h → g * h ∈ D := |
| 872 | fun g ⟨hg, hg_zero⟩ h hh ↦ |
| 873 | hg.mul_residue_eq_zero hh (.inl hg_zero) |
| 874 | have h_pow : lineHecke w i ^ m ∈ spanOn ℂ D := by |
| 875 | induction hm with |
| 876 | | refl => rwa [pow_one] |
| 877 | | step _ ih => |
| 878 | rw [pow_succ] |
| 879 | exact spanOn.mul ih h_mem fun g hg h ⟨hh_keeps, _⟩ ↦ h_mul g hg h hh_keeps |
| 880 | refine spanOn_mono ?_ h_pow |
| 881 | intro g hg k hk |
| 882 | obtain ⟨h_keeps, h_zero⟩ : g * k ∈ D := h_mul g hg k (keepsLineMod_of_mem hk) |
| 883 | exact ⟨h_keeps.v_le_one, h_keeps.keepsLine.rootMultiplicity_charpoly h_zero⟩ |
| 884 | |
| 885 | end LineOperators |
| 886 | end New |
| 887 | |
| 888 | end |