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 TauCeti.LinearAlgebra.Matrix.GeneralLinearGroup.Lift |
| 4 | public import Lib.GaloisRep.BaseChange.CommutingHeckeFamilies |
| 5 | import Lib.GaloisRep.Hilbert90.UnitaryGroups |
| 6 | import Lib.General.LinearAlgebra.MatrixPolynomials |
| 7 | |
| 8 | /-! |
| 9 | # Hecke-stable matching pairs for a step E'/E at split matched places |
| 10 | |
| 11 | This file constructs sets of matching pairs of test functions (`New.IsMatchingPairAbove`) for a |
| 12 | step `E'/E` that are stable under Hecke operators. It works at places of `E` that are split over |
| 13 | `E⁺` and matched (`New.IsMatched`: `μ` is trivial there and the places above are permuted freely |
| 14 | by the Galois group). The pairs come from functions that are bi-invariant under the elements |
| 15 | integral at a set `V` of places of `E'` with one place above each pair `{w, star w}`. This file |
| 16 | also gives a criterion, `New.IsStep.isNormRoot_of_one_side`, for a root (`New.IsNormRoot`) that |
| 17 | is `1` outside the places above a set `T` of places of `E` containing no two conjugate ones. |
| 18 | |
| 19 | ## Main definitions and results |
| 20 | |
| 21 | * `New.biInvariantPairs`, `New.isMatchingPairAbove_of_mem_biInvariantPairs`: the pairs |
| 22 | `(F ∘ baseChangeGf, 1_K * F)`, where `F` is bi-invariant at `V`; they are matching pairs above |
| 23 | the places below `V`. |
| 24 | * `New.exists_isHeckeStableMatching`: a set of matching pairs that contains the pair of indicator |
| 25 | functions of the level and is stable under the Hecke operators `(T_{w,j}, T_{u,j})`. |
| 26 | |
| 27 | Notions from other files: |
| 28 | * `New.Gf.supportedOn`, `New.Gf.trivialOn`: the elements with component `1` at every place outside |
| 29 | `S ∪ S̄`, and those with component `1` at every place of `S`. |
| 30 | * `New.localLevel`: the elements whose component at each `w ∈ S` lies in `K w`; by default `K w` is |
| 31 | `New.localIntGL`, the integral matrices with integral inverse. |
| 32 | * `New.IsStep`: the extension `E'/E` with a character `μ` of the finite ideles of `E` that detects |
| 33 | norms. |
| 34 | * `New.IsMatched`: the places of `E` that split completely in `E'` and at which `μ` is trivial. |
| 35 | * `New.IsMatchingPairAbove`: matching pairs of functions at the places of `E'` above `S ∪ S̄`. |
| 36 | |
| 37 | ## Relation to the literature |
| 38 | |
| 39 | Known; see `Lib.GaloisRep.BaseChange.PrimeDegreeTransfer` and `Lib.Adelic.Hecke.ClassSums` for |
| 40 | sources. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | namespace New |
| 46 | |
| 47 | section |
| 48 | |
| 49 | open Matrix |
| 50 | |
| 51 | private lemma map_evalAt_cutGL_val {E' n : Type _} [Field E'] [CMType E'] [Fintype n] |
| 52 | [DecidableEq n] (S : Set (FinPlace E')) (M : GL n (𝔸f E')) (u : FinPlace E') |
| 53 | [Decidable (u ∈ S)] : |
| 54 | (cutGL (idem_mul_self S) M).val.map (evalAt u) = |
| 55 | if u ∈ S then M.val.map (evalAt u) else 1 := by |
| 56 | simpa [apply_ite] using congrArg Units.val (map_evalAt_cutGL u S M) |
| 57 | |
| 58 | private lemma map_evalAt_idem_smul {E' n : Type _} [Field E'] [CMType E'] |
| 59 | (S : Set (FinPlace E')) (M : Matrix n n (𝔸f E')) (u : FinPlace E') |
| 60 | [Decidable (u ∈ S)] : |
| 61 | (idem S • M).map (evalAt u) = if u ∈ S then M.map (evalAt u) else 0 := by |
| 62 | ext i j |
| 63 | by_cases hu : u ∈ S <;> simp [hu] |
| 64 | |
| 65 | private lemma map_evalAt_one_add_idem_sub {E' n : Type _} [Field E'] [CMType E'] |
| 66 | [DecidableEq n] (S : Set (FinPlace E')) (M : Matrix n n (𝔸f E')) (u : FinPlace E') |
| 67 | [Decidable (u ∈ S)] : |
| 68 | (1 + idem S • (M - 1)).map (evalAt u) = if u ∈ S then M.map (evalAt u) else 1 := by |
| 69 | ext i j |
| 70 | by_cases hu : u ∈ S <;> by_cases hij : i = j <;> simp [Matrix.one_apply, hu, hij] |
| 71 | |
| 72 | private lemma map_evalAt_cutGL_conjTranspose {E' n : Type _} [Field E'] [CMType E'] [Fintype n] |
| 73 | [DecidableEq n] (S : Set (FinPlace E')) (M : GL n (𝔸f E')) (u : FinPlace E') |
| 74 | [Decidable (star u ∈ S)] : |
| 75 | (cutGL (idem_mul_self S) M).valᴴ.map (evalAt u) = |
| 76 | if star u ∈ S then M.valᴴ.map (evalAt u) else 1 := by |
| 77 | ext i j |
| 78 | by_cases hu : star u ∈ S <;> by_cases hij : i = j <;> |
| 79 | simp [cutGL, Matrix.one_apply, star_idem, hu, hij] |
| 80 | |
| 81 | end |
| 82 | |
| 83 | section MatchedPlacePairs |
| 84 | |
| 85 | open Set Matrix RingHom Polynomial Gf Variety Module |
| 86 | |
| 87 | variable {E E' n W : Type _} [Field E] [CMType E] [Field E'] [CMType E'] [Algebra E E'] [Fintype n] |
| 88 | [DecidableEq n] {σ : Gal(E'/E)} [AddCommGroup W] [Module ℂ W] |
| 89 | {π : Representation ℂ (Gf E' n) W} {u : FinPlace E'} |
| 90 | |
| 91 | /-- Let `E'/E` be a step for `μ` and `σ` an element of `Gal(E'/E)`. Let `T` be a set of places of |
| 92 | `E` at which `μ` is trivial and which contains no place together with its conjugate, and let `B` |
| 93 | be the set of places of `E'` above `T` and its conjugates. Let `z` be a polynomial over the finite |
| 94 | adeles of `E'` that is `1` at every place not above `T`, and whose twisted norm along `σ`, with |
| 95 | `p` factors, is `X` modulo `P` at every place above `T`. Then: |
| 96 | * `z` is a norm root for `P` on `B` (`New.IsNormRoot`, for the ideles killed by `μ` after the |
| 97 | norm); |
| 98 | * if unitary `γ` and `a` satisfy `a * ((idem B • z)(γ))ᴴ = (idem B • z)(γ)`, then at each place |
| 99 | `u` above `T` the component of `a` is `z_u(γ_u)`. -/ |
| 100 | lemma IsStep.isNormRoot_of_one_side {μ : (𝔸f E)ˣ →* ℂˣ} (hμ : IsStep E' μ) |
| 101 | {B : Set (FinPlace E')} {T : Set (FinPlace E)} (hB : B = placesAbove E' T) |
| 102 | (hμ_loc : ∀ w ∈ T, ∀ x : (LocField w)ˣ, μ (locIdele w x) = 1) (hT : ∀ w ∈ T, star w ∉ T) |
| 103 | {p : ℕ} {P z : (𝔸f E')[X]} [NeZero p] |
| 104 | (hz : ∀ u : FinPlace E', u.below E ∉ T → z.map (evalAt u) = 1) |
| 105 | (hP : ∀ u : FinPlace E', u.below E ∈ T → |
| 106 | P.map (evalAt u) ∣ (twistedNorm (Polynomial.map (adeleMap σ)) p z).map (evalAt u) - X) : |
| 107 | IsNormRoot n (adeleMap σ) p (idem B) (kerCompNorm E' μ) P z ∧ |
| 108 | ∀ γ a : Gf E' n, IsRootQuotient γ (idem B • z) a → ∀ u : FinPlace E', u.below E ∈ T → |
| 109 | (a.atPlace u : Matrix n n (LocField u)) = |
| 110 | aeval (γ.atPlace u : Matrix n n (LocField u)) (z.map (evalAt u)) := by |
| 111 | classical |
| 112 | -- The norm of `z`, evaluated at a unitary `g` with characteristic polynomial `P`, is `g` at the |
| 113 | -- places above `T` and `1` elsewhere. So it is invertible, which makes `z` prime to `P`. |
| 114 | have mem_B (u : FinPlace E') : u ∈ B ↔ u.below E ∈ T ∨ star (u.below E) ∈ T := by |
| 115 | rw [hB] |
| 116 | rfl |
| 117 | refine ⟨⟨?_, ?_⟩, fun γ a ha u hu ↦ ?_⟩ |
| 118 | · -- off `B` the polynomial `z` is `1` |
| 119 | ext i u |
| 120 | by_cases huB : u ∈ B |
| 121 | · simp [huB] |
| 122 | · have hz_u : z.map (evalAt u) = 1 := hz u fun hu ↦ huB ((mem_B u).2 (.inl hu)) |
| 123 | have h_coeff : (z.coeff i) u = ((1 : (𝔸f E')[X]).coeff i) u := by |
| 124 | rw [← evalAt_apply, ← evalAt_apply, ← coeff_map, ← coeff_map, hz_u, |
| 125 | Polynomial.map_one] |
| 126 | simp [huB, h_coeff] |
| 127 | · rintro g rfl |
| 128 | have h_norm : (twistedNorm (Polynomial.map (adeleMap σ)) p z).aeval g.val.val = |
| 129 | cutGL (idem_mul_self (FinPlace.below E ⁻¹' T)) g.val := by |
| 130 | refine matrix_ext_evalAt fun u ↦ ?_ |
| 131 | by_cases hu : u.below E ∈ T |
| 132 | · -- the norm is `X` modulo the characteristic polynomial; use Cayley–Hamilton |
| 133 | obtain ⟨q, hq⟩ := hP u hu |
| 134 | have h_norm_u : (twistedNorm (Polynomial.map (adeleMap σ)) p z).map (evalAt u) = |
| 135 | g.val.val.charpoly.map (evalAt u) * q + X := sub_eq_iff_eq_add.1 hq |
| 136 | rw [map_aeval_matrix, h_norm_u] |
| 137 | simp [map_evalAt_cutGL_val, hu, aeval_self_charpoly, ← charpoly_map] |
| 138 | · -- no conjugate of `u` lies above `T`, so every factor of the norm is `1` at `u` |
| 139 | have h_conj (f : E' →+* E') : (z.map (adeleMap f)).map (evalAt u) = |
| 140 | (z.map (evalAt (u.comap f))).map (locMap f rfl) := |
| 141 | (z.map_map (adeleMap f) (evalAt u)).trans |
| 142 | (z.map_map (evalAt (u.comap f)) (locMap f rfl)).symm |
| 143 | simp [h_conj, hz, hu, map_evalAt_cutGL_val, twistedNorm_map_eq_prod, adeleMap_gal_pow, |
| 144 | map_aeval_matrix, Polynomial.map_prod] |
| 145 | have h_coprime : |
| 146 | IsCoprime g.val.val.charpoly (∏ i ∈ .range p, z.map (adeleMap σ ^ i)) := by |
| 147 | rw [← twistedNorm_map_eq_prod, ← isUnit_aeval_iff_isCoprime, h_norm] |
| 148 | exact Units.isUnit _ |
| 149 | -- `z` is the factor `i = 0` of its norm |
| 150 | have h_coprime_z : IsCoprime g.val.val.charpoly (z.map (adeleMap σ ^ 0)) := |
| 151 | h_coprime.of_prod_right 0 (Finset.mem_range.2 (NeZero.pos p)) |
| 152 | obtain ⟨c, b, hb⟩ := h_coprime_z |
| 153 | refine ⟨fun m M hM ↦ ?_, matrix_ext_evalAt fun u ↦ ?_⟩ |
| 154 | · -- `det z(M)` is an idele `d`; above `T` use `hμ_loc`, elsewhere its component is `1` |
| 155 | have h_eval : aeval M (c * g.val.val.charpoly + b * z.map (adeleMap σ ^ 0)) = 1 := by |
| 156 | rw [hb, map_one] |
| 157 | have h_inv : aeval M b * aeval M z = 1 := by simpa [hM, one_def] using h_eval |
| 158 | obtain ⟨d, hd⟩ : IsUnit (aeval M z).det := isUnit_det_of_left_inverse h_inv |
| 159 | refine ⟨d, mem_of_locIdele_mem hμ.isClopen_kerCompNorm.isClosed fun u ↦ ?_, hd⟩ |
| 160 | by_cases hu : u.below E ∈ T |
| 161 | · simp [adeleNorm_locIdele, hμ_loc _ hu] |
| 162 | · have hd_val : (ideleAt u d : LocField u) = 1 := by |
| 163 | simp [ideleAt, map_det, hd, hz u hu, map_aeval_matrix] |
| 164 | simp [Units.val_eq_one.1 hd_val] |
| 165 | · -- above `T` this reads `g * 1 = g`, at the conjugate places `g * g⁻¹ = 1`, and at the |
| 166 | -- other places `1 * 1 = 1` |
| 167 | rw [h_norm] |
| 168 | by_cases hu : u.below E ∈ T |
| 169 | · simp [map_evalAt_cutGL_val, map_evalAt_one_add_idem_sub, map_evalAt_cutGL_conjTranspose, |
| 170 | mem_B, hu, hT _ hu, below_star] |
| 171 | · by_cases hu' : star (u.below E) ∈ T <;> |
| 172 | simp [← U.inv_val_eq_conjTranspose, map_evalAt_cutGL_val, map_evalAt_one_add_idem_sub, |
| 173 | map_evalAt_cutGL_conjTranspose, mem_B, hu, hu', below_star] |
| 174 | · -- take `ha` at `u`: the adjoint factor comes from `star u`, not above `T`, where `z = 1` |
| 175 | have h_adj (M : Matrix n n (𝔸f E')) : |
| 176 | Mᴴ.map (evalAt u) = (M.map (evalAt (star u)))ᵀ.map (conjLoc (star_star u)) := rfl |
| 177 | have ha_u : ((a : Matrix n n (𝔸f E')) * (aeval (γ : Matrix n n (𝔸f E')) (idem B • z))ᴴ).map |
| 178 | (evalAt u) = (aeval (γ : Matrix n n (𝔸f E')) (idem B • z)).map (evalAt u) := |
| 179 | congrArg (Matrix.map · (evalAt u)) ha |
| 180 | change (a : Matrix n n (𝔸f E')).map (evalAt u) = |
| 181 | aeval ((γ : Matrix n n (𝔸f E')).map (evalAt u)) (z.map (evalAt u)) |
| 182 | simpa [hB, mem_B, map_evalAt_idem_smul, hz, hT, hu, h_adj, placesAbove, star_idem, below_star, |
| 183 | map_aeval_matrix] using ha_u |
| 184 | |
| 185 | /-- Let `u` be a split place of `E'` whose place `w` below is split, and let `g` be in |
| 186 | `GL n (E_w)` with image `g'` in `GL n (E'_u)`. The base change of `ofSplitPlace hw g` and |
| 187 | `ofSplitPlace hu g'` differ by an element supported at the places above `w` other than `u` and |
| 188 | their conjugates. -/ |
| 189 | private lemma ofSplitPlace_inv_mul_baseChangeGf_mem_supportedOn (hu : u.IsSplit) |
| 190 | (hw : (u.below E).IsSplit) (g : GL n (LocField (u.below E))) : |
| 191 | (ofSplitPlace hu (GeneralLinearGroup.map (locMap (algebraMap E E') rfl) g))⁻¹ * |
| 192 | baseChangeGf (ofSplitPlace hw g) ∈ |
| 193 | supportedOn n (FinPlace.below E ⁻¹' {u.below E} \ {u}) := by |
| 194 | -- the two elements have the same component at `u` |
| 195 | have h_at_u : ((ofSplitPlace hu (GeneralLinearGroup.map (locMap (algebraMap E E') rfl) g))⁻¹ * |
| 196 | baseChangeGf (ofSplitPlace hw g)).atPlace u = 1 := by |
| 197 | simp [atPlace_baseChangeGf] |
| 198 | refine mem_supportedOn.2 fun v hv hv_star ↦ ?_ |
| 199 | by_cases h_star : star v = u |
| 200 | · subst h_star |
| 201 | exact atPlace_star_eq_one_iff.1 h_at_u |
| 202 | by_cases h_eq : v = u |
| 203 | · rwa [h_eq] |
| 204 | -- both are `1` at a place that lies above neither `w` nor `star w` |
| 205 | have h_below : v.below E ≠ u.below E := fun h ↦ hv ⟨h, h_eq⟩ |
| 206 | have h_below_star : star (v.below E) ≠ u.below E := |
| 207 | fun h ↦ hv_star ⟨(below_star v).trans h, h_star⟩ |
| 208 | simp [h_eq, h_star, h_below, h_below_star, atPlace_ofSplitPlace_of_ne, atPlace_baseChangeGf] |
| 209 | |
| 210 | /-- Let `π` be a representation of the unitary group over `E'`, let `u` be a split place of `E'` |
| 211 | whose place `w` below is split, and let `E_w → E'_u` be onto. Let `x` be spherical at `u` (fixed by |
| 212 | the elements supported at `u` and integral there) and fixed by the elements supported at the other |
| 213 | places above `w` and their conjugates. Then the Hecke operator `T_{w,j}` of `π ∘ baseChangeGf` and |
| 214 | the Hecke operator `T_{u,j}` of `π` agree on `x`. -/ |
| 215 | lemma heckeSplit_comp_baseChangeGf (hu : u.IsSplit) (hw : (u.below E).IsSplit) |
| 216 | (h_surj : Function.Surjective (locMap (algebraMap E E') (Eq.refl (u.below E)))) {j : ℕ} |
| 217 | {x : W} (hx : x ∈ sphericalAt π u) |
| 218 | (h_fix : ∀ k ∈ supportedOn n (FinPlace.below E ⁻¹' {u.below E} \ {u}), π k x = x) : |
| 219 | heckeSplit (π.comp baseChangeGf) hw j x = heckeSplit π hu j x := by |
| 220 | -- Transport the Hecke operator along `φ : GL n (E_w) → GL n (E'_u)`, `w` the place below `u`. |
| 221 | -- It is onto since `E_w → E'_u` is, and the preimage of `localIntGL n u` is `localIntGL n w`. |
| 222 | let φ : GL n (LocField (u.below E)) →* GL n (LocField u) := GeneralLinearGroup.map (locMap _ rfl) |
| 223 | have h_right_inv := indicator_basicDoubleCoset_mul (A := ℂ) (n := n) (w := u) j |
| 224 | have h_finite : HasFiniteCosets (localIntGL n (u.below E)) |
| 225 | ((basicDoubleCoset n (u.below E) j).indicator (1 : GL n (LocField (u.below E)) → ℂ)) := by |
| 226 | simp |
| 227 | have h_preimage (g : GL n (LocField (u.below E))) : |
| 228 | φ g ∈ localIntGL n u ↔ g ∈ localIntGL n (u.below E) := |
| 229 | map_locMap_mem_intGL_iff rfl |
| 230 | refine heckeFun_comp φ h_right_inv ((mem_sphericalAt_iff _).1 hx) h_finite |
| 231 | (Matrix.GeneralLinearGroup.map_surjective _ h_surj) h_preimage (fun g ↦ ?_) fun g ↦ ?_ |
| 232 | · -- the two elements differ by one supported at the other places above `w` and their |
| 233 | -- conjugates, and such an element fixes `x` |
| 234 | change π (baseChangeGf (ofSplitPlace hw g)) x = π (ofSplitPlace hu (φ g)) x |
| 235 | exact π.inv_apply_eq_iff.1 (by |
| 236 | rw [← mul_apply_eq_comp, ← map_mul, |
| 237 | h_fix _ (ofSplitPlace_inv_mul_baseChangeGf_mem_supportedOn hu hw g)]) |
| 238 | · -- a uniformiser of `E'_u` comes from `E_w`, so valuations and `basicDoubleCoset` are preserved |
| 239 | have h_unit : ∃ ϖ : LocField (u.below E), |
| 240 | IsUnit (Valued.v (locMap (algebraMap E E') rfl ϖ)).log := |
| 241 | (h_surj (uniformizer u)).imp fun ϖ hϖ ↦ by simp [hϖ] |
| 242 | have h_val (y : LocField (u.below E)) : |
| 243 | Valued.v (locMap (algebraMap E E') rfl y) = Valued.v y := |
| 244 | v_locMap_eq_of_isUnit_log _ rfl h_unit y |
| 245 | -- `-coe_units_inv` keeps `↑(g⁻¹)` whole, so that `← map_inv` moves the map past the inverse |
| 246 | simp [φ, basicDoubleCoset, indicator_apply, ← map_inv, -coe_units_inv, ← map_det, |
| 247 | ← mapMatrix_apply, h_val] |
| 248 | |
| 249 | /-- A set `St` of pairs `(f, φ)` of functions on the finite adelic unitary groups over `E` and `E'` |
| 250 | is stable under the Hecke operators `(T_{w,j}, T_{u,j})` for every `j`: for each pair, the pair |
| 251 | `(T_{w,j} f, T_{u,j} φ)` lies in `St`, the groups acting by left translation; `T_{u,j}` is |
| 252 | `heckeSplit`, the Hecke operator of the indicator of `basicDoubleCoset n u j` at level |
| 253 | `localIntGL n u`. The condition is empty unless `w` and `u` are both split. -/ |
| 254 | def IsHeckeStableAt (St : Set ((Gf E n → ℂ) × (Gf E' n → ℂ))) (w : FinPlace E) |
| 255 | (u : FinPlace E') : Prop := |
| 256 | ∀ x ∈ St, ∀ (hw : w.IsSplit) (hu : u.IsSplit) (j : ℕ), |
| 257 | (heckeSplit leftTranslation hw j x.1, heckeSplit leftTranslation hu j x.2) ∈ St |
| 258 | |
| 259 | /-- A set `St` of pairs of functions on the finite adelic unitary groups over `E` and `E'`, all of |
| 260 | them matching pairs of level `B` above `S` for `σ` and `μ` (`New.IsMatchingPairAbove`). It contains |
| 261 | the indicator function of `B`, paired with its composition with `baseChangeGf`, and for each |
| 262 | place `w` of `S` it is stable under the Hecke operators at `w` and at some place above `w`. -/ |
| 263 | structure IsHeckeStableMatching (σ : Gal(E'/E)) (μ : (𝔸f E)ˣ →* ℂˣ) (S : Set (FinPlace E)) |
| 264 | (B : Subgroup (Gf E' n)) (St : Set ((Gf E n → ℂ) × (Gf E' n → ℂ))) : Prop where |
| 265 | /-- `St` contains the indicator function of `B`, paired with its composition with |
| 266 | `baseChangeGf`. -/ |
| 267 | indicator_mem : |
| 268 | ((B : Set (Gf E' n)).indicator 1 ∘ baseChangeGf, (B : Set (Gf E' n)).indicator 1) ∈ St |
| 269 | /-- Every member of `St` is a matching pair of level `B` above `S`. -/ |
| 270 | isMatchingPairAbove : ∀ x ∈ St, IsMatchingPairAbove σ μ S B x.1 x.2 |
| 271 | /-- Above each `w` in `S` there is a place `u` such that `St` is stable under |
| 272 | `(T_{w,j}, T_{u,j})`. -/ |
| 273 | exists_isHeckeStableAt : ∀ w ∈ S, ∃ u : FinPlace E', u.below E = w ∧ IsHeckeStableAt St w u |
| 274 | |
| 275 | variable (E) in |
| 276 | /-- The unordered pair made of the place of `E` below `u` and its conjugate. -/ |
| 277 | private noncomputable def belowPair (u : FinPlace E') : Sym2 (FinPlace E) := |
| 278 | s(u.below E, star (u.below E)) |
| 279 | |
| 280 | omit [CMType E'] in |
| 281 | /-- Let `S` be a set of split places of `E`. There is a set `V` of places of `E'` with exactly one |
| 282 | place above each pair `{w, star w}` with `w ∈ S`. In detail: |
| 283 | * every place of `V` lies above a place of `S`; |
| 284 | * no two places of `V` lie above the same place of `E`; |
| 285 | * the places below `V` include no place together with its conjugate; |
| 286 | * `S` and the places below `V` have the same closure under conjugation. -/ |
| 287 | lemma exists_places_above_one_side {S : Set (FinPlace E)} (h_split : ∀ w ∈ S, w.IsSplit) : |
| 288 | ∃ V : Set (FinPlace E'), |
| 289 | (∀ u ∈ V, u.below E ∈ S) ∧ |
| 290 | InjOn (FinPlace.below E) V ∧ |
| 291 | (∀ w ∈ FinPlace.below E '' V, star w ∉ FinPlace.below E '' V) ∧ |
| 292 | S.conjClosure = (FinPlace.below E '' V).conjClosure := by |
| 293 | -- Choose `V` among the places above `S` such that `belowPair` is a bijection from `V` onto the |
| 294 | -- pairs `{w, star w}` with `w ∈ S`. |
| 295 | obtain ⟨V, hV, h_bij⟩ := exists_subset_bijOn (FinPlace.below (L := E') E ⁻¹' S) (belowPair E) |
| 296 | have hV_inj_pair : InjOn (belowPair E) V := h_bij.injOn |
| 297 | have hV_surj_pair : |
| 298 | SurjOn (belowPair E) V (belowPair E '' (FinPlace.below (L := E') E ⁻¹' S)) := |
| 299 | h_bij.surjOn |
| 300 | have h_cover (w : FinPlace E) (hw : w ∈ S) : |
| 301 | ∃ v ∈ V, v.below E = w ∨ v.below E = star w := by |
| 302 | obtain ⟨u, rfl⟩ := FinPlace.comap_surjective (algebraMap E E') w |
| 303 | obtain ⟨v, hv, h_pair⟩ : ∃ v ∈ V, belowPair E v = belowPair E u := |
| 304 | hV_surj_pair (mem_image_of_mem _ hw) |
| 305 | rcases Sym2.eq_iff.1 h_pair with ⟨h_eq, -⟩ | ⟨h_eq, -⟩ |
| 306 | · exact ⟨v, hv, .inl h_eq⟩ |
| 307 | · exact ⟨v, hv, .inr h_eq⟩ |
| 308 | have hV_inj : InjOn (FinPlace.below E) V := |
| 309 | InjOn.of_comp (g := fun w : FinPlace E ↦ s(w, star w)) hV_inj_pair |
| 310 | refine ⟨V, hV, hV_inj, ?_, subset_antisymm ?_ ?_⟩ |
| 311 | · rintro _ ⟨u, hu, rfl⟩ ⟨v, hv, hvu⟩ |
| 312 | have h_pair_eq : belowPair E u = belowPair E v := by simp [belowPair, hvu, Sym2.eq_swap] |
| 313 | obtain rfl : u = v := hV_inj_pair hu hv h_pair_eq |
| 314 | exact h_split _ (hV hu) hvu.symm |
| 315 | · rintro w (hw | hw) |
| 316 | · obtain ⟨v, hv, hvw | hvw⟩ := h_cover w hw |
| 317 | exacts [.inl ⟨v, hv, hvw⟩, .inr ⟨v, hv, hvw⟩] |
| 318 | · obtain ⟨v, hv, hvw | hvw⟩ := h_cover (star w) hw |
| 319 | exacts [.inr ⟨v, hv, hvw⟩, .inl ⟨v, hv, hvw.trans (star_star w)⟩] |
| 320 | · have h_sub : FinPlace.below E '' V ⊆ S := image_subset_iff.2 hV |
| 321 | exact union_subset_union h_sub (preimage_mono h_sub) |
| 322 | |
| 323 | /-- Let `u` and `v` be places of `E'` above the same place of `E`. If the base change of `g` is |
| 324 | integral at `v` (its component lies in `localIntGL`, the integral matrices with integral inverse), |
| 325 | then it is integral at `u`. -/ |
| 326 | lemma atPlace_baseChangeGf_mem_localIntGL {v : FinPlace E'} (h_below : v.below E = u.below E) |
| 327 | {g : Gf E n} (hg : (baseChangeGf g).atPlace v ∈ localIntGL n v) : |
| 328 | (baseChangeGf g).atPlace u ∈ localIntGL n u := by |
| 329 | have h_down : g.atPlace (v.below E) ∈ localIntGL n (v.below E) := |
| 330 | (map_locMap_mem_intGL_iff rfl).1 hg |
| 331 | rw [h_below] at h_down |
| 332 | exact (map_locMap_mem_intGL_iff rfl).2 h_down |
| 333 | |
| 334 | omit [CMType E] in |
| 335 | /-- Let `galoisGf σ` be the action of `σ` on the finite adelic unitary group, entry by entry. If |
| 336 | `k` is integral at the place `u.comap (σ ^ i)`, then its `i`-th image under `galoisGf σ` is |
| 337 | integral at `u`. -/ |
| 338 | lemma atPlace_iterate_galoisGf_mem_localIntGL (i : ℕ) {k : Gf E' n} |
| 339 | (hk : k.atPlace (u.comap ↑(σ ^ i)) ∈ localIntGL n (u.comap ↑(σ ^ i))) : |
| 340 | ((galoisGf σ)^[i] k).atPlace u ∈ localIntGL n u := by |
| 341 | induction i generalizing k with |
| 342 | | zero => exact hk |
| 343 | | succ i ih => exact ih ((map_locMap_mem_intGL_iff _).2 hk) |
| 344 | |
| 345 | /-- If every `g ≠ 1` in the Galois group moves `u`, then `E_w → E'_u` is onto, where `w` is the |
| 346 | place below `u`. -/ |
| 347 | lemma locMap_surjective_of_comap_ne [IsGalois E E'] |
| 348 | (h_moved : ∀ g ≠ (1 : Gal(E'/E)), u.comap g ≠ u) : |
| 349 | Function.Surjective (locMap (algebraMap E E') (Eq.refl (u.below E))) := by |
| 350 | -- The norm of the adele that is `y` at `u` and `1` elsewhere has component `y` at `u`. |
| 351 | intro y |
| 352 | have h_norm : finAdeleIncl E E' (adeleNorm E E' (1 + singleAdele u (y - 1))) = |
| 353 | ∏ g : Gal(E'/E), adeleMap g (1 + singleAdele u (y - 1)) := |
| 354 | finAdeleIncl_adeleNorm E E' (1 + singleAdele u (y - 1)) |
| 355 | have h_prod : |
| 356 | evalAt u (∏ g : Gal(E'/E), adeleMap g (1 + singleAdele u (y - 1))) = y := by |
| 357 | have h_coe_one : ((1 : Gal(E'/E)) : E' →+* E') = RingHom.id E' := rfl |
| 358 | rw [map_prod, Fintype.prod_eq_single 1, h_coe_one, adeleMap_id] |
| 359 | · simp |
| 360 | · simp +contextual [h_moved, adeleMap_apply] |
| 361 | exact ⟨_, (congrArg (evalAt u) h_norm).trans h_prod⟩ |
| 362 | |
| 363 | variable (E) in |
| 364 | /-- The places of `E'` outside `V` that lie above the same place of `E` as a place of `V`. -/ |
| 365 | def otherConjugates (V : Set (FinPlace E')) : Set (FinPlace E') := |
| 366 | FinPlace.below E ⁻¹' FinPlace.below E '' V \ V |
| 367 | |
| 368 | /-- `F` is invariant on both sides under the elements `k` that are integral at `V`: |
| 369 | `F (k⁻¹ * g) = F g` (left translation) and `F (g * k) = F g` for every `g`. -/ |
| 370 | def IsBiInvariantAt (V : Set (FinPlace E')) (F : Gf E' n → ℂ) : Prop := |
| 371 | ∀ k ∈ localLevel n V, leftTranslation k F = F ∧ ∀ g : Gf E' n, F (g * k) = F g |
| 372 | |
| 373 | variable (E n) in |
| 374 | /-- The pairs `(F ∘ baseChangeGf, 1_K * F)`, where `F` is bi-invariant at `V` and `K` is the |
| 375 | group of elements integral at `otherConjugates E V`. -/ |
| 376 | noncomputable def biInvariantPairs (V : Set (FinPlace E')) : |
| 377 | Set ((Gf E n → ℂ) × (Gf E' n → ℂ)) := |
| 378 | {(F ∘ baseChangeGf, indicator (localLevel n (otherConjugates E V)) 1 * F) | |
| 379 | (F : Gf E' n → ℂ) (_ : IsBiInvariantAt V F)} |
| 380 | |
| 381 | /-- An element is integral at every place above the places below `V` and their conjugates if |
| 382 | and only if it is integral at the places of `V` and at the other places above the same places of |
| 383 | `E` (`New.otherConjugates`). -/ |
| 384 | lemma mem_localLevel_placesAbove_image {V : Set (FinPlace E')} {g : Gf E' n} : |
| 385 | g ∈ localLevel n (placesAbove E' (FinPlace.below E '' V)) ↔ |
| 386 | g ∈ localLevel n V ∧ g ∈ localLevel n (otherConjugates E V) := by |
| 387 | -- A unitary element is integral at `star u` iff it is integral at `u`. |
| 388 | constructor |
| 389 | · -- the places of `V` and the other conjugates all lie above the places below `V` |
| 390 | intro hg |
| 391 | refine ⟨fun u hu ↦ hg u (.inl ⟨u, hu, rfl⟩), ?_⟩ |
| 392 | rintro u ⟨hu_below, -⟩ |
| 393 | exact hg u (.inl hu_below) |
| 394 | rintro ⟨hgV, hgA⟩ |
| 395 | have h_fibre (u : FinPlace E') (hu : u.below E ∈ FinPlace.below E '' V) : |
| 396 | g.atPlace u ∈ localIntGL n u := by |
| 397 | by_cases huV : u ∈ V |
| 398 | · exact hgV u huV |
| 399 | · exact hgA u ⟨hu, huV⟩ |
| 400 | rintro u (hu | hu) |
| 401 | · exact h_fibre u hu |
| 402 | · have h_star_below : (star u).below E ∈ FinPlace.below E '' V := by rwa [below_star] |
| 403 | exact atPlace_star_mem_iff.1 (h_fibre (star u) h_star_below) |
| 404 | |
| 405 | /-- Let `E'/E` be a step for `μ` and `σ ≠ 1`. Let `V` be a set of places of `E'` above matched |
| 406 | places of `E` (`New.IsMatched`), with at most one place above each place of `E`, and such that the |
| 407 | places below `V` include no place together with its conjugate. Then every pair in |
| 408 | `biInvariantPairs E n V` is a matching pair above the places below `V`, of level the group of |
| 409 | elements integral at the places above them and their conjugates. These pairs are |
| 410 | `(F ∘ baseChangeGf, 1_K * F)`, with `F` bi-invariant at `V` and `K` the elements integral at |
| 411 | `otherConjugates E V`. -/ |
| 412 | lemma isMatchingPairAbove_of_mem_biInvariantPairs {μ : (𝔸f E)ˣ →* ℂˣ} (hσ : σ ≠ 1) |
| 413 | [hμ : IsStep E' μ] {V : Set (FinPlace E')} (h_matched : ∀ v ∈ V, IsMatched E' μ (v.below E)) |
| 414 | (hV_inj : InjOn (FinPlace.below E) V) |
| 415 | (hV_side : ∀ w ∈ FinPlace.below E '' V, star w ∉ FinPlace.below E '' V) |
| 416 | {x : (Gf E n → ℂ) × (Gf E' n → ℂ)} (hx : x ∈ biInvariantPairs E n V) : |
| 417 | IsMatchingPairAbove σ μ (FinPlace.below E '' V) |
| 418 | (localLevel n (placesAbove E' (FinPlace.below E '' V))) x.1 x.2 := by |
| 419 | classical |
| 420 | -- The root is `X` at `V` and `1` elsewhere. Write `A` for the other conjugates. |
| 421 | obtain ⟨F, hF, rfl⟩ := hx |
| 422 | set B := localLevel n (placesAbove E' (FinPlace.below E '' V)) |
| 423 | set A := otherConjugates E V with hA |
| 424 | have hB {g : Gf E' n} : g ∈ B ↔ g ∈ localLevel n V ∧ g ∈ localLevel n A := |
| 425 | mem_localLevel_placesAbove_image |
| 426 | have h_bij : Function.Bijective (fun i : Fin (finrank E E') ↦ σ ^ i.val) := |
| 427 | bijective_pow_of_ne_one_of_prime_finrank hσ |
| 428 | obtain ⟨h_inj, h_surj⟩ := h_bij |
| 429 | -- the Galois group acts freely above matched places, and an orbit meets `V` at most once |
| 430 | have h_unique {u : FinPlace E'} {g d : Gal(E'/E)} (hg : u.comap g ∈ V) : |
| 431 | u.comap d ∈ V ↔ d = g := by |
| 432 | obtain ⟨d, rfl⟩ := mul_left_surjective g d |
| 433 | refine ⟨fun hd ↦ mul_eq_left.2 ?_, fun hdg ↦ by rwa [hdg]⟩ |
| 434 | have h_fixed : ((u.comap g : FinPlace E').comap d : FinPlace E') = u.comap g := |
| 435 | hV_inj hd hg ((below_comap _ u).trans (below_comap _ u).symm) |
| 436 | -- by `IsMatched`, only `d = 1` fixes the place `u.comap g` |
| 437 | exact (((h_matched _ hg).2 _ rfl).2 d).mtr h_fixed |
| 438 | refine ⟨fun k hk ↦ ?_, fun P _hP_char _hP_fixed ↦ ⟨1 + idem V • (X - 1), ?_⟩⟩ |
| 439 | · -- twisted invariance under `B`, which is stable under `σ` |
| 440 | have hσk : galoisGf σ k ∈ B := by |
| 441 | intro u hu |
| 442 | have hu_comap : u.comap ↑(σ ^ 1) ∈ placesAbove E' (FinPlace.below E '' V) := by |
| 443 | simpa [placesAbove] using hu |
| 444 | exact atPlace_iterate_galoisGf_mem_localIntGL 1 (hk _ hu_comap) |
| 445 | intro δ |
| 446 | change ((localLevel n A : Set (Gf E' n)).indicator 1 * F : Gf E' n → ℂ) |
| 447 | (k⁻¹ * δ * galoisGf σ k) = |
| 448 | ((localLevel n A : Set (Gf E' n)).indicator 1 * F : Gf E' n → ℂ) δ |
| 449 | simp_all [IsBiInvariantAt, indicator, leftTranslation, funext_iff, mul_mem_cancel_left, |
| 450 | mul_mem_cancel_right] |
| 451 | have hμ_loc : ∀ w ∈ FinPlace.below E '' V, ∀ x : (LocField w)ˣ, μ (locIdele w x) = 1 := |
| 452 | forall_mem_image.2 fun v hv ↦ (h_matched v hv).1 |
| 453 | have h_one (u : FinPlace E') (hu : u.below E ∉ FinPlace.below E '' V) : |
| 454 | (1 + idem V • (X - 1) : (𝔸f E')[X]).map (evalAt u) = 1 := by |
| 455 | have huV : u ∉ V := fun huV ↦ hu ⟨u, huV, rfl⟩ |
| 456 | simp [huV] |
| 457 | -- at a Galois conjugate of a place of `V` one factor of the norm is `X`, the others are `1` |
| 458 | have h_dvd (u : FinPlace E') (hu : u.below E ∈ FinPlace.below E '' V) : |
| 459 | P.map (evalAt u) ∣ (twistedNorm (Polynomial.map (adeleMap σ)) (finrank E E') |
| 460 | (1 + idem V • (X - 1))).map (evalAt u) - X := by |
| 461 | obtain ⟨v, hv, h_below⟩ := hu |
| 462 | obtain ⟨i, rfl⟩ := h_surj.exists.1 (FinPlace.exists_gal_comap_eq h_below.symm) |
| 463 | simp [Finset.prod_range, add_ite, h_unique hv, h_inj.eq_iff, twistedNorm_map_eq_prod, |
| 464 | adeleMap_gal_pow, Polynomial.map_prod, adeleMap_apply, idem_apply] |
| 465 | obtain ⟨h_root, h_at⟩ := |
| 466 | hμ.isNormRoot_of_one_side (n := n) rfl hμ_loc hV_side h_one h_dvd |
| 467 | refine ⟨h_root, fun (γ a : Gf E' n) _ ha ↦ ?_⟩ |
| 468 | -- `a` is `γ` at `V` and `1` at `A` |
| 469 | have h_off : a ∈ trivialOn n A ∧ γ⁻¹ * a ∈ trivialOn n V := by |
| 470 | -- `↓` makes the membership lemmas fire first |
| 471 | simp +contextual [↓mem_trivialOn, Units.ext_iff, h_at _ _ ha, ↓mem_image_of_mem, |
| 472 | hA, otherConjugates] |
| 473 | obtain ⟨haA_triv, haV_triv⟩ := h_off |
| 474 | have haA : a ∈ localLevel n A := trivialOn_le_localLevel haA_triv |
| 475 | have haV : γ⁻¹ * a ∈ localLevel n V := trivialOn_le_localLevel haV_triv |
| 476 | -- write the degree as a successor, so that `twistedNorm δ` splits off its first factor `δ` |
| 477 | rw [← Nat.succ_pred_prime hμ.out] at * |
| 478 | refine ⟨?_, ?_⟩ |
| 479 | · -- first clause: `F γ = F a`, by invariance of `F` under `γ⁻¹ * a` |
| 480 | obtain ⟨-, hF_right⟩ := hF _ haV |
| 481 | simp +contextual [← hF_right γ, haA] |
| 482 | rintro δ rfl hδ_ne |
| 483 | have hδ : δ ∈ localLevel n A := by |
| 484 | by_contra h_not |
| 485 | simp [h_not] at hδ_ne |
| 486 | -- the conjugates `σ ^ (i + 1) δ` in `twistedNorm δ` are integral at `V`, as `δ` is at `A` |
| 487 | have h_rest : |
| 488 | ((List.range (finrank E E').pred).map fun i ↦ (galoisGf σ)^[i + 1] δ).prod ∈ |
| 489 | localLevel n V := by |
| 490 | refine list_prod_mem (List.forall_mem_map.2 fun i hi u hu ↦ ?_) |
| 491 | refine atPlace_iterate_galoisGf_mem_localIntGL _ (hδ _ ⟨⟨u, hu, (below_comap _ u).symm⟩, ?_⟩) |
| 492 | intro h_mem |
| 493 | exact h_inj.ne (Fin.succ_ne_zero ⟨i, List.mem_range.1 hi⟩) ((h_unique (g := 1) hu).1 h_mem) |
| 494 | -- second clause, `a⁻¹ * δ ∈ B`: at `A` both factors are integral; at `V` it is `(γ⁻¹ * a)⁻¹` |
| 495 | -- divided by the product of those conjugates, as `γ` is `δ` times that product |
| 496 | have h_at_V : a⁻¹ * δ ∈ localLevel n V := by |
| 497 | simpa [twistedNorm, mul_div_assoc] using div_mem (inv_mem haV) h_rest |
| 498 | have h_at_A : a⁻¹ * δ ∈ localLevel n A := mul_mem (inv_mem haA) hδ |
| 499 | exact hB.2 ⟨h_at_V, h_at_A⟩ |
| 500 | |
| 501 | /-- Let `V` be a set of places of `E'` with at most one place above each place of `E`, such that the |
| 502 | places below `V` include no place together with its conjugate. If `u` lies in `V` or is conjugate to |
| 503 | a place of `V`, then it is the only such place above `u.below E`. -/ |
| 504 | private lemma eq_of_mem_conjClosure_of_below_eq {V : Set (FinPlace E')} |
| 505 | (hV_inj : InjOn (FinPlace.below E) V) |
| 506 | (hV_side : ∀ w ∈ FinPlace.below E '' V, star w ∉ FinPlace.below E '' V) |
| 507 | (hu_conj : u ∈ V.conjClosure) (v : FinPlace E') (hv : v ∈ V.conjClosure) |
| 508 | (h_below : v.below E = u.below E) : v = u := by |
| 509 | match hv, hu_conj with |
| 510 | | .inl hv, .inl huV => exact hV_inj hv huV h_below |
| 511 | | .inr hv, .inr huV => |
| 512 | have h_below_star : (star v).below E = (star u).below E := by |
| 513 | rw [below_star, below_star, h_below] |
| 514 | exact star_injective (hV_inj hv huV h_below_star) |
| 515 | | .inl hv, .inr huV => |
| 516 | have h_below_star : (star u).below E = star (v.below E) := by rw [below_star, h_below] |
| 517 | exact absurd ⟨star u, huV, h_below_star⟩ (hV_side _ ⟨v, hv, rfl⟩) |
| 518 | | .inr hv, .inl huV => |
| 519 | have h_below_star : (star v).below E = star (u.below E) := by rw [below_star, h_below] |
| 520 | exact absurd ⟨star v, hv, h_below_star⟩ (hV_side _ ⟨u, huV, rfl⟩) |
| 521 | |
| 522 | /-- Let `V` be a set of places of `E'` with at most one place above each place of `E`, such that the |
| 523 | places below `V` include no place together with its conjugate. Let `u` lie in `V` or be conjugate to |
| 524 | a place of `V`, with `E_w → E'_u` onto for the place `w` below `u`. Then the set |
| 525 | `biInvariantPairs E n V` is stable under the Hecke operators at `(w, u)`: this set consists of the |
| 526 | pairs `(f, φ) = (F ∘ baseChangeGf, 1_K * F)`, with `F` bi-invariant at `V` and `K` the group of |
| 527 | elements integral at `otherConjugates E V`, and for every such pair and every `j` the pair |
| 528 | `(T_{w,j} f, T_{u,j} φ)` of Hecke operators for left translation again lies in the set. -/ |
| 529 | lemma isHeckeStableAt_biInvariantPairs {V : Set (FinPlace E')} |
| 530 | (hV_inj : InjOn (FinPlace.below E) V) |
| 531 | (hV_side : ∀ w ∈ FinPlace.below E '' V, star w ∉ FinPlace.below E '' V) |
| 532 | (hu_conj : u ∈ V.conjClosure) |
| 533 | (h_onto : Function.Surjective (locMap (algebraMap E E') (Eq.refl (u.below E)))) : |
| 534 | IsHeckeStableAt (biInvariantPairs E n V) (u.below E) u := by |
| 535 | rintro _ ⟨F, hF, rfl⟩ hw_split hu j |
| 536 | -- an element of `localLevel V` is integral at `u`, which lies in `V` or is conjugate to it |
| 537 | have h_at_u {k : Gf E' n} (hk : k ∈ localLevel n V) : k.atPlace u ∈ localIntGL n u := |
| 538 | hu_conj.elim (hk u) fun h_star ↦ atPlace_star_mem_iff.1 (hk _ h_star) |
| 539 | have hF_sph : F ∈ sphericalAt leftTranslation u := by |
| 540 | have hF_left (k : Gf E' n) (hk : k ∈ localLevel n V) (g : Gf E' n) : F (k⁻¹ * g) = F g := by |
| 541 | obtain ⟨hF_k, -⟩ := hF k hk |
| 542 | simpa [leftTranslation] using congrFun hF_k g |
| 543 | simp +contextual [hF_left, mem_localLevel, mem_stdLevel_iff, leftTranslation, funext_iff] |
| 544 | -- `u` is the only place above `w` in `V` or conjugate to a place of `V` |
| 545 | have h_only := eq_of_mem_conjClosure_of_below_eq hV_inj hV_side hu_conj |
| 546 | have h_star_mem {v : FinPlace E'} (hv : v ∈ V) : star v ∈ V.conjClosure := by |
| 547 | have h_star_star : star (star v) ∈ V := by rwa [star_star] |
| 548 | exact .inr h_star_star |
| 549 | refine ⟨heckeSplit leftTranslation hu j F, fun k hk ↦ ⟨?_, fun g ↦ ?_⟩, Prod.ext ?_ ?_⟩ |
| 550 | · obtain ⟨hF_left_k, -⟩ := hF k hk |
| 551 | rw [← heckeSplit_comm_of_atPlace_mem hu j hF_sph (h_at_u hk), hF_left_k] |
| 552 | · obtain ⟨-, hF_right_k⟩ := hF k hk |
| 553 | simp [heckeSplit, heckeGL, heckeFun_eq_sum_toFinset, ← mul_assoc, hF_right_k, leftTranslation] |
| 554 | · -- the other places above `w` and their conjugates lie outside `V` |
| 555 | have h_other : supportedOn n (FinPlace.below E ⁻¹' {u.below E} \ {u}) ≤ trivialOn n V := |
| 556 | supportedOn_le_trivialOn fun v hv ↦ |
| 557 | ⟨fun ⟨h_below, h_ne⟩ ↦ h_ne (h_only v (.inl hv) h_below), |
| 558 | fun ⟨h_below, h_ne⟩ ↦ h_ne (h_only (star v) (h_star_mem hv) h_below)⟩ |
| 559 | have h_fix (k : Gf E' n) (hk : k ∈ supportedOn n (FinPlace.below E ⁻¹' {u.below E} \ {u})) : |
| 560 | leftTranslation k F = F := (hF k (trivialOn_le_localLevel (h_other hk))).left |
| 561 | rw [← heckeSplit_comp_baseChangeGf hu hw_split h_onto hF_sph h_fix] |
| 562 | simp [heckeSplit, heckeGL, heckeFun_eq_sum_toFinset, leftTranslation, funext_iff] |
| 563 | · -- translations at `u` are trivial at the other conjugates, so they fix the indicator |
| 564 | have h_away : supportedOn n {u} ≤ trivialOn n (otherConjugates E V) := by |
| 565 | refine supportedOn_le_trivialOn ?_ |
| 566 | rintro v ⟨⟨v', hv', h_below⟩, hvV⟩ |
| 567 | -- `u` is the only place above `w` in `V` or conjugate to it, and `v' ∈ V` but `v ∉ V` |
| 568 | have h_ne : v' ≠ v := by |
| 569 | rintro rfl |
| 570 | exact hvV hv' |
| 571 | constructor |
| 572 | · intro hv_u |
| 573 | rw [mem_singleton_iff] at hv_u |
| 574 | have h_below_u : v'.below E = u.below E := by rw [h_below, hv_u] |
| 575 | exact h_ne ((h_only v' (.inl hv') h_below_u).trans hv_u.symm) |
| 576 | · intro hv_u |
| 577 | rw [mem_singleton_iff] at hv_u |
| 578 | have h_below_star : (star v').below E = u.below E := by |
| 579 | rw [← hv_u, below_star, below_star, h_below] |
| 580 | have h_star_eq : star v' = u := h_only (star v') (h_star_mem hv') h_below_star |
| 581 | exact h_ne (star_injective (h_star_eq.trans hv_u.symm)) |
| 582 | have h_off (g : GL n (LocField u)) : ofSplitPlace hu g ∈ localLevel n (otherConjugates E V) := |
| 583 | trivialOn_le_localLevel (h_away (ofSplitPlace_mem_supportedOn hu g)) |
| 584 | simp [heckeSplit, heckeGL, heckeFun_eq_sum_toFinset, Finset.mul_sum, h_off, leftTranslation, |
| 585 | funext_iff, |
| 586 | indicator_subgroup_mul_left] |
| 587 | |
| 588 | /-- Let `E'/E` be a step for `μ` (`New.IsStep`: `E'` CM, Galois of prime degree over `E`, with |
| 589 | conditions on `μ`), `σ ≠ 1` in `Gal(E'/E)`, and `S` a set of split places of `E` that are matched |
| 590 | (`μ` trivial on `E_w^×`; places above `w` have residue degree 1 and are moved by `σ`). Then some set |
| 591 | of matching pairs of level `B` above `S` contains the indicator of `B` paired with its composition |
| 592 | with `baseChangeGf`, and is Hecke-stable at each `w ∈ S` and at some place above it. Here `B` is the |
| 593 | group of elements integral at the places above `S` and their conjugates. -/ |
| 594 | lemma exists_isHeckeStableMatching {μ : (𝔸f E)ˣ →* ℂˣ} (hσ : σ ≠ 1) [hμ : IsStep E' μ] |
| 595 | {S : Set (FinPlace E)} (h_split : ∀ w ∈ S, w.IsSplit) |
| 596 | (h_matched : ∀ w ∈ S, IsMatched E' μ w) : |
| 597 | ∃ St : Set ((Gf E n → ℂ) × (Gf E' n → ℂ)), |
| 598 | IsHeckeStableMatching σ μ S (localLevel n (placesAbove E' S)) St := by |
| 599 | classical |
| 600 | -- Choose a set `V` with one place of `E'` above each pair `{w, star w}` with `w ∈ S`, and |
| 601 | -- take the bi-invariant pairs at `V`. |
| 602 | obtain ⟨V, hV, hV_inj, hV_side, hV_conj⟩ := exists_places_above_one_side (E' := E') h_split |
| 603 | have h_above : placesAbove E' S = placesAbove E' (FinPlace.below E '' V) := |
| 604 | congrArg (preimage (FinPlace.below E)) hV_conj |
| 605 | -- the indicator function of the level at `V` is bi-invariant at `V` |
| 606 | have h_ind : IsBiInvariantAt V (indicator (localLevel n V) 1 : Gf E' n → ℂ) := by |
| 607 | simp +contextual [IsBiInvariantAt, indicator, leftTranslation, funext_iff, mul_mem_cancel_left, |
| 608 | mul_mem_cancel_right] |
| 609 | refine ⟨biInvariantPairs E n V, ⟨indicator (localLevel n V) 1, h_ind, ?_⟩, |
| 610 | fun x hx ↦ ?_, fun w hw ↦ ?_⟩ |
| 611 | · -- a point from `E` that is integral at `V` is integral at all conjugates |
| 612 | have h_int (g : Gf E n) (hg : baseChangeGf g ∈ localLevel n V) : |
| 613 | baseChangeGf g ∈ localLevel n (otherConjugates E V) := by |
| 614 | rintro u ⟨⟨v, hv, h_below⟩, -⟩ |
| 615 | exact atPlace_baseChangeGf_mem_localIntGL h_below (hg v hv) |
| 616 | rw [h_above] |
| 617 | ext g |
| 618 | · simp +contextual [indicator, mem_localLevel_placesAbove_image, ite_and, h_int] |
| 619 | · simp [indicator, mem_localLevel_placesAbove_image, ite_and] |
| 620 | · rw [IsMatchingPairAbove, h_above] |
| 621 | exact isMatchingPairAbove_of_mem_biInvariantPairs hσ (fun v hv ↦ h_matched _ (hV v hv)) |
| 622 | hV_inj hV_side hx |
| 623 | · obtain ⟨u, rfl, hu_conj⟩ : ∃ u : FinPlace E', u.below E = w ∧ u ∈ V.conjClosure := by |
| 624 | obtain ⟨v, hv, hvw⟩ | ⟨v, hv, hvw⟩ := hV_conj.le (.inl hw) |
| 625 | · exact ⟨v, hvw, .inl hv⟩ |
| 626 | · have h_below : (star v).below E = w := by rw [below_star, hvw, star_star] |
| 627 | have h_star_star : star (star v) ∈ V := by rwa [star_star] |
| 628 | exact ⟨star v, h_below, .inr h_star_star⟩ |
| 629 | obtain ⟨-, h_over⟩ := h_matched _ hw |
| 630 | obtain ⟨-, h_moved⟩ := h_over u rfl |
| 631 | exact ⟨u, rfl, isHeckeStableAt_biInvariantPairs hV_inj hV_side hu_conj |
| 632 | (locMap_surjective_of_comap_ne h_moved)⟩ |
| 633 | |
| 634 | end MatchedPlacePairs |
| 635 | |
| 636 | end New |