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.Analysis.CStarAlgebra.CStarMatrix |
| 4 | import Mathlib.NumberTheory.MulChar.Lemmas |
| 5 | import Mathlib.Topology.Algebra.Group.Matrix |
| 6 | public import Lib.LocalGL.Green.TauFunctions |
| 7 | public import Lib.Weil.Periods.DescentVanishing |
| 8 | public import New.UpperBound.Objects.AuxiliaryPair |
| 9 | import Lib.Adelic.AutomorphicForms.AutomorphicAsAlgebraic |
| 10 | import Lib.ClassField.HeckeCharacter.TameModulus |
| 11 | |
| 12 | /-! |
| 13 | # The bottom of the tower: from the block datum to all data |
| 14 | |
| 15 | Let `O` be a descent pair with spaces `W` and `V`, and let `y` be a form on `V` whose descents to |
| 16 | `W` by the data `v_P ⊗ Ψ_bl ⊗ vac` vanish, where `v_P` is the Fock vector of a polynomial `P` and |
| 17 | `Ψ_bl` is the block datum. Suppose that the characters `χ_w` at the places of `Q` are not trivial |
| 18 | and that the hyperplane sums at the chosen places annihilate `y`. This file proves that the descents |
| 19 | vanish for all data that are the vacuum at the finite places other than the chosen places, the |
| 20 | places of `Q` and their conjugates (`DescentPair.descentsVanish_of_hyperplaneSumsAnnihilate`). By |
| 21 | the descents of `y` we mean those of the matrix coefficient of `y` for a fixed linear form `u`. |
| 22 | |
| 23 | It suffices to treat the indicator of a small class around each point `x`. If `x` has an integral |
| 24 | block ratio (`HasIntegralBlockRatio`) at every place of `O`, the mean of the translates of this |
| 25 | indicator under the level group is a multiple of a translate of `Ψ_bl` under `U(W)`. Otherwise an |
| 26 | annihilating row at a place where `x` has no integral block ratio gives integral elements `h_v` |
| 27 | (`rowShear`) that fix the components of `x` at the places of `O` and whose sum annihilates `y`. |
| 28 | Classes are taken modulo `i!` (`factorialIdele`) for large `i`, and the mean is taken over the |
| 29 | finitely many translates under the whole level group. |
| 30 | |
| 31 | The pair `O` carries two families of split finite places, the chosen places and the places of `Q`, |
| 32 | indexed by `O.ChosenIndex` and `O.TwistIndex`. The family `O.placeAt` lists all these places, and |
| 33 | `O.places` is their set. The pair also carries the space `W = O.W` of rank `r`, an embedding |
| 34 | `O.incl : r ↪ n` and the residue characters `χ_w = O.tamePart w`. The space `V` is `stdSpace E n`, |
| 35 | and `O.FormV` are the forms on `V` of the level of `O`. The level group `O.levelGroup` consists of |
| 36 | the elements of the maximal level whose reductions fix `(1, 0)ᵀ` at the chosen places and are block |
| 37 | lower triangular at the places of `Q`. For an `n × r` matrix `x` we write `x'` for the square block |
| 38 | of the rows `O.incl` and `x''` for the block of the other rows. |
| 39 | |
| 40 | The field `E` is CM and carries Weil data (`WeilData E`): a purely imaginary element, a finite idele |
| 41 | and a splitting character, from which the Weil representation is defined. |
| 42 | |
| 43 | Notions from other files: |
| 44 | * `New.Space.lift` for the swapped kernel goes from `U(V)` to `U(W)`; the descent of `y` is the |
| 45 | conjugate of this lift of the conjugate of `y`. |
| 46 | * `New.Space.schrodingerOp`: for a set `S` of split places, `schrodingerOp V S Ψ f` is the vector of |
| 47 | the Weil representation with the function `Ψ` of finite adelic vectors above `S` and `f` |
| 48 | elsewhere; `New.Space.integrated` sets the component at infinity, and `New.Space.vacElem` is the |
| 49 | vacuum. |
| 50 | * `New.cosetIndicator`: `cosetIndicator S t z` is the indicator function of the `x` such that |
| 51 | `t⁻¹ (x - z)` is integral at every place of `S`. |
| 52 | * `New.DescentPair.blockDatum` is the vector `Ψ_bl ⊗ vac`. The function `Ψ_bl` of a finite adelic |
| 53 | `n × r` matrix `x` is `∏_{w ∈ Q} χ_w(det x' mod w)` if `x` is integral at all places of `O` and |
| 54 | `≡ (1, 0)ᵀ` (`New.inclMatrix`) at the chosen places, and `0` otherwise. |
| 55 | * `New.DescentPair.formAction` is the action `s̄ y` on forms of the product of the groups `GL r` |
| 56 | over the residue fields of the chosen places. |
| 57 | -/ |
| 58 | |
| 59 | @[expose] public section |
| 60 | |
| 61 | noncomputable section |
| 62 | |
| 63 | namespace New |
| 64 | |
| 65 | open Matrix NumberField Finset IsLocalRing Valued Space stdLevel Gf SiegelWeil Fock Rows Filter |
| 66 | |
| 67 | section Blocks |
| 68 | |
| 69 | variable {R R' r n : Type} [CommRing R] [CommRing R'] [Fintype r] [DecidableEq n] (ι : r ↪ n) |
| 70 | |
| 71 | omit [Fintype r] in |
| 72 | /-- The rows `ι` of the matrix `inclMatrix R ι = (1, 0)ᵀ` form the identity matrix. -/ |
| 73 | lemma submatrix_inclMatrix [DecidableEq r] [Fintype n] : (inclMatrix R ι).submatrix ι id = 1 := by |
| 74 | rw [← inclMatrix_transpose_mul, inclMatrix_transpose_mul_self] |
| 75 | |
| 76 | omit [Fintype r] in |
| 77 | /-- Evaluation of `inclMatrix R ι a b` is zero when the row index `a` is outside `range ι`. -/ |
| 78 | lemma inclMatrix_apply_of_notMem_range {a : n} (ha : a ∉ Set.range ι) (b : r) : |
| 79 | inclMatrix R ι a b = 0 := |
| 80 | one_apply_ne fun h : a = ι b ↦ ha ⟨b, h.symm⟩ |
| 81 | |
| 82 | /-- The vector `inclMatrix R ι *ᵥ μ = (μ, 0)` has the entry `μ b` at the index `ι b`. -/ |
| 83 | lemma inclMatrix_mulVec_apply_embedding [DecidableEq r] (μ : r → R) (b : r) : |
| 84 | (inclMatrix R ι *ᵥ μ) (ι b) = μ b := by |
| 85 | simp [inclMatrix, mulVec, dotProduct, Matrix.one_apply] |
| 86 | |
| 87 | /-- Matrix-vector product with `inclMatrix` vanishes on indices outside the range of `ι`. -/ |
| 88 | lemma inclMatrix_mulVec_apply_of_notMem_range (μ : r → R) {a : n} (ha : a ∉ Set.range ι) : |
| 89 | (inclMatrix R ι *ᵥ μ) a = 0 := by |
| 90 | simp [mulVec, dotProduct, inclMatrix_apply_of_notMem_range ι ha] |
| 91 | |
| 92 | /-- The row `inclMatrix R ι *ᵥ μ`, which is `μ` at the indices `ι` and `0` elsewhere, times `x` |
| 93 | equals `μ` times the rows `ι` of `x`, that is, `μ ᵥ* x.submatrix ι id`. -/ |
| 94 | lemma inclMatrix_mulVec_vecMul [Fintype n] (μ : r → R) (x : Matrix n r R) : |
| 95 | (inclMatrix R ι *ᵥ μ) ᵥ* x = μ ᵥ* x.submatrix ι id := by |
| 96 | rw [← vecMul_transpose, vecMul_vecMul, inclMatrix_transpose_mul] |
| 97 | |
| 98 | /-- The square matrix `(u' 0; u'' 1)`: its columns `ι` are the columns of `u`, and its other columns |
| 99 | are those of the identity matrix. -/ |
| 100 | def completeColumns (u : Matrix n r R) : Matrix n n R := |
| 101 | 1 + (u - inclMatrix R ι) * (inclMatrix R ι)ᵀ |
| 102 | |
| 103 | /-- The columns `ι` of `(u' 0; u'' 1)` are the columns of `u`. -/ |
| 104 | lemma completeColumns_mul_inclMatrix [DecidableEq r] [Fintype n] (u : Matrix n r R) : |
| 105 | completeColumns ι u * inclMatrix R ι = u := by |
| 106 | simp [completeColumns, Matrix.add_mul, Matrix.mul_assoc] |
| 107 | |
| 108 | /-- The determinant of `completeColumns ι u = (u' 0; u'' 1)` is that of `u' = u.submatrix ι id`, the |
| 109 | block of the rows `ι` of `u`. -/ |
| 110 | lemma det_completeColumns [DecidableEq r] [Fintype n] (u : Matrix n r R) : |
| 111 | (completeColumns ι u).det = (u.submatrix ι id).det := by |
| 112 | rw [completeColumns, det_one_add_mul_comm, Matrix.mul_sub, inclMatrix_transpose_mul_self, |
| 113 | add_sub_cancel, inclMatrix_transpose_mul] |
| 114 | |
| 115 | /-- The upper right block of `completeColumns ι u = (u' 0; u'' 1)` is zero: its entry at row `ι a` |
| 116 | and column `b` outside the range of `ι` is `0`. -/ |
| 117 | lemma completeColumns_apply_of_notMem [DecidableEq r] |
| 118 | (u : Matrix n r R) (a : r) {b : n} (hb : b ∉ Set.range ι) : |
| 119 | completeColumns ι u (ι a) b = 0 := by |
| 120 | have h_ne (c : r) : ι c ≠ b := fun h ↦ hb ⟨c, h⟩ |
| 121 | simp [completeColumns, inclMatrix, Matrix.mul_apply, Matrix.one_apply, h_ne] |
| 122 | |
| 123 | /-- Completing matrix columns commutes with scalar ring homomorphisms `f`. -/ |
| 124 | lemma map_completeColumns (f : R →+* R') (u : Matrix n r R) : |
| 125 | (completeColumns ι u).map f = completeColumns ι (u.map f) := by |
| 126 | ext a b |
| 127 | simp [completeColumns, inclMatrix, Matrix.mul_apply, Matrix.one_apply, apply_ite f] |
| 128 | |
| 129 | variable [Fintype n] |
| 130 | |
| 131 | omit [Fintype r] in |
| 132 | /-- Row-vector multiplication by `inclMatrix` restricts the vector to the indices `ι`. -/ |
| 133 | lemma vecMul_inclMatrix (l : n → R) : l ᵥ* inclMatrix R ι = l ∘ ι := by |
| 134 | ext b |
| 135 | simp [inclMatrix, vecMul, dotProduct, Matrix.one_apply] |
| 136 | |
| 137 | /-- The matrix `h_v = (1 + v λ, v λ'; 0, 1)` of a column `v` and a row `l = (λ, λ')`, where `λ` has |
| 138 | the entries of `l` indexed by `ι` and `λ'` has the other entries. -/ |
| 139 | def rowShear (v : r → R) (l : n → R) : Matrix n n R := 1 + vecMulVec (inclMatrix R ι *ᵥ v) l |
| 140 | |
| 141 | /-- When `l ᵥ* x = 0`, left-multiplying `x` by `rowShear ι v l` leaves `x` |
| 142 | unchanged. -/ |
| 143 | lemma rowShear_mul_eq_self_of_vecMul_eq_zero {v : r → R} {l : n → R} {x : Matrix n r R} |
| 144 | (hlx : l ᵥ* x = 0) : |
| 145 | rowShear ι v l * x = x := by |
| 146 | ext a b |
| 147 | simp [rowShear, Matrix.add_mul, vecMulVec_mul, hlx] |
| 148 | |
| 149 | /-- The matrix `rowShear ι v l` is block upper triangular with first block `1 + v λ`, where |
| 150 | `λ = l ∘ ι`. -/ |
| 151 | lemma rowShear_mul_inclMatrix [DecidableEq r] (v : r → R) (l : n → R) : |
| 152 | rowShear ι v l * inclMatrix R ι = inclMatrix R ι * (1 + vecMulVec v (l ∘ ι)) := by |
| 153 | simp [rowShear, Matrix.add_mul, Matrix.mul_add, vecMulVec_mul, mul_vecMulVec, vecMul_inclMatrix] |
| 154 | |
| 155 | /-- The matrix `rowShear ι v l` is `1 + (v, 0)ᵀ l`, the identity plus the product of the column `v`, |
| 156 | extended by zero along `ι`, with the row `l`. If `l` vanishes outside the range of `ι`, it is block |
| 157 | lower triangular with first block `1 + v λ`, where `λ = l ∘ ι` and `inclMatrix R ι = (1, 0)ᵀ`. -/ |
| 158 | lemma transpose_rowShear_mul_inclMatrix [DecidableEq r] (v : r → R) {l : n → R} |
| 159 | (hl : ∀ a : n, a ∉ Set.range ι → l a = 0) : |
| 160 | (rowShear ι v l)ᵀ * inclMatrix R ι = inclMatrix R ι * (1 + vecMulVec v (l ∘ ι))ᵀ := by |
| 161 | have h_col : (inclMatrix R ι *ᵥ v) ᵥ* inclMatrix R ι = v := by |
| 162 | rw [inclMatrix_mulVec_vecMul, submatrix_inclMatrix, vecMul_one] |
| 163 | have h_row : inclMatrix R ι *ᵥ (l ∘ ι) = l := by |
| 164 | ext a |
| 165 | obtain ⟨b, rfl⟩ | ha : a ∈ Set.range ι ∨ a ∉ Set.range ι := Classical.em _ |
| 166 | · simp [inclMatrix_mulVec_apply_embedding] |
| 167 | · rw [inclMatrix_mulVec_apply_of_notMem_range ι _ ha, hl a ha] |
| 168 | calc |
| 169 | _ = inclMatrix R ι + vecMulVec l v := by simp [rowShear, Matrix.add_mul, vecMulVec_mul, h_col] |
| 170 | _ = _ := by simp [Matrix.mul_add, mul_vecMulVec, h_row] |
| 171 | |
| 172 | /-- The determinant of `rowShear ι v l` is that of its first block `1 + v λ`, where `λ = l ∘ ι`. -/ |
| 173 | lemma det_rowShear [DecidableEq r] (v : r → R) (l : n → R) : |
| 174 | (rowShear ι v l).det = (1 + vecMulVec v (l ∘ ι)).det := by |
| 175 | simp [rowShear, vecMulVec_eq Unit, det_one_add_replicateCol_mul_replicateRow, dotProduct_mulVec, |
| 176 | vecMul_inclMatrix] |
| 177 | |
| 178 | omit [Fintype n] in |
| 179 | /-- Applying a ring homomorphism `f` entrywise to `rowShear ι v l` gives |
| 180 | `rowShear ι (f ∘ v) (f ∘ l)`. -/ |
| 181 | lemma map_rowShear (f : R →+* R') (v : r → R) (l : n → R) : |
| 182 | (rowShear ι v l).map f = rowShear ι (f ∘ v) (f ∘ l) := by |
| 183 | ext a b |
| 184 | simp [rowShear, RingHom.map_mulVec, map_inclMatrix, |
| 185 | vecMulVec_apply, Matrix.one_apply, apply_ite f] |
| 186 | |
| 187 | /-- If `tᵀ e = e sᵀ` for `e = inclMatrix R ι = (1, 0)ᵀ`, the first block of `t` is `s`. -/ |
| 188 | lemma submatrix_eq_of_transpose_mul_inclMatrix [DecidableEq r] |
| 189 | {ι : r ↪ n} {t : Matrix n n R} {s : Matrix r r R} |
| 190 | (hts : tᵀ * inclMatrix R ι = inclMatrix R ι * sᵀ) : t.submatrix ι ι = s := by |
| 191 | have h_block : (tᵀ * inclMatrix R ι).submatrix ι id = sᵀ := by |
| 192 | simp [hts, ← inclMatrix_transpose_mul, ← Matrix.mul_assoc] |
| 193 | exact transpose_injective (by simpa [mul_inclMatrix] using h_block) |
| 194 | |
| 195 | /-- If `tᵀ e = e sᵀ` for `e = inclMatrix R ι = (1, 0)ᵀ`, the upper right block of `t` is zero. -/ |
| 196 | lemma apply_eq_zero_of_transpose_mul_inclMatrix {ι : r ↪ n} {t : Matrix n n R} {s : Matrix r r R} |
| 197 | (hts : tᵀ * inclMatrix R ι = inclMatrix R ι * sᵀ) (a : r) {b : n} (hb : b ∉ Set.range ι) : |
| 198 | t (ι a) b = 0 := |
| 199 | calc t (ι a) b = (inclMatrix R ι * sᵀ) b a := by simp [← hts, mul_inclMatrix] |
| 200 | _ = 0 := by simp [Matrix.mul_apply, inclMatrix_apply_of_notMem_range ι hb] |
| 201 | |
| 202 | end Blocks |
| 203 | |
| 204 | section Hyperplane |
| 205 | |
| 206 | variable {k r : Type} [Field k] [Fintype r] [DecidableEq r] |
| 207 | |
| 208 | /-- An element `s : GL r k` lies in `hyperplaneGroup l` if and only if |
| 209 | `(s : Matrix r r k)` has the form `1 + vecMulVec v l` for some `v`. -/ |
| 210 | lemma mem_hyperplaneGroup {l : r → k} {s : GL r k} : |
| 211 | s ∈ hyperplaneGroup l ↔ ∃ v : r → k, (s : Matrix r r k) = 1 + vecMulVec v l := .rfl |
| 212 | |
| 213 | /-- Over a finite field the group of the invertible `1 + v λ` is finite. -/ |
| 214 | instance [Finite k] (l : r → k) : Fintype (hyperplaneGroup l) := .ofFinite _ |
| 215 | |
| 216 | /-- If the row `λ = l` is not zero and `χ ≠ 1`, the sum of `χ(det s)⁻¹` over the invertible matrices |
| 217 | `s = 1 + v λ` is zero. -/ |
| 218 | lemma sum_inv_det_hyperplaneGroup_eq_zero [Finite k] {χ : MulChar k ℂ} (hχ : χ ≠ 1) {l : r → k} |
| 219 | (hl : l ≠ 0) : ∑ s : hyperplaneGroup l, χ⁻¹ ((s : GL r k) : Matrix r r k).det = 0 := by |
| 220 | -- The determinant `1 + λ v` is a homomorphism onto `kˣ`, so `χ⁻¹ ∘ det` is not trivial. |
| 221 | let f : hyperplaneGroup l →* ℂ := χ⁻¹.toMonoidHom.comp |
| 222 | (detMonoidHom.comp ((Units.coeHom (Matrix r r k)).comp (hyperplaneGroup l).subtype)) |
| 223 | have f_apply (s : hyperplaneGroup l) : f s = χ⁻¹ ((s : GL r k) : Matrix r r k).det := rfl |
| 224 | refine sum_hom_units_eq_zero f fun hf : f = 1 ↦ ?_ |
| 225 | obtain ⟨τ, hτ⟩ : ∃ τ : kˣ, χ⁻¹ τ ≠ 1 := MulChar.ne_one_iff.1 (inv_ne_one.2 hχ) |
| 226 | obtain ⟨b, hb⟩ : ∃ b : r, l b ≠ 0 := Function.ne_iff.1 hl |
| 227 | let v : r → k := Pi.single b ((τ.val - 1) / l b) |
| 228 | have h_det : (1 + vecMulVec v l).det = τ := by |
| 229 | simp [vecMulVec_eq Unit, det_one_add_replicateCol_mul_replicateRow, v, mul_div_cancel₀ _ hb] |
| 230 | let s : hyperplaneGroup l := ⟨.mk'' (1 + vecMulVec v l) (by simp [h_det]), v, rfl⟩ |
| 231 | have hs : f s = χ⁻¹ τ := by rw [f_apply, GeneralLinearGroup.val_mk'', h_det] |
| 232 | exact hτ (by simp [← hs, hf]) |
| 233 | |
| 234 | open scoped Classical in |
| 235 | /-- The hyperplane sum `hyperplaneSum χ l` has the coefficient `χ(det s)⁻¹` at the invertible |
| 236 | matrices `s = 1 + v λ` for the row `λ = l`, and `0` elsewhere. -/ |
| 237 | lemma coeff_hyperplaneSum_eq_ite [Finite k] (χ : MulChar k ℂ) (l : r → k) (s : GL r k) : |
| 238 | (hyperplaneSum χ l).coeff s = |
| 239 | if s ∈ hyperplaneGroup l then χ⁻¹ (s : Matrix r r k).det else 0 := by |
| 240 | simp [hyperplaneSum, mem_hyperplaneGroup] |
| 241 | |
| 242 | /-- The hyperplane sum `∑ χ(det s)⁻¹ s` over the invertible `s = 1 + v λ` is `1` for the zero row |
| 243 | `λ = 0`. -/ |
| 244 | lemma hyperplaneSum_zero [Finite k] (χ : MulChar k ℂ) : hyperplaneSum χ (0 : r → k) = 1 := by |
| 245 | ext s |
| 246 | obtain rfl | hs := eq_or_ne s 1 |
| 247 | · simp [hyperplaneSum] |
| 248 | · simp [hyperplaneSum, hs, MonoidAlgebra.one_def] |
| 249 | |
| 250 | /-- In a representation `σ`, the hyperplane sum of a row `λ = l` acts as `∑ χ(det s)⁻¹ σ(s)` over |
| 251 | the invertible matrices `s = 1 + v λ`. -/ |
| 252 | lemma asAlgebraHom_hyperplaneSum [Finite k] {V : Type*} [AddCommGroup V] [Module ℂ V] |
| 253 | (σ : Representation ℂ (GL r k) V) (χ : MulChar k ℂ) (l : r → k) (y : V) : |
| 254 | σ.asAlgebraHom (hyperplaneSum χ l) y = |
| 255 | ∑ s : hyperplaneGroup l, χ⁻¹ ((s : GL r k) : Matrix r r k).det • σ (s : GL r k) y := by |
| 256 | classical |
| 257 | let : Fintype (GL r k) := .ofFinite _ |
| 258 | calc _ = ∑ s : GL r k, (hyperplaneSum χ l).coeff s • σ s y := by |
| 259 | simp [Representation.asAlgebraHom_eq_sum] |
| 260 | _ = ∑ s : GL r k with s ∈ hyperplaneGroup l, χ⁻¹ (s : Matrix r r k).det • σ s y := by |
| 261 | simp [coeff_hyperplaneSum_eq_ite, sum_filter] |
| 262 | _ = _ := sum_subtype _ (fun s ↦ mem_filter_univ s) _ |
| 263 | |
| 264 | end Hyperplane |
| 265 | |
| 266 | section Covered |
| 267 | |
| 268 | variable {E r n : Type} [Field E] [NumberField E] [Fintype r] [DecidableEq r] [Fintype n] |
| 269 | [DecidableEq n] {w : FinPlace E} {ι : r ↪ n} {chosen : Prop} {x : Matrix n r (LocField w)} |
| 270 | |
| 271 | /-- Let `x'` be the square block of the rows `ι` of `x`, and `x''` the block of the other rows. The |
| 272 | matrix `x` has an integral block ratio if `x'` is invertible and `x'' x'⁻¹` is integral, and also |
| 273 | `≡ 0` modulo `w` if the proposition `chosen` holds. In the applications `chosen` says that `w` is a |
| 274 | chosen place. Here `v` is the valuation at `w`. -/ |
| 275 | structure HasIntegralBlockRatio (ι : r ↪ n) (chosen : Prop) (x : Matrix n r (LocField w)) : |
| 276 | Prop where |
| 277 | /-- The block `x'` is invertible. -/ |
| 278 | isUnit_det : IsUnit (x.submatrix ι id).det |
| 279 | /-- The matrix `x'' x'⁻¹` is integral. -/ |
| 280 | valuation_le_one : ∀ a : n, a ∉ Set.range ι → ∀ b : r, v ((x * (x.submatrix ι id)⁻¹) a b) ≤ 1 |
| 281 | /-- At a chosen place `x'' x'⁻¹` is `≡ 0` modulo `w`. -/ |
| 282 | valuation_lt_one : chosen → ∀ a : n, a ∉ Set.range ι → ∀ b : r, |
| 283 | v ((x * (x.submatrix ι id)⁻¹) a b) < 1 |
| 284 | |
| 285 | /-- An integral row `l = (λ, λ')` with `λ x' + λ' x'' = 0`, with `λ ≢ 0` modulo `w`, and with |
| 286 | `λ' ≡ 0` modulo `w` unless `chosen` holds. Here `λ` and `x'` are the entries of `l` and the rows of |
| 287 | `x` indexed by `ι`, and `λ'` and `x''` are the others. -/ |
| 288 | structure IsAnnihilatingRow (ι : r ↪ n) (chosen : Prop) (x : Matrix n r (LocField w)) |
| 289 | (l : n → LocInt w) : Prop where |
| 290 | /-- The row annihilates `x`. -/ |
| 291 | vecMul_eq_zero : (fun a : n ↦ (l a).val) ᵥ* x = 0 |
| 292 | /-- The part `λ` of the row is not zero modulo `w`. -/ |
| 293 | residue_ne_zero : (fun b : r ↦ residue (LocInt w) (l (ι b))) ≠ 0 |
| 294 | /-- At a place that is not chosen the part `λ'` of the row is zero modulo `w`. -/ |
| 295 | residue_eq_zero : ¬chosen → ∀ a : n, a ∉ Set.range ι → residue (LocInt w) (l a) = 0 |
| 296 | |
| 297 | omit [Fintype r] [DecidableEq r] [DecidableEq n] in |
| 298 | /-- Let a row `μ` annihilate `x` and have a nonzero entry of largest modulus at an index `ι b`, |
| 299 | strictly larger than the entries outside `ι` unless `chosen` holds; the modulus is the valuation |
| 300 | `v` at `w`. Dividing `μ` by this entry gives an annihilating row: an integral row `l` with |
| 301 | `l x = 0`, nonzero modulo `w` on `ι`, and zero modulo `w` outside `ι` unless `chosen` holds. -/ |
| 302 | lemma exists_isAnnihilatingRow_of_max {μ : n → LocField w} (hμ : μ ᵥ* x = 0) {b : r} |
| 303 | (h_ne : μ (ι b) ≠ 0) (h_max : ∀ a : n, v (μ a) ≤ v (μ (ι b))) |
| 304 | (h_lt : ¬chosen → ∀ a : n, a ∉ Set.range ι → v (μ a) < v (μ (ι b))) : |
| 305 | ∃ l : n → LocInt w, IsAnnihilatingRow ι chosen x l := by |
| 306 | have h_pos : 0 < v (μ (ι b)) := (Valuation.pos_iff _).2 h_ne |
| 307 | let l (a : n) : LocInt w := ⟨μ a / μ (ι b), by simp [mem_LocInt, div_le_one₀ h_pos, h_max]⟩ |
| 308 | refine ⟨l, ?_, fun h_zero ↦ ?_, fun h_not a ha ↦ ?_⟩ |
| 309 | · have h_row : (fun a : n ↦ (l a).val) = (μ (ι b))⁻¹ • μ := funext fun a ↦ div_eq_inv_mul _ _ |
| 310 | rw [h_row, smul_vecMul, hμ, smul_zero] |
| 311 | · have h_one : l (ι b) = 1 := Subtype.ext (div_self h_ne) |
| 312 | simpa [h_one] using congrFun h_zero b |
| 313 | · have h_small : v (l a).val < 1 := by simpa [l, div_lt_one₀ h_pos] using h_lt h_not a ha |
| 314 | rw [← residueOrZero_coe, residueOrZero_eq_zero.2 h_small.ne] |
| 315 | |
| 316 | /-- If the block `x'` of the rows `ι` of `x` is singular, then `x` has an annihilating row: an |
| 317 | integral row `l` with `l x = 0`, nonzero modulo `w` on `ι`, and zero modulo `w` outside `ι` unless |
| 318 | `chosen` holds. -/ |
| 319 | lemma exists_isAnnihilatingRow_of_det_eq_zero (h_det : (x.submatrix ι id).det = 0) : |
| 320 | ∃ l : n → LocInt w, IsAnnihilatingRow ι chosen x l := by |
| 321 | -- Take the row `(λ, 0)` with `λ ≠ 0` and `λ x' = 0`, and an entry of `λ` of largest modulus. |
| 322 | obtain ⟨lam, h_ne, h_ann⟩ : ∃ lam : r → LocField w, lam ≠ 0 ∧ lam ᵥ* x.submatrix ι id = 0 := |
| 323 | exists_vecMul_eq_zero_iff.2 h_det |
| 324 | obtain ⟨b₀, hb₀⟩ : ∃ b₀ : r, lam b₀ ≠ 0 := Function.ne_iff.1 h_ne |
| 325 | have : Nonempty r := ⟨b₀⟩ |
| 326 | obtain ⟨b, h_max⟩ : ∃ b : r, ∀ c : r, v (lam c) ≤ v (lam b) := Finite.exists_max _ |
| 327 | have h_pos : 0 < v (lam b) := ((Valuation.pos_iff _).2 hb₀).trans_le (h_max b₀) |
| 328 | let μ : n → LocField w := inclMatrix (LocField w) ι *ᵥ lam |
| 329 | have μ_apply (c : r) : μ (ι c) = lam c := inclMatrix_mulVec_apply_embedding ι lam c |
| 330 | have μ_lt (a : n) (ha : a ∉ Set.range ι) : v (μ a) < v (μ (ι b)) := by |
| 331 | simpa [μ_apply, μ, inclMatrix_mulVec_apply_of_notMem_range ι lam ha] using h_pos |
| 332 | refine exists_isAnnihilatingRow_of_max (by rw [inclMatrix_mulVec_vecMul, h_ann]) ?_ |
| 333 | (fun a ↦ ?_) fun _ ↦ μ_lt |
| 334 | · simpa only [μ_apply] using (Valuation.pos_iff _).1 h_pos |
| 335 | · grind |
| 336 | |
| 337 | /-- Let the block `x'` of the rows `ι` of `x` be invertible, and let `x x'⁻¹` have, in a row `a` |
| 338 | outside `ι`, an entry of valuation `v ≥ 1` at `w`, and `v > 1` unless `chosen` holds. Then `x` has |
| 339 | an annihilating row: an integral row `l` with `l x = 0`, nonzero modulo `w` on `ι`, and zero modulo |
| 340 | `w` outside `ι` unless `chosen` holds. -/ |
| 341 | lemma exists_isAnnihilatingRow_of_one_le (h_unit : IsUnit (x.submatrix ι id).det) {a : n} |
| 342 | (ha : a ∉ Set.range ι) {b₀ : r} (h_ge : 1 ≤ v ((x * (x.submatrix ι id)⁻¹) a b₀)) |
| 343 | (h_gt : ¬chosen → 1 < v ((x * (x.submatrix ι id)⁻¹) a b₀)) : |
| 344 | ∃ l : n → LocInt w, IsAnnihilatingRow ι chosen x l := by |
| 345 | -- The row `a` of the matrix `(x'' x'⁻¹, -1)` annihilates `x`, and it has an entry of largest |
| 346 | -- modulus in the first block. |
| 347 | let y : Matrix n r (LocField w) := x * (x.submatrix ι id)⁻¹ |
| 348 | have : Nonempty r := ⟨b₀⟩ |
| 349 | obtain ⟨b, h_max⟩ : ∃ b : r, ∀ c : r, v (y a c) ≤ v (y a b) := Finite.exists_max _ |
| 350 | replace h_ge : 1 ≤ v (y a b) := h_ge.trans (h_max b₀) |
| 351 | replace h_gt (h_not : ¬chosen) : 1 < v (y a b) := (h_gt h_not).trans_le (h_max b₀) |
| 352 | let μ : n → LocField w := inclMatrix (LocField w) ι *ᵥ y a - Pi.single a 1 |
| 353 | have hμ : μ ᵥ* x = 0 := by |
| 354 | have h_mul : y * x.submatrix ι id = x := nonsing_inv_mul_cancel_right _ x h_unit |
| 355 | rw [sub_vecMul, inclMatrix_mulVec_vecMul, single_one_vecMul, sub_eq_zero] |
| 356 | exact congrFun h_mul a |
| 357 | have μ_apply (c : r) : μ (ι c) = y a c := by |
| 358 | have h_ne : ι c ≠ a := fun h ↦ ha ⟨c, h⟩ |
| 359 | simp [μ, inclMatrix_mulVec_apply_embedding, h_ne] |
| 360 | have μ_le (c : n) (hc : c ∉ Set.range ι) : v (μ c) ≤ 1 := by |
| 361 | obtain rfl | h := eq_or_ne c a <;> simp [μ, inclMatrix_mulVec_apply_of_notMem_range ι _ hc, *] |
| 362 | refine exists_isAnnihilatingRow_of_max (b := b) hμ ?_ (fun c ↦ ?_) fun h_not c hc ↦ ?_ |
| 363 | · simpa only [μ_apply] using (Valuation.pos_iff _).1 (zero_lt_one.trans_le h_ge) |
| 364 | · grind |
| 365 | · simpa only [μ_apply] using (μ_le c hc).trans_lt (h_gt h_not) |
| 366 | |
| 367 | /-- **Points without an integral block ratio.** If `x` has no integral block ratio, there is an |
| 368 | integral row `(λ, λ')` with `λ x' + λ' x'' = 0`, `λ ≢ 0` modulo `w`, and `λ' ≡ 0` modulo `w` unless |
| 369 | `chosen` holds. -/ |
| 370 | lemma exists_isAnnihilatingRow_of_not_hasIntegralBlockRatio |
| 371 | (hx : ¬HasIntegralBlockRatio ι chosen x) : |
| 372 | ∃ l : n → LocInt w, IsAnnihilatingRow ι chosen x l := by |
| 373 | by_cases h_det : (x.submatrix ι id).det = 0 |
| 374 | · exact exists_isAnnihilatingRow_of_det_eq_zero h_det |
| 375 | let y : Matrix n r (LocField w) := x * (x.submatrix ι id)⁻¹ |
| 376 | by_cases! h_int : ∀ a : n, a ∉ Set.range ι → ∀ b : r, v (y a b) ≤ 1 |
| 377 | · -- The matrix `x'' x'⁻¹` is integral, so `w` is chosen and some entry has modulus `≥ 1`. |
| 378 | obtain ⟨h_chosen, a, ha, b, h_ge⟩ : |
| 379 | chosen ∧ ∃ a : n, a ∉ Set.range ι ∧ ∃ b : r, 1 ≤ v (y a b) := by |
| 380 | by_contra! h_small |
| 381 | exact hx ⟨Ne.isUnit h_det, h_int, h_small⟩ |
| 382 | exact exists_isAnnihilatingRow_of_one_le (Ne.isUnit h_det) ha h_ge (absurd h_chosen) |
| 383 | · obtain ⟨a, ha, b, h_gt⟩ := h_int |
| 384 | exact exists_isAnnihilatingRow_of_one_le (Ne.isUnit h_det) ha h_gt.le fun _ ↦ h_gt |
| 385 | |
| 386 | end Covered |
| 387 | |
| 388 | open scoped Classical in |
| 389 | /-- Let `U 0 ≥ U 1 ≥ …` be subgroups, so that two cosets `x + U i` are nested or disjoint. A |
| 390 | function that is constant on finitely many such cosets `x + U (i x)`, `x ∈ F`, and vanishes off |
| 391 | their union lies in every subspace `P` that contains their indicators. -/ |
| 392 | lemma mem_of_nested_cosets {X : Type*} [AddCommGroup X] {U : ℕ → AddSubgroup X} (hU : Antitone U) |
| 393 | (i : X → ℕ) (P : Submodule ℂ (X → ℂ)) (F : Finset X) |
| 394 | (h_mem : ∀ x ∈ F, (fun y : X ↦ if y - x ∈ U (i x) then (1 : ℂ) else 0) ∈ P) {Ψ : X → ℂ} |
| 395 | (h_const : ∀ x ∈ F, ∀ y : X, y - x ∈ U (i x) → Ψ y = Ψ x) |
| 396 | (h_supp : ∀ y : X, Ψ y ≠ 0 → ∃ x ∈ F, y - x ∈ U (i x)) : Ψ ∈ P := by |
| 397 | -- Remove a largest coset `a + U (i a)`; each of the others lies in it or is disjoint from it. |
| 398 | induction F using Finset.induction_on_min_value i generalizing Ψ with |
| 399 | | empty => |
| 400 | obtain rfl : Ψ = 0 := funext fun y ↦ by simpa using h_supp y |
| 401 | exact P.zero_mem |
| 402 | | insert a F _ h_min ih => |
| 403 | let C (y : X) : ℂ := if y - a ∈ U (i a) then 1 else 0 |
| 404 | have h_rest : Ψ - Ψ a • C ∈ P := by |
| 405 | refine ih (fun x hx ↦ h_mem x (mem_insert_of_mem hx)) (fun x hx y hy ↦ ?_) fun y hy ↦ ?_ |
| 406 | · have h_diff : y - x ∈ U (i a) := hU (h_min x hx) hy |
| 407 | have h_iff : y - a ∈ U (i a) ↔ x - a ∈ U (i a) := by |
| 408 | rw [← sub_add_sub_cancel y x a, add_mem_cancel_left h_diff] |
| 409 | have hC_eq : C y = C x := if_congr h_iff rfl rfl |
| 410 | simp [hC_eq, h_const x (mem_insert_of_mem hx) y hy] |
| 411 | · have h_out : y - a ∉ U (i a) := fun h_in ↦ by |
| 412 | simp [C, h_in, h_const a (mem_insert_self a F) y h_in] at hy |
| 413 | have h_ne : Ψ y ≠ 0 := by simpa [C, h_out] using hy |
| 414 | obtain ⟨x, hx, hxy⟩ : ∃ x ∈ insert a F, y - x ∈ U (i x) := h_supp y h_ne |
| 415 | have hxa : x ≠ a := fun h_eq ↦ h_out (by rwa [h_eq] at hxy) |
| 416 | exact ⟨x, mem_of_mem_insert_of_ne hx hxa, hxy⟩ |
| 417 | rw [← sub_add_cancel Ψ (Ψ a • C)] |
| 418 | exact P.add_mem h_rest (P.smul_mem (Ψ a) (h_mem a (mem_insert_self a F))) |
| 419 | |
| 420 | /-- Let a vector `f` have finitely many translates under a group `J`. There is a vector `f₁`, the |
| 421 | mean of these translates, that is invariant under `J` and such that `L f₁ = c` for every linear form |
| 422 | `L` with the constant value `c` on the translates. -/ |
| 423 | lemma exists_fixed_forall_linearMap_eq_of_finite {J V : Type*} [Group J] [AddCommGroup V] |
| 424 | [Module ℂ V] (ρ : Representation ℂ J V) {f : V} (h_fin : (Set.range fun h : J ↦ ρ h f).Finite) : |
| 425 | ∃ f₁ : V, (∀ h : J, ρ h f₁ = f₁) ∧ |
| 426 | ∀ (L : V →ₗ[ℂ] ℂ) (c : ℂ), (∀ h : J, L (ρ h f) = c) → L f₁ = c := by |
| 427 | let T : Finset V := h_fin.toFinset |
| 428 | have mem_T {u : V} : u ∈ T ↔ ∃ h : J, ρ h f = u := h_fin.mem_toFinset |
| 429 | have h_card : (#T : ℂ) ≠ 0 := mod_cast card_ne_zero.2 ⟨ρ 1 f, mem_T.2 ⟨1, rfl⟩⟩ |
| 430 | have h_maps (g : J) : ∀ u ∈ T, ρ g u ∈ T := by |
| 431 | simpa [mem_T] using fun k : J ↦ ⟨g * k, by simp⟩ |
| 432 | refine ⟨(#T : ℂ)⁻¹ • ∑ u ∈ T, u, fun h ↦ ?_, fun L c hL ↦ ?_⟩ |
| 433 | · -- `ρ h` permutes the translates, with inverse `ρ h⁻¹`. |
| 434 | have h_perm : ∑ u ∈ T, ρ h u = ∑ u ∈ T, u := |
| 435 | sum_nbij' (ρ h) (ρ h⁻¹) (h_maps h) (h_maps h⁻¹) (by simp) (by simp) (by simp) |
| 436 | rw [map_smul, map_sum, h_perm] |
| 437 | · have h_term : ∀ u ∈ T, L u = c := by simpa [mem_T] using hL |
| 438 | simp [map_sum, sum_eq_card_nsmul h_term, h_card] |
| 439 | |
| 440 | section SmallCosets |
| 441 | |
| 442 | variable {E m : Type} [Field E] [CMType E] {S : Set (FinPlace E)} |
| 443 | |
| 444 | variable (E) in |
| 445 | /-- The finite idele `i!`. The quotient of each of these ideles by the one before is integral, and |
| 446 | they tend to `0` at every finite place, like the powers of a uniformiser at one place. -/ |
| 447 | def factorialIdele (i : ℕ) : (𝔸f E)ˣ := (isUnit_natCast_finAdele (E := E) i.factorial_ne_zero).unit |
| 448 | |
| 449 | variable (E) in |
| 450 | /-- Coercing `factorialIdele E i` to `𝔸f E` equals `i.factorial`. -/ |
| 451 | lemma val_factorialIdele (i : ℕ) : (factorialIdele E i : 𝔸f E) = i.factorial := rfl |
| 452 | |
| 453 | variable (m S) in |
| 454 | /-- The finite adelic vectors `x` that are `≡ 0` modulo `i!` at the places of `S`, that is, such |
| 455 | that `(i!)⁻¹ x` lies in `integralBox m S`, the vectors integral at these places. -/ |
| 456 | def factorialBox (i : ℕ) : AddSubgroup (m → 𝔸f E) := |
| 457 | (integralBox m S).comap (smulAddHom (𝔸f E) (m → 𝔸f E) (factorialIdele E i)⁻¹.val) |
| 458 | |
| 459 | /-- A vector `x` is `≡ 0` modulo `i!` at `S` if and only if `(i!)⁻¹ x` lies in `integralBox m S`, |
| 460 | the group of the vectors that are integral at every place of `S`. -/ |
| 461 | lemma mem_factorialBox {i : ℕ} {x : m → 𝔸f E} : |
| 462 | x ∈ factorialBox m S i ↔ (factorialIdele E i)⁻¹.val • x ∈ integralBox m S := .rfl |
| 463 | |
| 464 | /-- A vector is `≡ 0` modulo `i!` at `S` if and only if its part at `S` is `i!` times an element of |
| 465 | `stdLattice E m`, the vectors that are integral at every finite place; `idem S` is the adele that is |
| 466 | `1` at the places of `S` and `0` elsewhere. -/ |
| 467 | lemma mem_factorialBox_iff_exists {i : ℕ} {x : m → 𝔸f E} : |
| 468 | x ∈ factorialBox m S i ↔ ∃ y ∈ stdLattice E m, idem S • x = (i.factorial : 𝔸f E) • y := by |
| 469 | let t : (𝔸f E)ˣ := factorialIdele E i |
| 470 | have h_def : x ∈ factorialBox m S i ↔ idem S • t⁻¹.val • x ∈ stdLattice E m := mem_factorialBox |
| 471 | rw [h_def, ← val_factorialIdele, smul_comm] |
| 472 | refine ⟨fun h_mem ↦ ⟨t⁻¹.val • idem S • x, h_mem, by simp [smul_smul, t]⟩, ?_⟩ |
| 473 | rintro ⟨y, hy, h_eq⟩ |
| 474 | rwa [h_eq, smul_smul, t.inv_mul, one_smul] |
| 475 | |
| 476 | /-- The set `factorialBox m S i` is open in `m → 𝔸f E`. -/ |
| 477 | lemma isOpen_factorialBox [Fintype m] (i : ℕ) : IsOpen (factorialBox m S i : Set (m → 𝔸f E)) := |
| 478 | (isOpen_integralBox (S := S)).preimage (continuous_const_smul (factorialIdele E i)⁻¹.val) |
| 479 | |
| 480 | open scoped Classical in |
| 481 | /-- The function `cosetIndicator S (i!) x` is the indicator of the class of `x` modulo `i!` at the |
| 482 | places of `S`. -/ |
| 483 | lemma cosetIndicator_factorialIdele (i : ℕ) (x : m → 𝔸f E) : |
| 484 | cosetIndicator S (factorialIdele E i) x = |
| 485 | fun y : m → 𝔸f E ↦ if y - x ∈ factorialBox m S i then 1 else 0 := |
| 486 | funext fun _ ↦ if_congr mem_factorialBox.symm rfl rfl |
| 487 | |
| 488 | /-- The indicator of the class of `q` modulo `i!` at the places of `S` depends on `q` in a locally |
| 489 | constant way. -/ |
| 490 | lemma isLocallyConstant_cosetIndicator_factorialIdele [Fintype m] (i : ℕ) : |
| 491 | IsLocallyConstant fun q : m → 𝔸f E ↦ cosetIndicator S (factorialIdele E i) q := by |
| 492 | classical |
| 493 | refine (IsLocallyConstant.iff_eventually_eq _).2 fun q ↦ ?_ |
| 494 | have h_near : ∀ᶠ q' : m → 𝔸f E in nhds q, q' - q ∈ factorialBox m S i := |
| 495 | ((isOpen_factorialBox i).preimage (continuous_sub_right q)).mem_nhds (by simp) |
| 496 | filter_upwards [h_near] with q' hq' |
| 497 | have h_iff (y : m → 𝔸f E) : y - q' ∈ factorialBox m S i ↔ y - q ∈ factorialBox m S i := by |
| 498 | rw [← sub_add_sub_cancel y q' q, add_mem_cancel_right hq'] |
| 499 | simp only [cosetIndicator_factorialIdele, h_iff] |
| 500 | |
| 501 | /-- For `i ≤ j`, a vector that is `≡ 0` modulo `j!` at the places of `S` is `≡ 0` modulo `i!`. -/ |
| 502 | lemma antitone_factorialBox : Antitone (factorialBox m S) := by |
| 503 | intro i j hij x hx |
| 504 | obtain ⟨y, hy, h_eq⟩ := mem_factorialBox_iff_exists.1 hx |
| 505 | obtain ⟨c, hc⟩ : i.factorial ∣ j.factorial := Nat.factorial_dvd_factorial hij |
| 506 | refine mem_factorialBox_iff_exists.2 ⟨c • y, nsmul_mem hy c, ?_⟩ |
| 507 | rw [h_eq, hc, Nat.cast_mul, mul_smul, Nat.cast_smul_eq_nsmul _ c] |
| 508 | |
| 509 | end SmallCosets |
| 510 | |
| 511 | namespace IsSchwartzBruhat |
| 512 | |
| 513 | variable {E m : Type} [Field E] [CMType E] [Fintype m] [DecidableEq m] |
| 514 | {S : Set (FinPlace E)} (Ψ : (m → 𝔸f E) → ℂ) [hΨ : IsSchwartzBruhat S Ψ] |
| 515 | |
| 516 | /-- Let `Ψ` be a Schwartz–Bruhat function of the components at `S`. For large `i` it is constant on |
| 517 | the class `x + factorialBox m S i` of `x` modulo `i!` at the places of `S`. -/ |
| 518 | lemma eventually_const (x : m → 𝔸f E) : |
| 519 | ∀ᶠ i : ℕ in atTop, ∀ y : m → 𝔸f E, y - x ∈ factorialBox m S i → Ψ y = Ψ x := by |
| 520 | -- A multiple `N Ô^m` of the standard lattice lies in the neighbourhood of `0` on which |
| 521 | -- `Ψ(· + idem S • x)` is constant, and `N ∣ i!` for `i ≥ N`. |
| 522 | have h_nhds : {u : m → 𝔸f E | Ψ (u + idem S • x) = Ψ (0 + idem S • x)} ∈ nhds 0 := |
| 523 | (hΨ.comp_add (idem S • x)).locally_constant.eventually_eq 0 |
| 524 | obtain ⟨N, hN, h_small⟩ : ∃ N : ℕ, N ≠ 0 ∧ ∀ u ∈ (stdLattice E m : Set (m → 𝔸f E)), |
| 525 | Ψ ((N : 𝔸f E) • u + idem S • x) = Ψ (0 + idem S • x) := |
| 526 | exists_natCast_smul_mem_of_isCompact E stdLattice.isCompact_stdLattice h_nhds |
| 527 | filter_upwards [eventually_ge_atTop N] with i hi y hy |
| 528 | obtain ⟨u, hu, h_eq⟩ : ∃ u ∈ stdLattice E m, idem S • (y - x) = (i.factorial : 𝔸f E) • u := |
| 529 | mem_factorialBox_iff_exists.1 hy |
| 530 | obtain ⟨c, hc⟩ : N ∣ i.factorial := Nat.dvd_factorial (Nat.pos_of_ne_zero hN) hi |
| 531 | have h_sum : (N : 𝔸f E) • c • u + idem S • x = idem S • y := by |
| 532 | rw [← Nat.cast_smul_eq_nsmul (𝔸f E), ← mul_smul, ← Nat.cast_mul, ← hc, ← h_eq, ← smul_add, |
| 533 | sub_add_cancel] |
| 534 | calc Ψ y = Ψ ((N : 𝔸f E) • c • u + idem S • x) := by rw [h_sum, hΨ.idem_smul] |
| 535 | _ = Ψ (0 + idem S • x) := h_small (c • u) (nsmul_mem hu c) |
| 536 | _ = Ψ x := by rw [zero_add, hΨ.idem_smul] |
| 537 | |
| 538 | /-- Let `P` be a subspace of functions. If for each point `x` the indicator of the class of `x` |
| 539 | modulo the idele `i!` at the places of `S` lies in `P` for large `i`, then `P` contains every |
| 540 | Schwartz–Bruhat function `Ψ` of the components at `S`. -/ |
| 541 | lemma mem_of_eventually_coset (P : Submodule ℂ ((m → 𝔸f E) → ℂ)) |
| 542 | (h_small : ∀ x : m → 𝔸f E, ∀ᶠ i : ℕ in atTop, cosetIndicator S (factorialIdele E i) x ∈ P) : |
| 543 | Ψ ∈ P := by |
| 544 | have h_level (x : m → 𝔸f E) : ∃ i : ℕ, cosetIndicator S (factorialIdele E i) x ∈ P ∧ |
| 545 | ∀ y : m → 𝔸f E, y - x ∈ factorialBox m S i → Ψ y = Ψ x := |
| 546 | ((h_small x).and (eventually_const Ψ x)).exists |
| 547 | choose i h_mem h_const using h_level |
| 548 | -- Finitely many of the classes of `x` modulo `(i x)!` cover the support of `Ψ`. |
| 549 | obtain ⟨C, hC, h_supp⟩ : |
| 550 | ∃ C : Set (m → 𝔸f E), IsCompact C ∧ ∀ y : m → 𝔸f E, Ψ y ≠ 0 → idem S • y ∈ C := |
| 551 | hΨ.compact_support |
| 552 | let U (x : m → 𝔸f E) : Set (m → 𝔸f E) := {y | y - x ∈ factorialBox m S (i x)} |
| 553 | obtain ⟨F, hF⟩ : ∃ F : Finset (m → 𝔸f E), C ⊆ ⋃ x ∈ F, U x := |
| 554 | hC.elim_finite_subcover U (fun x ↦ (isOpen_factorialBox (i x)).preimage |
| 555 | (continuous_sub_right x)) |
| 556 | fun y _ ↦ Set.mem_iUnion.2 ⟨y, by simp [U]⟩ |
| 557 | simp only [cosetIndicator_factorialIdele] at h_mem |
| 558 | refine mem_of_nested_cosets antitone_factorialBox i P F (fun x _ ↦ h_mem x) (fun x _ ↦ h_const x) |
| 559 | fun y hy ↦ ?_ |
| 560 | obtain ⟨x, hx, hxy⟩ : ∃ x ∈ F, idem S • y ∈ U x := by simpa using hF (h_supp y hy) |
| 561 | -- `y` and `idem S • y` have the same components at `S`. |
| 562 | have h_idem : y - idem S • y ∈ factorialBox m S (i x) := |
| 563 | mem_factorialBox_iff_exists.2 ⟨0, zero_mem _, by simp [smul_sub, smul_smul, idem_mul_self]⟩ |
| 564 | exact ⟨x, hx, by simpa using add_mem h_idem hxy⟩ |
| 565 | |
| 566 | end IsSchwartzBruhat |
| 567 | |
| 568 | namespace DescentPair |
| 569 | |
| 570 | variable {E r n : Type} [Field E] [CMType E] |
| 571 | |
| 572 | /-- The component at `w` of a finite adelic `n × r` matrix. -/ |
| 573 | def matrixAt (w : FinPlace E) (x : n × r → 𝔸f E) : Matrix n r (LocField w) := |
| 574 | (vecToMatrix x).map (evalAt w) |
| 575 | |
| 576 | /-- Evaluating `matrixAt w x` at row `a` and column `b` equals `x (a, b) w`. -/ |
| 577 | lemma matrixAt_apply (w : FinPlace E) (x : n × r → 𝔸f E) (a : n) (b : r) : |
| 578 | matrixAt w x a b = x (a, b) w := rfl |
| 579 | |
| 580 | /-- The component of `x A` at `w` is the product of the components of `x` and `A`. -/ |
| 581 | lemma matrixAt_mul [Fintype r] [DecidableEq r] (w : FinPlace E) (x : n × r → 𝔸f E) (A : Gf E r) : |
| 582 | matrixAt w (matrixToVec (vecToMatrix x * (A : Matrix r r (𝔸f E)))) = |
| 583 | matrixAt w x * (A.atPlace w).val := Matrix.map_mul |
| 584 | |
| 585 | variable [DecidableEq n] |
| 586 | |
| 587 | /-- The component of `(1, 0)ᵀ A` at `w` is `(1, 0)ᵀ` times the component of `A`; the rows `ι` carry |
| 588 | the identity block. -/ |
| 589 | lemma matrixAt_inclMatrix_mul [Fintype r] [DecidableEq r] |
| 590 | (w : FinPlace E) (ι : r ↪ n) (A : Gf E r) : |
| 591 | matrixAt w (matrixToVec (inclMatrix (𝔸f E) ι * (A : Matrix r r (𝔸f E)))) = |
| 592 | inclMatrix (LocField w) ι * (A.atPlace w).val := by |
| 593 | rw [← map_inclMatrix (evalAt w)] |
| 594 | exact Matrix.map_mul |
| 595 | |
| 596 | variable [Fintype n] |
| 597 | |
| 598 | variable (E r n) in |
| 599 | /-- The action `x ↦ h x` of the finite adelic points of `U(V)` on finite adelic `n × r` matrices. -/ |
| 600 | def leftMul : Representation (𝔸f E) (Gf E n) (n × r → 𝔸f E) where |
| 601 | toFun h := |
| 602 | { toFun x := matrixToVec ((h : Matrix n n (𝔸f E)) * vecToMatrix x) |
| 603 | map_add' x y := congrArg matrixToVec (Matrix.mul_add _ (vecToMatrix x) (vecToMatrix y)) |
| 604 | map_smul' c x := congrArg matrixToVec (Matrix.mul_smul _ c (vecToMatrix x)) } |
| 605 | map_one' := LinearMap.ext fun x ↦ congrArg matrixToVec (vecToMatrix x).one_mul |
| 606 | map_mul' h k := LinearMap.ext fun x ↦ congrArg matrixToVec |
| 607 | (Matrix.mul_assoc (h : Matrix n n (𝔸f E)) (k : Matrix n n (𝔸f E)) (vecToMatrix x)) |
| 608 | |
| 609 | /-- `leftMul E r n h x` is `matrixToVec` of the matrix product |
| 610 | `h * vecToMatrix x`. -/ |
| 611 | lemma leftMul_apply (h : Gf E n) (x : n × r → 𝔸f E) : |
| 612 | leftMul E r n h x = matrixToVec ((h : Matrix n n (𝔸f E)) * vecToMatrix x) := rfl |
| 613 | |
| 614 | /-- The component of `h x` at `w` is the product of the components of `h` and `x`. -/ |
| 615 | lemma matrixAt_leftMul (w : FinPlace E) (h : Gf E n) (x : n × r → 𝔸f E) : |
| 616 | matrixAt w (leftMul E r n h x) = (h.atPlace w).val * matrixAt w x := Matrix.map_mul |
| 617 | |
| 618 | /-- For an element `k` of the maximal level and a matrix `x`, `k x` (left multiplication) is |
| 619 | integral at `S` if and only if `x` is. -/ |
| 620 | lemma leftMul_mem_integralBox_iff {S : Set (FinPlace E)} (k : stdLevel E n) {x : n × r → 𝔸f E} : |
| 621 | leftMul E r n k x ∈ integralBox (n × r) S ↔ x ∈ integralBox (n × r) S := by |
| 622 | have h_le (k : stdLevel E n) {x : n × r → 𝔸f E} (hx : x ∈ integralBox (n × r) S) : |
| 623 | leftMul E r n k x ∈ integralBox (n × r) S := by |
| 624 | rintro ⟨a, b⟩ |
| 625 | have h_entry : idem S * leftMul E r n k x (a, b) = |
| 626 | ∑ c : n, (k.val : Matrix n n (𝔸f E)) a c * (idem S * x (c, b)) := by |
| 627 | simp [leftMul_apply, matrixToVec, vecToMatrix, Matrix.mul_apply, mul_sum, mul_left_comm] |
| 628 | refine Set.mem_of_eq_of_mem h_entry (sum_mem (S := Ô E) fun c _ ↦ ?_) |
| 629 | exact mul_mem (mem_stdLevel.1 k.prop a c) (hx (c, b)) |
| 630 | exact ⟨fun h ↦ by simpa using h_le k⁻¹ h, h_le k⟩ |
| 631 | |
| 632 | /-- For `k` in the maximal level `stdLevel E n`, the indicator `cosetIndicator S t z` of the class |
| 633 | of `z` modulo `t` at the places of `S`, evaluated at `k⁻¹ x`, equals `cosetIndicator S t (k z)` |
| 634 | evaluated at `x`. -/ |
| 635 | lemma cosetIndicator_leftMul_inv {S : Set (FinPlace E)} (t : (𝔸f E)ˣ) (k : stdLevel E n) |
| 636 | (z x : n × r → 𝔸f E) : |
| 637 | cosetIndicator S t z (leftMul E r n k.val⁻¹ x) = cosetIndicator S t (leftMul E r n k z) x := by |
| 638 | classical |
| 639 | have h_move : leftMul E r n k (t⁻¹.val • (leftMul E r n k.val⁻¹ x - z)) = |
| 640 | t⁻¹.val • (x - leftMul E r n k z) := by simp |
| 641 | exact if_congr (by rw [← h_move, leftMul_mem_integralBox_iff]) rfl rfl |
| 642 | |
| 643 | /-- An element `k` of the maximal level that fixes the components of `z` at `S` preserves the class |
| 644 | of `z` modulo the idele `t` at the places of `S`. -/ |
| 645 | lemma cosetIndicator_leftMul_inv_of_fixed {S : Set (FinPlace E)} (t : (𝔸f E)ˣ) {k : stdLevel E n} |
| 646 | {z : n × r → 𝔸f E} (h_fix : idem S • leftMul E r n k z = idem S • z) : |
| 647 | (fun x : n × r → 𝔸f E ↦ cosetIndicator S t z (leftMul E r n k.val⁻¹ x)) = |
| 648 | cosetIndicator S t z := by |
| 649 | classical |
| 650 | refine funext fun x ↦ (cosetIndicator_leftMul_inv t k z x).trans (if_congr ?_ rfl rfl) |
| 651 | change idem S • t⁻¹.val • (x - leftMul E r n k z) ∈ stdLattice E (n × r) ↔ |
| 652 | idem S • t⁻¹.val • (x - z) ∈ stdLattice E (n × r) |
| 653 | simp only [smul_comm (idem S) t⁻¹.val, smul_sub (idem S), h_fix] |
| 654 | |
| 655 | variable [Fintype r] [DecidableEq r] {O : DescentPair E r n} |
| 656 | |
| 657 | omit [DecidableEq n] in |
| 658 | /-- Let `O` be a descent pair, with two families of split finite places: the chosen places, indexed |
| 659 | by `O.ChosenIndex`, and the places of a second set `Q`, indexed by `O.TwistIndex`. Invertible |
| 660 | matrices `g j` at these places are the components of a finite adelic point `k` of the unitary group |
| 661 | that is `1` away from them and their conjugates. -/ |
| 662 | lemma exists_atPlace_eq {m : Type*} [Fintype m] [DecidableEq m] |
| 663 | (g : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, GL m (LocField (O.placeAt j))) : |
| 664 | ∃ k ∈ supportedOn m O.places, |
| 665 | ∀ j : O.ChosenIndex ⊕ O.TwistIndex, k.atPlace (O.placeAt j) = g j := by |
| 666 | classical |
| 667 | suffices h_mem : g ∈ (supportedOn m O.places).map (.pi fun j ↦ atPlace (O.placeAt j)) by |
| 668 | simpa [funext_iff] using h_mem |
| 669 | -- It suffices to reach the tuples with one non-trivial entry `g i`; these come from |
| 670 | -- `ofSplitPlace`. |
| 671 | refine Subgroup.pi_mem_of_mulSingle_mem g fun i ↦ ?_ |
| 672 | let k : Gf E m := ofSplitPlace (O.apart.star_ne i i) (g i) |
| 673 | have hk_on : k ∈ supportedOn m O.places := |
| 674 | supportedOn_mono (Set.singleton_subset_iff.2 (Set.mem_range_self i)) |
| 675 | (ofSplitPlace_mem_supportedOn _ (g i)) |
| 676 | -- The other places `O.placeAt j` differ from `O.placeAt i` and from its conjugate. |
| 677 | have hk_other (j) (hj : j ≠ i) : k.atPlace (O.placeAt j) = 1 := |
| 678 | atPlace_ofSplitPlace_of_ne _ (g i) (O.apart.injective.ne hj) (O.apart.star_ne j i) |
| 679 | exact ⟨k, hk_on, Function.eq_update_iff.2 ⟨atPlace_ofSplitPlace _ (g i), hk_other⟩⟩ |
| 680 | |
| 681 | /-- Matrices `τ j` that are invertible over the local integers at the places `O.placeAt j` of `O` |
| 682 | are the components of an element of the maximal level `stdLevel E n`. -/ |
| 683 | lemma exists_stdLevel_atPlace_eq (τ : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 684 | GL n (LocInt (O.placeAt j))) : |
| 685 | ∃ k : stdLevel E n, ∀ j : O.ChosenIndex ⊕ O.TwistIndex, k.val.atPlace (O.placeAt j) = |
| 686 | GeneralLinearGroup.map (LocInt (O.placeAt j)).subtype (τ j) := by |
| 687 | obtain ⟨k, hk_on, hk_at⟩ := exists_atPlace_eq (O := O) fun j ↦ |
| 688 | GeneralLinearGroup.map (LocInt (O.placeAt j)).subtype (τ j) |
| 689 | have hk_int (j) : k.atPlace (O.placeAt j) ∈ localIntGL n (O.placeAt j) := ⟨τ j, (hk_at j).symm⟩ |
| 690 | exact ⟨⟨k, (mem_stdLevel_iff_of_supportedOn hk_on).2 (Set.forall_mem_range.2 hk_int)⟩, hk_at⟩ |
| 691 | |
| 692 | /-- An element `k` of the maximal level `stdLevel E n` lies in `O.levelGroup` if its reductions fix |
| 693 | `inclMatrix O.incl = (1, 0)ᵀ` at the chosen places `O.placeAt (.inl i)`, and at the places |
| 694 | `O.placeAt (.inr i)` of `Q` have zero entries in rows `O.incl` outside the columns `O.incl`. -/ |
| 695 | lemma mem_levelGroup_of_reduceAt {k : stdLevel E n} |
| 696 | (h_chosen : ∀ i : O.ChosenIndex, (stdLevel.reduceAt (O.placeAt (.inl i)) k).val * |
| 697 | inclMatrix (ResField (O.placeAt (.inl i))) O.incl = |
| 698 | inclMatrix (ResField (O.placeAt (.inl i))) O.incl) |
| 699 | (h_twist : ∀ (i : O.TwistIndex) (a : r) (b : n), b ∉ Set.range O.incl → |
| 700 | (stdLevel.reduceAt (O.placeAt (.inr i)) k).val (O.incl a) b = 0) : |
| 701 | k.val ∈ O.levelGroup := by |
| 702 | refine mem_levelOf.2 ⟨k.prop, ?_⟩ |
| 703 | rintro (i | i) - |
| 704 | exacts [mem_stabilizer_col_iff.2 (h_chosen i), (mem_rangeParabolic_iff O.incl).2 (h_twist i)] |
| 705 | |
| 706 | /-- The function `Ψ_bl(· A)`: the block datum of `O` as a function of an adelic `n × r` matrix, |
| 707 | translated on the right by `A`. -/ |
| 708 | def translatedBlockFn (O : DescentPair E r n) (A : Gf E r) (x : n × r → 𝔸f E) : ℂ := |
| 709 | residueDatum O.placeAt O.residueBlockDatum (matrixToVec (vecToMatrix x * (A : Matrix r r (𝔸f E)))) |
| 710 | |
| 711 | /-- The function `residueDatum O.placeAt O.residueBlockDatum`, the block datum Ψ_bl read on finite |
| 712 | adelic matrices through their reductions at the places `O.placeAt`, is Schwartz–Bruhat above |
| 713 | `O.places`. -/ |
| 714 | lemma isSchwartzBruhat_residueDatum_residueBlockDatum : |
| 715 | IsSchwartzBruhat O.places (residueDatum O.placeAt O.residueBlockDatum) := |
| 716 | isSchwartzBruhat_residueDatum O.residueBlockDatum O.apart.star_ne |
| 717 | |
| 718 | instance (A : Gf E r) : IsSchwartzBruhat O.places (O.translatedBlockFn A) := by |
| 719 | -- The map `x ↦ x A` is given by an invertible matrix `T` on the entries of `x`. |
| 720 | let T : GL (n × r) (𝔸f E) := (G.onHom (s := 1) (s' := (1 : n → ℤˣ)) ((1, A), 1)).2⁻¹.val |
| 721 | have h_eq (x : n × r → 𝔸f E) : |
| 722 | residueDatum O.placeAt O.residueBlockDatum (T.val *ᵥ x) = O.translatedBlockFn A x := by |
| 723 | simp [T, translatedBlockFn, onHom_snd_inv_mulVec] |
| 724 | simpa only [h_eq] using (isSchwartzBruhat_residueDatum_residueBlockDatum (O := O)).comp_mulVec T |
| 725 | |
| 726 | /-- The function `Ψ = O.residueBlockDatum` of families `X` of residue matrices is |
| 727 | `∏_{w ∈ Q} χ_w(det X_w')` if `X_w = (1, 0)ᵀ` at all chosen places, and `0` otherwise. Let `τ` lie in |
| 728 | `descentResidueLevel`: it fixes `(1, 0)ᵀ` at the chosen places and is block lower triangular at `Q`. |
| 729 | Then `Ψ(τ X) = c Ψ(X)`, where `c` is the conjugate of |
| 730 | `O.residueLevelChar τ = ∏_{w ∈ Q} χ_w(det τ_w')⁻¹`, with `τ_w'` the block of `τ_w` of the rows and |
| 731 | columns `O.incl`. -/ |
| 732 | lemma residueBlockDatum_mul (τ : descentResidueLevel O.toLevelPlaces O.incl) |
| 733 | (X : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, Matrix n r (ResField (O.placeAt j))) : |
| 734 | (O.residueBlockDatum fun j : O.ChosenIndex ⊕ O.TwistIndex ↦ (τ.val j).val * X j) = |
| 735 | star (O.residueLevelChar τ) * O.residueBlockDatum X := by |
| 736 | classical |
| 737 | -- At a chosen place `τ` fixes `(1, 0)ᵀ`. At a place of `Q` the upper block of `τ X` is `s X'`, |
| 738 | -- where `s` is the first diagonal block of `τ`. |
| 739 | have h_chosen (i : O.ChosenIndex) : (τ.val (.inl i)).val * X (.inl i) = inclMatrix _ O.incl ↔ |
| 740 | X (.inl i) = inclMatrix _ O.incl := by |
| 741 | have h_fix : (τ.val (.inl i)).val * inclMatrix _ O.incl = inclMatrix _ O.incl := |
| 742 | mem_stabilizer_col_iff.1 (τ.prop (.inl i) trivial) |
| 743 | conv_lhs => rw [← h_fix] |
| 744 | exact Matrix.mul_right_inj_of_invertible _ |
| 745 | have h_twist (i : O.TwistIndex) : ((τ.val (.inr i)).val * X (.inr i)).submatrix O.incl id = |
| 746 | (τ.val (.inr i)).val.submatrix O.incl O.incl * (X (.inr i)).submatrix O.incl id := |
| 747 | submatrix_mul_of_mem_rangeParabolic _ (τ.prop (.inr i) trivial) |
| 748 | have h_char : O.residueLevelChar τ = ∏ i : O.TwistIndex, (O.tamePart (O.placeAt (.inr i)))⁻¹ |
| 749 | ((τ.val (.inr i)).val.submatrix O.incl O.incl).det := rfl |
| 750 | simp only [residueBlockDatum, h_chosen, h_twist, h_char, star_prod, MulChar.star_apply', inv_inv, |
| 751 | det_mul, map_mul, prod_mul_distrib, mul_ite, mul_zero] |
| 752 | |
| 753 | section |
| 754 | |
| 755 | omit [DecidableEq n] |
| 756 | |
| 757 | /-- Suppose the component of the adelic matrix `x` at each `O.placeAt j` is a matrix `Z j` over the |
| 758 | local integers. Let `f` be a function of families of residue matrices. Then |
| 759 | `residueDatum O.placeAt f`, which reads `f` on the reductions of a matrix integral at these places, |
| 760 | takes at `x` the value of `f` at the reductions of the `Z j`. -/ |
| 761 | lemma residueDatum_of_eq_map {x : n × r → 𝔸f E} |
| 762 | (f : (∀ j : O.ChosenIndex ⊕ O.TwistIndex, Matrix n r (ResField (O.placeAt j))) → ℂ) |
| 763 | (Z : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, Matrix n r (LocInt (O.placeAt j))) |
| 764 | (hZ : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 765 | matrixAt (O.placeAt j) x = (Z j).map (LocInt (O.placeAt j)).subtype) : |
| 766 | residueDatum O.placeAt f x = |
| 767 | f fun j : O.ChosenIndex ⊕ O.TwistIndex ↦ (Z j).map (residue (LocInt (O.placeAt j))) := by |
| 768 | have h_entry (j : O.ChosenIndex ⊕ O.TwistIndex) (p : n × r) : |
| 769 | x p (O.placeAt j) = (Z j p.1 p.2).val := by |
| 770 | rw [← matrixAt_apply, hZ j, Matrix.map_apply, ValuationSubring.subtype_apply] |
| 771 | rw [residueDatum, ite_eq_left fun j p ↦ by simp [h_entry]] |
| 772 | congr with j a b |
| 773 | change residueOrZero (x (a, b) (O.placeAt j)) = residue _ (Z j a b) |
| 774 | rw [h_entry, residueOrZero_coe] |
| 775 | |
| 776 | /-- Two matrices with the same components at the places of `O` have the same product with the adele |
| 777 | `idem O.places`, which is `1` at these places and `0` elsewhere. -/ |
| 778 | lemma idem_smul_eq_of_matrixAt_eq {x y : n × r → 𝔸f E} |
| 779 | (h_eq : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 780 | matrixAt (O.placeAt j) x = matrixAt (O.placeAt j) y) : |
| 781 | idem O.places • x = idem O.places • y := by |
| 782 | ext ⟨a, b⟩ w : 2 |
| 783 | change idem O.places w * x (a, b) w = idem O.places w * y (a, b) w |
| 784 | obtain ⟨j, rfl⟩ | hw := Classical.em (w ∈ O.places) |
| 785 | · rw [← matrixAt_apply, ← matrixAt_apply (x := y), h_eq j] |
| 786 | · rw [idem_of_notMem hw, zero_mul, zero_mul] |
| 787 | |
| 788 | /-- The components of a matrix that is integral at the places of `O` are integral matrices. -/ |
| 789 | lemma exists_eq_map_of_mem_integralBox {x : n × r → 𝔸f E} (hx : x ∈ integralBox (n × r) O.places) : |
| 790 | ∃ Z : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, Matrix n r (LocInt (O.placeAt j)), |
| 791 | ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 792 | matrixAt (O.placeAt j) x = (Z j).map (LocInt (O.placeAt j)).subtype := |
| 793 | ⟨fun j a b ↦ ⟨x (a, b) (O.placeAt j), idem_mul_mem_Ô.1 (hx (a, b)) _ ⟨j, rfl⟩⟩, fun _ ↦ rfl⟩ |
| 794 | |
| 795 | /-- The function `residueDatum O.placeAt f` vanishes at a matrix `x` that is not integral at some |
| 796 | place of `O`. -/ |
| 797 | lemma residueDatum_of_notMem {x : n × r → 𝔸f E} |
| 798 | (f : (∀ j : O.ChosenIndex ⊕ O.TwistIndex, Matrix n r (ResField (O.placeAt j))) → ℂ) |
| 799 | (hx : x ∉ integralBox (n × r) O.places) : residueDatum O.placeAt f x = 0 := |
| 800 | ite_eq_right fun h_int ↦ hx fun p ↦ idem_mul_mem_Ô.2 (Set.forall_mem_range.2 fun j ↦ h_int j p) |
| 801 | |
| 802 | end |
| 803 | |
| 804 | /-- Let `Ψ = O.translatedBlockFn A`, that is `Ψ(x) = Ψ_bl(x A)`. For `h` in `O.levelGroup` we have |
| 805 | `Ψ(h x) = c Ψ(x)`, where `leftMul` is the action `x ↦ h x` and `c` is the conjugate of |
| 806 | `O.levelChar h = ∏_{w ∈ Q} χ_w(det h')⁻¹`, with `h'` the block of the rows and columns `O.incl` of |
| 807 | the reduction of `h` at `w`. -/ |
| 808 | lemma translatedBlockFn_leftMul (A : Gf E r) (h : O.levelGroup) (x : n × r → 𝔸f E) : |
| 809 | O.translatedBlockFn A (leftMul E r n h x) = star (O.levelChar h) * O.translatedBlockFn A x := by |
| 810 | -- Both sides vanish unless `u = x A` is integral at the places of `O`; then the rule holds for |
| 811 | -- the reductions. |
| 812 | let k : stdLevel E n := ⟨h, levelOf_le_stdLevel h.prop⟩ |
| 813 | let u : n × r → 𝔸f E := matrixToVec (vecToMatrix x * (A : Matrix r r (𝔸f E))) |
| 814 | have h_assoc : matrixToVec (vecToMatrix (leftMul E r n h x) * (A : Matrix r r (𝔸f E))) = |
| 815 | leftMul E r n k u := congrArg matrixToVec (Matrix.mul_assoc _ (vecToMatrix x) _) |
| 816 | rw [translatedBlockFn, translatedBlockFn, h_assoc] |
| 817 | by_cases! hu : u ∉ integralBox (n × r) O.places |
| 818 | · rw [residueDatum_of_notMem _ hu, mul_zero, |
| 819 | residueDatum_of_notMem _ ((leftMul_mem_integralBox_iff k).not.2 hu)] |
| 820 | obtain ⟨Z, hZ⟩ := exists_eq_map_of_mem_integralBox hu |
| 821 | have h_int (j) : ∃ τ : GL n (LocInt (O.placeAt j)), |
| 822 | GeneralLinearGroup.map (LocInt (O.placeAt j)).subtype τ = k.val.atPlace (O.placeAt j) := |
| 823 | mem_stdLevel_iff.1 k.prop (O.placeAt j) |
| 824 | choose τ hτ using h_int |
| 825 | have h_mul (j) : matrixAt (O.placeAt j) (leftMul E r n k u) = |
| 826 | ((τ j).val * Z j).map (LocInt (O.placeAt j)).subtype := by |
| 827 | rw [matrixAt_leftMul, hZ, ← hτ, Matrix.map_mul] |
| 828 | rfl |
| 829 | let τ₀ : descentResidueLevel O.toLevelPlaces O.incl := levelOf.reduction _ _ h |
| 830 | have h_red (j) : |
| 831 | ((τ j).val * Z j).map (residue _) = (τ₀.val j).val * (Z j).map (residue _) := by |
| 832 | have h_at : τ₀.val j = GeneralLinearGroup.map (residue _) (τ j) := |
| 833 | reduceAt_eq_of_atPlace (hτ j).symm |
| 834 | rw [Matrix.map_mul, h_at] |
| 835 | rfl |
| 836 | have h_char : O.levelChar h = O.residueLevelChar τ₀ := rfl |
| 837 | rw [residueDatum_of_eq_map _ Z hZ, residueDatum_of_eq_map _ _ h_mul, funext h_red, h_char] |
| 838 | exact residueBlockDatum_mul τ₀ _ |
| 839 | |
| 840 | /-- Let `u j` be integral `n × r` matrices at the places of `O` that reduce to `(1, 0)ᵀ` at the |
| 841 | chosen places and whose completions `completeColumns O.incl (u j) = (u' 0; u'' 1)` are |
| 842 | invertible. Then some element of the level group of `O` has these completions as its components |
| 843 | at the places of `O`. -/ |
| 844 | private lemma exists_mem_levelGroup_atPlace_eq_completeColumns |
| 845 | {u : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, Matrix n r (LocInt (O.placeAt j))} |
| 846 | (h_chosen : ∀ i : O.ChosenIndex, (u (.inl i)).map (residue _) = inclMatrix _ O.incl) |
| 847 | (h_unit : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, IsUnit (completeColumns O.incl (u j)).det) : |
| 848 | ∃ h : stdLevel E n, h.val ∈ O.levelGroup ∧ ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 849 | h.val.atPlace (O.placeAt j) = GeneralLinearGroup.map (LocInt (O.placeAt j)).subtype |
| 850 | (.mk'' (completeColumns O.incl (u j)) (h_unit j)) := by |
| 851 | obtain ⟨h, h_at⟩ : ∃ h : stdLevel E n, ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 852 | h.val.atPlace (O.placeAt j) = GeneralLinearGroup.map (LocInt (O.placeAt j)).subtype |
| 853 | (.mk'' (completeColumns O.incl (u j)) (h_unit j)) := |
| 854 | exists_stdLevel_atPlace_eq _ |
| 855 | have h_red (j) : |
| 856 | (stdLevel.reduceAt (O.placeAt j) h).val = |
| 857 | completeColumns O.incl ((u j).map (residue _)) := by |
| 858 | rw [reduceAt_eq_of_atPlace (h_at j)] |
| 859 | exact map_completeColumns O.incl (residue _) (u j) |
| 860 | -- The columns `O.incl` of `(u' 0; u'' 1)` are those of `u`, and its upper right block is `0`. |
| 861 | refine ⟨h, mem_levelGroup_of_reduceAt (fun i ↦ ?_) fun i a b hb ↦ ?_, h_at⟩ |
| 862 | · rw [h_red, h_chosen] |
| 863 | exact completeColumns_mul_inclMatrix O.incl _ |
| 864 | · rw [h_red, completeColumns_apply_of_notMem _ _ a hb] |
| 865 | |
| 866 | /-- If the block datum of `O`, translated on the right by `A` (`translatedBlockFn`), is nonzero at |
| 867 | the finite adelic `n × r` matrix `x`, then at the places of `O` the matrix `x` equals `h ι A⁻¹` for |
| 868 | some `h` in the level group of `O`. Here `ι` is the inclusion matrix of `O.incl`, and |
| 869 | multiplication by `idem O.places` keeps only the components at the places of `O`. -/ |
| 870 | lemma exists_leftMul_eq_of_translatedBlockFn_ne_zero {A : Gf E r} {x : n × r → 𝔸f E} |
| 871 | (hx : O.translatedBlockFn A x ≠ 0) : |
| 872 | ∃ h : O.levelGroup, idem O.places • x = idem O.places • leftMul E r n h |
| 873 | (matrixToVec (inclMatrix (𝔸f E) O.incl * ((A⁻¹ : Gf E r) : Matrix r r (𝔸f E)))) := by |
| 874 | classical |
| 875 | -- The point `x A` of the support of the block datum has integral components `u j` at the places |
| 876 | -- of `O`. They are `≡ (1, 0)ᵀ` at the chosen places, and their upper block `u'` is invertible |
| 877 | -- modulo the places of `Q`. |
| 878 | let xA : n × r → 𝔸f E := matrixToVec (vecToMatrix x * (A : Matrix r r (𝔸f E))) |
| 879 | have h_int : xA ∈ integralBox (n × r) O.places := |
| 880 | by_contra fun h ↦ hx (residueDatum_of_notMem O.residueBlockDatum h) |
| 881 | obtain ⟨u, hu⟩ : ∃ u : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, Matrix n r (LocInt (O.placeAt j)), |
| 882 | ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 883 | matrixAt (O.placeAt j) xA = (u j).map (LocInt (O.placeAt j)).subtype := |
| 884 | exists_eq_map_of_mem_integralBox h_int |
| 885 | obtain ⟨h_chosen, h_twist⟩ : |
| 886 | (∀ i : O.ChosenIndex, (u (.inl i)).map (residue _) = inclMatrix _ O.incl) ∧ |
| 887 | ∀ i ∈ (univ : Finset O.TwistIndex), O.tamePart (O.placeAt (.inr i)) |
| 888 | (((u (.inr i)).map (residue _)).submatrix O.incl id).det ≠ 0 := by |
| 889 | rwa [translatedBlockFn, residueDatum_of_eq_map _ u hu, residueBlockDatum, ite_ne_right_iff, |
| 890 | prod_ne_zero_iff] at hx |
| 891 | have h_unit (j) : IsUnit (completeColumns O.incl (u j)).det := by |
| 892 | rw [det_completeColumns, ← isUnit_map_iff (residue (LocInt _)), RingHom.map_det] |
| 893 | change IsUnit (((u j).map (residue _)).submatrix O.incl id).det |
| 894 | obtain i | i := j |
| 895 | · simp only [h_chosen i, submatrix_inclMatrix, det_one, isUnit_one] |
| 896 | · exact MulChar.apply_ne_zero_iff.1 (h_twist i (mem_univ i)) |
| 897 | -- Some `h` in the level group has the components `(u' 0; u'' 1)`, so it carries `(1, 0)ᵀ` to |
| 898 | -- `u j` at each place of `O`. |
| 899 | obtain ⟨h, h_mem, h_at⟩ := exists_mem_levelGroup_atPlace_eq_completeColumns h_chosen h_unit |
| 900 | refine ⟨⟨h, h_mem⟩, idem_smul_eq_of_matrixAt_eq fun j ↦ ?_⟩ |
| 901 | have h_comp : (h.val.atPlace (O.placeAt j)).val = |
| 902 | completeColumns O.incl (matrixAt (O.placeAt j) x * (A.atPlace (O.placeAt j)).val) := by |
| 903 | rw [← matrixAt_mul, hu j, h_at j] |
| 904 | exact map_completeColumns O.incl (LocInt (O.placeAt j)).subtype (u j) |
| 905 | rw [matrixAt_leftMul, matrixAt_inclMatrix_mul, ← Matrix.mul_assoc, h_comp, |
| 906 | completeColumns_mul_inclMatrix, map_inv, Matrix.mul_assoc, Units.mul_inv, Matrix.mul_one] |
| 907 | |
| 908 | /-- The translation `Ψ ↦ c Ψ(h⁻¹ ·)` by an element `h` of the level group of `O`, where `c` is the |
| 909 | conjugate of the level character `O.levelChar h`: the product over the places `w ∈ Q` of |
| 910 | `χ_w(det h_w')⁻¹`, for the first diagonal block `h_w'` of the reduction of `h` at `w`. -/ |
| 911 | def levelTranslate (O : DescentPair E r n) : |
| 912 | Representation ℂ O.levelGroup ((n × r → 𝔸f E) → ℂ) where |
| 913 | toFun h := star (O.levelChar h) • LinearMap.funLeft ℂ ℂ (leftMul E r n h.val⁻¹) |
| 914 | map_one' := LinearMap.ext fun Ψ ↦ funext fun x ↦ by simp |
| 915 | map_mul' h k := LinearMap.ext fun Ψ ↦ funext fun x ↦ by |
| 916 | simpa [mul_assoc] using mul_left_comm (star (O.levelChar h)) (star (O.levelChar k)) _ |
| 917 | |
| 918 | lemma levelTranslate_apply (h : O.levelGroup) (Ψ : (n × r → 𝔸f E) → ℂ) (x : n × r → 𝔸f E) : |
| 919 | O.levelTranslate h Ψ x = star (O.levelChar h) * Ψ (leftMul E r n h.val⁻¹ x) := rfl |
| 920 | |
| 921 | /-- The indicator of the class of `z` modulo `i!` at the places of `O` has finitely many translates |
| 922 | under the level group. -/ |
| 923 | lemma finite_range_levelTranslate (i : ℕ) (z : n × r → 𝔸f E) : |
| 924 | (Set.range fun h : O.levelGroup ↦ |
| 925 | O.levelTranslate h (cosetIndicator O.places (factorialIdele E i) z)).Finite := by |
| 926 | -- The character takes finitely many values, and the class of `k z` is a locally constant |
| 927 | -- function on the compact group `stdLevel E n`. |
| 928 | let C (q : n × r → 𝔸f E) : (n × r → 𝔸f E) → ℂ := cosetIndicator O.places (factorialIdele E i) q |
| 929 | have h_cont : Continuous fun k : stdLevel E n ↦ leftMul E r n k z := by |
| 930 | refine continuous_pi fun p ↦ ?_ |
| 931 | simp only [leftMul_apply, matrixToVec, Matrix.mul_apply] |
| 932 | fun_prop |
| 933 | have : CompactSpace (stdLevel E n) := isCompact_iff_compactSpace.1 isCompact_stdLevel |
| 934 | have h_class : (Set.range fun k : stdLevel E n ↦ C (leftMul E r n k z)).Finite := |
| 935 | ((isLocallyConstant_cosetIndicator_factorialIdele i).comp_continuous h_cont).range_finite |
| 936 | refine ((Set.finite_range O.residueLevelChar).image2 (fun c Ψ ↦ star c • Ψ) h_class).subset |
| 937 | (Set.range_subset_iff.2 fun h ↦ ?_) |
| 938 | let k : stdLevel E n := ⟨h, levelOf_le_stdLevel h.prop⟩ |
| 939 | have h_translate : O.levelTranslate h (C z) = star (O.levelChar h) • C (leftMul E r n k z) := |
| 940 | funext fun x ↦ congrArg (star (O.levelChar h) * ·) (cosetIndicator_leftMul_inv _ k z x) |
| 941 | rw [h_translate] |
| 942 | exact Set.mem_image2_of_mem ⟨levelOf.reduction _ _ h, rfl⟩ (Set.mem_range_self k) |
| 943 | |
| 944 | /-- Let `Ψ₀ = O.translatedBlockFn A = Ψ_bl(· A)` be the block datum of the descent pair `O`, |
| 945 | translated on the right by `A`. Let the function `Ψ` of finite adelic `n × r` matrices depend only |
| 946 | on the components at the places of `O` and vanish wherever `Ψ₀` does. Let it be fixed by the twisted |
| 947 | translations `O.levelTranslate h : Ψ ↦ c Ψ(h⁻¹ ·)` for `h` in the level group, where `c` is the |
| 948 | conjugate of the level character `O.levelChar h`. If `Ψ₀ z = 1`, then `Ψ = Ψ z • Ψ₀`. -/ |
| 949 | lemma eq_smul_translatedBlockFn {A : Gf E r} {Ψ : (n × r → 𝔸f E) → ℂ} {z : n × r → 𝔸f E} |
| 950 | (hz : O.translatedBlockFn A z = 1) (h_idem : ∀ x : n × r → 𝔸f E, Ψ (idem O.places • x) = Ψ x) |
| 951 | (h_inv : ∀ h : O.levelGroup, O.levelTranslate h Ψ = Ψ) |
| 952 | (h_supp : ∀ x : n × r → 𝔸f E, O.translatedBlockFn A x = 0 → Ψ x = 0) : |
| 953 | Ψ = Ψ z • O.translatedBlockFn A := by |
| 954 | -- Both functions read only the components at the places of `O`. There the orbit of |
| 955 | -- `base = (1, 0)ᵀ A⁻¹` contains the support of `Ψ₀`, and both functions follow the same rule |
| 956 | -- on it. |
| 957 | let base : n × r → 𝔸f E := |
| 958 | matrixToVec (inclMatrix (𝔸f E) O.incl * ((A⁻¹ : Gf E r) : Matrix r r (𝔸f E))) |
| 959 | have h_orbit (x : n × r → 𝔸f E) (hx : O.translatedBlockFn A x ≠ 0) : |
| 960 | ∃ c : ℂ, Ψ x = c * Ψ base ∧ O.translatedBlockFn A x = c * O.translatedBlockFn A base := by |
| 961 | obtain ⟨h, h_eq⟩ := exists_leftMul_eq_of_translatedBlockFn_ne_zero hx |
| 962 | refine ⟨star (O.levelChar h), ?_, ?_⟩ |
| 963 | · calc Ψ x = O.levelTranslate h Ψ (leftMul E r n h base) := by |
| 964 | rw [h_inv, ← h_idem x, h_eq, h_idem] |
| 965 | _ = star (O.levelChar h) * Ψ base := by simp [levelTranslate_apply] |
| 966 | · have h_idem₀ := IsSchwartzBruhat.idem_smul (S := O.places) (Ψ := O.translatedBlockFn A) |
| 967 | rw [← h_idem₀ x, h_eq, h_idem₀, translatedBlockFn_leftMul] |
| 968 | ext x |
| 969 | by_cases hx : O.translatedBlockFn A x = 0 |
| 970 | · simp [hx, h_supp x hx] |
| 971 | obtain ⟨c, hΨx, hΨ₀x⟩ := h_orbit x hx |
| 972 | obtain ⟨d, hΨz, hΨ₀z⟩ := h_orbit z (hz.trans_ne one_ne_zero) |
| 973 | calc Ψ x = c * Ψ base * O.translatedBlockFn A z := by rw [hz, mul_one, hΨx] |
| 974 | _ = Ψ z * O.translatedBlockFn A x := by simp only [hΨ₀z, hΨz, hΨ₀x, mul_assoc, mul_left_comm] |
| 975 | |
| 976 | /-- Let `z'` be the block of the rows `O.incl` of `z` and `z''` the block of the other rows. Let `z` |
| 977 | have an integral block ratio at every place of `O`: there `z'` is invertible and `z'' z'⁻¹` is |
| 978 | integral, and `≡ 0` at the chosen places (`j.isLeft`). If `A` has the components `z'⁻¹` at the |
| 979 | places of `O`, then the block datum takes the value `1` at `z A`, whose components there are |
| 980 | `(1, z'' z'⁻¹)ᵀ`. -/ |
| 981 | lemma translatedBlockFn_eq_one_of_hasIntegralBlockRatio {A : Gf E r} {z : n × r → 𝔸f E} |
| 982 | (hz : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 983 | HasIntegralBlockRatio O.incl j.isLeft (matrixAt (O.placeAt j) z)) |
| 984 | (hA : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, (A.atPlace (O.placeAt j)).val = |
| 985 | ((matrixAt (O.placeAt j) z).submatrix O.incl id)⁻¹) : |
| 986 | O.translatedBlockFn A z = 1 := by |
| 987 | -- The components `y j` of `z A` have upper block `1` and are integral matrices `u j`. |
| 988 | let y (j) : Matrix n r (LocField (O.placeAt j)) := |
| 989 | matrixAt (O.placeAt j) z * ((matrixAt (O.placeAt j) z).submatrix O.incl id)⁻¹ |
| 990 | have h_top (j) : (y j).submatrix O.incl id = 1 := mul_nonsing_inv _ (hz j).isUnit_det |
| 991 | have h_int (j) (a : n) (b : r) : y j a b ∈ LocInt (O.placeAt j) := by |
| 992 | obtain ⟨c, rfl⟩ | ha := Classical.em (a ∈ Set.range O.incl) |
| 993 | · have h_entry : y j (O.incl c) b = if c = b then 1 else 0 := congrFun₂ (h_top j) c b |
| 994 | simp [h_entry, ite_mem] |
| 995 | · exact (hz j).valuation_le_one a ha b |
| 996 | let u (j) : Matrix n r (LocInt (O.placeAt j)) := .of fun a b ↦ ⟨y j a b, h_int j a b⟩ |
| 997 | have hu (j) : matrixAt (O.placeAt j) (matrixToVec (vecToMatrix z * (A : Matrix r r (𝔸f E)))) = |
| 998 | (u j).map (LocInt (O.placeAt j)).subtype := by |
| 999 | rw [matrixAt_mul, hA j] |
| 1000 | rfl |
| 1001 | have h_res_top (j) : ((u j).map (residue _)).submatrix O.incl id = 1 := by |
| 1002 | have h_one : (u j).submatrix O.incl id = 1 := |
| 1003 | Matrix.map_injective (LocInt (O.placeAt j)).subtype_injective ((h_top j).trans (by simp)) |
| 1004 | simp [submatrix_map, h_one] |
| 1005 | -- At a chosen place the lower block is `≡ 0`, so the reduction is `(1, 0)ᵀ`. |
| 1006 | have h_low (i) (a : n) (ha : a ∉ Set.range O.incl) (b : r) : |
| 1007 | (u (.inl i)).map (residue _) a b = 0 := by |
| 1008 | rw [Matrix.map_apply, ← residueOrZero_coe, residueOrZero_eq_zero] |
| 1009 | exact ((hz (.inl i)).valuation_lt_one rfl a ha b).ne |
| 1010 | have h_chosen (i) : (u (.inl i)).map (residue _) = inclMatrix (ResField _) O.incl := by |
| 1011 | rw [(eq_inclMatrix_mul_iff O.incl).2 (h_low i), h_res_top] |
| 1012 | exact Matrix.mul_one _ |
| 1013 | rw [translatedBlockFn, residueDatum_of_eq_map _ u hu, residueBlockDatum, ite_eq_left h_chosen] |
| 1014 | exact prod_eq_one fun i _ ↦ by rw [h_res_top, det_one, map_one] |
| 1015 | |
| 1016 | /-- Let `π` be a representation of `Gf E n`, the unitary group in `n` variables over the finite |
| 1017 | adeles, and `y` a vector on which the group `O.levelGroup` acts by `O.levelChar`. Let `k` be in the |
| 1018 | maximal level `stdLevel E n`, and let its reductions `τ_w` at the places of `O` be block triangular |
| 1019 | with first block `s_w`: with `e = (1, 0)ᵀ = inclMatrix _ O.incl`, they are upper triangular at the |
| 1020 | chosen places, `τ_w e = e s_w`, and lower triangular at `Q`, `τ_wᵀ e = e s_wᵀ`. Then |
| 1021 | `π(k) y = χ(s)⁻¹ s̄ y`. Here the product `χ(s) = ∏ χ_w(det s_w)` is over both families, and `s̄` is |
| 1022 | the part of `s` at the chosen places, which `O.chosenGLRep π` lets act by `∏ χ_w(det s_w)` times `π` |
| 1023 | of a lift of `diag(s_w, 1)`. -/ |
| 1024 | lemma smul_chosenGLRep_eq_apply_of_triangular {V : Type*} [AddCommGroup V] [Module ℂ V] |
| 1025 | {π : Representation ℂ (Gf E n) V} (y : levelSpace π O.levelGroup O.levelChar) (k : stdLevel E n) |
| 1026 | (s : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, GL r (ResField (O.placeAt j))) |
| 1027 | (h_upper : ∀ i : O.ChosenIndex, (stdLevel.reduceAt (O.placeAt (.inl i)) k).val * |
| 1028 | inclMatrix (ResField (O.placeAt (.inl i))) O.incl = |
| 1029 | inclMatrix (ResField (O.placeAt (.inl i))) O.incl * (s (.inl i)).val) |
| 1030 | (h_lower : ∀ i : O.TwistIndex, (stdLevel.reduceAt (O.placeAt (.inr i)) k).valᵀ * |
| 1031 | inclMatrix (ResField (O.placeAt (.inr i))) O.incl = |
| 1032 | inclMatrix (ResField (O.placeAt (.inr i))) O.incl * (s (.inr i)).valᵀ) : |
| 1033 | (∏ j : O.ChosenIndex ⊕ O.TwistIndex, (O.tamePart (O.placeAt j))⁻¹ (s j).val.det) • |
| 1034 | (O.chosenGLRep π (fun i : O.ChosenIndex ↦ s (.inl i)) y).val = π k y := by |
| 1035 | -- Let `τ` be the family of reductions of `k`, and let `σ` be `diag (s j, 1)` at the chosen |
| 1036 | -- places and `1` at `Q`. Then `σ⁻¹ * τ` lies in the level, so for the lift `k₀` of `σ` the |
| 1037 | -- element `k₀⁻¹ * k` acts on `y` by the level character. |
| 1038 | let τ : ∀ j, GL n (ResField (O.placeAt j)) := reduceFamily O.placeAt k |
| 1039 | let σ : ∀ j, GL n (ResField (O.placeAt j)) := |
| 1040 | firstBlockHom O.toLevelPlaces O.incl fun i ↦ s (.inl i) |
| 1041 | have h_twist (i : O.TwistIndex) : (σ⁻¹ * τ) (.inr i) = τ (.inr i) := by |
| 1042 | rw [Pi.mul_apply, Pi.inv_apply, show σ (.inr i) = 1 from rfl, inv_one, one_mul] |
| 1043 | have h_level : σ⁻¹ * τ ∈ descentResidueLevel O.toLevelPlaces O.incl := by |
| 1044 | rintro (i | i) - |
| 1045 | · -- At a chosen place both `τ` and `σ` send `(1, 0)ᵀ` to its product with `s`. |
| 1046 | let e : Matrix n r (ResField (O.placeAt (.inl i))) := inclMatrix _ O.incl |
| 1047 | have h_eq : (τ (.inl i)).val * e = (σ (.inl i)).val * e := |
| 1048 | (h_upper i).trans (extendGL_mul_inclMatrix O.incl (s (.inl i))).symm |
| 1049 | have h_fix : (σ (.inl i))⁻¹.val * (τ (.inl i)).val * e = e := by |
| 1050 | rw [Matrix.mul_assoc, h_eq, ← Matrix.mul_assoc, Units.inv_mul, Matrix.one_mul] |
| 1051 | exact mem_stabilizer_col_iff.2 h_fix |
| 1052 | · rw [h_twist] |
| 1053 | exact (mem_rangeParabolic_iff O.incl).2 fun a b hb ↦ |
| 1054 | apply_eq_zero_of_transpose_mul_inclMatrix (h_lower i) a hb |
| 1055 | let k₀ : stdLevel E n := liftResidue σ |
| 1056 | let c : ℂ := ∏ i : O.TwistIndex, (O.tamePart (O.placeAt (.inr i)))⁻¹ (s (.inr i)).val.det |
| 1057 | have h_char : O.residueLevelChar ⟨σ⁻¹ * τ, h_level⟩ = c := by |
| 1058 | refine prod_congr rfl fun i _ ↦ ?_ |
| 1059 | have h_first : (τ (.inr i)).val.submatrix O.incl O.incl = (s (.inr i)).val := |
| 1060 | submatrix_eq_of_transpose_mul_inclMatrix (h_lower i) |
| 1061 | change (O.tamePart (O.placeAt (.inr i)))⁻¹ |
| 1062 | (((σ⁻¹ * τ) (.inr i)).val.submatrix O.incl O.incl).det = _ |
| 1063 | rw [h_twist, h_first] |
| 1064 | have h_act : π (k₀⁻¹ * k).val y = O.residueLevelChar ⟨σ⁻¹ * τ, h_level⟩ • y.val := |
| 1065 | levelSpace_levelOf_apply y.prop _ _ (by simp [k₀, τ, reduceFamily_liftResidue]) |
| 1066 | -- The factors at the chosen places cancel the scalar `d` in the definition of `chosenGLRep`. |
| 1067 | let d : ℂ := ∏ i : O.ChosenIndex, O.tamePart (O.placeAt (.inl i)) (s (.inl i)).val.det |
| 1068 | have h_rep : (O.chosenGLRep π (fun i ↦ s (.inl i)) y).val = d • π k₀ y := rfl |
| 1069 | have h_cancel : (∏ j, (O.tamePart (O.placeAt j))⁻¹ (s j).val.det) * d = c := by |
| 1070 | rw [Fintype.prod_sum_type, mul_right_comm, ← prod_mul_distrib, prod_eq_one, one_mul] |
| 1071 | intro i _ |
| 1072 | rw [← MulChar.mul_apply, inv_mul_cancel, MulChar.one_apply (s (.inl i)).det_ne_zero.isUnit] |
| 1073 | calc _ = c • π k₀ y := by rw [h_rep, smul_smul, h_cancel] |
| 1074 | _ = π k₀ (π (k₀⁻¹ * k).val y) := by rw [h_act, h_char, map_smul] |
| 1075 | _ = π k y := by simp |
| 1076 | |
| 1077 | /-- The complex conjugate of the matrix coefficient `algFormCoeff 1 u y` of a form `y` on `V`, for a |
| 1078 | linear functional `u` on the weight space, is automorphic on `U(V)`. -/ |
| 1079 | lemma isAutomorphic_star_algFormCoeff (u : (WeylIndex n O.columnCount → ℂ) →ₗ[ℂ] ℂ) (y : O.FormV) : |
| 1080 | (stdSpace E n).IsAutomorphic (star (algFormCoeff 1 u y.val)) := |
| 1081 | (isAutomorphic_algFormCoeff y.val).conj |
| 1082 | |
| 1083 | variable [WeilData E] (u : (WeylIndex n O.columnCount → ℂ) →ₗ[ℂ] ℂ) |
| 1084 | (P : MvPolynomial (InfinitePlace E × n × r) ℂ) (g : G E O.signs) |
| 1085 | |
| 1086 | /-- The conjugate of the value at `g` of the descent of the matrix coefficient `u` of a form `y` by |
| 1087 | the datum `v_P ⊗ Ψ ⊗ vac`, where `v_P` is the Fock vector of the polynomial `P`. It is linear in |
| 1088 | `Ψ` and conjugate linear in `y`; below it is written `B(Ψ, y)`. -/ |
| 1089 | def descentPairing : ((n × r → 𝔸f E) → ℂ) →ₗ[ℂ] O.FormV →ₗ⋆[ℂ] ℂ := |
| 1090 | let datum : ((n × r → 𝔸f E) → ℂ) →ₗ[ℂ] 𝒮 (O.W.hom (stdSpace E n)) := |
| 1091 | ((O.W.hom (stdSpace E n)).integrated (polyVector (realSigns E (homSigns O.signs 1)) P) ∘L |
| 1092 | .apply ℂ (𝒮 (O.W.hom (stdSpace E n))) (vacElem (O.W.hom (stdSpace E n)))).toLinearMap ∘ₗ |
| 1093 | schrodingerOp (O.W.hom (stdSpace E n)) O.places |
| 1094 | let coeff : O.FormV →ₗ⋆[ℂ] (stdSpace E n).rapidFunctions.toSubmodule := |
| 1095 | .codRestrict (stdSpace E n).rapidFunctions.toSubmodule |
| 1096 | ((starLinearEquiv ℂ).toLinearMap ∘ₛₗ (algFormCoeff 1 u).domRestrict _) |
| 1097 | fun y : O.FormV ↦ (isAutomorphic_star_algFormCoeff u y).mem_rapidFunctions fun _ _ ↦ rfl |
| 1098 | (((pairThetaKer O.W (stdSpace E n) O.charW 1).swap.liftBilin ∘ₗ datum).compr₂ (.proj g)).compl₂ |
| 1099 | coeff |
| 1100 | |
| 1101 | /-- The pairing `B(Ψ, y)` is the value at `g` of the theta lift from `U(V)` to `U(W)`, with datum |
| 1102 | `v_P ⊗ Ψ ⊗ vac`, of the conjugate of the matrix coefficient `u` of `y`. -/ |
| 1103 | lemma descentPairing_apply (Ψ : (n × r → 𝔸f E) → ℂ) (y : O.FormV) : |
| 1104 | descentPairing u P g Ψ y = lift (pairThetaKer O.W (stdSpace E n) O.charW 1).swap |
| 1105 | (integrated (O.W.hom (stdSpace E n)) (polyVector (realSigns E (homSigns O.signs 1)) P) |
| 1106 | (schrodingerOp (O.W.hom (stdSpace E n)) O.places Ψ (vacElem (O.W.hom (stdSpace E n))))) |
| 1107 | (star (algFormCoeff 1 u y.val)) g := rfl |
| 1108 | |
| 1109 | /-- The descent to `W` of the matrix coefficient `u` of the form `y` by the datum |
| 1110 | `v_P ⊗ Ψ_bl ⊗ vac` vanishes, where `Ψ_bl ⊗ vac` is the block datum `O.blockDatum`. -/ |
| 1111 | def BlockDescentVanishes (y : O.FormV) : Prop := |
| 1112 | lift (pairThetaKer O.W (stdSpace E n) O.charW 1).swap |
| 1113 | (integrated (O.W.hom (stdSpace E n)) (polyVector (realSigns E (homSigns O.signs 1)) P) |
| 1114 | O.blockDatum.val) (star (algFormCoeff 1 u y.val)) = 0 |
| 1115 | |
| 1116 | /-- Let `O` be a descent pair with spaces `W` and `V`, and `O.FormV` the forms on `V` of weight |
| 1117 | `(O.columnCount, O.detExp)` and of the level of `O`. For a linear functional `u` on the values of |
| 1118 | these forms, a polynomial `P` and an adelic point `g` of `U(W)`, let |
| 1119 | `B(Ψ, y) = descentPairing u P g Ψ y`. It is the conjugate of the value at `g` of the descent of the |
| 1120 | matrix coefficient `u` of `y` by a datum: the Fock vector of `P` at infinity, `Ψ` at the places |
| 1121 | `O.places`, and the vacuum elsewhere. Let `k` be in the maximal level `stdLevel E n`, let `Ψ` be |
| 1122 | Schwartz–Bruhat at `O.places`, and let `y'` be the right translate of `y` by `k` (the action |
| 1123 | `algFormRep`). Then `B(Ψ(k⁻¹ ·), y') = B(Ψ, y)`. -/ |
| 1124 | lemma descentPairing_translate (u : (WeylIndex n O.columnCount → ℂ) →ₗ[ℂ] ℂ) |
| 1125 | (P : MvPolynomial (InfinitePlace E × n × r) ℂ) (g : G E O.signs) (k : stdLevel E n) |
| 1126 | (Ψ : (n × r → 𝔸f E) → ℂ) [IsSchwartzBruhat O.places Ψ] {y y' : O.FormV} |
| 1127 | (h_translate : y'.val = algFormRep O.columnCount O.detExp k y.val) : |
| 1128 | descentPairing u P g (fun x : n × r → 𝔸f E ↦ Ψ (leftMul E r n k.val⁻¹ x)) y' = |
| 1129 | descentPairing u P g Ψ y := by |
| 1130 | -- The lift is equivariant under `k`, which moves `Ψ` and fixes `v_P` and the vacuum. The element |
| 1131 | -- `((1, 1), 1, k)` of `U(W) × U(V)` is `k` at the finite places of `U(V)` and `1` elsewhere. |
| 1132 | let K := (pairThetaKer O.W (stdSpace E n) O.charW 1).swap |
| 1133 | let v : fockSpace (realSigns E (homSigns O.signs 1)) := polyVector _ P |
| 1134 | let vac : 𝒮 (O.W.hom (stdSpace E n)) := vacElem _ |
| 1135 | have h_form : star (algFormCoeff 1 u y'.val) = |
| 1136 | fun x ↦ star (algFormCoeff 1 u y.val) (x * (1, k.val)) := |
| 1137 | funext fun x ↦ by simp [h_translate, algFormCoeff_algFormRep] |
| 1138 | have h_vac : pairWeil O.W (stdSpace E n) O.charW 1 ((1, 1), 1, k.val) vac = vac := by |
| 1139 | rw [pairWeil_eq_smul_of_projOn_eq ⊤ (by simp [vac]) (one_mem _) (by simp)] |
| 1140 | simp |
| 1141 | have h_datum : K.ω ((1, k.val), 1) (integrated _ v (schrodingerOp _ O.places Ψ vac)) = |
| 1142 | integrated _ v (schrodingerOp _ O.places (fun x ↦ Ψ (leftMul E r n k.val⁻¹ x)) vac) := by |
| 1143 | change pairWeil O.W (stdSpace E n) O.charW 1 ((1, 1), 1, k.val) _ = _ |
| 1144 | rw [pairWeil_integrated_fin, pairWeil_schrodingerOp_of_mem O.isConjDisjoint_places |
| 1145 | (one_mem _) k.prop, h_vac] |
| 1146 | simp [leftMul_apply] |
| 1147 | rw [descentPairing_apply, descentPairing_apply, h_form, ← h_datum, |
| 1148 | ← K.lift_equivariant (isAutomorphic_star_algFormCoeff u y), mul_one] |
| 1149 | |
| 1150 | /-- The rule `B(c Ψ(h⁻¹ ·), y) = B(Ψ, y)` for the pairing `B = descentPairing u P g` and `h` in the |
| 1151 | level group. Here `c` is the conjugate of the level character at `h`, and `O.levelTranslate h Ψ` is |
| 1152 | the function `c Ψ(h⁻¹ ·)`. -/ |
| 1153 | lemma descentPairing_levelTranslate (h : O.levelGroup) (Ψ : (n × r → 𝔸f E) → ℂ) |
| 1154 | [IsSchwartzBruhat O.places Ψ] (y : O.FormV) : |
| 1155 | descentPairing u P g (O.levelTranslate h Ψ) y = descentPairing u P g Ψ y := by |
| 1156 | let Ψ' (x : n × r → 𝔸f E) : ℂ := Ψ (leftMul E r n h.val⁻¹ x) |
| 1157 | let k : stdLevel E n := ⟨h, levelOf_le_stdLevel h.prop⟩ |
| 1158 | have h_level : (O.levelChar h • y).val = algFormRep O.columnCount O.detExp k y.val := |
| 1159 | (y.prop h).symm |
| 1160 | calc _ = descentPairing u P g (star (O.levelChar h) • Ψ') y := rfl |
| 1161 | _ = descentPairing u P g Ψ' (O.levelChar h • y) := by simp |
| 1162 | _ = descentPairing u P g Ψ y := descentPairing_translate u P g k Ψ h_level |
| 1163 | |
| 1164 | /-- The block datum `O.blockDatum` is the vector `Ψ_bl ⊗ vac` with the function |
| 1165 | `Ψ_bl = residueDatum O.placeAt O.residueBlockDatum` at the places of `O` and the vacuum |
| 1166 | elsewhere. -/ |
| 1167 | lemma blockDatum_val : |
| 1168 | O.blockDatum.val = schrodingerOp (O.W.hom (stdSpace E n)) O.places |
| 1169 | (residueDatum O.placeAt O.residueBlockDatum) (vacElem (O.W.hom (stdSpace E n))) := by |
| 1170 | have h_places : (O.levelModulus 2).places = O.places := places_levelModulus |
| 1171 | rw [← liftFn_eq_residueDatum h_places, ← h_places] |
| 1172 | rfl |
| 1173 | |
| 1174 | /-- Let `O` be a descent pair, `W = O.W` its hermitian space of rank `r` and `V = stdSpace E n` the |
| 1175 | standard space of rank `n`. The group `U(W) × U(V)` acts by the Weil representation `pairWeil`, |
| 1176 | twisted by the character `O.charW` of `U(1)`, on data on `Hom(W, V)`; the argument `((1, A), 1, 1)` |
| 1177 | is the finite adelic point `A` of `U(W)`. The block datum `O.blockDatum` is `Ψ_bl ⊗ vac`, that is |
| 1178 | `schrodingerOp` of a function `Ψ_bl` of the components at the places of `O` applied to the vacuum |
| 1179 | `vacElem`. If `A` is `1` away from these places and their conjugates, it sends `Ψ_bl ⊗ vac` to a |
| 1180 | nonzero multiple of `Ψ_bl(· A) ⊗ vac`, with `Ψ_bl(· A) = O.translatedBlockFn A`. -/ |
| 1181 | lemma exists_pairWeil_blockDatum_eq_smul {A : Gf E r} (hA : A ∈ supportedOn r O.places) : |
| 1182 | ∃ c : ℂ, c ≠ 0 ∧ pairWeil O.W (stdSpace E n) O.charW 1 ((1, A), 1, 1) O.blockDatum.val = |
| 1183 | c • schrodingerOp (O.W.hom (stdSpace E n)) O.places (O.translatedBlockFn A) |
| 1184 | (vacElem (O.W.hom (stdSpace E n))) := by |
| 1185 | have := isSchwartzBruhat_residueDatum_residueBlockDatum (O := O) |
| 1186 | -- The multiple is a character value at `det A` times a power of the idele norm of `det A`. |
| 1187 | refine ⟨(((1 : AutChar E).spaceChar (Fintype.card n)).val (detOn O.places A.val) : ℂ)⁻¹ * |
| 1188 | √(ideleAbs (detOn O.places A.val)) ^ Fintype.card n, by simp, ?_⟩ |
| 1189 | rw [blockDatum_val, pairWeil_schrodingerOp_of_mem_supportedOn O.isConjDisjoint_places hA |
| 1190 | (one_mem _)] |
| 1191 | unfold translatedBlockFn |
| 1192 | simp |
| 1193 | |
| 1194 | /-- Let `O` be a descent pair with spaces `W` (rank `r`) and `V` (rank `n`), `u` a linear functional |
| 1195 | on the values of the forms on `V`, `P` a polynomial with Fock vector `v_P`, and `g` an adelic point |
| 1196 | of `U(W)`. For a form `y` on `V`, the number `B(Ψ, y) = descentPairing u P g Ψ y` is the value at |
| 1197 | `g` of the theta lift to `U(W)`, with datum `v_P ⊗ Ψ ⊗ vac` (`vac` is the vacuum), of the conjugate |
| 1198 | of the matrix coefficient `algFormCoeff 1 u y`. The function `Ψ_bl` of `O.blockDatum = Ψ_bl ⊗ vac` |
| 1199 | is supported on the matrices that are integral at the places of `O` and, at the chosen places, |
| 1200 | `≡ (1, 0)ᵀ` (rows `O.incl` the identity, other rows zero). There it is |
| 1201 | `∏_{w ∈ Q} χ_w(det x' mod w)`, for `Q` the other places of `O`, `χ_w = O.tamePart w` and `x'` the |
| 1202 | rows `O.incl`. Suppose that the lift for `Ψ = Ψ_bl` is zero at all points, and that the finite |
| 1203 | adelic point `A` of `U(W)` is `1` away from the places of `O` and their conjugates. Then |
| 1204 | `B(Ψ_bl(· A), y) = 0`. -/ |
| 1205 | lemma descentPairing_translatedBlockFn_eq_zero (u : (WeylIndex n O.columnCount → ℂ) →ₗ[ℂ] ℂ) |
| 1206 | (P : MvPolynomial (InfinitePlace E × n × r) ℂ) (g : G E O.signs) {y : O.FormV} |
| 1207 | (h_datum : BlockDescentVanishes u P y) {A : Gf E r} (hA : A ∈ supportedOn r O.places) : |
| 1208 | descentPairing u P g (O.translatedBlockFn A) y = 0 := by |
| 1209 | -- The descent by the block datum at `g A` is a nonzero multiple of `B(Ψ_bl(· A), y)`. |
| 1210 | let K := (pairThetaKer O.W (stdSpace E n) O.charW 1).swap |
| 1211 | let v : fockSpace (realSigns E (homSigns O.signs 1)) := polyVector _ P |
| 1212 | let Y : G E (1 : n → ℤˣ) → ℂ := star (algFormCoeff 1 u y.val) |
| 1213 | obtain ⟨c, hc, h_move⟩ := exists_pairWeil_blockDatum_eq_smul hA |
| 1214 | obtain ⟨L, hL⟩ : ∃ L : G E O.signs → 𝒮 (O.W.hom (stdSpace E n)) →L[ℂ] ℂ, |
| 1215 | ∀ φ h, lift K φ Y h = L h φ := |
| 1216 | K.exists_clm_lift ((isAutomorphic_star_algFormCoeff u y).mem_rapidFunctions fun _ _ ↦ rfl) |
| 1217 | have h_act : K.ω (1, (1, A)) (integrated _ v O.blockDatum.val) = |
| 1218 | c • integrated _ v (schrodingerOp _ O.places (O.translatedBlockFn A) (vacElem _)) := by |
| 1219 | change pairWeil O.W (stdSpace E n) O.charW 1 ((1, A), 1, 1) _ = _ |
| 1220 | rw [pairWeil_integrated_fin, h_move, map_smul] |
| 1221 | refine (mul_eq_zero_iff_left hc).1 ?_ |
| 1222 | calc c * descentPairing u P g (O.translatedBlockFn A) y |
| 1223 | = lift K (K.ω (1, (1, A)) (integrated _ v O.blockDatum.val)) Y g := by |
| 1224 | rw [h_act, descentPairing_apply, hL, hL, map_smul, smul_eq_mul] |
| 1225 | _ = lift K (integrated _ v O.blockDatum.val) Y (g * (1, A)) := by rw [lift_mul_right] |
| 1226 | _ = 0 := congrFun h_datum _ |
| 1227 | |
| 1228 | omit [WeilData E] in |
| 1229 | /-- If `Ψ` is Schwartz–Bruhat at the places of `O`, its translates under the level group read only |
| 1230 | the components at these places; `idem O.places • x` is the part of `x` at these places. -/ |
| 1231 | lemma levelTranslate_idem_smul (h : O.levelGroup) (Ψ : (n × r → 𝔸f E) → ℂ) |
| 1232 | [IsSchwartzBruhat O.places Ψ] (x : n × r → 𝔸f E) : |
| 1233 | O.levelTranslate h Ψ (idem O.places • x) = O.levelTranslate h Ψ x := by |
| 1234 | rw [levelTranslate_apply, levelTranslate_apply, map_smul, IsSchwartzBruhat.idem_smul (Ψ := Ψ)] |
| 1235 | |
| 1236 | /-- **Points with an integral block ratio at every place.** Let `u` be a linear functional on the |
| 1237 | values of the forms on `V`, `P` a polynomial with Fock vector `v_P`, and `g` an adelic point of |
| 1238 | `U(W)`, for a descent pair `O` with spaces `W` and `V`. For a form `y`, let |
| 1239 | `B(Ψ, y) = descentPairing u P g Ψ y` be the value at `g` of the descent of the conjugate of the |
| 1240 | matrix coefficient `u` of `y` by the datum `v_P ⊗ Ψ ⊗ vac`. Suppose that this descent vanishes for |
| 1241 | the block datum `Ψ_bl ⊗ vac`. Let `z` have an integral block ratio at every place of `O`: the block |
| 1242 | `z'` of the rows `O.incl` is invertible, and for the other rows `z''` the matrix `z'' z'⁻¹` is |
| 1243 | integral, and `≡ 0` at the chosen places. Then `B(1_C, y) = 0` for large `i`, where `1_C` is the |
| 1244 | indicator of the class `C` of `z` modulo `i!` at the places of `O` and `factorialIdele E i` is the |
| 1245 | number `i!` as a finite idele. -/ |
| 1246 | lemma eventually_descentPairing_eq_zero_of_hasIntegralBlockRatio |
| 1247 | (u : (WeylIndex n O.columnCount → ℂ) →ₗ[ℂ] ℂ) |
| 1248 | (P : MvPolynomial (InfinitePlace E × n × r) ℂ) (g : G E O.signs) {y : O.FormV} |
| 1249 | (h_datum : BlockDescentVanishes u P y) {z : n × r → 𝔸f E} |
| 1250 | (hz : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, |
| 1251 | HasIntegralBlockRatio O.incl j.isLeft (matrixAt (O.placeAt j) z)) : |
| 1252 | ∀ᶠ i : ℕ in atTop, |
| 1253 | descentPairing u P g (cosetIndicator O.places (factorialIdele E i) z) y = 0 := by |
| 1254 | -- Let `A` be `z'⁻¹` as a point of `U(W)`, and `Ψ₀ = Ψ_bl(· A)`. The mean `Ψ₁` of the translates |
| 1255 | -- of `1_C` has `B(Ψ₁, y) = B(1_C, y)` and is a multiple of `Ψ₀`, and `B(Ψ₀, y) = 0`. |
| 1256 | obtain ⟨A, hA_on, hA⟩ : ∃ A ∈ supportedOn r O.places, ∀ j, |
| 1257 | A.atPlace (O.placeAt j) = (GeneralLinearGroup.mk'' _ (hz j).isUnit_det)⁻¹ := |
| 1258 | exists_atPlace_eq _ |
| 1259 | have h_one : O.translatedBlockFn A z = 1 := |
| 1260 | translatedBlockFn_eq_one_of_hasIntegralBlockRatio hz fun j ↦ by simp [hA j] |
| 1261 | filter_upwards [IsSchwartzBruhat.eventually_const (S := O.places) (O.translatedBlockFn A) z] |
| 1262 | with i h_const |
| 1263 | let C : (n × r → 𝔸f E) → ℂ := cosetIndicator O.places (factorialIdele E i) z |
| 1264 | obtain ⟨Ψ₁, h_inv, h_mean⟩ : ∃ Ψ₁, (∀ h, O.levelTranslate h Ψ₁ = Ψ₁) ∧ |
| 1265 | ∀ (L : _ →ₗ[ℂ] ℂ) (c : ℂ), (∀ h, L (O.levelTranslate h C) = c) → L Ψ₁ = c := |
| 1266 | exists_fixed_forall_linearMap_eq_of_finite O.levelTranslate (finite_range_levelTranslate i z) |
| 1267 | have h_pairing : descentPairing u P g Ψ₁ y = descentPairing u P g C y := |
| 1268 | h_mean ((descentPairing u P g).flip y) _ fun h ↦ descentPairing_levelTranslate u P g h C y |
| 1269 | have h_idem (x : n × r → 𝔸f E) : Ψ₁ (idem O.places • x) = Ψ₁ x := |
| 1270 | sub_eq_zero.1 <| h_mean (.proj (idem O.places • x) - .proj x) 0 fun h ↦ |
| 1271 | sub_eq_zero.2 (levelTranslate_idem_smul h C x) |
| 1272 | -- The support of `Ψ₀` contains `C` and is stable under the level group, so it contains the |
| 1273 | -- support of `Ψ₁`. |
| 1274 | have h_supp (x : n × r → 𝔸f E) (hx : O.translatedBlockFn A x = 0) : Ψ₁ x = 0 := by |
| 1275 | refine h_mean (.proj x) 0 fun h ↦ ?_ |
| 1276 | have h_zero : O.translatedBlockFn A (leftMul E r n h.val⁻¹ x) = 0 := by |
| 1277 | simpa [hx] using translatedBlockFn_leftMul A h⁻¹ x |
| 1278 | have h_out : leftMul E r n h.val⁻¹ x - z ∉ factorialBox (n × r) O.places i := fun h_mem ↦ by |
| 1279 | simpa [h_zero, h_one] using h_const _ h_mem |
| 1280 | simp only [LinearMap.proj_apply, levelTranslate_apply, C, cosetIndicator_factorialIdele, |
| 1281 | ite_eq_right h_out, mul_zero] |
| 1282 | rw [← h_pairing, eq_smul_translatedBlockFn h_one h_idem h_inv h_supp, map_smul, |
| 1283 | LinearMap.smul_apply, descentPairing_translatedBlockFn_eq_zero u P g h_datum hA_on, smul_zero] |
| 1284 | |
| 1285 | /-- The form `χ(s)⁻¹ s̄ y` for blocks `s` at the chosen places and the places of `Q`, where |
| 1286 | `χ(s) = ∏ χ_w(det s_w)` over all these places and `s̄` is the part of `s` at the chosen places. -/ |
| 1287 | def blockAction (O : DescentPair E r n) |
| 1288 | (s : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, GL r (ResField (O.placeAt j))) (y : O.FormV) : |
| 1289 | O.FormV := |
| 1290 | (∏ j : O.ChosenIndex ⊕ O.TwistIndex, (O.tamePart (O.placeAt j))⁻¹ (s j).val.det) • |
| 1291 | O.formAction (fun i : O.ChosenIndex ↦ s (Sum.inl i)) y |
| 1292 | |
| 1293 | /-- The hyperplane sums annihilate the form `y`: for rows `λ_w` at the chosen places `w`, not all |
| 1294 | zero, the product of the sums `∑ χ_w(det s)⁻¹ s` over the invertible `s = 1 + v λ_w` kills `y`. -/ |
| 1295 | def HyperplaneSumsAnnihilate (O : DescentPair E r n) [DecidableEq O.ChosenIndex] (y : O.FormV) : |
| 1296 | Prop := |
| 1297 | ∀ (i : O.ChosenIndex) (l : ∀ j : O.ChosenIndex, r → ResField (O.chosenPlace j)), |
| 1298 | l i ≠ 0 → O.formAction.asAlgebraHom |
| 1299 | (piTensorElem fun j : O.ChosenIndex ↦ hyperplaneSum (O.tamePart (O.chosenPlace j)) (l j)) y = |
| 1300 | 0 |
| 1301 | |
| 1302 | variable [DecidableEq O.ChosenIndex] |
| 1303 | section |
| 1304 | |
| 1305 | omit [WeilData E] |
| 1306 | |
| 1307 | /-- A descent pair `O` has two families of split places, the chosen places and a set `Q`, residue |
| 1308 | characters `χ_w = O.tamePart w`, and a space `O.FormV` of forms on its space `V` of rank `n` with a |
| 1309 | fixed weight and level. For a row `λ` over the residue field `k_w` of a chosen place `w`, the |
| 1310 | hyperplane sum is `∑ χ_w(det s)⁻¹ s` over the group `hyperplaneGroup λ` of the invertible matrices |
| 1311 | `s = 1 + v λ`, with `v` any column. The group `∏_w GL_r(k_w)` acts on these forms by |
| 1312 | `O.formAction`: `(s_w)` acts as `∏_w χ_w(det s_w)` times right translation by an element of the |
| 1313 | maximal level whose reductions are `diag(s_w, 1)` at the chosen places and `1` at `Q`. Suppose that |
| 1314 | the product of the hyperplane sums of rows `λ_w`, not all zero, always kills `y`. Then the |
| 1315 | hyperplane sum of `l ≠ 0` at the place of index `i` alone kills `y`. -/ |
| 1316 | lemma sum_formAction_mulSingle_eq_zero {y : O.FormV} (h_sums : O.HyperplaneSumsAnnihilate y) |
| 1317 | (i : O.ChosenIndex) {l : r → ResField (O.chosenPlace i)} (hl : l ≠ 0) : |
| 1318 | ∑ s : hyperplaneGroup l, |
| 1319 | (O.tamePart (O.chosenPlace i))⁻¹ s.val.val.det • O.formAction (Pi.mulSingle i s.val) y = |
| 1320 | 0 := by |
| 1321 | -- Take the row `l` at the place `O.chosenPlace i` and the zero row, whose hyperplane sum is `1`, |
| 1322 | -- at the other chosen places. |
| 1323 | let rows : ∀ j : O.ChosenIndex, r → ResField (O.chosenPlace j) := Pi.single i l |
| 1324 | have h_family : (fun j ↦ hyperplaneSum (O.tamePart (O.chosenPlace j)) (rows j)) = |
| 1325 | Pi.mulSingle i (hyperplaneSum (O.tamePart (O.chosenPlace i)) l) := by |
| 1326 | ext1 j |
| 1327 | obtain rfl | hj := eq_or_ne j i <;> simp [rows, hyperplaneSum_zero, *] |
| 1328 | have h_sum : O.formAction.asAlgebraHom |
| 1329 | (piTensorElem fun j ↦ hyperplaneSum (O.tamePart (O.chosenPlace j)) (rows j)) y = 0 := |
| 1330 | h_sums i rows (by simpa [rows] using hl) |
| 1331 | rwa [h_family, asAlgebraHom_piTensorElem_mulSingle, asAlgebraHom_hyperplaneSum] at h_sum |
| 1332 | |
| 1333 | /-- For a block `s` at the single place `O.placeAt j` of index `j`, `O.blockAction` sends `y` to |
| 1334 | `χ_w(det s)⁻¹` times `O.formAction` of the chosen-place part of `Pi.mulSingle j s` applied to `y`, |
| 1335 | where `χ_w = O.tamePart (O.placeAt j)`. -/ |
| 1336 | lemma blockAction_mulSingle [DecidableEq O.TwistIndex] (j : O.ChosenIndex ⊕ O.TwistIndex) |
| 1337 | (s : GL r (ResField (O.placeAt j))) (y : O.FormV) : |
| 1338 | O.blockAction (Pi.mulSingle j s) y = (O.tamePart (O.placeAt j))⁻¹ s.val.det • |
| 1339 | O.formAction (fun i : O.ChosenIndex ↦ |
| 1340 | Pi.mulSingle (M := fun j' : O.ChosenIndex ⊕ O.TwistIndex ↦ GL r (ResField (O.placeAt j'))) |
| 1341 | j s (Sum.inl i)) y := by |
| 1342 | rw [blockAction, Fintype.prod_eq_single j fun i hi ↦ by simp [Pi.mulSingle_eq_of_ne hi], |
| 1343 | Pi.mulSingle_eq_same] |
| 1344 | |
| 1345 | /-- Let `w = O.placeAt (.inl i)` be the chosen place of index `i`, and `s` in `GL_r` of its residue |
| 1346 | field. Then `O.blockAction` of the block `s` at `w` (and `1` elsewhere) on the form `y` is |
| 1347 | `χ_w(det s)⁻¹` times `O.formAction` of `s` at `w` on `y`. -/ |
| 1348 | lemma blockAction_mulSingle_inl [DecidableEq O.TwistIndex] (i : O.ChosenIndex) |
| 1349 | (s : GL r (ResField (O.placeAt (.inl i)))) (y : O.FormV) : |
| 1350 | O.blockAction (Pi.mulSingle (.inl i) s) y = |
| 1351 | (O.tamePart (O.placeAt (.inl i)))⁻¹ s.val.det • O.formAction (Pi.mulSingle i s) y := by |
| 1352 | -- `Pi.mulSingle` is an update of `1`, and updates commute with restriction along `Sum.inl`. |
| 1353 | have h_part : (fun i' : O.ChosenIndex ↦ Pi.mulSingle |
| 1354 | (M := fun j ↦ GL r (ResField (O.placeAt j))) (.inl i) s (.inl i')) = Pi.mulSingle i s := |
| 1355 | Function.update_comp_eq_of_injective' (β := fun j ↦ GL r (ResField (O.placeAt j))) 1 |
| 1356 | Sum.inl_injective i s |
| 1357 | rw [blockAction_mulSingle, h_part] |
| 1358 | rfl |
| 1359 | |
| 1360 | /-- For a block `s` at the place `O.placeAt (.inr i)` of `Q` and the identity at the other places, |
| 1361 | `O.blockAction` sends `y` to `(O.tamePart (O.placeAt (.inr i)))⁻¹ (det s) • y`. -/ |
| 1362 | lemma blockAction_mulSingle_inr [DecidableEq O.TwistIndex] (i : O.TwistIndex) |
| 1363 | (s : GL r (ResField (O.placeAt (.inr i)))) (y : O.FormV) : |
| 1364 | O.blockAction (Pi.mulSingle (.inr i) s) y = (O.tamePart (O.placeAt (.inr i)))⁻¹ s.val.det • |
| 1365 | y := by |
| 1366 | have h_one : (fun i' : O.ChosenIndex ↦ Pi.mulSingle |
| 1367 | (M := fun j ↦ GL r (ResField (O.placeAt j))) (.inr i) s (.inl i')) = (1 : O.ChosenGL r) := |
| 1368 | funext fun _ ↦ Pi.mulSingle_eq_of_ne Sum.inl_ne_inr _ |
| 1369 | rw [blockAction_mulSingle, h_one, map_one, one_apply_eq_self] |
| 1370 | |
| 1371 | /-- Assume `χ_w ≠ 1` for `w ∈ Q`. Assume also `O.HyperplaneSumsAnnihilate y`: for rows `λ_w` at the |
| 1372 | chosen places, not all zero, the product of the sums `∑ χ_w(det s)⁻¹ s` kills `y`, with |
| 1373 | `s = 1 + v λ_w` invertible and `v` any column. Then at `w = O.placeAt j` and for a row `l ≠ 0`, the |
| 1374 | sum of `O.blockAction s y = χ_w(det s)⁻¹ s̄ y` over `s` in `hyperplaneGroup l` is zero. Here `s̄` is |
| 1375 | `s` at a chosen place and `1` at a place of `Q`. -/ |
| 1376 | lemma sum_blockAction_eq_zero {y : O.FormV} [DecidableEq O.TwistIndex] |
| 1377 | (hQ : ∀ i : O.TwistIndex, O.tamePart (O.twistPlace i) ≠ 1) |
| 1378 | (h_sums : O.HyperplaneSumsAnnihilate y) (j : O.ChosenIndex ⊕ O.TwistIndex) |
| 1379 | {l : r → ResField (O.placeAt j)} (hl : l ≠ 0) : |
| 1380 | ∑ s : hyperplaneGroup l, O.blockAction (Pi.mulSingle j s.val) y = 0 := by |
| 1381 | obtain i | i := j |
| 1382 | · simp_rw [blockAction_mulSingle_inl] |
| 1383 | exact sum_formAction_mulSingle_eq_zero h_sums i hl |
| 1384 | · -- At a place of `Q` a character sum remains. |
| 1385 | have hχ : O.tamePart (O.placeAt (.inr i)) ≠ 1 := hQ i |
| 1386 | simp_rw [blockAction_mulSingle_inr] |
| 1387 | rw [← sum_smul, sum_inv_det_hyperplaneGroup_eq_zero hχ hl, zero_smul] |
| 1388 | |
| 1389 | /-- Let `l` be an annihilating row for `z` at the place `w` of index `j`: an integral row with |
| 1390 | `l z = 0` at `w` whose part `λ`, the entries indexed by `O.incl`, is not `≡ 0`, and whose other |
| 1391 | entries are `≡ 0` if `w ∈ Q`. Let `s = 1 + v λ` be invertible over the residue field, for some |
| 1392 | column `v`. Then there is an element `h` of the maximal level `stdLevel E n` such that `h z` and `z` |
| 1393 | have the same components at the places of `O` and right translation of `y` by `h` gives the form |
| 1394 | `O.blockAction s y = χ_w(det s)⁻¹ s̄ y` of `s` at `w`. Here `s̄` is `s`, acting by `O.formAction`, |
| 1395 | if `w` is a chosen place, and is `1` if `w ∈ Q`. -/ |
| 1396 | lemma exists_leftMul_eq_and_blockAction_eq [DecidableEq O.TwistIndex] {z : n × r → 𝔸f E} |
| 1397 | {j : O.ChosenIndex ⊕ O.TwistIndex} {l : n → LocInt (O.placeAt j)} |
| 1398 | (hl : IsAnnihilatingRow O.incl j.isLeft (matrixAt (O.placeAt j) z) l) |
| 1399 | {s : GL r (ResField (O.placeAt j))} |
| 1400 | (hs : s ∈ hyperplaneGroup fun b : r ↦ residue (LocInt (O.placeAt j)) (l (O.incl b))) |
| 1401 | (y : O.FormV) : |
| 1402 | ∃ h : stdLevel E n, idem O.places • leftMul E r n h z = idem O.places • z ∧ |
| 1403 | (O.blockAction (Pi.mulSingle j s) y).val = algFormRep O.columnCount O.detExp h y.val := by |
| 1404 | -- Lift the column `v`, and let `h` be the matrix `rowShear O.incl v l` at `w` and `1` at the |
| 1405 | -- other places of `O`. |
| 1406 | let res : LocInt (O.placeAt j) →+* ResField (O.placeAt j) := residue _ |
| 1407 | obtain ⟨v₀, hs⟩ : ∃ v₀, s.val = 1 + vecMulVec v₀ ((res ∘ l) ∘ O.incl) := hs |
| 1408 | obtain ⟨v, rfl⟩ : ∃ v, res ∘ v = v₀ := residue_surjective.comp_left _ |
| 1409 | have h_det : res (rowShear O.incl v l).det = s.val.det := by |
| 1410 | rw [RingHom.map_det, RingHom.mapMatrix_apply, map_rowShear, det_rowShear, hs] |
| 1411 | have h_unit : IsUnit (rowShear O.incl v l).det := |
| 1412 | (isUnit_map_iff (residue _) _).1 (h_det.trans_ne s.det_ne_zero).isUnit |
| 1413 | let τ : ∀ i, GL n (LocInt (O.placeAt i)) := Pi.mulSingle j (.mk'' (rowShear O.incl v l) h_unit) |
| 1414 | obtain ⟨h, h_at⟩ := exists_stdLevel_atPlace_eq τ |
| 1415 | have h_red_self : (stdLevel.reduceAt (O.placeAt j) h).val = rowShear O.incl (res ∘ v) |
| 1416 | (res ∘ l) := by |
| 1417 | simp only [reduceAt_eq_of_atPlace (h_at j), τ, Pi.mulSingle_eq_same] |
| 1418 | exact map_rowShear O.incl res v l |
| 1419 | have h_red_ne {i : O.ChosenIndex ⊕ O.TwistIndex} (hi : i ≠ j) : |
| 1420 | stdLevel.reduceAt (O.placeAt i) h = 1 := by simp [reduceAt_eq_of_atPlace (h_at i), τ, hi] |
| 1421 | refine ⟨h, idem_smul_eq_of_matrixAt_eq fun i ↦ ?_, |
| 1422 | smul_chosenGLRep_eq_apply_of_triangular y h (Pi.mulSingle j s) (fun i ↦ ?_) fun i ↦ ?_⟩ |
| 1423 | · -- The row `l` annihilates the component of `z` at `w`, so the shear fixes it. |
| 1424 | rw [matrixAt_leftMul, h_at] |
| 1425 | obtain rfl | hi := eq_or_ne i j |
| 1426 | · simp only [τ, Pi.mulSingle_eq_same] |
| 1427 | change (rowShear O.incl v l).map (LocInt _).subtype * matrixAt (O.placeAt i) z = _ |
| 1428 | rw [map_rowShear] |
| 1429 | exact rowShear_mul_eq_self_of_vecMul_eq_zero O.incl hl.vecMul_eq_zero |
| 1430 | · simp [τ, hi] |
| 1431 | · -- The reduction of the shear is block upper triangular with first block `s`. |
| 1432 | obtain rfl | hi := eq_or_ne (Sum.inl i) j |
| 1433 | · rw [h_red_self, Pi.mulSingle_eq_same, hs, rowShear_mul_inclMatrix] |
| 1434 | · simp only [h_red_ne hi, Pi.mulSingle_eq_of_ne hi, Units.val_one, Matrix.one_mul, |
| 1435 | Matrix.mul_one] |
| 1436 | · -- At a place of `Q` the entries of `l` outside `O.incl` reduce to `0`, so the reduction of the |
| 1437 | -- shear is block lower triangular. |
| 1438 | obtain rfl | hi := eq_or_ne (Sum.inr i) j |
| 1439 | · rw [h_red_self, Pi.mulSingle_eq_same, hs] |
| 1440 | exact transpose_rowShear_mul_inclMatrix _ _ (hl.residue_eq_zero Bool.false_ne_true) |
| 1441 | · simp only [h_red_ne hi, Pi.mulSingle_eq_of_ne hi, Units.val_one, transpose_one, |
| 1442 | Matrix.one_mul, Matrix.mul_one] |
| 1443 | |
| 1444 | end |
| 1445 | |
| 1446 | /-- **Points without an integral block ratio.** Let `O` be a descent pair, with spaces `W` and `V`, |
| 1447 | chosen places, a second set `Q` of places and residue characters `χ_w`, with `χ_w ≠ 1` for `w ∈ Q`. |
| 1448 | Let the hyperplane sums annihilate the form `y` on `V`: for rows `λ_w` over the residue fields of |
| 1449 | the chosen places, not all zero, the product of the sums `∑ χ_w(det s)⁻¹ s` over the invertible |
| 1450 | `s = 1 + v λ_w` kills `y`. Suppose that at some place `w` of `O` the component of `z` has no |
| 1451 | integral block ratio: it is false that its rows `O.incl` form an invertible block `z'` such that, |
| 1452 | for the other rows `z''`, the matrix `z'' z'⁻¹` is integral, and `≡ 0` if `w` is chosen. Then |
| 1453 | `B(1_C, y) = 0` for the class `C` of `z` modulo any idele `t` at the places of `O`. Here |
| 1454 | `B(Ψ, y) = descentPairing u P g Ψ y` is the value at the adelic point `g` of `U(W)` of the theta |
| 1455 | lift, by the datum `v_P ⊗ Ψ ⊗ vac`, of the conjugate of the matrix coefficient of `y` for the linear |
| 1456 | functional `u`. -/ |
| 1457 | lemma descentPairing_eq_zero_of_not_hasIntegralBlockRatio {y : O.FormV} |
| 1458 | (hQ : ∀ i : O.TwistIndex, O.tamePart (O.twistPlace i) ≠ 1) |
| 1459 | (h_sums : O.HyperplaneSumsAnnihilate y) {z : n × r → 𝔸f E} {j : O.ChosenIndex ⊕ O.TwistIndex} |
| 1460 | (hz : ¬HasIntegralBlockRatio O.incl j.isLeft (matrixAt (O.placeAt j) z)) (t : (𝔸f E)ˣ) : |
| 1461 | descentPairing u P g (cosetIndicator O.places t z) y = 0 := by |
| 1462 | classical |
| 1463 | obtain ⟨l, hl⟩ := exists_isAnnihilatingRow_of_not_hasIntegralBlockRatio hz |
| 1464 | let l₀ (b : r) : ResField (O.placeAt j) := residue _ (l (O.incl b)) |
| 1465 | let B : O.FormV →ₗ⋆[ℂ] ℂ := descentPairing u P g (cosetIndicator O.places t z) |
| 1466 | -- For each `s = 1 + v λ` some element `h` of the maximal level preserves the class of `z` and |
| 1467 | -- acts on `y` through `s`. So each term of the vanishing sum over `s` pairs as `y` does. |
| 1468 | have h_term (s : hyperplaneGroup l₀) : B (O.blockAction (Pi.mulSingle j s.val) y) = B y := by |
| 1469 | obtain ⟨h, h_fix, h_act⟩ := exists_leftMul_eq_and_blockAction_eq hl s.prop y |
| 1470 | simpa only [cosetIndicator_leftMul_inv_of_fixed t h_fix] using |
| 1471 | descentPairing_translate u P g h (cosetIndicator O.places t z) h_act |
| 1472 | refine (smul_eq_zero_iff_right (Fintype.card_ne_zero (α := hyperplaneGroup l₀))).1 ?_ |
| 1473 | calc Fintype.card (hyperplaneGroup l₀) • B y |
| 1474 | = ∑ s : hyperplaneGroup l₀, B (O.blockAction (Pi.mulSingle j s.val) y) := by simp [h_term] |
| 1475 | _ = 0 := by rw [← map_sum, sum_blockAction_eq_zero hQ h_sums j hl.residue_ne_zero, map_zero] |
| 1476 | |
| 1477 | /-- **The bottom of the tower.** Let `O` be a descent pair: spaces `W = O.W` and `V = stdSpace E n` |
| 1478 | of ranks `r` and `n`, two families of split places and residue characters `χ_w = O.tamePart w`. Let |
| 1479 | `y` be a form on `V` and `u` a linear functional on its values. Assume that `χ_w` is nontrivial for |
| 1480 | `w ∈ Q`, and that the hyperplane sums annihilate `y`: for rows `λ_w` at the chosen places, not all |
| 1481 | zero, the product of the sums `∑ χ_w(det s)⁻¹ s` over the invertible `s = 1 + v λ_w`, with `v` any |
| 1482 | column, kills `y`. Assume that the descents of the conjugate of the matrix coefficient |
| 1483 | `algFormCoeff 1 u y` by the data `v_P ⊗ Ψ_bl ⊗ vac` vanish for all polynomials `P`. Then its |
| 1484 | descents, for the character `O.charW` of `U(1)` attached to `W`, vanish for all data that are the |
| 1485 | vacuum at the finite places other than the chosen places, the places of `Q` and their conjugates. -/ |
| 1486 | theorem descentsVanish_of_hyperplaneSumsAnnihilate {y : O.FormV} |
| 1487 | (hQ : ∀ i : O.TwistIndex, O.tamePart (O.twistPlace i) ≠ 1) |
| 1488 | (h_sums : O.HyperplaneSumsAnnihilate y) |
| 1489 | (h_datum : ∀ P : MvPolynomial (InfinitePlace E × n × r) ℂ, BlockDescentVanishes u P y) : |
| 1490 | DescentsVanish O.W (stdSpace E n) O.charW O.places.conjClosureᶜ |
| 1491 | (star (algFormCoeff 1 u y.val)) := by |
| 1492 | -- It suffices to treat the data `v_P ⊗ Ψ ⊗ vac`, and then the small classes around each `z`. |
| 1493 | refine .of_schrodingerOp O.isConjDisjoint_places (isAutomorphic_star_algFormCoeff u y) |
| 1494 | fun P Ψ hΨ ↦ funext fun g ↦ ?_ |
| 1495 | suffices h_small : ∀ z : n × r → 𝔸f E, ∀ᶠ i : ℕ in atTop, |
| 1496 | descentPairing u P g (cosetIndicator O.places (factorialIdele E i) z) y = 0 by |
| 1497 | change descentPairing u P g Ψ y = 0 |
| 1498 | exact IsSchwartzBruhat.mem_of_eventually_coset (S := O.places) Ψ |
| 1499 | ((descentPairing u P g).flip y).ker h_small |
| 1500 | intro z |
| 1501 | by_cases! hz : ∀ j, HasIntegralBlockRatio O.incl j.isLeft (matrixAt (O.placeAt j) z) |
| 1502 | · exact eventually_descentPairing_eq_zero_of_hasIntegralBlockRatio u P g (h_datum P) hz |
| 1503 | · obtain ⟨j, hj⟩ := hz |
| 1504 | exact .of_forall fun i ↦ descentPairing_eq_zero_of_not_hasIntegralBlockRatio u P g hQ h_sums hj |
| 1505 | _ |
| 1506 | |
| 1507 | end DescentPair |
| 1508 | |
| 1509 | end New |
| 1510 | |
| 1511 | end |