Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.AffineMonoid.UniqueSums |
| 4 | import Mathlib.Topology.Algebra.Nonarchimedean.TotallyDisconnected |
| 5 | import Mathlib.Topology.Connected.Separation |
| 6 | import Mathlib.Topology.LocallyConstant.Algebra |
| 7 | import Mathlib.Topology.MetricSpace.Ultra.TotallySeparated |
| 8 | import Mathlib.Topology.Separation.CompletelyRegular |
| 9 | import TauCeti.LinearAlgebra.Trace.Idempotent |
| 10 | import TauCeti.Algebra.Ring.Idempotent.Pair |
| 11 | import TauCeti.Topology.Algebra.Group.Units |
| 12 | import TauCeti.Topology.Instances.Matrix |
| 13 | public import Lib.Adelic.TraceFormula.FibreIntegral |
| 14 | public import Lib.LocalGL.Iwahori.ParahoricStructure |
| 15 | import Lib.General.LinearAlgebra.Eigenvalues |
| 16 | import Lib.General.LinearAlgebra.MatrixPolynomials |
| 17 | |
| 18 | /-! |
| 19 | # Coprime factors |
| 20 | |
| 21 | Let `w` be a split place, `A, B` coprime non-units of `E_w[X]`, and `C` the set of elements of the |
| 22 | finite adelic group `Gf E n` with characteristic polynomial `A B` at `w`. An invariant distribution |
| 23 | `I` on `C` kills every test function `φ` that is cuspidal at `w` (`eq_zero_of_coprime_factors`). |
| 24 | |
| 25 | Let `H` be the block diagonal subgroup of `GL_n(E_w)` with blocks of sizes `deg A` and `deg B`, `N` |
| 26 | the group of the unipotent matrices `1 + z` with `z` an upper right block, and `X ⊆ C` the set of |
| 27 | the `y` whose component `y_w` is block diagonal, with `A, B` as characteristic polynomials of the |
| 28 | blocks up to scalars. First `φ` is replaced by the mean of its conjugates under `GL_n(O_w)`. |
| 29 | |
| 30 | * Step 1, images. The projection onto the kernel of `A(y_w)` along the kernel of `B(y_w)` is a fixed |
| 31 | polynomial in `y_w` for `y ∈ C`. So `X` is a slice of `C` for `H` (`isSlice_blockLocus`), and test |
| 32 | functions `Ψ` on `GL_n(E_w) × X` can be integrated over the fibres of `(g, y) ↦ g y g⁻¹`. |
| 33 | * Step 2. If the integrals of `Ψ (·, y)` vanish, then `I` kills the image of `Ψ`. This is |
| 34 | `IsInvariantDistribution.eq_zero_of_isImage`, proved for any slice. |
| 35 | * Step 3, the choice of `Ψ`. Put `Ψ (g, y) = φ (g y g⁻¹)` for `g` in `U = GL_n(O_w) N` and `0` |
| 36 | otherwise. This is the restriction to `GL_n(E_w) × X` of a test function on `GL_n(E_w) × Gf E n` |
| 37 | (`exists_testFunction_eq_indicator`), its image is `φ` times the volume of `H ∩ GL_n(O_w)` |
| 38 | (`isImage_blockLocus_smul`), and its integrals over `GL_n(E_w)` vanish because the conjugates of |
| 39 | `y ∈ X` under `N` fill the coset `y N` (`integral_indicator_iwasawaSet_eq_zero`). |
| 40 | |
| 41 | Notions from other files: |
| 42 | * `upperBlocks ε` is the set of the upper right blocks, the matrices `z` with `ε z = z` and |
| 43 | `z ε = 0`. |
| 44 | * `radicalHom hε Y` is `1 + ε Y (1 - ε)`, an element of the unipotent radical that belongs to the |
| 45 | idempotent `ε`; `coordProjector T` is the projector on the coordinates in `T`. |
| 46 | * `intGL n O` is `GL_n(O)`, and `localIntGL n w` is `GL_n(O_w)`. A `TestFunction` on a space is a |
| 47 | locally constant function to `ℂ` with compact support; `φ.1` is the function itself. |
| 48 | * `IsSlice j H C X`, for a continuous homomorphism `j` of `Γ` into a group, says that |
| 49 | `(g, y) ↦ j g * y * (j g)⁻¹` takes `Γ × X` onto the closed set `C`, has local sections, and has |
| 50 | the orbits of `H` as fibres; `IsImage j ν X Ψ f` says that `f` is the integral of `Ψ` over the |
| 51 | fibres. |
| 52 | |
| 53 | ## Relation to the literature |
| 54 | |
| 55 | Part of a known result: in a simple trace formula with a cuspidal test function the terms that are |
| 56 | not elliptic vanish (Deligne and Kazhdan). The proof here is a descent of invariant distributions to |
| 57 | the block diagonal subgroup. |
| 58 | -/ |
| 59 | |
| 60 | @[expose] public section |
| 61 | |
| 62 | open NumberField Polynomial Matrix Topology Filter Pointwise Multiplicative MeasureTheory |
| 63 | |
| 64 | namespace New |
| 65 | |
| 66 | /-! ### The block diagonal group and the radical of an idempotent -/ |
| 67 | |
| 68 | section Levi |
| 69 | |
| 70 | variable {n k : Type} [Fintype n] [DecidableEq n] [CommRing k] {ε : Matrix n n k} {O : Subring k} |
| 71 | |
| 72 | variable (ε) in |
| 73 | /-- The invertible matrices that commute with `ε`: for an idempotent `ε`, the block diagonal group |
| 74 | of the decomposition into the image and the kernel of `ε`. -/ |
| 75 | def blockDiagonalGroup : Subgroup (GL n k) where |
| 76 | carrier := {h : GL n k | Commute h.val ε} |
| 77 | one_mem' := Commute.one_left ε |
| 78 | mul_mem' ha hb := Commute.mul_left ha hb |
| 79 | inv_mem' ha := Commute.units_inv_left ha |
| 80 | |
| 81 | /-- Characterization of membership in the block diagonal subgroup associated to an idempotent. -/ |
| 82 | lemma mem_blockDiagonalGroup {h : GL n k} : h ∈ blockDiagonalGroup ε ↔ h.1 * ε = ε * h.1 := Iff.rfl |
| 83 | |
| 84 | /-- The radical of the idempotent `ε` consists of the `u` for which `u - 1` is an upper right |
| 85 | block. -/ |
| 86 | lemma mem_range_radicalHom (hε : IsIdempotentElem ε) {u : GL n k} : |
| 87 | u ∈ (radicalHom hε).range ↔ u.val - 1 ∈ upperBlocks ε := by |
| 88 | refine ⟨?_, fun hu ↦ ⟨ofAdd (u.val - 1), Units.ext ?_⟩⟩ |
| 89 | · rintro ⟨Y, rfl⟩ |
| 90 | simpa [coe_radicalHom] using mul_mul_one_sub_mem_upperBlocks hε Y.toAdd |
| 91 | · rw [coe_radicalHom_of_mem hε hu, add_sub_cancel] |
| 92 | |
| 93 | /-- The block diagonal group of an idempotent `ε` normalises the radical of `ε`. -/ |
| 94 | lemma conj_mem_range_radicalHom (hε : IsIdempotentElem ε) {h u : GL n k} |
| 95 | (hh : h ∈ blockDiagonalGroup ε) (hu : u ∈ (radicalHom hε).range) : |
| 96 | h⁻¹ * u * h ∈ (radicalHom hε).range := by |
| 97 | have h_keeps {g : GL n k} (hg : g ∈ blockDiagonalGroup ε) : ε * (g.val * ε) = g.val * ε := by |
| 98 | rw [← mul_assoc, ← mem_blockDiagonalGroup.1 hg, mul_assoc, hε.eq] |
| 99 | have h_eq : (h⁻¹ * u * h).val - 1 = h⁻¹.val * (u.val - 1) * h.val := by simp [mul_sub, sub_mul] |
| 100 | rw [mem_range_radicalHom, h_eq] |
| 101 | exact mul_mem_upperBlocks_right (h_keeps hh) |
| 102 | (mul_mem_upperBlocks_left (h_keeps (inv_mem hh)) ((mem_range_radicalHom hε).1 hu)) |
| 103 | |
| 104 | /-- For `h` block diagonal and `u` in the radical of the idempotent `ε`, the two diagonal blocks of |
| 105 | `h u` add up to `h`. -/ |
| 106 | lemma diagonal_blocks_mul_radical (hε : IsIdempotentElem ε) {h u : GL n k} |
| 107 | (hh : h ∈ blockDiagonalGroup ε) (hu : u ∈ (radicalHom hε).range) : |
| 108 | ε * (h * u).val * ε + (1 - ε) * (h * u).val * (1 - ε) = h.val := by |
| 109 | obtain ⟨h_left, h_right⟩ := mem_upperBlocks_iff.mp ((mem_range_radicalHom hε).1 hu) |
| 110 | have h_comm : h.val * ε = ε * h.val := mem_blockDiagonalGroup.1 hh |
| 111 | have h_fix : u.val * ε = ε := by linear_combination (norm := noncomm_ring) h_right |
| 112 | have h_first : ε * (h.val * u.val) * ε = h.val * ε := by |
| 113 | rw [mul_assoc, mul_assoc, h_fix, h_comm, ← mul_assoc, hε.eq] |
| 114 | have h_second : (1 - ε) * (h.val * u.val) = h.val * (1 - ε) := by |
| 115 | linear_combination (norm := noncomm_ring) h_comm * u.val - h.val * h_left |
| 116 | simp [h_first, h_second, mul_assoc h.val, hε.one_sub.eq, ← mul_add] |
| 117 | |
| 118 | /-- Let the idempotent `ε` have entries in the subring `O`. If `h u` lies in `GL_n(O)`, with `h` |
| 119 | block diagonal and `u` in the radical, then `h` lies in `GL_n(O)`. -/ |
| 120 | lemma mem_intGL_of_mul_radical (hε : IsIdempotentElem ε) (hε_int : ε ∈ O.matrix) {h u : GL n k} |
| 121 | (hh : h ∈ blockDiagonalGroup ε) (hu : u ∈ (radicalHom hε).range) |
| 122 | (h_int : h * u ∈ intGL n O) : h ∈ intGL n O := by |
| 123 | have h_entries {g v : GL n k} (hg : g ∈ blockDiagonalGroup ε) (hv : v ∈ (radicalHom hε).range) |
| 124 | (hgv : (g * v).val ∈ O.matrix) : g.val ∈ O.matrix := by |
| 125 | have h_compl : 1 - ε ∈ O.matrix := sub_mem (one_mem _) hε_int |
| 126 | rw [← diagonal_blocks_mul_radical hε hg hv] |
| 127 | apply_rules [add_mem, mul_mem] |
| 128 | have h_inv : (h * u)⁻¹ = h⁻¹ * (h⁻¹⁻¹ * u⁻¹ * h⁻¹) := by group |
| 129 | obtain ⟨h_val, h_val_inv⟩ := mem_intGL.1 h_int |
| 130 | rw [h_inv] at h_val_inv |
| 131 | exact mem_intGL.2 ⟨h_entries hh hu h_val, h_entries (inv_mem hh) |
| 132 | (conj_mem_range_radicalHom hε (inv_mem hh) (inv_mem hu)) h_val_inv⟩ |
| 133 | |
| 134 | /-- The set `GL_n(O) N`, with `N` the radical of the idempotent `ε`. -/ |
| 135 | noncomputable def iwasawaSet (hε : IsIdempotentElem ε) (O : Subring k) : Set (GL n k) := |
| 136 | (intGL n O : Set (GL n k)) * ((radicalHom hε).range : Set (GL n k)) |
| 137 | |
| 138 | /-- The set `GL_n(O) N` is invariant under right translation by the radical `N`. -/ |
| 139 | lemma mul_radical_mem_iwasawaSet_iff (hε : IsIdempotentElem ε) {g m : GL n k} |
| 140 | (hm : m ∈ (radicalHom hε).range) : g * m ∈ iwasawaSet hε O ↔ g ∈ iwasawaSet hε O := by |
| 141 | constructor |
| 142 | · rintro ⟨a, ha, u, hu, h_eq⟩ |
| 143 | exact ⟨a, ha, u * m⁻¹, mul_mem hu (inv_mem hm), by simp [← mul_assoc, h_eq]⟩ |
| 144 | · rintro ⟨a, ha, u, hu, rfl⟩ |
| 145 | exact ⟨a, ha, u * m, mul_mem hu hm, (mul_assoc a u m).symm⟩ |
| 146 | |
| 147 | /-- Let the idempotent `ε` have entries in `O`, and let `N` be its radical. For `g` in `GL_n(O) N` |
| 148 | and `h` block diagonal, `g h` lies in `GL_n(O) N` exactly if `h` lies in `GL_n(O)`. -/ |
| 149 | lemma mul_mem_iwasawaSet_iff (hε : IsIdempotentElem ε) (hε_int : ε ∈ O.matrix) {g h : GL n k} |
| 150 | (hg : g ∈ iwasawaSet hε O) (hh : h ∈ blockDiagonalGroup ε) : |
| 151 | g * h ∈ iwasawaSet hε O ↔ h ∈ intGL n O := by |
| 152 | obtain ⟨a, ha, u, hu, rfl⟩ := hg |
| 153 | have hu_conj : h⁻¹ * u * h ∈ (radicalHom hε).range := conj_mem_range_radicalHom hε hh hu |
| 154 | refine ⟨?_, fun h_int ↦ ⟨a * h, mul_mem ha h_int, h⁻¹ * u * h, hu_conj, by group⟩⟩ |
| 155 | rintro ⟨a', ha', u', hu', h_eq⟩ |
| 156 | have h_quot : h * (h⁻¹ * u * h * u'⁻¹) = a⁻¹ * a' := by |
| 157 | rw [eq_mul_inv_of_mul_eq h_eq] |
| 158 | group |
| 159 | refine mem_intGL_of_mul_radical hε hε_int hh (mul_mem hu_conj (inv_mem hu')) ?_ |
| 160 | simpa only [h_quot] using mul_mem (inv_mem ha) ha' |
| 161 | |
| 162 | /-- If `e` is a projection onto the image of the idempotent `ε`, then the element `1 + (ε - e)` of |
| 163 | the radical conjugates `ε` to `e`. -/ |
| 164 | lemma semiconjBy_radicalHom_sub (hε : IsIdempotentElem ε) {e : Matrix n n k} |
| 165 | (h_range : ε * e = e) (h_fix : e * ε = ε) : |
| 166 | SemiconjBy (radicalHom hε (ofAdd (ε - e))).val ε e := by |
| 167 | have h_mem : ε - e ∈ upperBlocks ε := mem_upperBlocks_iff.mpr |
| 168 | ⟨by rw [mul_sub, hε.eq, h_range], by rw [sub_mul, hε.eq, h_fix, sub_self]⟩ |
| 169 | have h_idem : e * e = e := by rw [← h_range, mul_assoc, ← mul_assoc e, h_fix, ← mul_assoc, hε.eq] |
| 170 | rw [SemiconjBy, coe_radicalHom_mul_idempotent, coe_radicalHom_of_mem hε h_mem, mul_add, mul_sub, |
| 171 | h_fix, |
| 172 | h_idem, mul_one, add_sub_cancel] |
| 173 | |
| 174 | /-- An element `u` of the radical is recovered from the idempotent `e = u ε u⁻¹` as |
| 175 | `1 + (ε - e)`. -/ |
| 176 | lemma radicalHom_sub_eq (hε : IsIdempotentElem ε) {u : GL n k} (hu : u ∈ (radicalHom hε).range) |
| 177 | {e : Matrix n n k} (he : SemiconjBy u.val ε e) : radicalHom hε (ofAdd (ε - e)) = u := by |
| 178 | have h_mem : u.val - 1 ∈ upperBlocks ε := (mem_range_radicalHom hε).1 hu |
| 179 | obtain ⟨h_left, h_right⟩ := mem_upperBlocks_iff.mp h_mem |
| 180 | have h_fix : u.val * ε = ε := by linear_combination (norm := noncomm_ring) h_right |
| 181 | have h_sq : (u.1 - 1) * (u.1 - 1) = 0 := mul_eq_zero_of_mem_upperBlocks h_mem h_left |
| 182 | have h_sub : ε - e = u.val - 1 := u.isUnit.mul_right_cancel <| by |
| 183 | linear_combination (norm := noncomm_ring) he.eq - h_fix + h_left - h_sq |
| 184 | exact Units.ext (by rw [h_sub, coe_radicalHom_of_mem hε h_mem, add_sub_cancel]) |
| 185 | |
| 186 | end Levi |
| 187 | |
| 188 | /-! ### The Iwasawa decomposition and the projection of a coprime factorisation -/ |
| 189 | |
| 190 | section ColumnSpace |
| 191 | |
| 192 | variable {n k : Type} [Fintype n] [DecidableEq n] [CommRing k] {a b : Matrix n n k} |
| 193 | |
| 194 | /-- The matrices whose columns lie in the image of `a`. This set stands for the image of `a`, and |
| 195 | `GL n k` acts on such sets by left multiplication. -/ |
| 196 | def columnSpace (a : Matrix n n k) : Set (Matrix n n k) := Set.range fun M : Matrix n n k ↦ a * M |
| 197 | |
| 198 | /-- If `a u = g b` with `u` and `g` invertible, then `g` moves the image of `b` onto that of `a`. -/ |
| 199 | lemma columnSpace_eq_smul (g u : GL n k) (h_eq : a * u.val = g.val * b) : |
| 200 | columnSpace a = g • columnSpace b := by |
| 201 | ext M |
| 202 | constructor |
| 203 | · rintro ⟨N, rfl⟩ |
| 204 | exact ⟨b * (u⁻¹.val * N), Set.mem_range_self _, by simp [← mul_assoc, ← h_eq]⟩ |
| 205 | · rintro ⟨M', ⟨N, rfl⟩, rfl⟩ |
| 206 | exact ⟨u.val * N, by simp [← mul_assoc, h_eq]⟩ |
| 207 | |
| 208 | /-- An idempotent fixes the columns of every matrix with the same image. -/ |
| 209 | lemma mul_eq_of_columnSpace_eq (ha : IsIdempotentElem a) (h_col : columnSpace b = columnSpace a) : |
| 210 | a * b = b := by |
| 211 | obtain ⟨M, hM⟩ : ∃ M : Matrix n n k, a * M = b := h_col.subset ⟨1, mul_one b⟩ |
| 212 | rw [← hM, ← mul_assoc, ha.eq] |
| 213 | |
| 214 | /-- The permutation matrix of `σ` moves the coordinate subspace of `T` onto that of `σ T`. -/ |
| 215 | lemma columnSpace_coordProjector_map (T : Finset n) (σ : Equiv.Perm n) : |
| 216 | columnSpace (coordProjector (k := k) (T.map σ.toEmbedding)) = |
| 217 | permGL (R := k) σ • columnSpace (coordProjector T) := by |
| 218 | have h_comm : coordProjector (T.map σ.toEmbedding) * (permGL (R := k) σ).val = |
| 219 | (permGL (R := k) σ).val * coordProjector T := by |
| 220 | ext i j |
| 221 | obtain rfl | hij := eq_or_ne (σ.symm i) j <;> |
| 222 | simp [coordProjector, permMatrixHom, PEquiv.toMatrix_apply, Equiv.Perm.inv_def, *] |
| 223 | exact columnSpace_eq_smul (permGL σ) (permGL σ) h_comm |
| 224 | |
| 225 | end ColumnSpace |
| 226 | |
| 227 | section Projector |
| 228 | |
| 229 | variable {n F : Type} [Fintype n] [DecidableEq n] [Field F] |
| 230 | |
| 231 | /-- Over a field where `2 ≠ 0`, an element of the radical of `ε` is conjugate to its square by |
| 232 | `1 + ε`, which is `2` on the image of `ε` and `1` on its kernel. -/ |
| 233 | lemma isConj_mul_self_of_mem_range_radicalHom [NeZero (2 : F)] {ε : Matrix n n F} |
| 234 | (hε : IsIdempotentElem ε) {m : GL n F} (hm : m ∈ (radicalHom hε).range) : IsConj m (m * m) := by |
| 235 | have h_inv : (1 + ε) * (1 - (2⁻¹ : F) • ε) = 1 := by |
| 236 | simp [mul_sub, add_mul, hε.eq, ← two_smul F, smul_smul, |
| 237 | inv_mul_cancel₀ (NeZero.ne (2 : F))] |
| 238 | have h_mem : m.val - 1 ∈ upperBlocks ε := (mem_range_radicalHom hε).1 hm |
| 239 | obtain ⟨h_left, h_right⟩ := mem_upperBlocks_iff.mp h_mem |
| 240 | have h_sq : (m.1 - 1) * (m.1 - 1) = 0 := mul_eq_zero_of_mem_upperBlocks h_mem h_left |
| 241 | -- With `m = 1 + z`, both sides equal `1 + ε + 2 z`. |
| 242 | have h_semiconj : (1 + ε) * m.val = m.val * m.val * (1 + ε) := by |
| 243 | linear_combination (norm := noncomm_ring) h_left - h_sq - (m.val + 1) * h_right |
| 244 | exact isConj_iff.2 ⟨⟨1 + ε, 1 - (2⁻¹ : F) • ε, h_inv, mul_eq_one_comm.1 h_inv⟩, |
| 245 | mul_inv_eq_iff_eq_mul.2 (Units.ext h_semiconj)⟩ |
| 246 | |
| 247 | /-- The image of a diagonal matrix is the coordinate subspace of its non-zero entries. -/ |
| 248 | lemma columnSpace_diagonal {d : n → F} {T : Finset n} (hT : ∀ i : n, i ∈ T ↔ d i ≠ 0) : |
| 249 | columnSpace (diagonal d) = columnSpace (coordProjector T) := by |
| 250 | classical |
| 251 | let t : n → Fˣ := fun i ↦ if h : d i = 0 then 1 else Units.mk0 (d i) h |
| 252 | have h_factor : coordProjector T * (diagGL t).val = (1 : GL n F).val * diagonal d := by |
| 253 | rw [Units.val_one, one_mul, coordProjector, coe_diagGL, diagonal_mul_diagonal] |
| 254 | refine congrArg diagonal (funext fun i ↦ ?_) |
| 255 | by_cases hi : d i = 0 <;> simp [t, hT, hi] |
| 256 | rw [columnSpace_eq_smul 1 (diagGL t) h_factor, one_smul] |
| 257 | |
| 258 | /-- **Iwasawa decomposition, for subspaces.** Let `O` be a subring of `F` with `IsValuationPair O` |
| 259 | (of any two elements of `F` one is a multiple of the other by an element of `O`, for instance a |
| 260 | valuation subring), and let `T` be a set of coordinates with as many elements as the rank |
| 261 | of `e`. Then some element of `GL_n(O)`, the group `intGL n O`, moves the coordinate subspace of `T`, |
| 262 | the image of `coordProjector T`, onto the image of `e`, given by `columnSpace e`. -/ |
| 263 | lemma exists_columnSpace_eq_smul_coordProjector {O : Subring F} (hO : IsValuationPair O) |
| 264 | (e : Matrix n n F) {T : Finset n} (hT : T.card = e.rank) : |
| 265 | ∃ a ∈ intGL n O, columnSpace e = a • columnSpace (coordProjector T) := by |
| 266 | classical |
| 267 | -- Write `e = a d b` in Smith normal form and permute `T` onto the support of `d`. |
| 268 | obtain ⟨a, ha, b, -, d, h_smith⟩ := hO.smith_normal_form e |
| 269 | have h_rank : T.card = (Finset.univ.filter fun i : n ↦ d i ≠ 0).card := by |
| 270 | rw [hT, h_smith, rank_mul_eq_left_of_isUnit_det _ _ (isUnits_det_units b), |
| 271 | rank_mul_eq_right_of_isUnit_det _ _ (isUnits_det_units a), rank_diagonal, |
| 272 | Fintype.card_subtype] |
| 273 | obtain ⟨σ, hσ⟩ := Equiv.Perm.exists_map_finset_eq _ _ h_rank |
| 274 | refine ⟨a * permGL σ, mul_mem ha (permGL_mem_intGL σ), ?_⟩ |
| 275 | calc columnSpace e = a • columnSpace (diagonal d) := |
| 276 | columnSpace_eq_smul a b⁻¹ (by simp [h_smith]) |
| 277 | _ = a • columnSpace (coordProjector (T.map σ.toEmbedding)) := by |
| 278 | rw [hσ, columnSpace_diagonal Finset.mem_filter_univ] |
| 279 | _ = (a * permGL σ) • columnSpace (coordProjector T) := by |
| 280 | rw [columnSpace_coordProjector_map, mul_smul] |
| 281 | |
| 282 | /-- The rank of a coordinate projector matrix indexed by `T` equals the cardinality of `T`. -/ |
| 283 | lemma rank_coordProjector (T : Finset n) : (coordProjector T : Matrix n n F).rank = T.card := by |
| 284 | classical |
| 285 | simp [coordProjector, rank_diagonal] |
| 286 | |
| 287 | /-- **Iwasawa decomposition, for idempotents.** Let `O` be a subring of `F` with `IsValuationPair O` |
| 288 | (for instance a valuation subring). An idempotent `e` of rank `|T|` is `g ε g⁻¹`, with `ε` the |
| 289 | coordinate projector of `T`, for some `g` in `GL_n(O) N`, where `N` is the radical of `ε`. -/ |
| 290 | lemma exists_mem_iwasawaSet_semiconjBy {O : Subring F} (hO : IsValuationPair O) {e : Matrix n n F} |
| 291 | (he : IsIdempotentElem e) {T : Finset n} (hT : T.card = e.rank) : |
| 292 | ∃ g ∈ iwasawaSet (isIdempotentElem_coordProjector T) O, |
| 293 | SemiconjBy g.val (coordProjector T) e := by |
| 294 | -- An integral `a` matches the images; then `a⁻¹ e a` projects onto the coordinate subspace. |
| 295 | obtain ⟨a, ha, h_col⟩ := exists_columnSpace_eq_smul_coordProjector hO e hT |
| 296 | set e' : Matrix n n F := a⁻¹.val * e * a.val with he' |
| 297 | have h_semiconj : SemiconjBy a.val e' e := by simp [SemiconjBy, he', mul_assoc] |
| 298 | have h_idem : IsIdempotentElem e' := by |
| 299 | simp [IsIdempotentElem, he', mul_assoc, ← mul_assoc e, he.eq] |
| 300 | have h_col' : columnSpace e' = columnSpace (coordProjector T) := by |
| 301 | rw [columnSpace_eq_smul a⁻¹ a⁻¹ h_semiconj.units_inv_symm_left.eq.symm, h_col, inv_smul_smul] |
| 302 | refine ⟨a * radicalHom (isIdempotentElem_coordProjector T) (ofAdd (coordProjector T - e')), |
| 303 | Set.mul_mem_mul ha ⟨_, rfl⟩, h_semiconj.mul_left ?_⟩ |
| 304 | exact semiconjBy_radicalHom_sub _ (mul_eq_of_columnSpace_eq (isIdempotentElem_coordProjector T) |
| 305 | h_col') |
| 306 | (mul_eq_of_columnSpace_eq h_idem h_col'.symm) |
| 307 | |
| 308 | /-- **Iwasawa decomposition.** Let `O` be a subring of `F` with `IsValuationPair O` (for instance a |
| 309 | valuation subring). Every invertible matrix lies in `GL_n(O) N H`, with `N` the radical and `H` the |
| 310 | block diagonal group of the coordinate projector of `T`. -/ |
| 311 | lemma exists_mul_mem_iwasawaSet {O : Subring F} (hO : IsValuationPair O) (T : Finset n) |
| 312 | (g : GL n F) : ∃ h ∈ blockDiagonalGroup (coordProjector T), |
| 313 | g * h ∈ iwasawaSet (isIdempotentElem_coordProjector T) O := by |
| 314 | set e : Matrix n n F := g.val * coordProjector T * g⁻¹.val with he |
| 315 | have h_semiconj : SemiconjBy g.val (coordProjector T) e := by simp [SemiconjBy, he] |
| 316 | have h_idem : IsIdempotentElem e := by |
| 317 | simp [IsIdempotentElem, he, mul_assoc, ← mul_assoc (coordProjector T), |
| 318 | (isIdempotentElem_coordProjector T).eq] |
| 319 | have h_rank : T.card = e.rank := by |
| 320 | rw [he, rank_mul_eq_left_of_isUnit_det _ _ (isUnits_det_units g⁻¹), |
| 321 | rank_mul_eq_right_of_isUnit_det _ _ (isUnits_det_units g), rank_coordProjector] |
| 322 | obtain ⟨u, hu, hu_semiconj⟩ := exists_mem_iwasawaSet_semiconjBy hO h_idem h_rank |
| 323 | exact ⟨g⁻¹ * u, h_semiconj.units_inv_symm_left.mul_left hu_semiconj, by simpa using hu⟩ |
| 324 | |
| 325 | /-- Over an algebraically closed field the trace of `p(y)` is the sum of `p` over the roots of the |
| 326 | characteristic polynomial of `y`, with multiplicity. -/ |
| 327 | lemma trace_aeval_eq_sum_roots [IsAlgClosed F] (y : Matrix n n F) (p : F[X]) : |
| 328 | (aeval y p).trace = (y.charpoly.roots.map p.eval).sum := by |
| 329 | induction p using Polynomial.induction_on' with |
| 330 | | add p q hp hq => simp [hp, hq, Multiset.sum_map_add] |
| 331 | | monomial m c => |
| 332 | simp [aeval_monomial, ← Algebra.smul_def, trace_pow_eq_sum_roots, Multiset.sum_map_mul_left] |
| 333 | |
| 334 | variable {A B u v : F[X]} {y : Matrix n n F} |
| 335 | |
| 336 | /-- If `u A + v B = 1` and `y` has characteristic polynomial `A B`, then `(v B)(y)` is |
| 337 | idempotent (it is the projection onto the kernel of `A(y)` along the kernel of `B(y)`). -/ |
| 338 | lemma isIdempotentElem_aeval_of_charpoly_eq (huv : u * A + v * B = 1) (hy : y.charpoly = A * B) : |
| 339 | IsIdempotentElem (aeval y (v * B)) := by |
| 340 | have h_poly : v * B * (v * B) = v * B - u * v * y.charpoly := by |
| 341 | linear_combination (v * B) * huv + u * v * hy |
| 342 | simp only [IsIdempotentElem, ← map_mul, h_poly] |
| 343 | simp [aeval_self_charpoly] |
| 344 | |
| 345 | /-- If `u A + v B = 1` and `y` has characteristic polynomial `A B`, then the projection `(v B)(y)` |
| 346 | onto the kernel of `A(y)` has trace `deg A`. -/ |
| 347 | lemma trace_aeval_eq_natDegree (huv : u * A + v * B = 1) (hy : y.charpoly = A * B) : |
| 348 | (aeval y (v * B)).trace = A.natDegree := by |
| 349 | -- Over an algebraic closure, `v B` is `1` at the roots of `A` and `0` at the roots of `B`. |
| 350 | let f : F →+* AlgebraicClosure F := algebraMap F (AlgebraicClosure F) |
| 351 | have hAB : A.map f * B.map f ≠ 0 := by simpa [hy] using (y.charpoly_monic.map f).ne_zero |
| 352 | have hA (x : AlgebraicClosure F) (hx : x ∈ (A.map f).roots) : ((v * B).map f).eval x = 1 := by |
| 353 | simp [eq_sub_of_add_eq' huv, (isRoot_of_mem_roots hx).eq_zero, -eval_map_algebraMap] |
| 354 | have hB (x : AlgebraicClosure F) (hx : x ∈ (B.map f).roots) : ((v * B).map f).eval x = 0 := by |
| 355 | simp [(isRoot_of_mem_roots hx).eq_zero] |
| 356 | apply f.injective |
| 357 | calc f (aeval y (v * B)).trace |
| 358 | = ((A.map f * B.map f).roots.map ((v * B).map f).eval).sum := by |
| 359 | rw [AddMonoidHom.map_trace, map_aeval_matrix, trace_aeval_eq_sum_roots, charpoly_map, hy, |
| 360 | Polynomial.map_mul (p := A)] |
| 361 | _ = ((A.map f).roots.map fun _ ↦ 1).sum + ((B.map f).roots.map fun _ ↦ 0).sum := by |
| 362 | rw [roots_mul hAB, Multiset.map_add, Multiset.sum_add, Multiset.map_congr rfl hA, |
| 363 | Multiset.map_congr rfl hB] |
| 364 | _ = f A.natDegree := by simp [IsAlgClosed.card_roots_eq_natDegree, natDegree_map] |
| 365 | |
| 366 | /-- In characteristic zero, if `u A + v B = 1` and `y` has characteristic polynomial `A B`, then the |
| 367 | projection `(v B)(y)` onto the kernel of `A(y)` has rank `deg A`. -/ |
| 368 | lemma rank_aeval_eq_natDegree [CharZero F] (huv : u * A + v * B = 1) (hy : y.charpoly = A * B) : |
| 369 | (aeval y (v * B)).rank = A.natDegree := by |
| 370 | rw [← Nat.cast_inj (R := F), ← IsIdempotentElem.trace_eq_rank |
| 371 | (isIdempotentElem_aeval_of_charpoly_eq huv hy), trace_aeval_eq_natDegree huv hy] |
| 372 | |
| 373 | /-- If `A B` is a characteristic polynomial and neither factor is a unit, some proper non-empty set |
| 374 | of coordinates has `deg A` elements. -/ |
| 375 | lemma exists_finset_card_eq_natDegree (hA : ¬IsUnit A) (hB : ¬IsUnit B) (hy : y.charpoly = A * B) : |
| 376 | ∃ T : Finset n, T ≠ ∅ ∧ T ≠ Finset.univ ∧ T.card = A.natDegree := by |
| 377 | obtain ⟨hA_ne, hB_ne⟩ : A ≠ 0 ∧ B ≠ 0 := by simpa [hy] using y.charpoly_monic.ne_zero |
| 378 | have hA_pos : 0 < A.natDegree := natDegree_pos_iff_degree_pos.2 <| |
| 379 | degree_pos_of_ne_zero_of_nonunit hA_ne hA |
| 380 | have hB_pos : 0 < B.natDegree := natDegree_pos_iff_degree_pos.2 <| |
| 381 | degree_pos_of_ne_zero_of_nonunit hB_ne hB |
| 382 | have h_sum : A.natDegree + B.natDegree = (Finset.univ : Finset n).card := by |
| 383 | rw [← natDegree_mul hA_ne hB_ne, ← hy, charpoly_natDegree_eq_dim, Finset.card_univ] |
| 384 | obtain ⟨T, -, hT⟩ := Finset.exists_subset_card_eq (Nat.le.intro h_sum) |
| 385 | exact ⟨T, by grind, by grind, hT⟩ |
| 386 | |
| 387 | end Projector |
| 388 | |
| 389 | /-! ### Step 1: the block diagonal elements form a slice -/ |
| 390 | |
| 391 | section Topology |
| 392 | |
| 393 | variable {n F : Type} [Fintype n] [DecidableEq n] |
| 394 | |
| 395 | /-- Over a Hausdorff topological ring the matrices with a given characteristic polynomial form a |
| 396 | closed set. -/ |
| 397 | lemma isClosed_setOf_charpoly_eq [CommRing F] [TopologicalSpace F] [IsTopologicalRing F] [T2Space F] |
| 398 | (P : F[X]) : IsClosed {M : Matrix n n F | M.charpoly = P} := by |
| 399 | simp only [AddMonoidAlgebra.ext_iff, Finsupp.ext_iff, Set.ofPred_forall] |
| 400 | exact isClosed_iInter fun i ↦ isClosed_eq (Matrix.continuous_charpoly_coeff i) continuous_const |
| 401 | |
| 402 | variable [NormedField F] |
| 403 | |
| 404 | open scoped Matrix.Norms.Operator in |
| 405 | /-- Over a complete normed field `GL_n` is open in the space of matrices. -/ |
| 406 | lemma isOpenEmbedding_coe_generalLinearGroup [CompleteSpace F] : |
| 407 | IsOpenEmbedding fun g : GL n F ↦ g.val := by |
| 408 | -- `Units.isOpenEmbedding_val` asks for completeness in the uniform structure of the norm. |
| 409 | let _ : UniformSpace (Matrix n n F) := PseudoMetricSpace.toUniformSpace |
| 410 | have : CompleteSpace (Matrix n n F) := Pi.complete _ |
| 411 | exact Units.isOpenEmbedding_val |
| 412 | |
| 413 | /-- Over a complete normed field, let the idempotent matrices `e y` tend to the idempotent `e₀` |
| 414 | along a filter, and let `O` be a neighbourhood of `1` in `GL_n(F)`. Then eventually `e y` is |
| 415 | `g e₀ g⁻¹` for some `g ∈ O`. -/ |
| 416 | lemma eventually_exists_semiconjBy_of_isIdempotentElem [CompleteSpace F] {Y : Type} {l : Filter Y} |
| 417 | {e : Y → Matrix n n F} {e₀ : Matrix n n F} (h_lim : Tendsto e l (𝓝 e₀)) |
| 418 | (h_idem₀ : IsIdempotentElem e₀) (h_idem : ∀ᶠ y : Y in l, IsIdempotentElem (e y)) |
| 419 | {O : Set (GL n F)} (hO : O ∈ 𝓝 (1 : GL n F)) : |
| 420 | ∀ᶠ y : Y in l, ∃ g ∈ O, SemiconjBy g.val e₀ (e y) := by |
| 421 | -- The intertwiner tends to `1`, so it eventually belongs to the prescribed neighbourhood. |
| 422 | have h_cont : Continuous (fun q ↦ TauCeti.intertwiner e₀ q) := by |
| 423 | simp only [TauCeti.intertwiner_def] |
| 424 | fun_prop |
| 425 | have h_tendsto : Tendsto (fun y : Y ↦ TauCeti.intertwiner e₀ (e y)) l (𝓝 (1 : GL n F).1) := by |
| 426 | simpa only [Function.comp_def, h_idem₀.intertwiner_self, Units.val_one] using |
| 427 | (h_cont.tendsto e₀).comp h_lim |
| 428 | filter_upwards [h_idem, h_tendsto.eventually |
| 429 | (isOpenEmbedding_coe_generalLinearGroup.image_mem_nhds.2 hO)] with y hy ⟨g, hg, hg_val⟩ |
| 430 | refine ⟨g, hg, ?_⟩ |
| 431 | simpa only [SemiconjBy, hg_val] using h_idem₀.intertwiner_mul hy |
| 432 | |
| 433 | end Topology |
| 434 | |
| 435 | section Place |
| 436 | |
| 437 | variable {E n : Type} [Field E] [NumberField E] [IsCMField E] [Fintype n] [DecidableEq n] |
| 438 | {w : FinPlace E} (hw : w.IsSplit) |
| 439 | |
| 440 | open New.TestFunction |
| 441 | |
| 442 | /-- The embedding of `GL_n(E_w)` into `Gf E n` at the split place `w`, as a continuous |
| 443 | homomorphism. -/ |
| 444 | noncomputable def atSplitContinuous : GL n (LocField w) →ₜ* Gf E n := |
| 445 | ⟨ofSplitPlace hw, continuous_ofSplitPlace hw⟩ |
| 446 | |
| 447 | /-- Evaluates `atSplitContinuous hw g` as `ofSplitPlace hw g` by definition. -/ |
| 448 | lemma atSplitContinuous_apply (g : GL n (LocField w)) : |
| 449 | atSplitContinuous hw g = ofSplitPlace hw g := rfl |
| 450 | |
| 451 | /-- Let `y_w` be the component of `y` at the split place `w`. If `a⁻¹ y_w a = y_w b` in |
| 452 | `GL_n(E_w)`, then `a⁻¹ y a = y b` with `a` and `b` embedded at `w` (by `ofSplitPlace`). -/ |
| 453 | lemma ofSplitPlace_conj_eq_mul {y : Gf E n} {a b : GL n (LocField w)} |
| 454 | (h_semiconj : SemiconjBy a (y.atPlace w * b) (y.atPlace w)) : |
| 455 | (ofSplitPlace hw a)⁻¹ * y * ofSplitPlace hw a = y * ofSplitPlace hw b := by |
| 456 | set g : GL n (LocField w) := y.atPlace w with hg |
| 457 | set c : Gf E n := y * (ofSplitPlace hw g)⁻¹ with hc |
| 458 | have hc_trivial : c ∈ Gf.trivialOn n {w} := |
| 459 | Gf.mem_trivialOn.2 <| by simp [hc, hg, atPlace_ofSplitPlace] |
| 460 | have h_comm : Commute (ofSplitPlace hw a⁻¹) c := |
| 461 | Gf.commute_supportedOn_trivialOn (ofSplitPlace_mem_supportedOn hw a⁻¹) hc_trivial |
| 462 | have hy : y = c * ofSplitPlace hw g := (inv_mul_cancel_right y _).symm |
| 463 | calc (ofSplitPlace hw a)⁻¹ * y * ofSplitPlace hw a = c * ofSplitPlace hw (a⁻¹ * (g * a)) := by |
| 464 | rw [hy, ← map_inv, ← mul_assoc, h_comm.eq, map_mul, map_mul, mul_assoc, mul_assoc] |
| 465 | _ = y * ofSplitPlace hw b := by |
| 466 | rw [← h_semiconj.eq, inv_mul_cancel_left, map_mul, ← mul_assoc, ← hy] |
| 467 | |
| 468 | variable (n) in |
| 469 | /-- The elements of `Gf E n` whose component at `w` has characteristic polynomial `P`. -/ |
| 470 | def charpolyLocus (P : (LocField w)[X]) : Set (Gf E n) := |
| 471 | {y : Gf E n | (y.atPlace w : Matrix n n (LocField w)).charpoly = P} |
| 472 | |
| 473 | /-- An element lies in `charpolyLocus n P` exactly if its component at `w` has the characteristic |
| 474 | polynomial `P`. -/ |
| 475 | lemma mem_charpolyLocus {P : (LocField w)[X]} {y : Gf E n} : |
| 476 | y ∈ charpolyLocus n P ↔ (y.atPlace w : Matrix n n (LocField w)).charpoly = P := |
| 477 | Iff.rfl |
| 478 | |
| 479 | variable (n) in |
| 480 | /-- The elements `y` with characteristic polynomial `P` at `w` and `p(y_w) = ε`. If `p(y_w)` is the |
| 481 | projection that belongs to a coprime factorisation of `P` and `ε` is a coordinate projector, these |
| 482 | are the `y` for which `y_w` is block diagonal and the two blocks have the two factors as their |
| 483 | characteristic polynomials, up to scalars. -/ |
| 484 | def blockLocus (P p : (LocField w)[X]) (ε : Matrix n n (LocField w)) : Set (Gf E n) := |
| 485 | {y ∈ charpolyLocus n P | aeval (y.atPlace w).val p = ε} |
| 486 | |
| 487 | /-- For `g` embedded at `w` and a polynomial `p`, the matrix `g` conjugates `p((g⁻¹ x g)_w)` to |
| 488 | `p(x_w)`. -/ |
| 489 | lemma semiconjBy_aeval_atPlace_conj (g : GL n (LocField w)) (x : Gf E n) (p : (LocField w)[X]) : |
| 490 | SemiconjBy g.val (aeval (((ofSplitPlace hw g)⁻¹ * x * ofSplitPlace hw g).atPlace w).val p) |
| 491 | (aeval (x.atPlace w).val p) := |
| 492 | aeval_semiconj (by simp [atPlace_ofSplitPlace, ← mul_assoc]) p |
| 493 | |
| 494 | /-- The conjugate `g⁻¹ x g` has characteristic polynomial `P` and `p`-value `ε` at `w` exactly if |
| 495 | `x` has characteristic polynomial `P` at `w` and `p(x_w) = g ε g⁻¹`. -/ |
| 496 | lemma conj_mem_blockLocus_iff {P p : (LocField w)[X]} {ε : Matrix n n (LocField w)} |
| 497 | {g : GL n (LocField w)} {x : Gf E n} : |
| 498 | (ofSplitPlace hw g)⁻¹ * x * ofSplitPlace hw g ∈ blockLocus n P p ε ↔ |
| 499 | x ∈ charpolyLocus n P ∧ SemiconjBy g.val ε (aeval (x.atPlace w).val p) := by |
| 500 | refine and_congr ?_ ?_ |
| 501 | · simp [mem_charpolyLocus, atPlace_ofSplitPlace, charpoly_units_conj'] |
| 502 | · rw [SemiconjBy, ← (semiconjBy_aeval_atPlace_conj hw g x p).eq, Units.mul_right_inj, eq_comm] |
| 503 | |
| 504 | /-- Shows that evaluating a polynomial `p` at `(y.atPlace w).val` is continuous |
| 505 | in `y : Gf E n`. -/ |
| 506 | lemma continuous_aeval_atPlace (p : (LocField w)[X]) : |
| 507 | Continuous fun y : Gf E n ↦ aeval (y.atPlace w).val p := |
| 508 | p.continuous_aeval.comp (Units.continuous_val.comp (Gf.continuous_atPlace w)) |
| 509 | |
| 510 | variable {A B u v : (LocField w)[X]} |
| 511 | |
| 512 | /-- Let `u A + v B = 1` and `|T| = deg A`. The projection onto the kernel of `A(y_w)` is the fixed |
| 513 | polynomial `v B` in `y_w`, so the block diagonal elements form a slice of the set of elements with |
| 514 | characteristic polynomial `A B`, for the block diagonal group. -/ |
| 515 | lemma isSlice_blockLocus (huv : u * A + v * B = 1) {T : Finset n} (hT : T.card = A.natDegree) : |
| 516 | IsSlice (atSplitContinuous hw) (blockDiagonalGroup (coordProjector T)) (charpolyLocus n (A * B)) |
| 517 | (blockLocus n (A * B) (v * B) (coordProjector T)) where |
| 518 | isClosed_subgroup := isClosed_eq (by fun_prop) (by fun_prop) |
| 519 | isClosed := (isClosed_setOf_charpoly_eq (A * B)).preimage |
| 520 | (Units.continuous_val.comp (Gf.continuous_atPlace w)) |
| 521 | mem_iff x := by |
| 522 | refine ⟨fun hx ↦ ?_, fun ⟨g, hg⟩ ↦ ((conj_mem_blockLocus_iff hw).1 hg).1⟩ |
| 523 | obtain ⟨g, -, hg⟩ := exists_mem_iwasawaSet_semiconjBy |
| 524 | (isValuationPair_valuationSubring (LocInt w)) (isIdempotentElem_aeval_of_charpoly_eq huv hx) |
| 525 | (hT.trans (rank_aeval_eq_natDegree huv hx).symm) |
| 526 | exact ⟨g, (conj_mem_blockLocus_iff hw).2 ⟨hx, hg⟩⟩ |
| 527 | conj_mem_iff y hy g := by |
| 528 | rw [atSplitContinuous_apply, conj_mem_blockLocus_iff, hy.2, and_iff_right hy.1, |
| 529 | mem_blockDiagonalGroup, SemiconjBy] |
| 530 | eventually_exists_conj_mem O hO y hy := by |
| 531 | have h_lim : Tendsto (fun x : Gf E n ↦ aeval (x.atPlace w).val (v * B)) |
| 532 | (𝓝[charpolyLocus n (A * B)] y) (𝓝 (coordProjector T)) := |
| 533 | (continuous_aeval_atPlace (v * B)).continuousWithinAt.tendsto.mono_right (by rw [hy.2]) |
| 534 | have h_idem : ∀ᶠ x : Gf E n in 𝓝[charpolyLocus n (A * B)] y, |
| 535 | IsIdempotentElem (aeval (x.atPlace w).val (v * B)) := |
| 536 | eventually_mem_nhdsWithin.mono fun x hx ↦ isIdempotentElem_aeval_of_charpoly_eq huv hx |
| 537 | filter_upwards [eventually_mem_nhdsWithin, eventually_exists_semiconjBy_of_isIdempotentElem |
| 538 | h_lim (isIdempotentElem_coordProjector T) h_idem hO] with x hx ⟨g, hg, hg_semiconj⟩ |
| 539 | exact ⟨g, hg, (conj_mem_blockLocus_iff hw).2 ⟨hx, hg_semiconj⟩⟩ |
| 540 | |
| 541 | /-! ### Step 3: the choice of the function `Ψ` -/ |
| 542 | |
| 543 | /-- For a compact open subset `V` of `GL_n(E_w)`, the function `(g, y) ↦ φ (g y g⁻¹)` on |
| 544 | `V × Gf E n`, extended by zero, is a test function. -/ |
| 545 | lemma exists_testFunction_eq_indicator_of_isCompact {V : Set (GL n (LocField w))} |
| 546 | (hV_open : IsOpen V) (hV_compact : IsCompact V) (φ : TestFunction (Gf E n)) : |
| 547 | ∃ Ψ : TestFunction (GL n (LocField w) × Gf E n), ∀ (g : GL n (LocField w)) (y : Gf E n), |
| 548 | Ψ.val (g, y) = V.indicator 1 g * φ.val (ofSplitPlace hw g * y * (ofSplitPlace hw g)⁻¹) := by |
| 549 | obtain ⟨hφ_const, hφ_compact, -⟩ := φ.property |
| 550 | have hV_const : IsLocallyConstant (V.indicator (1 : GL n (LocField w) → ℂ)) := |
| 551 | (LocallyConstant.indicator 1 ⟨hV_compact.isClosed, hV_open⟩).isLocallyConstant |
| 552 | have h_shear : Continuous fun z : GL n (LocField w) × Gf E n ↦ |
| 553 | (z.1, (ofSplitPlace hw z.1)⁻¹ * z.2 * ofSplitPlace hw z.1) := by fun_prop |
| 554 | refine ⟨⟨fun z ↦ V.indicator 1 z.1 * φ.val (ofSplitPlace hw z.1 * z.2 * (ofSplitPlace hw z.1)⁻¹), |
| 555 | (hV_const.comp_continuous continuous_fst).mul (hφ_const.comp_continuous (by fun_prop)), |
| 556 | .of_support_subset_isCompact ((hV_compact.prod hφ_compact).image h_shear) fun z hz ↦ ?_, |
| 557 | Set.subset_univ _⟩, fun _ _ ↦ rfl⟩ |
| 558 | exact ⟨(z.1, ofSplitPlace hw z.1 * z.2 * (ofSplitPlace hw z.1)⁻¹), |
| 559 | ⟨Set.mem_of_indicator_ne_zero (left_ne_zero_of_mul hz), |
| 560 | subset_tsupport _ (right_ne_zero_of_mul hz)⟩, by simp [mul_assoc]⟩ |
| 561 | |
| 562 | /-- Let `w` be a split finite place of the CM field `E`, let `ε` be an idempotent matrix over `E_w`, |
| 563 | and let `iwasawaSet hε O_w` be the set `GL_n(O_w) N`, with `N` the unipotent radical of the |
| 564 | parabolic subgroup of `GL_n(E_w)` attached to `ε`. Suppose the test function `φ` on `G_f` is |
| 565 | invariant under conjugation by the images `ofSplitPlace hw k` of all `k ∈ GL_n(O_w)`. Then there is |
| 566 | a test function `Ψ` on `GL_n(E_w) × G_f` such that, for every `y` whose component `y_w` satisfies |
| 567 | `p(y_w) = ε`, `Ψ (g, y) = φ (g y g⁻¹)` when `g ∈ GL_n(O_w) N` and `Ψ (g, y) = 0` otherwise (with `g` |
| 568 | acting through `ofSplitPlace hw`). -/ |
| 569 | lemma exists_testFunction_eq_indicator {ε : Matrix n n (LocField w)} (hε : IsIdempotentElem ε) |
| 570 | (p : (LocField w)[X]) {φ : TestFunction (Gf E n)} |
| 571 | (h_inv : ∀ k ∈ localIntGL n w, ∀ x : Gf E n, |
| 572 | φ.val (ofSplitPlace hw k * x * (ofSplitPlace hw k)⁻¹) = φ.val x) : |
| 573 | ∃ Ψ : TestFunction (GL n (LocField w) × Gf E n), ∀ y : Gf E n, aeval (y.atPlace w).val p = ε → |
| 574 | ∀ g : GL n (LocField w), Ψ.val (g, y) = (iwasawaSet hε (LocInt w).toSubring).indicator |
| 575 | (fun g : GL n (LocField w) ↦ φ.val (ofSplitPlace hw g * y * (ofSplitPlace hw g)⁻¹)) g := by |
| 576 | -- If `g = k r` with `r ∈ N` and `x = r y r⁻¹` lies in the support of `φ`, then `r = ρ x` for a |
| 577 | -- continuous `ρ`, so `g` lies in a fixed compact open set `V`. |
| 578 | let ρ (x : Gf E n) : GL n (LocField w) := radicalHom hε (ofAdd (ε - aeval (x.atPlace w).val p)) |
| 579 | have hρ : Continuous ρ := (continuous_radicalHom hε).comp |
| 580 | (continuous_ofAdd.comp (continuous_const.sub (continuous_aeval_atPlace p))) |
| 581 | obtain ⟨-, hφ_compact, -⟩ := φ.property |
| 582 | let V : Set (GL n (LocField w)) := (localIntGL n w : Set (GL n (LocField w))) * ρ '' tsupport φ.1 |
| 583 | obtain ⟨Ψ, hΨ⟩ := exists_testFunction_eq_indicator_of_isCompact hw (V := V) |
| 584 | (isOpen_localIntGL w).mul_right ((isCompact_localIntGL w).mul (hφ_compact.isCompact.image hρ)) φ |
| 585 | refine ⟨Ψ, fun y hy g ↦ ?_⟩ |
| 586 | rw [hΨ] |
| 587 | by_cases h_zero : φ.val (ofSplitPlace hw g * y * (ofSplitPlace hw g)⁻¹) = 0 |
| 588 | · rw [h_zero, mul_zero, Set.indicator_apply_eq_zero.2] |
| 589 | exact fun _ ↦ h_zero |
| 590 | by_cases hg : g ∈ iwasawaSet hε (LocInt w).toSubring |
| 591 | · obtain ⟨k, hk, r, hr, rfl⟩ := hg |
| 592 | set x : Gf E n := ofSplitPlace hw r * y * (ofSplitPlace hw r)⁻¹ with hx |
| 593 | have hx_supp : φ.val x ≠ 0 := by |
| 594 | rw [← h_inv k hk x] |
| 595 | simpa [hx, mul_assoc] using h_zero |
| 596 | have h_semiconj : SemiconjBy r.val ε (aeval (x.atPlace w).val p) := by |
| 597 | simpa [hx, mul_assoc, hy] using semiconjBy_aeval_atPlace_conj hw r x p |
| 598 | have h_mem : k * r ∈ V := |
| 599 | Set.mul_mem_mul hk ⟨x, subset_tsupport _ hx_supp, radicalHom_sub_eq hε hr h_semiconj⟩ |
| 600 | rw [Set.indicator_of_mem h_mem, Set.indicator_of_mem (s := iwasawaSet hε _) |
| 601 | (Set.mul_mem_mul hk hr), Pi.one_apply, one_mul] |
| 602 | · have h_subset : V ⊆ iwasawaSet hε (LocInt w).toSubring := |
| 603 | Set.mul_subset_mul_left (Set.image_subset_iff.2 fun x _ ↦ ⟨_, rfl⟩) |
| 604 | simp [hg, Set.notMem_subset h_subset hg] |
| 605 | |
| 606 | omit [IsCMField E] in |
| 607 | /-- For every `g`, the set of the block diagonal `h` with `g h` in `GL_n(O_w) N` is a coset of the |
| 608 | integral block diagonal group, so the integral over `h` of a constant `c` on this set is the volume |
| 609 | of the integral block diagonal group times `c`. -/ |
| 610 | lemma integral_indicator_iwasawaSet_mul (T : Finset n) |
| 611 | (ν : Measure (blockDiagonalGroup (coordProjector T : Matrix n n (LocField w)))) |
| 612 | [ν.IsMulLeftInvariant] (g : GL n (LocField w)) (c : ℂ) : |
| 613 | ∫ h : blockDiagonalGroup (coordProjector T : Matrix n n (LocField w)), |
| 614 | (iwasawaSet (isIdempotentElem_coordProjector T) (LocInt w).toSubring).indicator (fun _ ↦ c) |
| 615 | (g * h) ∂ν = |
| 616 | ν.real ((localIntGL n w).subgroupOf (blockDiagonalGroup (coordProjector T))) • c := by |
| 617 | obtain ⟨h₀, hh₀, hg⟩ := |
| 618 | exists_mul_mem_iwasawaSet (isValuationPair_valuationSubring (LocInt w)) T g |
| 619 | have h_int : (coordProjector T : Matrix n n (LocField w)) ∈ (LocInt w).toSubring.matrix := |
| 620 | fun i j ↦ by by_cases h : i = j <;> simp [coordProjector, h, apply_ite] |
| 621 | rw [← integral_mul_left_eq_self _ (⟨h₀, hh₀⟩ : blockDiagonalGroup (coordProjector T)), |
| 622 | ← integral_indicator_const c (Subgroup.subgroupOf_isOpen _ _ |
| 623 | (isOpen_localIntGL w)).measurableSet] |
| 624 | classical |
| 625 | refine integral_congr_ae (.of_forall fun h ↦ ?_) |
| 626 | simp [Set.indicator_apply, ← mul_assoc, mul_mem_iwasawaSet_iff _ h_int hg h.property, |
| 627 | Subgroup.mem_subgroupOf] |
| 628 | |
| 629 | /-- Let `Ψ (g, y)` be `φ (g y g⁻¹)` for `g` in `GL_n(O_w) N` and `0` otherwise, for all `y` with |
| 630 | `p(y_w)` the coordinate projector of `T`. Then `φ` times the volume of the integral block diagonal |
| 631 | group is an image of `Ψ`, the integral of `Ψ` over the orbits of the block diagonal group. -/ |
| 632 | lemma isImage_blockLocus_smul {T : Finset n} {P p : (LocField w)[X]} |
| 633 | (ν : Measure (blockDiagonalGroup (coordProjector T : Matrix n n (LocField w)))) |
| 634 | [ν.IsMulLeftInvariant] {φ : TestFunction (Gf E n)} |
| 635 | {Ψ : TestFunction (GL n (LocField w) × Gf E n)} |
| 636 | (hΨ : ∀ y : Gf E n, aeval (y.atPlace w).val p = coordProjector T → ∀ g : GL n (LocField w), |
| 637 | Ψ.val (g, y) = (iwasawaSet (isIdempotentElem_coordProjector T) (LocInt w).toSubring).indicator |
| 638 | (fun g : GL n (LocField w) ↦ φ.val (ofSplitPlace hw g * y * (ofSplitPlace hw g)⁻¹)) g) : |
| 639 | IsImage (atSplitContinuous hw) ν (blockLocus n P p (coordProjector T)) Ψ |
| 640 | ((ν.real ((localIntGL n w).subgroupOf (blockDiagonalGroup (coordProjector T))) : ℂ) • φ) := by |
| 641 | intro g y hy |
| 642 | rw [Submodule.coe_smul, Pi.smul_apply, Complex.coe_smul, |
| 643 | ← integral_indicator_iwasawaSet_mul T ν g] |
| 644 | refine integral_congr_ae (.of_forall fun h ↦ ?_) |
| 645 | have h_mem : (ofSplitPlace hw h)⁻¹ * y * ofSplitPlace hw h ∈ blockLocus n P p |
| 646 | (coordProjector T) := by |
| 647 | rw [conj_mem_blockLocus_iff, hy.2] |
| 648 | exact ⟨hy.1, h.property⟩ |
| 649 | classical |
| 650 | simp only [atSplitContinuous_apply, hΨ _ h_mem.2] |
| 651 | simp [Set.indicator_apply, mul_assoc] |
| 652 | |
| 653 | omit [IsCMField E] in |
| 654 | /-- The integral points of a closed subgroup of `GL_n(E_w)` have finite non-zero Haar measure. -/ |
| 655 | lemma measureReal_subgroupOf_localIntGL_ne_zero {H : Subgroup (GL n (LocField w))} |
| 656 | (hH : IsClosed (H : Set (GL n (LocField w)))) (ν : Measure H) [ν.IsHaarMeasure] : |
| 657 | ν.real ((localIntGL n w).subgroupOf H) ≠ 0 := by |
| 658 | have h_compact : IsCompact ((localIntGL n w).subgroupOf H : Set H) := |
| 659 | hH.isClosedEmbedding_subtypeVal.isCompact_preimage (isCompact_localIntGL w) |
| 660 | rw [measureReal_ne_zero_iff h_compact.measure_ne_top] |
| 661 | exact (Subgroup.subgroupOf_isOpen _ _ (isOpen_localIntGL w)).measure_ne_zero ν ⟨1, one_mem _⟩ |
| 662 | |
| 663 | omit [IsCMField E] in |
| 664 | /-- Haar measure on `GL_n(E_w)` is invariant under right translation by the radical of an |
| 665 | idempotent. -/ |
| 666 | lemma map_mul_right_eq_self_of_mem_range_radicalHom (μ : Measure (GL n (LocField w))) |
| 667 | [μ.IsHaarMeasure] [μ.InnerRegular] |
| 668 | {ε : Matrix n n (LocField w)} (hε : IsIdempotentElem ε) {m : GL n (LocField w)} |
| 669 | (hm : m ∈ (radicalHom hε).range) : μ.map (· * m) = μ := by |
| 670 | -- As `m` is conjugate to `m ^ 2`, the value `Δ` of the modular character has `Δ = Δ ^ 2`. |
| 671 | have h_sq : Measure.modularCharacter m = |
| 672 | Measure.modularCharacter m * Measure.modularCharacter m := by |
| 673 | simpa using Measure.modularCharacter.map_isConj (isConj_mul_self_of_mem_range_radicalHom hε hm) |
| 674 | have h_one : Measure.modularCharacterFun m = 1 := |
| 675 | (left_eq_mul₀ (Measure.modularCharacterFun_pos m).ne').1 h_sq |
| 676 | rw [Measure.map_right_mul_eq_modularCharacterFun_smul, h_one, one_smul] |
| 677 | |
| 678 | /-- If `p(y_w)` is the idempotent `ε`, the conjugates of `y` under the radical `N` of `ε` fill the |
| 679 | coset `y N`. -/ |
| 680 | lemma exists_conj_eq_mul_radicalHom {ε : Matrix n n (LocField w)} (hε : IsIdempotentElem ε) |
| 681 | {p : (LocField w)[X]} {y : Gf E n} (hy : aeval (y.atPlace w).val p = ε) |
| 682 | (Z : Multiplicative (Matrix n n (LocField w))) : |
| 683 | ∃ m ∈ (radicalHom hε).range, |
| 684 | ofSplitPlace hw m * y * (ofSplitPlace hw m)⁻¹ = y * ofSplitPlace hw (radicalHom hε Z) := by |
| 685 | set x : GL n (LocField w) := y.atPlace w * radicalHom hε Z with hx |
| 686 | have h_semiconj : SemiconjBy |
| 687 | (radicalHom hε (ofAdd (aeval x.val p - aeval (y.atPlace w).val p))) x (y.atPlace w) := |
| 688 | semiconjBy_radicalHom_aeval_sub hε (by rw [hy, hε.eq]) (by rw [hy, hε.eq]) 1 Z (by simp [hx]) |
| 689 | exact ⟨_, inv_mem ⟨_, rfl⟩, by rw [map_inv, inv_inv, ofSplitPlace_conj_eq_mul hw h_semiconj]⟩ |
| 690 | |
| 691 | /-- Let `φ` be invariant under conjugation by `GL_n(O_w)`, let its right translates by the elements |
| 692 | `radicalHom hε (κ i)` of the radical `N` of `ε`, embedded at `w`, have sum zero, and let `m i ∈ N` |
| 693 | conjugate `y` to the translate of `y` by the same element. Then the right translates by the `m i` of |
| 694 | the function `g ↦ φ (g y g⁻¹)` on `GL_n(O_w) N`, extended by zero, have sum zero. -/ |
| 695 | lemma sum_indicator_iwasawaSet_mul_eq_zero {ε : Matrix n n (LocField w)} (hε : IsIdempotentElem ε) |
| 696 | {ι : Type} [Fintype ι] {κ : ι → Multiplicative (Matrix n n (LocField w))} {φ : Gf E n → ℂ} |
| 697 | (h_inv : ∀ k ∈ localIntGL n w, ∀ x : Gf E n, |
| 698 | φ (ofSplitPlace hw k * x * (ofSplitPlace hw k)⁻¹) = φ x) |
| 699 | (h_sum : ∀ x : Gf E n, ∑ i : ι, φ (x * ofSplitPlace hw (radicalHom hε (κ i))) = 0) |
| 700 | {y : Gf E n} {m : ι → GL n (LocField w)} (hm : ∀ i : ι, m i ∈ (radicalHom hε).range) |
| 701 | (h_conj : ∀ i : ι, |
| 702 | ofSplitPlace hw (m i) * y * (ofSplitPlace hw (m i))⁻¹ = y * ofSplitPlace hw |
| 703 | (radicalHom hε (κ i))) |
| 704 | (g : GL n (LocField w)) : |
| 705 | ∑ i : ι, (iwasawaSet hε (LocInt w).toSubring).indicator |
| 706 | (fun g : GL n (LocField w) ↦ φ (ofSplitPlace hw g * y * (ofSplitPlace hw g)⁻¹)) (g * m i) = |
| 707 | 0 := by |
| 708 | by_cases hg : g ∈ iwasawaSet hε (LocInt w).toSubring |
| 709 | · -- For `g = k u`, put `ν i = radicalHom hε (κ i)`. The value at `g * m i` is `φ (u y u⁻¹ ν i)`, |
| 710 | -- since `N` is commutative. |
| 711 | simp only [Set.indicator_of_mem ((mul_radical_mem_iwasawaSet_iff hε (hm _)).2 hg)] |
| 712 | obtain ⟨k, hk, _, ⟨Y, rfl⟩, rfl⟩ := hg |
| 713 | set u : GL n (LocField w) := radicalHom hε Y |
| 714 | rw [← h_sum (ofSplitPlace hw u * y * (ofSplitPlace hw u)⁻¹)] |
| 715 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 716 | have h_comm : Commute (ofSplitPlace hw (radicalHom hε (κ i))) (ofSplitPlace hw u)⁻¹ := |
| 717 | (((Commute.all (κ i) Y).map (radicalHom hε)).map (ofSplitPlace hw)).inv_right |
| 718 | calc φ (ofSplitPlace hw (k * u * m i) * y * (ofSplitPlace hw (k * u * m i))⁻¹) |
| 719 | = φ (ofSplitPlace hw k * (ofSplitPlace hw u * |
| 720 | (ofSplitPlace hw (m i) * y * (ofSplitPlace hw (m i))⁻¹) * |
| 721 | (ofSplitPlace hw u)⁻¹) * (ofSplitPlace hw k)⁻¹) := by |
| 722 | simp only [map_mul, _root_.mul_inv_rev, mul_assoc] |
| 723 | _ = φ (ofSplitPlace hw u * (y * ofSplitPlace hw (radicalHom hε (κ i))) * |
| 724 | (ofSplitPlace hw u)⁻¹) := by |
| 725 | rw [h_inv k hk, h_conj] |
| 726 | _ = φ (ofSplitPlace hw u * y * (ofSplitPlace hw u)⁻¹ * ofSplitPlace hw |
| 727 | (radicalHom hε (κ i))) := by |
| 728 | simp only [mul_assoc, h_comm.eq] |
| 729 | · simp [mul_radical_mem_iwasawaSet_iff hε (hm _), hg] |
| 730 | |
| 731 | /-- Let `φ` be invariant under conjugation by `GL_n(O_w)`, let its right translates by a non-empty |
| 732 | finite family in the radical `N` of `ε` have sum zero, and let `p(y_w) = ε`. Then the integral of |
| 733 | `φ (g y g⁻¹)` over `g ∈ GL_n(O_w) N` vanishes, if it converges. -/ |
| 734 | lemma integral_indicator_iwasawaSet_eq_zero (μ : Measure (GL n (LocField w))) [μ.IsHaarMeasure] |
| 735 | [μ.InnerRegular] {ε : Matrix n n (LocField w)} (hε : IsIdempotentElem ε) {p : (LocField w)[X]} |
| 736 | {ι : Type} [Fintype ι] [Nonempty ι] {κ : ι → Multiplicative (Matrix n n (LocField w))} |
| 737 | {φ : Gf E n → ℂ} |
| 738 | (h_inv : ∀ k ∈ localIntGL n w, ∀ x : Gf E n, |
| 739 | φ (ofSplitPlace hw k * x * (ofSplitPlace hw k)⁻¹) = φ x) |
| 740 | (h_sum : ∀ x : Gf E n, ∑ i : ι, φ (x * ofSplitPlace hw (radicalHom hε (κ i))) = 0) |
| 741 | {y : Gf E n} (hy : aeval (y.atPlace w).val p = ε) |
| 742 | (h_int : Integrable ((iwasawaSet hε (LocInt w).toSubring).indicator |
| 743 | fun g : GL n (LocField w) ↦ φ (ofSplitPlace hw g * y * (ofSplitPlace hw g)⁻¹)) μ) : |
| 744 | ∫ g : GL n (LocField w), (iwasawaSet hε (LocInt w).toSubring).indicator |
| 745 | (fun g : GL n (LocField w) ↦ φ (ofSplitPlace hw g * y * (ofSplitPlace hw g)⁻¹)) g ∂μ = 0 := by |
| 746 | -- Right translates of the integrand `F` by elements `m i` of `N` add up to zero, and each of them |
| 747 | -- has the integral of `F`. |
| 748 | have h_fill (i : ι) : ∃ m ∈ (radicalHom hε).range, |
| 749 | ofSplitPlace hw m * y * (ofSplitPlace hw m)⁻¹ = y * ofSplitPlace hw (radicalHom hε (κ i)) := |
| 750 | exists_conj_eq_mul_radicalHom hw hε hy (κ i) |
| 751 | choose m hm h_conj using h_fill |
| 752 | set F : GL n (LocField w) → ℂ := (iwasawaSet hε (LocInt w).toSubring).indicator |
| 753 | fun g : GL n (LocField w) ↦ φ (ofSplitPlace hw g * y * (ofSplitPlace hw g)⁻¹) |
| 754 | have h_translate (g : GL n (LocField w)) : ∑ i : ι, F (g * m i) = 0 := |
| 755 | sum_indicator_iwasawaSet_mul_eq_zero hw hε h_inv h_sum hm h_conj g |
| 756 | have h_preserving (i : ι) : MeasurePreserving (fun g : GL n (LocField w) ↦ g * m i) μ μ := |
| 757 | ⟨measurable_mul_const _, map_mul_right_eq_self_of_mem_range_radicalHom μ hε (hm i)⟩ |
| 758 | have h_integral (i : ι) : ∫ g, F (g * m i) ∂μ = ∫ g, F g ∂μ := |
| 759 | (h_preserving i).integral_comp (measurableEmbedding_mulRight (m i)) F |
| 760 | have h_card : (Fintype.card ι : ℂ) * ∫ g, F g ∂μ = 0 := |
| 761 | calc _ = ∑ i : ι, ∫ g, F (g * m i) ∂μ := by simp [h_integral] |
| 762 | _ = ∫ g, ∑ i : ι, F (g * m i) ∂μ := |
| 763 | (integral_finsetSum _ fun i _ ↦ (h_preserving i).integrable_comp_of_integrable h_int).symm |
| 764 | _ = 0 := by simp [h_translate] |
| 765 | simpa using h_card |
| 766 | |
| 767 | /-! ### The three steps together -/ |
| 768 | |
| 769 | /-- **Coprime factors.** Let `A, B` be coprime non-units of `E_w[X]` for a split place `w`, and let |
| 770 | `I` be a linear form on the test functions on the finite adelic group `Gf E n` that is invariant |
| 771 | under conjugation (`translate (g, g) f` is `x ↦ f (g⁻¹ x g)`) and depends only on the restriction to |
| 772 | the set of elements with characteristic polynomial `A B` at `w`. Then `I` kills every `φ` that is |
| 773 | cuspidal at `w`, that is, whose sums of translates over the unipotent radicals of the proper |
| 774 | coordinate parabolic subgroups over the residue field at `w` vanish. -/ |
| 775 | theorem eq_zero_of_coprime_factors (hAB : IsCoprime A B) (hA : ¬IsUnit A) (hB : ¬IsUnit B) |
| 776 | (I : TestFunction (Gf E n) →ₗ[ℂ] ℂ) |
| 777 | (h_conj : ∀ (g : Gf E n) (f : TestFunction (Gf E n)), I (translate (g, g) f) = I f) |
| 778 | (h_supp : ∀ f : TestFunction (Gf E n), |
| 779 | (∀ y : Gf E n, (y.atPlace w).val.charpoly = A * B → f.val y = 0) → I f = 0) |
| 780 | {φ : TestFunction (Gf E n)} (hφ : IsCuspidalAt hw φ) : I φ = 0 := by |
| 781 | obtain ⟨u, v, huv⟩ := hAB |
| 782 | have hI : IsInvariantDistribution (atSplitContinuous hw) (charpolyLocus n (A * B)) I := |
| 783 | { map_conjugate := fun g ↦ h_conj (ofSplitPlace hw g), eq_zero := h_supp } |
| 784 | obtain h_empty | ⟨y₀, hy₀⟩ := (charpolyLocus n (A * B)).eq_empty_or_nonempty |
| 785 | · exact hI.eq_zero φ (by simp [h_empty]) |
| 786 | obtain ⟨T, hT_empty, hT_univ, hT_card⟩ := exists_finset_card_eq_natDegree hA hB hy₀ |
| 787 | obtain ⟨ι, _, _, κ, hκ⟩ := hφ.exists_sum_translate_eq_zero hT_empty hT_univ |
| 788 | -- Replace `φ` by the mean `ψ` of its conjugates under `GL_n(O_w)`. |
| 789 | set ψ : TestFunction (Gf E n) := compactMean (conjugate (atSplitContinuous hw)) (localIntGL n w) φ |
| 790 | have h_inv (k : GL n (LocField w)) (hk : k ∈ localIntGL n w) (x : Gf E n) : |
| 791 | ψ.val (ofSplitPlace hw k * x * (ofSplitPlace hw k)⁻¹) = ψ.val x := by |
| 792 | have h_fixed : conjugate (atSplitContinuous hw) k⁻¹ ψ = ψ := apply_compactMean (inv_mem hk) φ |
| 793 | simpa [conjugate_apply, atSplitContinuous_apply] using congrFun (congrArg Subtype.val h_fixed) x |
| 794 | have h_sum (x : Gf E n) : |
| 795 | ∑ i : ι, ψ.val (x * ofSplitPlace hw (radicalHom (isIdempotentElem_coordProjector T) (κ i))) = |
| 796 | 0 := |
| 797 | sum_compactMean_conjugate_eq_zero (j := atSplitContinuous hw) hκ x |
| 798 | -- Step 1: the block diagonal elements `X` form a slice for the block diagonal group `H`. |
| 799 | let H : Subgroup (GL n (LocField w)) := blockDiagonalGroup (coordProjector T) |
| 800 | let X : Set (Gf E n) := blockLocus n (A * B) (v * B) (coordProjector T) |
| 801 | have h_slice : IsSlice (atSplitContinuous hw) H (charpolyLocus n (A * B)) X := |
| 802 | isSlice_blockLocus hw huv hT_card |
| 803 | have : LocallyCompactSpace H := h_slice.isClosed_subgroup.locallyCompactSpace |
| 804 | -- Step 3: a non-zero multiple of `ψ` is the image of a function `Ψ`, equal to `ψ (g y g⁻¹)` on |
| 805 | -- `GL_n(O_w) N × X` and to `0` on the rest of `GL_n(E_w) × X`, whose integrals over `g` vanish. |
| 806 | obtain ⟨Ψ, hΨ⟩ := exists_testFunction_eq_indicator hw (isIdempotentElem_coordProjector T) (v * B) |
| 807 | h_inv |
| 808 | let vol : ℝ := (Measure.haar : Measure H).real ((localIntGL n w).subgroupOf H) |
| 809 | have h_vol : vol ≠ 0 := measureReal_subgroupOf_localIntGL_ne_zero h_slice.isClosed_subgroup _ |
| 810 | have h_image : IsImage (atSplitContinuous hw) (Measure.haar : Measure H) X Ψ ((vol : ℂ) • ψ) := |
| 811 | isImage_blockLocus_smul hw Measure.haar hΨ |
| 812 | have h_integral (y : Gf E n) (hy : y ∈ X) : |
| 813 | ∫ g : GL n (LocField w), Ψ.val (g, y) ∂Measure.haar = 0 := by |
| 814 | simp only [hΨ y hy.2] |
| 815 | exact integral_indicator_iwasawaSet_eq_zero hw _ _ h_inv h_sum hy.2 |
| 816 | (by simpa only [hΨ y hy.2] using integrable_prodMk_left Ψ Measure.haar y) |
| 817 | -- Step 2: `I` kills the image of `Ψ`. |
| 818 | have h_zero : I ((vol : ℂ) • ψ) = 0 := |
| 819 | hI.eq_zero_of_isImage h_slice (isOpen_localIntGL w) (isCompact_localIntGL w) Measure.haar |
| 820 | h_integral h_image |
| 821 | rw [map_smul, hI.map_compactMean] at h_zero |
| 822 | simpa [h_vol] using h_zero |
| 823 | |
| 824 | end Place |
| 825 | |
| 826 | end New |