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

| 1 | module |
| 2 | |
| 3 | public import Lib.Shimura.HeckeTower.HeckeData |
| 4 | public import Lib.Weil.Unramified.SplitHecke |
| 5 | public import Lib.GaloisRep.BaseChange.Defs |
| 6 | import Lib.GaloisRep.Hilbert90.UnitaryGroups |
| 7 | |
| 8 | /-! |
| 9 | # Steps E'/E of base change and commuting families of Hecke operators |
| 10 | |
| 11 | This file sets up base change along an extension `E'/E` of prime degree. It records |
| 12 | place-by-place properties of base change `New.baseChangeGf` and of the Galois action |
| 13 | `New.galoisGf` on the finite adelic unitary group. It defines matching pairs of test functions at |
| 14 | the places above a set `S` of places. It relates operators on fixed vectors to functions on the |
| 15 | group through a common element of the group ring, and builds commuting families of local and |
| 16 | spherical Hecke operators. |
| 17 | |
| 18 | ## Main definitions and results |
| 19 | |
| 20 | * `New.IsStep`: the extension `E'/E` with a character `μ` of the finite ideles of `E` that detects |
| 21 | norms: `μ (z z̄) = 1` exactly when `z` is a principal idele times a norm from `E'`. |
| 22 | * `New.IsMatched`: the places of `E` that split completely in `E'` and at which `μ` is trivial. |
| 23 | * `New.placesAbove E' S`: the places of `E'` above `S ∪ S̄`; `New.IsMatchingPairAbove`: matching |
| 24 | pairs of functions (`New.IsMatchingPair`) at these places. |
| 25 | * `New.IsLocalRetraction`, `New.isLocalRetraction_ofSplitPlace`: a group `A` that is a retract of |
| 26 | the finite adelic unitary group at a set `S` of places; GL_n of the completion at a split place is |
| 27 | one. |
| 28 | * `New.exists_isHeckeFunctionRelation`: the Hecke operators of `A` and spherical operators away from |
| 29 | `S` commute on the vectors fixed by the level, and their products are operators of functions. |
| 30 | |
| 31 | Notions from other files: |
| 32 | * `New.adeleNorm`: for an extension `L/K` of number fields, the norm from the finite adeles of `L` |
| 33 | to the finite adeles of `K`, as a multiplicative map. |
| 34 | * `New.Gf.supportedOn`, `New.Gf.trivialOn`: the elements with component `1` at every place outside |
| 35 | `S ∪ S̄`, and those with component `1` at every place of `S`. |
| 36 | * `New.localLevel`: the elements whose component at each `w ∈ S` lies in `K w`; by default `K w` is |
| 37 | `New.localIntGL`, the integral matrices with integral inverse. |
| 38 | |
| 39 | ## Relation to the literature |
| 40 | |
| 41 | Known; see `Lib.GaloisRep.BaseChange.PrimeDegreeTransfer` and `Lib.Adelic.Hecke.ClassSums` for |
| 42 | sources. |
| 43 | -/ |
| 44 | |
| 45 | @[expose] public section |
| 46 | |
| 47 | /-! |
| 48 | ## Steps, compatible CM types and matched places |
| 49 | |
| 50 | * `New.CMTypeOver`: a CM type of the larger field that restricts to the given one. |
| 51 | * `New.kerCompNorm`: the ideles of `E'` whose norm is killed by `μ`. |
| 52 | -/ |
| 53 | |
| 54 | section StepDefs |
| 55 | |
| 56 | open NumberField |
| 57 | |
| 58 | namespace New |
| 59 | |
| 60 | variable {E : Type} |
| 61 | (E' : Type) [Field E] [NumberField E] [IsCMField E] [Field E'] [NumberField E'] [Algebra E E'] |
| 62 | (μ : outParam ((𝔸f E)ˣ →* ℂˣ)) |
| 63 | |
| 64 | /-- A step `E'/E` with the character `μ` of the finite ideles of `E`: `E` contains a primitive root |
| 65 | of unity of order `5040`, and `E'` is a CM field Galois over `E` of prime degree. Some integer of |
| 66 | `E'` has trace `1`. The character `μ` has open kernel, is trivial on `E^×`, and `μ (z z̄) = 1` |
| 67 | exactly when `z` is a principal idele times a norm from `E'`. -/ |
| 68 | class IsStep [IsCMField E'] extends HasPrimitiveRoot5040 E, IsGalois E E', |
| 69 | Fact (Module.finrank E E').Prime where |
| 70 | /-- The kernel of `μ` is open in the finite ideles of `E`. -/ |
| 71 | isOpen_ker : μ.ker.IsOpen |
| 72 | /-- `μ` is trivial on the principal ideles. -/ |
| 73 | apply_principal (x : Eˣ) : μ (principalIdele x) = 1 |
| 74 | /-- `μ (z z̄) = 1` exactly when `z` is a principal idele times the norm of a finite idele of |
| 75 | `E'`. -/ |
| 76 | apply_norm_eq_one_iff (z : (𝔸f E)ˣ) : |
| 77 | μ (z * star z) = 1 ↔ |
| 78 | ∃ (x : Eˣ) (y : (𝔸f E')ˣ), z = principalIdele x * Units.map (adeleNorm E E') y |
| 79 | /-- Some integer of `E'` has trace `1` down to `E`. -/ |
| 80 | exists_trace_eq_one : ∃ c : 𝓞 E', Algebra.trace E E' c = 1 |
| 81 | |
| 82 | /-- A CM type of `L` that restricts to the given CM type of `K`: the embedding chosen at a place |
| 83 | extends the one chosen at the place below. -/ |
| 84 | class CMTypeOver (K L : Type*) [Field K] [Field L] [Algebra K L] |
| 85 | [PlaceEmbedding K] extends CMType L where |
| 86 | /-- An embedding of `L` is the one chosen at its place exactly when its restriction to `K` is the |
| 87 | embedding chosen at the place below. -/ |
| 88 | eq_chosen_iff (σ : L →+* ℂ) : |
| 89 | σ = Φ (InfinitePlace.mk σ) ↔ |
| 90 | σ.comp (algebraMap K L) = New.Φ (InfinitePlace.comap (InfinitePlace.mk σ) (algebraMap K L)) |
| 91 | |
| 92 | /-- The group of finite ideles of `E'` whose norm to `E` is killed by `μ`. -/ |
| 93 | noncomputable abbrev kerCompNorm : Subgroup (𝔸f E')ˣ := (μ.comp (Units.map (adeleNorm E E'))).ker |
| 94 | |
| 95 | /-- The place `w` of `E` is matched: `μ` is trivial on `E_w^×`, and every place `u` of `E'` above |
| 96 | `w` has the same norm as `w` (`u.q = w.q`, the sizes of the residue fields; so `u` has residue |
| 97 | degree `1`) and is moved by every `σ ≠ 1`. -/ |
| 98 | def IsMatched (w : FinPlace E) : Prop := |
| 99 | -- (a) `μ` is trivial on the ideles supported at `w` |
| 100 | (∀ x : (LocField w)ˣ, μ (locIdele w x) = 1) ∧ |
| 101 | -- (b) every place `u` above `w` has the norm of `w` and is moved by every `σ ≠ 1` |
| 102 | ∀ u : FinPlace E', u.below E = w → u.q = w.q ∧ ∀ σ ≠ (1 : Gal(E'/E)), u.comap σ ≠ u |
| 103 | |
| 104 | end New |
| 105 | |
| 106 | end StepDefs |
| 107 | |
| 108 | namespace New |
| 109 | |
| 110 | /-! |
| 111 | ## Base change and Galois action place by place |
| 112 | |
| 113 | * `New.atPlace_galoisGf`, `New.atPlace_baseChangeGf`: local components; |
| 114 | `New.baseChangeGf_mem_stdLevel`, `New.baseChangeGf_mem_supportedOn`: base change respects |
| 115 | integrality and supports. |
| 116 | |
| 117 | `g.atPlace w` is the component at `w`; `New.Gf.supportedOn n S` consists of the elements trivial |
| 118 | outside `S ∪ S̄`, `New.Gf.trivialOn n S` of those trivial on `S`; `New.idem S` is the indicator |
| 119 | adele of `S`. |
| 120 | -/ |
| 121 | |
| 122 | section BaseChangePlaces |
| 123 | |
| 124 | open Matrix Valued Module Gf IsGalois |
| 125 | |
| 126 | variable {E E' n : Type _} [Field E] [CMType E] [Field E'] [CMType E'] [Algebra E E'] [Fintype n] |
| 127 | [DecidableEq n] (σ : Gal(E'/E)) (μ : (𝔸f E)ˣ →* ℂˣ) {w : FinPlace E} {u : FinPlace E'} |
| 128 | (S : Set (FinPlace E)) (g : Gf E n) |
| 129 | |
| 130 | /-! ### Places above `S` and local components -/ |
| 131 | |
| 132 | variable (E') in |
| 133 | /-- The set of finite places of `E'` lying above a place of `S` or above the complex conjugate of a |
| 134 | place of `S`. -/ |
| 135 | noncomputable def placesAbove : Set (FinPlace E') := FinPlace.below (L := E') E ⁻¹' S.conjClosure |
| 136 | |
| 137 | omit [CMType E] in |
| 138 | /-- If `σ` pulls the place `u` back to `v`, the component of `σ g` at `u` is the image of the |
| 139 | component of `g` at `v` under `locMap σ h`, the map of completions given by `σ`, where |
| 140 | `h : u.comap σ = v`. -/ |
| 141 | lemma atPlace_galoisGf (g : Gf E' n) {v : FinPlace E'} h : |
| 142 | (galoisGf σ g).atPlace u = .map (locMap σ h) (g.atPlace v) := by |
| 143 | subst h |
| 144 | rfl |
| 145 | |
| 146 | /-- The condition `New.IsMatchingPair` for `σ` on the finite adeles of `E'`, the degree `[E' : E]`, |
| 147 | the idempotent of the places above `S ∪ S̄`, the ideles killed by `μ ∘ Nm`, and the base change map |
| 148 | `New.baseChangeGf`. -/ |
| 149 | abbrev IsMatchingPairAbove : |
| 150 | Subgroup (U (1 : Matrix n n (𝔸f E'))) → (Gf E n → ℂ) → (U (1 : Matrix n n (𝔸f E')) → ℂ) → |
| 151 | Prop := |
| 152 | IsMatchingPair (adeleMap_star σ) (finrank E E') (idem (placesAbove E' S)) (kerCompNorm E' μ) |
| 153 | (baseChangeGf : Gf E n → Gf E' n) |
| 154 | |
| 155 | /-- The base-change homomorphism `baseChangeGf` is continuous on finite adele groups. -/ |
| 156 | lemma continuous_baseChangeGf : Continuous (baseChangeGf : Gf E n → Gf E' n) := U.continuous_map |
| 157 | |
| 158 | /-- The component of the base change of `g` at `u` is the image of the component of `g` at the |
| 159 | place below `u`. -/ |
| 160 | lemma atPlace_baseChangeGf : |
| 161 | (baseChangeGf g).atPlace u = |
| 162 | GeneralLinearGroup.map (locMap (algebraMap E E') rfl) (g.atPlace (u.below E)) := rfl |
| 163 | |
| 164 | /-- Entry `(i, j)` of `g.atPlace w - 1` is entry `(i, j)` of `g - 1` evaluated at `w`. -/ |
| 165 | lemma atPlace_sub_one_apply (i j : n) : ((g.atPlace w).val - 1) i j = (g.val.val - 1) i j w := by |
| 166 | aesop (add simp Matrix.one_apply) |
| 167 | |
| 168 | variable {σ μ S g} |
| 169 | |
| 170 | /-! ### Integrality and supports -/ |
| 171 | |
| 172 | /-- `placesAbove E' S` is stable under complex conjugation: `star u` lies in it iff `u` does. -/ |
| 173 | @[simp] |
| 174 | lemma star_mem_placesAbove : star u ∈ placesAbove E' S ↔ u ∈ placesAbove E' S := by |
| 175 | -- `star` exchanges the two parts of `S.conjClosure`. |
| 176 | simp only [placesAbove, Set.mem_preimage, below_star, Set.conjClosure, Set.mem_union, star_star] |
| 177 | exact or_comm |
| 178 | |
| 179 | omit [Algebra E E'] in |
| 180 | /-- An invertible matrix over the completion at `w` is integral with integral inverse exactly when |
| 181 | its image at a place `u` above `w` is, under `locMap f h` with `h : u.comap f = w` (`v.integer`: the |
| 182 | valuation ring of `Valued.v`). -/ |
| 183 | lemma map_locMap_mem_intGL_iff {f : E →+* E'} (h : u.comap f = w) |
| 184 | {g : GL n (IsDedekindDomain.HeightOneSpectrum.adicCompletion E w)} : |
| 185 | .map (locMap f h) g ∈ intGL n v.integer ↔ g ∈ intGL n v.integer := by |
| 186 | simp [mem_intGL, ← map_inv, v.mem_integer_iff] |
| 187 | |
| 188 | /-- `baseChangeGf g` lies in `stdLevel E' n` if and only if `g` lies in |
| 189 | `stdLevel E n`. -/ |
| 190 | lemma baseChangeGf_mem_stdLevel : baseChangeGf g ∈ stdLevel E' n ↔ g ∈ stdLevel E n := by |
| 191 | simp [mem_stdLevel, baseChangeGf, U.map] |
| 192 | |
| 193 | /-- If `g ∈ supportedOn n S`, then `baseChangeGf g` lies in |
| 194 | `supportedOn n (placesAbove E' S)`. -/ |
| 195 | lemma baseChangeGf_mem_supportedOn : |
| 196 | g ∈ supportedOn n S → baseChangeGf g ∈ supportedOn n (placesAbove E' S) := by |
| 197 | simp_all [atPlace_baseChangeGf, placesAbove] |
| 198 | |
| 199 | /-- `g` agrees with the identity matrix after multiplication by the idempotent of `S` exactly when |
| 200 | its components at the places of `S` are `1`. -/ |
| 201 | lemma idem_smul_eq_iff_mem_trivialOn : idem S • g.val.val = idem S • 1 ↔ g ∈ trivialOn n S := by |
| 202 | -- Both sides say that the entries of `g` are those of the identity at every place of `S`. |
| 203 | simp +contextual [Units.ext_iff, Gf.atPlace, ← ext_iff, DFunLike.ext_iff, idem_apply, apply_ite, |
| 204 | ite_prop_iff_and, Matrix.one_apply] |
| 205 | grind |
| 206 | |
| 207 | /-- The subgroup `trivialOn n S` is contained in `localLevel n S K`. -/ |
| 208 | lemma trivialOn_le_localLevel {K : (w : FinPlace E) → Subgroup (GL n (LocField w))} : |
| 209 | trivialOn n S ≤ localLevel n S K := by |
| 210 | aesop_cat |
| 211 | |
| 212 | /-- If no place of `T` lies in `S` or in its conjugate, the elements supported on `S ∪ S̄` are |
| 213 | trivial at the places of `T`. -/ |
| 214 | lemma Gf.supportedOn_le_trivialOn {T : Set (FinPlace E)} (H : ∀ w ∈ T, w ∉ S ∧ star w ∉ S) : |
| 215 | supportedOn n S ≤ trivialOn n T := |
| 216 | biInf_mono H |
| 217 | |
| 218 | /-- The adelic map along `σ` fixes `idem (placesAbove E' S)`. -/ |
| 219 | lemma adeleMap_idem_placesAbove : |
| 220 | adeleMap σ (idem (placesAbove E' S)) = idem (placesAbove E' S) := by |
| 221 | -- A place `u` and its pullback under `σ` lie above the same place of `E`. |
| 222 | ext1 u |
| 223 | aesop (add simp [adeleMap_apply, idem_apply, placesAbove]) |
| 224 | |
| 225 | /-- For a step `hμ : IsStep E' μ`, the underlying carrier of |
| 226 | `kerCompNorm E' μ` is clopen. -/ |
| 227 | lemma IsStep.isClopen_kerCompNorm (hμ : IsStep E' μ) : IsClopen (kerCompNorm E' μ).carrier := |
| 228 | OpenSubgroup.isClopen ⟨kerCompNorm E' μ, hμ.isOpen_ker.preimage_of_continuous⟩ |
| 229 | |
| 230 | /-- For a step `hμ : IsStep E' μ`, there exists a nontrivial element |
| 231 | `σ : Gal(E'/E)`. -/ |
| 232 | lemma IsStep.exists_gal_ne_one (hμ : IsStep E' μ) : ∃ σ : Gal(E'/E), σ ≠ 1 := by |
| 233 | -- The order of the Galois group is the degree, which is prime. |
| 234 | refine Fintype.exists_ne_of_one_lt_card ?_ 1 |
| 235 | simpa [← card_aut_eq_finrank] using hμ.out.one_lt |
| 236 | |
| 237 | /-- Raising `adeleMap (σ : E' →+* E')` to the power `finrank E E'` gives |
| 238 | `1` when `E'` is Galois over `E`. -/ |
| 239 | lemma adeleMap_pow_finrank_eq_one [IsGalois E E'] : |
| 240 | adeleMap (σ : E' →+* E') ^ finrank E E' = 1 := by |
| 241 | change galAdeleHom σ ^ finrank E E' = 1 |
| 242 | rw [← map_pow, ← card_aut_eq_finrank, Nat.card_eq_fintype_card, pow_card_eq_one, map_one] |
| 243 | |
| 244 | end BaseChangePlaces |
| 245 | |
| 246 | /-! |
| 247 | ## Operators on fixed vectors coming from one group ring element |
| 248 | |
| 249 | Bookkeeping for the trace formula. For a representation `π` of `G` and a subgroup `K`, |
| 250 | `New.IsOperatorOf π K T f` says that the operator `T` on the `K`-fixed vectors and the function `f` |
| 251 | on `G` come from one element `a` of the group ring: `T` is the action of `a`, and `f` is read from |
| 252 | its image `New.Variety.cosetFn K a` in `ℂ[G ⧸ K]`. |
| 253 | -/ |
| 254 | |
| 255 | section HeckeOperatorOfFunction |
| 256 | |
| 257 | open Set Variety |
| 258 | |
| 259 | variable {G G' W : Type*} [Group G] [Group G'] [AddCommGroup W] [Module ℂ W] |
| 260 | (π : Representation ℂ G W) (K : Subgroup G) {J : Subgroup G'} {f : G → ℂ} {F : G' → ℂ} |
| 261 | (T : Module.End ℂ (levelSpace π K)) |
| 262 | |
| 263 | /-- The left regular representation of `G` on functions `G → ℂ`: `(g • F) x = F (g⁻¹ * x)`. -/ |
| 264 | def Variety.leftTranslation : Representation ℂ G (G → ℂ) where |
| 265 | toFun g := LinearMap.funLeft ℂ ℂ fun x ↦ g⁻¹ * x |
| 266 | map_one' := by aesop |
| 267 | map_mul' := by aesop (add simp mul_assoc) |
| 268 | |
| 269 | /-- There is `a` in the group ring such that `f g` is the coefficient of `gK` in the image of `a` in |
| 270 | `ℂ[G ⧸ K]`, and `T` is the action of `a` on the `K`-fixed vectors. So `f` is right `K`-invariant |
| 271 | and nonzero on finitely many cosets, and `T` is the operator `∑ g ∈ G ⧸ K, f g • π g`. -/ |
| 272 | def IsOperatorOf (f : G → ℂ) : Prop := |
| 273 | ∃ a : MonoidAlgebra ℂ G, |
| 274 | (f = fun g : G ↦ cosetFn K a g) ∧ ∀ v : ↥(levelSpace π K), T v = π.asAlgebraHom a v |
| 275 | |
| 276 | variable {π K T} |
| 277 | |
| 278 | lemma indicator_subgroup_mul_left {k g : G} : |
| 279 | k ∈ K → indicator K 1 (k * g) = (indicator K 1 g : ℂ) := by |
| 280 | aesop (add simp [indicator, mul_mem_cancel_left]) |
| 281 | |
| 282 | /-- Let `a : G' →* G` and let `F` live on finitely many cosets of `J`. If `T` is the operator of |
| 283 | `f`, then the Hecke sum `∑ q : G' ⧸ J, F q • π (a q)` composed with `T` is the operator of the |
| 284 | function `φ` obtained from `f` by the same sum of left translations. The hypothesis `s` says that |
| 285 | the Hecke sum keeps the `K`-fixed vectors. -/ |
| 286 | lemma IsOperatorOf.heckeFun_mul {φ : G → ℂ} {a : G' →* G} |
| 287 | {s : ∀ x ∈ levelSpace π K, (heckeFun (MonoidHom.comp π a) J F) x ∈ levelSpace π K} |
| 288 | (hF : HasFiniteCosets J F) (hφ : φ = heckeFun (leftTranslation.comp a) J F f) |
| 289 | (hTf : IsOperatorOf π K T f) : |
| 290 | IsOperatorOf π K ((heckeFun (π.comp a) J F).restrict s * T) φ := by |
| 291 | obtain ⟨b, hf, hT⟩ : ∃ b : MonoidAlgebra ℂ G, |
| 292 | (f = fun g : G ↦ cosetFn K b g) ∧ ∀ v : ↥(levelSpace π K), T v = π.asAlgebraHom b v := hTf |
| 293 | -- The new element of the group ring is the Hecke sum `∑ q, F q • a q` times `b`. |
| 294 | refine ⟨(∑ q ∈ hF.toFinset, .single (a q.out) (F q.out)) * b, ?_, fun v ↦ ?_⟩ |
| 295 | · simp [hφ, hf, hF, cosetFn, funext_iff, leftTranslation, heckeFun_eq_sum_toFinset] |
| 296 | · simp [hT, hF, heckeFun_eq_sum_toFinset] |
| 297 | |
| 298 | end HeckeOperatorOfFunction |
| 299 | |
| 300 | /-! |
| 301 | ## Local retracts and commuting families of Hecke operators |
| 302 | |
| 303 | * `New.exists_isHeckeFunctionRelation`: commuting local and spherical Hecke operators on the vectors |
| 304 | fixed by the level, with the functions of their products. |
| 305 | * `New.exists_remaining_places`: the places not above `S ∪ S̄` are cut into those above `T ∪ T̄`, |
| 306 | where the level is maximal, and the rest. |
| 307 | -/ |
| 308 | |
| 309 | section BaseChangeHeckeFamily |
| 310 | |
| 311 | open LinearMap Gf Set Variety |
| 312 | |
| 313 | variable {E E' n W A : Type*} [Field E] [CMType E] [Field E'] [CMType E'] [Algebra E E'] |
| 314 | [Fintype n] [DecidableEq n] [AddCommGroup W] [Module ℂ W] {π : Representation ℂ (Gf E n) W} |
| 315 | {S T : Set (FinPlace E)} (H : ∀ w ∈ T, w ∉ S ∧ star w ∉ S) [Group A] (a : A →* Gf E n) |
| 316 | (r : Gf E n →* A) |
| 317 | |
| 318 | /-- The group `A` is a retract of the finite adelic unitary group at `S`: the homomorphism `a` maps |
| 319 | `A` into the elements supported on `S ∪ S̄`, `r ∘ a` is the identity, and the kernel of `r` consists |
| 320 | of the elements trivial at the places of `S`. -/ |
| 321 | def IsLocalRetraction (S : Set (FinPlace E)) : Prop := |
| 322 | (∀ g : A, a g ∈ supportedOn n S) ∧ (∀ g : A, r (a g) = g) ∧ r.ker = trivialOn n S |
| 323 | |
| 324 | section LocalOperators |
| 325 | |
| 326 | variable {G M : Type*} [Group G] [AddCommGroup M] [Module ℂ M] (ρ : Representation ℂ G M) |
| 327 | |
| 328 | /-- The Hecke operators of `φ` and `ψ` commute on the `L`-fixed vectors. -/ |
| 329 | def HeckeCommute (L : Subgroup G) (φ ψ : G → ℂ) : Prop := |
| 330 | ∀ x ∈ levelSpace ρ L, heckeFun ρ L φ (heckeFun ρ L ψ x) = heckeFun ρ L ψ (heckeFun ρ L φ x) |
| 331 | |
| 332 | @[simp] |
| 333 | lemma heckeCommute_self (L : Subgroup G) (φ : G → ℂ) : HeckeCommute ρ L φ φ := |
| 334 | fun _ _ ↦ rfl |
| 335 | |
| 336 | /-- On the `L`-fixed vectors, the Hecke operator of `φ` composed with that of `ψ` is the Hecke |
| 337 | operator of `χ`. -/ |
| 338 | def IsHeckeProduct (L : Subgroup G) (φ ψ χ : G → ℂ) : Prop := |
| 339 | ∀ x ∈ levelSpace ρ L, heckeFun ρ L φ (heckeFun ρ L ψ x) = heckeFun ρ L χ x |
| 340 | |
| 341 | end LocalOperators |
| 342 | |
| 343 | section Family |
| 344 | |
| 345 | variable (π) (L : Subgroup (Gf E n)) (L₀ : Subgroup A) (B C : Subgroup (Gf E n)) {J X : Type*} |
| 346 | (F : J → A → ℂ) {u : X → FinPlace E} (hu : ∀ x : X, (u x).IsSplit) |
| 347 | |
| 348 | /-- The local Hecke operators of the functions `F j` on `A` at level `L₀`, indexed by `j`, together |
| 349 | with the spherical operators at the split places `u x`, indexed by `(x, i)`: |
| 350 | `heckeSplit π (hu x) i`, the Hecke operator of the indicator of `basicDoubleCoset n (u x) i` at |
| 351 | level `localIntGL n (u x)`. -/ |
| 352 | noncomputable abbrev heckeFamily : J ⊕ X × ℕ → Module.End ℂ W := |
| 353 | Sum.elim (fun j : J ↦ heckeFun (π.comp a) L₀ (F j)) fun x : X × ℕ ↦ heckeSplit π (hu x.1) x.2 |
| 354 | |
| 355 | variable (S) in |
| 356 | /-- Fixed by `L` means fixed by `L₀` and by the part of `L` that is trivial on `S`. `A` preserves |
| 357 | the vectors fixed by that part and commutes with the spherical operators. The operators of |
| 358 | `New.heckeFamily` preserve the `L`-fixed vectors and commute there. -/ |
| 359 | structure IsCommutingHeckeFamily : Prop where |
| 360 | /-- Fixed by `L` means fixed by `L₀` and by the part of `L` that is trivial on `S`. -/ |
| 361 | levelSpace_eq : levelSpace π L = levelSpace (π.comp a) L₀ ⊓ levelSpace π (trivialOn n S ⊓ L) |
| 362 | /-- `A` preserves the vectors fixed by the part of `L` that is trivial on `S`. -/ |
| 363 | apply_mem (g : A) : |
| 364 | ∀ v ∈ levelSpace π (trivialOn n S ⊓ L), π (a g) v ∈ levelSpace π (trivialOn n S ⊓ L) |
| 365 | /-- `A` commutes with the spherical operators. -/ |
| 366 | commute_heckeSplit (g : A) (x : X) (i : ℕ) : Commute (heckeSplit π (hu x) i) (π (a g)) |
| 367 | /-- The operators of the family preserve the `L`-fixed vectors. -/ |
| 368 | heckeFamily_mem (i : J ⊕ X × ℕ) : |
| 369 | ∀ v ∈ levelSpace π L, heckeFamily π a L₀ F hu i v ∈ levelSpace π L |
| 370 | /-- The operators of the family commute on the `L`-fixed vectors. -/ |
| 371 | commute_restrict (i j : J ⊕ X × ℕ) : |
| 372 | Commute ((heckeFamily π a L₀ F hu i).restrict (heckeFamily_mem i)) |
| 373 | ((heckeFamily π a L₀ F hu j).restrict (heckeFamily_mem j)) |
| 374 | |
| 375 | /-- Let `family` be operators on the `L`-fixed vectors, indexed as in `New.heckeFamily`. The |
| 376 | relation `R k t φ` records operators `t` of the functions `(F k ∘ r) · φ · 1_C`. It holds for the |
| 377 | local operator of index `k` with `φ = 1_B`. Composing `t` with the local operator of index `i` |
| 378 | changes `k` to `j`, if the operator of `F i` composed with that of `F k` is that of `F j`. Composing |
| 379 | `t` with a spherical operator at `u x` applies it to `φ`, if the elements supported at `u x` lie in |
| 380 | `C`. -/ |
| 381 | structure IsHeckeFunctionRelation (family : J ⊕ X × ℕ → Module.End ℂ (levelSpace π L)) |
| 382 | (R : J → Module.End ℂ (levelSpace π L) → (Gf E n → ℂ) → Prop) : Prop where |
| 383 | /-- The local operator of index `k` is related to the indicator of `B`. -/ |
| 384 | base (k : J) : R k (family (.inl k)) (indicator B 1) |
| 385 | /-- A related `t` is the operator of the function `(F k ∘ r) · φ · 1_C`. -/ |
| 386 | isOperatorOf {k : J} {t : Module.End ℂ (levelSpace π L)} {φ : Gf E n → ℂ} (h : R k t φ) : |
| 387 | IsOperatorOf π L t (F k ∘ r * (φ * indicator C 1)) |
| 388 | /-- Composing with the local operator of index `i` changes `k` to `j`, if the operator of `F i` |
| 389 | composed with that of `F k` is that of `F j`. -/ |
| 390 | local_mul {k : J} {t : Module.End ℂ (levelSpace π L)} {φ : Gf E n → ℂ} (h : R k t φ) {i j : J} |
| 391 | (h_prod : IsHeckeProduct (π.comp a) L₀ (F i) (F k) (F j)) : R j (family (.inl i) * t) φ |
| 392 | /-- Composing with a spherical operator at `u x` applies it to `φ`, if the elements supported |
| 393 | at `u x` lie in `C`. -/ |
| 394 | spherical_mul {k : J} {t : Module.End ℂ (levelSpace π L)} {φ : Gf E n → ℂ} (h : R k t φ) |
| 395 | (x : X) (i : ℕ) (hx : supportedOn n {u x} ≤ C) : |
| 396 | R k (family (.inr (x, i)) * t) (heckeSplit leftTranslation (hu x) i φ) |
| 397 | |
| 398 | variable {π L₀ B C F} |
| 399 | |
| 400 | /-- Let `A` be a retract at `S` through `a` and `r`, and let `L` be the level given by `L₀` through |
| 401 | `r` and by a subgroup `N` that contains the image of `a`. Then the `L`-fixed vectors are those fixed |
| 402 | by `L₀` acting through `a` and by the part of `L` that is trivial on `S`. -/ |
| 403 | private lemma levelSpace_eq_inf_of_isLocalRetraction {N : Subgroup (Gf E n)} |
| 404 | (h_retract : IsLocalRetraction a r S) (hL : L = L₀.comap r ⊓ N) (h_local : ∀ g : A, a g ∈ N) : |
| 405 | levelSpace π L = levelSpace (π.comp a) L₀ ⊓ levelSpace π (trivialOn n S ⊓ L) := by |
| 406 | obtain ⟨-, h_retr, h_ker⟩ : (∀ g : A, a g ∈ supportedOn n S) ∧ (∀ g : A, r (a g) = g) ∧ |
| 407 | r.ker = trivialOn n S := h_retract |
| 408 | have h_mem (g : A) (hg : g ∈ L₀) : a g ∈ L := by |
| 409 | have hg_comap : a g ∈ L₀.comap r := by simpa [h_retr] using hg |
| 410 | exact hL.ge ⟨hg_comap, h_local g⟩ |
| 411 | -- An element `k` of `L` is `k * (a (r k))⁻¹`, which is trivial on `S`, times `a (r k)`. |
| 412 | apply le_antisymm |
| 413 | · intro v hv |
| 414 | have hv_local : v ∈ levelSpace (π.comp a) L₀ := |
| 415 | mem_levelSpace.2 fun g ↦ mem_levelSpace.1 hv ⟨a g, h_mem g g.prop⟩ |
| 416 | exact ⟨hv_local, levelSpace_anti inf_le_right hv⟩ |
| 417 | rintro v ⟨hv_local, hv_off⟩ ⟨k, hk⟩ |
| 418 | obtain ⟨hk_local, -⟩ : r k ∈ L₀ ∧ k ∈ N := Subgroup.mem_inf.1 (hL.le hk) |
| 419 | have hk_ker : k * (a (r k))⁻¹ ∈ r.ker := by simp [h_retr] |
| 420 | have hk_L : k * (a (r k))⁻¹ ∈ L := L.mul_mem hk (L.inv_mem (h_mem (r k) hk_local)) |
| 421 | have hk_off : k * (a (r k))⁻¹ ∈ trivialOn n S ⊓ L := ⟨h_ker.le hk_ker, hk_L⟩ |
| 422 | have h_fix_local : π (a (r k)) v = v := by |
| 423 | simpa using mem_levelSpace.1 hv_local ⟨r k, hk_local⟩ |
| 424 | calc π k v = π (k * (a (r k))⁻¹) (π (a (r k)) v) := by |
| 425 | rw [← mul_apply_eq_comp, ← map_mul, inv_mul_cancel_right] |
| 426 | _ = π (k * (a (r k))⁻¹) v := by rw [h_fix_local] |
| 427 | _ = (1 : ℂ) • v := mem_levelSpace.1 hv_off ⟨k * (a (r k))⁻¹, hk_off⟩ |
| 428 | |
| 429 | /-- Let `A` be a retract at `S`, and let `L ≤ New.stdLevel` be the level given by `L₀` through `r` |
| 430 | and by a subgroup `N` that contains the image of `a`. Let `F j` be `L₀`-bi-invariant functions with |
| 431 | commuting operators, and let `u x` be split places off `S ∪ S̄` where `L` is maximal. Then |
| 432 | `New.IsCommutingHeckeFamily` holds. In particular, the local and the spherical operators act on the |
| 433 | `L`-fixed vectors and commute. -/ |
| 434 | lemma isCommutingHeckeFamily_of_isLocalRetraction {N : Subgroup (Gf E n)} |
| 435 | (h_retract : IsLocalRetraction a r S) |
| 436 | (hL : L = L₀.comap r ⊓ N) (hK : L ≤ stdLevel E n) (h_local : ∀ g : A, a g ∈ N) |
| 437 | (hF : ∀ j : J, IsHeckeFunction L₀ (F j)) |
| 438 | (h_comm : ∀ i j : J, HeckeCommute (π.comp a) L₀ (F i) (F j)) |
| 439 | (h_off : ∀ x : X, u x ∉ S.conjClosure) (h_max : ∀ x : X, maxCompactAt n (u x) ≤ L) : |
| 440 | IsCommutingHeckeFamily π S a L L₀ F hu := by |
| 441 | let ρ : Representation ℂ A W := π.comp a |
| 442 | let V : Submodule ℂ W := levelSpace π (trivialOn n S ⊓ L) |
| 443 | have h_fixed : levelSpace π L = levelSpace ρ L₀ ⊓ V := |
| 444 | levelSpace_eq_inf_of_isLocalRetraction a r L h_retract hL h_local |
| 445 | obtain ⟨h_on, -, -⟩ : (∀ g : A, a g ∈ supportedOn n S) ∧ _ := h_retract |
| 446 | have h_le_local : levelSpace π L ≤ levelSpace ρ L₀ := h_fixed.le.trans inf_le_left |
| 447 | -- The image of `a` is supported on `S ∪ S̄`, so it commutes with the elements trivial on `S`. |
| 448 | have h_apply_mem (g : A) : ∀ v ∈ V, π (a g) v ∈ V := by |
| 449 | intro v hv |
| 450 | refine map_mem_levelSpace_of_commute hv fun k ↦ ?_ |
| 451 | obtain ⟨hk_triv, -⟩ : (k : Gf E n) ∈ trivialOn n S ∧ (k : Gf E n) ∈ L := k.prop |
| 452 | exact (commute_supportedOn_trivialOn (h_on g) hk_triv).symm.map π |
| 453 | -- It is trivial at the places `u x`, so it commutes with the spherical operators there. |
| 454 | have h_sph (g : A) (x : X) (i : ℕ) : Commute (heckeSplit π (hu x) i) (π (a g)) := by |
| 455 | have h_trivial : a g ∈ trivialOn n {u x} := by |
| 456 | apply Gf.supportedOn_le_trivialOn (S := S) _ (h_on g) |
| 457 | rintro w rfl |
| 458 | exact ⟨fun h ↦ h_off x (.inl h), fun h ↦ h_off x (.inr h)⟩ |
| 459 | refine LinearMap.ext fun v ↦ ?_ |
| 460 | exact (heckeSplit_comm_of_trivialOn (hu x) i h_trivial).symm |
| 461 | have h_stable : ∀ i : J ⊕ X × ℕ, |
| 462 | ∀ v ∈ levelSpace π L, heckeFamily π a L₀ F hu i v ∈ levelSpace π L := by |
| 463 | rintro (j | ⟨x, i⟩) v hv |
| 464 | · -- the local operator is a finite sum of multiples of `π (a g)`, which preserve `V` |
| 465 | rw [h_fixed] at hv ⊢ |
| 466 | obtain ⟨hv_local, hv_off⟩ : v ∈ levelSpace ρ L₀ ∧ v ∈ V := Submodule.mem_inf.1 hv |
| 467 | refine Submodule.mem_inf.2 ⟨(hF j).heckeFun_mem hv_local, ?_⟩ |
| 468 | simp [hF, sum_mem, V.smul_mem, fun g : A ↦ h_apply_mem g v hv_off, heckeFun_eq_sum_toFinset] |
| 469 | · exact heckeSplit_mem_levelSpace (hu x) i (levelSpace_anti (h_max x) hv) hK hv |
| 470 | have h_mixed (j : J) (x : X) (i : ℕ) (v : W) : |
| 471 | heckeSplit π (hu x) i (heckeFun ρ L₀ (F j) v) = |
| 472 | heckeFun ρ L₀ (F j) (heckeSplit π (hu x) i v) := by |
| 473 | obtain ⟨h_finite, -⟩ : HasFiniteCosets L₀ (F j) ∧ _ := hF j |
| 474 | refine map_heckeFun (heckeSplit π (hu x) i) h_finite fun g ↦ ?_ |
| 475 | exact LinearMap.congr_fun (h_sph g x i).eq v |
| 476 | refine ⟨h_fixed, h_apply_mem, h_sph, h_stable, ?_⟩ |
| 477 | rintro (i | ⟨x, m⟩) (j | ⟨y, m'⟩) |
| 478 | · ext ⟨v, hv⟩ |
| 479 | exact h_comm i j v (h_le_local hv) |
| 480 | · ext ⟨v, hv⟩ |
| 481 | exact (h_mixed i y m' v).symm |
| 482 | · ext ⟨v, hv⟩ |
| 483 | exact h_mixed j x m v |
| 484 | · ext ⟨v, hv⟩ |
| 485 | exact heckeSplit_comm (hu x) (hu y) m m' |
| 486 | (levelSpace_anti (h_max x) hv) (levelSpace_anti (h_max y) hv) |
| 487 | |
| 488 | /-- Let `A` be a retract at `S`, and let `L ≤ New.stdLevel` be `L₀.comap r ⊓ (B ⊓ C)`, where `a` |
| 489 | maps `A` into `B ⊓ C`. Let `F j` be `L₀`-bi-invariant functions with commuting operators, and let |
| 490 | `u x` be split places off `S ∪ S̄` where `L` is maximal. Then `New.IsCommutingHeckeFamily` holds, so |
| 491 | the local and the spherical operators act on the `L`-fixed vectors and commute. Also, some `R` |
| 492 | satisfies `New.IsHeckeFunctionRelation` for the restricted operators. That is, `R k t φ` records |
| 493 | operators `t` of the functions `(F k ∘ r) · φ · 1_C`, holds for the local operator of index `k` with |
| 494 | `φ = 1_B`, and is carried along by composing with local and spherical operators. -/ |
| 495 | lemma exists_isHeckeFunctionRelation (h_retract : IsLocalRetraction a r S) |
| 496 | (hL : L = L₀.comap r ⊓ (B ⊓ C)) (hK : L ≤ stdLevel E n) (h_local : ∀ g : A, a g ∈ B ⊓ C) |
| 497 | (hF : ∀ j : J, IsHeckeFunction L₀ (F j)) |
| 498 | (h_comm : ∀ i j : J, HeckeCommute (π.comp a) L₀ (F i) (F j)) |
| 499 | (h_off : ∀ x : X, u x ∉ S.conjClosure) (h_max : ∀ x : X, maxCompactAt n (u x) ≤ L) : |
| 500 | ∃ h : IsCommutingHeckeFamily π S a L L₀ F hu, |
| 501 | ∃ R : J → Module.End ℂ (levelSpace π L) → (Gf E n → ℂ) → Prop, |
| 502 | IsHeckeFunctionRelation π a r L L₀ B C F hu |
| 503 | (fun i : J ⊕ X × ℕ ↦ (heckeFamily π a L₀ F hu i).restrict (h.heckeFamily_mem i)) R := by |
| 504 | classical |
| 505 | have h_family : IsCommutingHeckeFamily π S a L L₀ F hu := |
| 506 | isCommutingHeckeFamily_of_isLocalRetraction a r L hu h_retract hL hK h_local hF h_comm h_off |
| 507 | h_max |
| 508 | obtain ⟨-, h_retr, h_ker⟩ : (∀ g : A, a g ∈ supportedOn n S) ∧ (∀ g : A, r (a g) = g) ∧ |
| 509 | r.ker = trivialOn n S := h_retract |
| 510 | let family (i : J ⊕ X × ℕ) : Module.End ℂ (levelSpace π L) := |
| 511 | (heckeFamily π a L₀ F hu i).restrict (h_family.heckeFamily_mem i) |
| 512 | have h_commute (i j : J ⊕ X × ℕ) : Commute (family i) (family j) := |
| 513 | h_family.commute_restrict i j |
| 514 | -- `R k t φ`: `t` is the local operator of index `k` times some `s`, and for all `i` the local |
| 515 | -- operator of index `i` times `s` is that of the function `(F i ∘ r) · φ · 1_C`. |
| 516 | let R (k : J) (t : Module.End ℂ (levelSpace π L)) (φ : Gf E n → ℂ) : Prop := |
| 517 | ∃ s : Module.End ℂ (levelSpace π L), t = family (.inl k) * s ∧ |
| 518 | ∀ i : J, IsOperatorOf π L (family (.inl i) * s) (F i ∘ r * (φ * indicator C 1)) |
| 519 | refine ⟨h_family, R, fun k ↦ ⟨1, rfl, fun i ↦ ?_⟩, ?_, ?_, ?_⟩ |
| 520 | · -- The identity is the operator of the indicator of `L`; apply the local operator of index `i` |
| 521 | -- to that function. |
| 522 | have h_one : IsOperatorOf π L 1 fun g : Gf E n ↦ cosetFn L 1 g := by |
| 523 | refine ⟨1, rfl, fun v ↦ ?_⟩ |
| 524 | simp |
| 525 | obtain ⟨h_finite, -⟩ : HasFiniteCosets L₀ (F i) ∧ _ := hF i |
| 526 | refine .heckeFun_mul h_finite ?_ h_one |
| 527 | -- The chosen representative of the coset of `g` is `g * c g`, with `c g ∈ L₀`. |
| 528 | have h_out : ∀ g : A, ∃ h : L₀, (g : A ⧸ L₀).out = g * h := QuotientGroup.mk_out_eq_mul L₀ |
| 529 | choose c hc using h_out |
| 530 | simp only [Subgroup.mem_inf, forall_and] at h_local |
| 531 | subst hL |
| 532 | simp [cosetFn, Finsupp.single_apply, QuotientGroup.eq, hF, hc, h_retr, h_local, indicator, |
| 533 | mul_mem_cancel_left, ← QuotientGroup.eq (s := L₀), ite_and, leftTranslation, |
| 534 | heckeFun_eq_sum_toFinset, |
| 535 | funext_iff] |
| 536 | -- What is left: both sides are `F i (r x)` on `B ∩ C` and `0` off it, as nested `if`s |
| 537 | lia |
| 538 | · rintro k t φ ⟨s, rfl, hs⟩ |
| 539 | exact hs k |
| 540 | · rintro k t φ ⟨s, rfl, hs⟩ i j h_prod |
| 541 | refine ⟨s, LinearMap.ext fun v ↦ Subtype.ext ?_, hs⟩ |
| 542 | have h_sv_local : (s v : W) ∈ levelSpace (π.comp a) L₀ := |
| 543 | (h_family.levelSpace_eq.le.trans inf_le_left) (s v).prop |
| 544 | exact h_prod (s v) h_sv_local |
| 545 | · rintro k t φ ⟨s, rfl, hs⟩ x m hx |
| 546 | refine ⟨family (.inr (x, m)) * s, (h_commute _ _).left_comm s, fun i ↦ ?_⟩ |
| 547 | -- The factors `F i ∘ r` and `indicator C 1` are invariant under the group at `u x`, so |
| 548 | -- multiplication by them commutes with the spherical operator. |
| 549 | rw [(h_commute _ _).left_comm] |
| 550 | obtain ⟨h_finite, -⟩ : HasFiniteCosets (localIntGL n (u x)) |
| 551 | ((basicDoubleCoset n (u x) m).indicator (1 : GL n (LocField (u x)) → ℂ)) ∧ _ := |
| 552 | isHeckeFunction_basicDoubleCoset m |
| 553 | refine (hs i).heckeFun_mul h_finite (map_heckeSplit (hu x) m |
| 554 | (mulLeft ℂ (F i ∘ r) * mulRight ℂ (indicator C 1)) fun g hg ↦ ?_) |
| 555 | have h_subset : {u x} ⊆ S.conjClosureᶜ := singleton_subset_iff.2 (h_off x) |
| 556 | have h_trivial : r g = 1 := h_ker.ge (supportedOn_compl.le (supportedOn_mono h_subset hg)) |
| 557 | simp [indicator_subgroup_mul_left, hx hg, h_trivial, leftTranslation, funext_iff] |
| 558 | |
| 559 | end Family |
| 560 | |
| 561 | /-- Let `u` be the only place of `E'` above `w`, both split. Then (a) `GL_n(E_w)` is a retract at |
| 562 | `{w}` (`New.IsLocalRetraction`), (b) `GL_n(E'_u)` is a retract at the places above `w` and its |
| 563 | conjugate, and (c) an element is integral at these places iff its component at `u` is integral. -/ |
| 564 | lemma isLocalRetraction_ofSplitPlace (n : Type*) [Fintype n] [DecidableEq n] {w : FinPlace E} |
| 565 | {u : FinPlace E'} (h_unique : ∀ v : FinPlace E', v.below E = w ↔ v = u) (hu : u.IsSplit) |
| 566 | (hw : w.IsSplit) : |
| 567 | -- (a), (b) the component at `w`, and at `u`, is a retraction of the local embedding |
| 568 | IsLocalRetraction (n := n) (ofSplitPlace hw) (atPlace w) {w} ∧ |
| 569 | IsLocalRetraction (n := n) (ofSplitPlace hu) (atPlace u) (placesAbove E' {w}) ∧ |
| 570 | -- (c) integral above `w` and its conjugate means integral at `u` |
| 571 | localLevel n (placesAbove E' {w}) = (intGL n Valued.v.integer).comap (atPlace u) := by |
| 572 | -- As `u` is the only place above `w`, the set `placesAbove E' {w}` is `{u, star u}`, and the |
| 573 | -- component of a unitary element at `star u` is determined by that at `u`. |
| 574 | refine ⟨?_, ?_, ?_⟩ |
| 575 | · -- (a) `atPlace w` is a retraction of the embedding at `w` |
| 576 | simp_all [IsLocalRetraction, SetLike.ext_iff] |
| 577 | · -- (b) the places above `w` and `w̄` are `u` and `ū` |
| 578 | simp_all [IsLocalRetraction, ← below_star, star_eq_iff_star_eq, atPlace_star_eq_one_iff, |
| 579 | atPlace_ofSplitPlace_of_ne, SetLike.ext_iff, placesAbove] |
| 580 | · -- (c) the component at `ū` is integral exactly when that at `u` is |
| 581 | suffices h : ∀ x : Gf E' n, |
| 582 | atPlace u x ∈ localIntGL n u ↔ atPlace u x ∈ intGL n Valued.v.integer by |
| 583 | simp_all [← below_star, star_eq_iff_star_eq, SetLike.ext_iff, placesAbove, localLevel] |
| 584 | -- what is left: `localIntGL n u` is `GL_n` of the valuation integers at `u` |
| 585 | exact fun x ↦ Iff.rfl |
| 586 | |
| 587 | /-- Let `T` avoid `S ∪ S̄`, and let the level `K` be maximal at the places above `T ∪ T̄`. Then |
| 588 | there is a set `Y` of places of `E` with these properties. (a) The places of `E'` above `T ∪ T̄` |
| 589 | and those above `Y ∪ Ȳ` are disjoint. (b) Elements supported above `T ∪ T̄` lie in the |
| 590 | level `K` above `Y`. (c), (d) Together the places above `T` and above `Y` are the places not above |
| 591 | `S ∪ S̄`, as sets and as idempotents. (e) The level `K` off `S` is the maximal level above `T` |
| 592 | intersected with `K` above `Y`. -/ |
| 593 | lemma exists_remaining_places (H : ∀ w ∈ T, w ∉ S ∧ star w ∉ S) |
| 594 | {K : (w : FinPlace E') → Subgroup (GL n (LocField w))} |
| 595 | (h_max : ∀ x : T, ∀ u ∈ placesAbove E' {x.val}, K u = localIntGL n u) : |
| 596 | ∃ Y : Set (FinPlace E), |
| 597 | -- (a) |
| 598 | idem (placesAbove E' T) * idem (placesAbove E' Y) = 0 ∧ |
| 599 | -- (b) |
| 600 | supportedOn n (placesAbove E' T) ≤ localLevel n (placesAbove E' Y) K ∧ |
| 601 | -- (c), (d) together they are the places not above `S`, as sets and as idempotents |
| 602 | placesAbove E' (T ∪ Y) = (placesAbove E' S)ᶜ ∧ |
| 603 | idem (placesAbove E' T) + idem (placesAbove E' Y) = 1 - idem (placesAbove E' S) ∧ |
| 604 | -- (e) |
| 605 | localLevel n (placesAbove E' S)ᶜ K = |
| 606 | localLevel n (placesAbove E' T) ⊓ localLevel n (placesAbove E' Y) K := by |
| 607 | classical |
| 608 | -- `Y` is the set of places outside `S`, `T` and their conjugates, so the places not above `S` |
| 609 | -- are the disjoint union of those above `T` and those above `Y`. |
| 610 | let Y : Set (FinPlace E) := (S ∪ T).conjClosureᶜ |
| 611 | have h_mem_Y (u : FinPlace E') : |
| 612 | u ∈ placesAbove E' Y ↔ u ∉ placesAbove E' S ∧ u ∉ placesAbove E' T := by |
| 613 | simp only [placesAbove, Y, mem_preimage, mem_union, mem_compl_iff, star_star] |
| 614 | tauto |
| 615 | have h_disj : Disjoint S.conjClosure T := Set.disjoint_left.2 fun w hw hT ↦ |
| 616 | hw.elim (H w hT).1 (H w hT).2 |
| 617 | have h_notMem_S (u : FinPlace E') (hu : u ∈ placesAbove E' T) : u ∉ placesAbove E' S := |
| 618 | Set.disjoint_right.1 h_disj.conjClosure_right (show u.below E ∈ T.conjClosure from hu) |
| 619 | have h_compl : (placesAbove E' S)ᶜ = placesAbove E' T ∪ placesAbove E' Y := |
| 620 | (union_sdiff_cancel (t := (placesAbove E' S)ᶜ) h_notMem_S).symm.trans |
| 621 | (congrArg (placesAbove E' T ∪ ·) (Set.ext fun u ↦ (h_mem_Y u).symm)) |
| 622 | refine ⟨Y, ?_, ?_, ?_, ?_, ?_⟩ |
| 623 | · refine DFunLike.ext _ _ fun u ↦ ?_ |
| 624 | by_cases hu : u ∈ placesAbove E' T <;> simp [h_mem_Y, hu] |
| 625 | · refine (Gf.supportedOn_le_trivialOn (fun u hu ↦ ?_)).trans trivialOn_le_localLevel |
| 626 | have hu_T := ((h_mem_Y u).1 hu).2 |
| 627 | exact ⟨hu_T, by simpa [below_star, and_comm] using hu_T⟩ |
| 628 | · rw [h_compl] |
| 629 | ext u |
| 630 | simp only [placesAbove, mem_preimage, mem_union] |
| 631 | tauto |
| 632 | · rw [← idem_compl, h_compl] |
| 633 | refine DFunLike.ext _ _ fun u ↦ ?_ |
| 634 | by_cases hu : u ∈ placesAbove E' T <;> simp [idem_apply, h_mem_Y, hu] |
| 635 | · have h_level : localLevel n (placesAbove E' T) K = localLevel n (placesAbove E' T) := by |
| 636 | have hK (u : FinPlace E') (hu : u ∈ placesAbove E' T) : K u = localIntGL n u := by |
| 637 | rcases hu with hu | hu |
| 638 | · exact h_max ⟨u.below E, hu⟩ u (.inl rfl) |
| 639 | · exact h_max ⟨star (u.below E), hu⟩ u (.inr rfl) |
| 640 | ext g |
| 641 | refine forall₂_congr fun u hu ↦ ?_ |
| 642 | rw [hK u hu] |
| 643 | rw [← h_level, h_compl] |
| 644 | ext g |
| 645 | simp only [Subgroup.mem_inf, mem_localLevel, mem_union, or_imp, forall_and] |
| 646 | |
| 647 | end BaseChangeHeckeFamily |
| 648 | |
| 649 | end New |