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

| 1 | module |
| 2 | |
| 3 | public import Mathlib.Analysis.Complex.Circle |
| 4 | import Mathlib.Analysis.SpecialFunctions.Complex.Circle |
| 5 | import Mathlib.Topology.Sheaves.Presheaf |
| 6 | import TauCeti.Algebra.Order.GroupWithZero.WithZeroInt |
| 7 | import TauCeti.LinearAlgebra.Matrix.GeneralLinearGroup.Lift |
| 8 | import TauCeti.RepresentationTheory.WeightSpace |
| 9 | import TauCeti.RingTheory.DedekindDomain.AdicValuation.ResidueField |
| 10 | import TauCeti.RingTheory.DedekindDomain.FiniteAdeleRing.CompletedIdeal |
| 11 | public import Lib.Adelic.Unitary.Defs |
| 12 | public import Lib.General.LinearAlgebra.IntegralLattices |
| 13 | import Lib.Adelic.Unitary.ComponentsAndBlockSums |
| 14 | |
| 15 | /-! |
| 16 | # Principal levels and levels defined by reductions in the finite adelic unitary group |
| 17 | |
| 18 | Let G_f = `New.Gf` be the finite adelic unitary group of the CM field E. Let Ô = `New.Ô` be the |
| 19 | integral finite adeles of E. Let K₀ = `New.stdLevel` be the elements of G_f lying in GL_n(Ô). This |
| 20 | file studies open subgroups (levels) of K₀ of two kinds. The first is the principal level of a |
| 21 | nonzero integer a of E. It consists of the g in K₀ with all entries of g - 1 in aÔ. The second is |
| 22 | the level `New.levelOf w H` of the elements whose reductions at a family of places w_i lie in a |
| 23 | subgroup H. If the places are finitely many, distinct, and none is conjugate to any w_j, then |
| 24 | reduction is onto the product. For a character χ of H, the vectors on which this level acts through |
| 25 | reduction and χ carry an action of the groups that normalise H and fix χ. |
| 26 | |
| 27 | ## Main definitions and results |
| 28 | |
| 29 | * `New.exists_congruenceGL_subset`: every neighbourhood of `1` in `GL n` of the finite adeles |
| 30 | contains a principal congruence subgroup of integer level. Here `New.Ô` is the ring of integral |
| 31 | finite adeles, and `New.congruenceGL I id` is the group of matrices in `GL n` of it that are `1` |
| 32 | modulo `I`. |
| 33 | * `New.principalLevel`, `New.isOpen_principalLevel`: the principal level of an integer a, open for |
| 34 | a ≠ 0. |
| 35 | * `New.levelOf`: the k in K₀ whose reductions at a family of places w_i lie in a subgroup H of ∏ |
| 36 | GL_n(k_{w_i}); it is open for a finite family (`New.isOpen_levelOf`). |
| 37 | * `New.exists_reduceFamily_eq`, `New.relIndex_levelOf`: if the w_i are finitely many, distinct, and |
| 38 | none is conjugate to a w_j, reduction is onto the product and the level has index [∏ GL_n : H]. |
| 39 | * `New.relIndex_principalLevel_le`: the index of the principal level of `a ≠ 0` is at most |
| 40 | `N(a) ^ (n ^ 2)`, where `N(a)` is the norm of `a`. |
| 41 | * `New.levelRep`: a group that normalises `H` and fixes `χ` acts on the vectors on which the level |
| 42 | `New.levelOf w H` acts through reduction and `χ`. |
| 43 | |
| 44 | Notions from other files: |
| 45 | * `New.Gf.atPlace`, `New.stdLevel.reduceAt`: The component at w of an element of G_f, and the |
| 46 | reduction modulo w of an element of K₀. Elements of `trivialOn n P` have component 1 at each place |
| 47 | in P. |
| 48 | * `New.ResField`: The residue field of the completion E_w of E at the finite place w. |
| 49 | * `New.levelSpace`: The vectors v with π(k)v = χ(k)v for all k in the level. |
| 50 | |
| 51 | ## Relation to the literature |
| 52 | |
| 53 | Known result: Congruence subgroups and level structures of adelic groups. Here levels are preimages |
| 54 | of subgroups of the reductions at a family of places, or principal levels of a global modulus, in |
| 55 | the unitary group of the identity form. Source: V. Platonov, A. Rapinchuk, Algebraic groups and |
| 56 | number theory, ch. 3 and 5; B. H. Gross, Algebraic modular forms, Israel J. Math. 113 (1999) 61-93. |
| 57 | -/ |
| 58 | |
| 59 | @[expose] public section |
| 60 | |
| 61 | noncomputable section |
| 62 | |
| 63 | /-! ## Principal congruence subgroups in adelic GL_n -/ |
| 64 | |
| 65 | /-- Every neighbourhood of `1` in `GL n` of the finite adeles of `E` contains a principal congruence |
| 66 | subgroup. This is the group `New.congruenceGL` of level `M` times the integral finite adeles |
| 67 | `New.Ô E`, for some nonzero natural number `M`. -/ |
| 68 | lemma New.exists_congruenceGL_subset {E : Type*} [Field E] [NumberField E] {n : Type*} [Fintype n] |
| 69 | [DecidableEq n] {s : Set (GL n (𝔸f E))} (hs : s ∈ nhds 1) : |
| 70 | ∃ M : ℕ, M ≠ 0 ∧ |
| 71 | ∀ g : GL n (𝔸f E), g ∈ congruenceGL (Ô E ∙ (M : 𝔸f E)) (id : n → n) → g ∈ s := by |
| 72 | -- Along the filter `l` on `ℕ` for which the levels `M • Ô` shrink to `0`, the congruence |
| 73 | -- subgroups eventually lie in `s` (`eventually_congruenceGL_subset`); and `M ≠ 0` frequently, |
| 74 | -- because every neighbourhood of `0` contains some `M • Ô` with `M ≠ 0`. |
| 75 | let l : Filter ℕ := |
| 76 | Filter.comap (fun M : ℕ ↦ (↑(Ô E ∙ (M : 𝔸f E)) : Set (𝔸f E))) (nhds 0).smallSets |
| 77 | have h_freq : ∃ᶠ M in l, M ≠ 0 := by |
| 78 | refine ((nhds 0).hasBasis_smallSets.comap _).frequently_iff.2 fun U hU ↦ ?_ |
| 79 | obtain ⟨M, hM, hMU⟩ := mem_nhds_zero_finAdele_iff.1 hU |
| 80 | refine ⟨M, fun x hx ↦ ?_, hM⟩ |
| 81 | obtain ⟨a, rfl⟩ := Submodule.mem_span_singleton.1 hx |
| 82 | simpa [Subring.smul_def, mul_comm] using hMU a a.property |
| 83 | exact (h_freq.and_eventually (eventually_congruenceGL_subset Filter.map_comap_le hs)).exists |
| 84 | |
| 85 | namespace New |
| 86 | |
| 87 | /-! |
| 88 | ## Reduction at places, principal levels and levels defined by reductions |
| 89 | |
| 90 | `star w` is the complex conjugate place; `New.ofSplitPlace` puts a matrix of GL_n(E_w) into G_f at a |
| 91 | place w ≠ `star w`, with component 1 away from w and `star w`. |
| 92 | -/ |
| 93 | |
| 94 | |
| 95 | namespace Filling |
| 96 | |
| 97 | open Matrix Valued |
| 98 | |
| 99 | /-- The matrix `l` with row `o` multiplied by `a` is integral iff that row times `a` and the other |
| 100 | rows of `l` are integral. -/ |
| 101 | lemma isIntMatrix_scaleAt_mul_iff {κ m R : Type*} [Fintype κ] [DecidableEq κ] [CommRing R] |
| 102 | {O : Subring R} {a : R} {o : κ} {l : Matrix κ m R} : |
| 103 | IsIntMatrix O (scaleAt a o * l) ↔ (∀ j : m, a * l o j ∈ O) ∧ ∀ i ≠ o, ∀ j : m, l i j ∈ O := by |
| 104 | simp only [IsIntMatrix, diagonal_mul] |
| 105 | grind |
| 106 | |
| 107 | variable {E : Type} [Field E] [CMType E] |
| 108 | |
| 109 | /-- Let the idele `p` be a unit at `w` or at the conjugate of `w`, for each place `w` (`v` is the |
| 110 | valuation). If the finite adelic unitary matrix `k` is integral with row `o` congruent to that of |
| 111 | `1` modulo `p`, then `k - 1` stays integral after dividing row `o` by `p` and column `o` by |
| 112 | `p̄`. -/ |
| 113 | lemma isIntMatrix_scaleAt_mul_sub_one_mul_scaleAt {κ : Type*} [Fintype κ] [DecidableEq κ] |
| 114 | (p : (𝔸f E)ˣ) (o : κ) |
| 115 | (hp : ∀ w : FinPlace E, v (p.val w) = 1 ∨ v (p.val (star w)) = 1) {k : Gf E κ} |
| 116 | (hk : k.val ∈ congruenceGL (Ô E ∙ p.val) fun () ↦ o) : |
| 117 | IsIntMatrix (Ô E) (scaleAt p⁻¹.val o * ((k.val.val - 1) * scaleAt (star p⁻¹.val) o)) := by |
| 118 | -- Row `o` of `M = k - 1` is divisible by `p`. The same holds for `k⁻¹ = kᴴ`, so column `o` of |
| 119 | -- `M` is divisible by `star p`. All entries of `M` are integral. |
| 120 | set M : Matrix κ κ (𝔸f E) := k.val.val - 1 with hM |
| 121 | obtain ⟨-, hk_inv_row⟩ := inv_mem hk |
| 122 | obtain ⟨hk_int, hk_row⟩ := hk |
| 123 | have h_int : IsIntMatrix (Ô E) M := hk_int.isIntMatrix.sub .one |
| 124 | have h_row (j : κ) : p⁻¹.val * M o j ∈ Ô E := mem_span_unit_iff.1 (hk_row () j) |
| 125 | have h_col (i : κ) : M i o * star p⁻¹.val ∈ Ô E := by |
| 126 | have h_inv : p⁻¹.val * Mᴴ o i ∈ Ô E := by |
| 127 | rw [hM, conjTranspose_sub, conjTranspose_one, ← U.inv_val_eq_conjTranspose] |
| 128 | exact mem_span_unit_iff.1 (hk_inv_row () i) |
| 129 | simpa [star_mul] using star_mem_Ô h_inv |
| 130 | -- The entry `(o, o)` is divided twice, but at each place one of the two divisors is a unit. |
| 131 | have h_corner : p⁻¹.val * (M o o * star p⁻¹.val) ∈ Ô E := mem_Ô.2 fun w ↦ by |
| 132 | obtain h_unit | h_unit := hp w |
| 133 | · simpa [idele_inv_apply_and_ne_zero, h_unit] using mem_Ô.1 (h_col o) w |
| 134 | · simpa [idele_inv_apply_and_ne_zero, h_unit] using mem_Ô.1 (h_row o) w |
| 135 | refine isIntMatrix_scaleAt_mul_iff.2 ⟨fun j ↦ ?_, fun i _ j ↦ ?_⟩ |
| 136 | · by_cases hj : j = o <;> simp [hj, h_corner, h_row] |
| 137 | · by_cases hj : j = o <;> simp [hj, h_col, h_int i j] |
| 138 | |
| 139 | end Filling |
| 140 | |
| 141 | section Levels |
| 142 | |
| 143 | open Function Matrix NumberField IsLocalRing Subgroup stdLevel Gf Ideal Valued algebraMap |
| 144 | |
| 145 | variable {n ι R S E : Type*} [Fintype n] [DecidableEq n] [CommRing R] [CommRing S] [Field E] |
| 146 | [NumberField E] {w : FinPlace E} {a b : 𝓞 E} |
| 147 | |
| 148 | /-! ### Reduction of GL_n and divisibility in the integral finite adeles -/ |
| 149 | |
| 150 | /-- The reduction homomorphism from GL_n(O_w) to GL_n of the residue field at w. -/ |
| 151 | def reduceGL : intGL n (Valued.v (R := LocField w)).integer →* GL n (ResField w) := |
| 152 | intGL.map (n := n) (O := v.integer) (S := ResField w) (residue (LocInt w)) |
| 153 | |
| 154 | /-- Reduction GL_n(O_w) → GL_n(k_w) to the residue field k_w at the place w is surjective. -/ |
| 155 | lemma reduceGL_surjective : Surjective (reduceGL (n := n) (w := w)) := fun s ↦ by |
| 156 | obtain ⟨g, rfl⟩ := |
| 157 | Matrix.GeneralLinearGroup.map_surjective (residue (LocInt w)) residue_surjective s |
| 158 | -- The matrix `g`, read in GL_n(E_w), is integral, and its reduction is by definition that of `g`. |
| 159 | exact ⟨⟨GeneralLinearGroup.map (LocInt w).subtype g, g, rfl⟩, rfl⟩ |
| 160 | |
| 161 | lemma isUnit_algebraMap_finAdele (ha_ne : a ≠ 0) : IsUnit (a : 𝔸f E) := |
| 162 | (RingOfIntegers.coe_ne_zero_iff.2 ha_ne).isUnit.map (algebraMap E (𝔸f E)) |
| 163 | |
| 164 | /-- For an integer a of E, a finite adele y lies in aÔ if and only if y lies in the ring Ô of |
| 165 | integral finite adeles and |y|_u ≤ |a|_u at every finite place u dividing a. -/ |
| 166 | lemma mem_span_iff_valuation_le {y : 𝔸f E} : |
| 167 | y ∈ Ô E ∙ (a : 𝔸f E) ↔ y ∈ Ô E ∧ ∀ u : IsDedekindDomain.HeightOneSpectrum (𝓞 E), |
| 168 | a ∈ u.asIdeal → v (y u) ≤ u.intValuation a := by |
| 169 | have h_a (u : FinPlace E) : v ((a : 𝔸f E) u) = u.intValuation a := v_algebraMap_eq_intValuation a |
| 170 | -- Where `u` does not divide `a`, its valuation of `a` is `1` and the bound is integrality. |
| 171 | have h_local (u : FinPlace E) : v (y u) ≤ u.intValuation a ↔ |
| 172 | v (y u) ≤ 1 ∧ (a ∈ u.asIdeal → v (y u) ≤ u.intValuation a) := by |
| 173 | grind [u.intValuation_le_one a, u.intValuation_eq_one_iff] |
| 174 | -- Membership in `aÔ` means `v (y u) ≤ v (a u)` at every place `u`. The arrow applies that |
| 175 | -- rewriting before `simp` unfolds `Ô`. |
| 176 | simpa [↓exists_eq_mul_iff_v_le, mem_Ô, ← forall_and, h_a] using forall_congr' h_local |
| 177 | |
| 178 | variable [IsCMField E] (n a) {f : Ô E →+* S} |
| 179 | |
| 180 | /-- The entries of the image of g ∈ K₀ = `stdLevel E n` under `stdLevel.map n f` are the images |
| 181 | under f of the entries of g. -/ |
| 182 | @[simp] |
| 183 | lemma stdLevel.map_apply (g : stdLevel E n) (i j : n) : |
| 184 | map n f g i j = f ⟨g.val.val.val i j, mem_stdLevel.mp g.property i j⟩ := rfl |
| 185 | |
| 186 | /-- An element g of K₀ = `stdLevel E n` maps to 1 under the entrywise homomorphism |
| 187 | `stdLevel.map n f` if and only if f kills every entry of g - 1, read in Ô. -/ |
| 188 | lemma stdLevel.map_eq_one {g : stdLevel E n} : |
| 189 | map n f g = 1 ↔ ∀ i j : n, |
| 190 | f (⟨(g.val.val : Matrix n n (𝔸f E)) i j, mem_stdLevel.mp g.property i j⟩ - |
| 191 | ⟨(1 : Matrix n n (𝔸f E)) i j, mem_stdLevel.mp (one_mem (stdLevel E n)) i j⟩) = 0 := |
| 192 | intGL.map_eq_one |
| 193 | |
| 194 | /-! ### Principal levels -/ |
| 195 | |
| 196 | /-- The principal level K(a) for an integer a of E is the subgroup of g in K₀ = `New.stdLevel` such |
| 197 | that every entry of g - 1 is a·y for some y in Ô. It is the principal congruence subgroup |
| 198 | `New.congruenceGL` of level aÔ intersected with G_f, here the unitary group `U 1` of the identity |
| 199 | form, a subgroup of GL_n of the finite adeles; `Subgroup.copy` only restates the carrier so that |
| 200 | membership unfolds to the displayed condition. -/ |
| 201 | def principalLevel : Subgroup (Gf E n) := |
| 202 | Subgroup.copy ((congruenceGL (Ô E ∙ algebraMap (𝓞 E) (𝔸f E) a) id).subgroupOf (U 1)) |
| 203 | {g ∈ stdLevel E n | ∀ i j : n, ∃ y ∈ Ô E, |
| 204 | ((g.val : Matrix n n (𝔸f E)) - 1) i j = algebraMap (𝓞 E) (𝔸f E) a * y} |
| 205 | (by aesop (add simp congruenceGL)) |
| 206 | |
| 207 | variable {n a} |
| 208 | |
| 209 | /-- An element g of G_f is in the principal level of a if and only if it lies in K₀ = `stdLevel E n` |
| 210 | and every entry of g - 1 is a times an element of Ô. -/ |
| 211 | lemma mem_principalLevel {g : Gf E n} : |
| 212 | g ∈ principalLevel n a ↔ g ∈ stdLevel E n ∧ ∀ i j : n, ∃ y ∈ Ô E, |
| 213 | ((g.val : Matrix n n (𝔸f E)) - 1) i j = algebraMap (𝓞 E) (𝔸f E) a * y := Iff.rfl |
| 214 | |
| 215 | /-- If f : Ô → S kills the integer a, then an element k of the principal level of a maps to 1 in |
| 216 | GL_n(S) under entrywise application of f. -/ |
| 217 | lemma map_eq_one_of_mem_principalLevel {k : Gf E n} (hk : k ∈ principalLevel n a) (ha : f a = 0) : |
| 218 | stdLevel.map n f ⟨k, hk.1⟩ = 1 := by |
| 219 | -- Each entry of `k - 1` is a multiple of `a`, which `f` kills. |
| 220 | refine (map_eq_one n).2 fun i j ↦ (RingHom.ker f).mem_of_dvd ?_ ha |
| 221 | obtain ⟨y, hy, h_entry⟩ := (mem_principalLevel.1 hk).2 i j |
| 222 | exact ⟨⟨y, hy⟩, Subtype.ext h_entry⟩ |
| 223 | |
| 224 | omit [IsCMField E] in |
| 225 | /-- For a nonzero integer a, the congruence subgroup of GL_n of the finite adeles of level aÔ is |
| 226 | open. -/ |
| 227 | lemma Variety.isOpen_congruenceGL_span (ha_ne : a ≠ 0) : |
| 228 | (congruenceGL (Ô E ∙ (a : 𝔸f E)) (id : n → n)).IsOpen := by |
| 229 | refine isOpen_congruenceGL isOpen_Ô ?_ |
| 230 | -- `a Ô` is the image of the open set `Ô` under multiplication by the unit `a` of `𝔸f E`. |
| 231 | have h_image : ((Ô E ∙ (a : 𝔸f E) : Submodule (Ô E) (𝔸f E)) : Set (𝔸f E)) = |
| 232 | (fun x : 𝔸f E ↦ (a : 𝔸f E) • x) '' (Ô E : Set (𝔸f E)) := by aesop |
| 233 | rw [h_image] |
| 234 | exact (isUnit_algebraMap_finAdele ha_ne).isOpenMap_smul _ (isOpen_Ô (E := E)) |
| 235 | |
| 236 | /-- For a nonzero integer `a`, the principal level `principalLevel n a` is open. -/ |
| 237 | lemma isOpen_principalLevel (ha_ne : a ≠ 0) : (principalLevel n a).IsOpen := by |
| 238 | rw [principalLevel, copy_eq] |
| 239 | exact (Variety.isOpen_congruenceGL_span ha_ne).preimage_val |
| 240 | |
| 241 | /-- The principal level `principalLevel n a` is contained in K₀ = `stdLevel E n`. -/ |
| 242 | lemma principalLevel_le_stdLevel : principalLevel n a ≤ stdLevel E n := fun _ hg ↦ hg.1 |
| 243 | |
| 244 | instance [Fact (a ≠ 0)] : IsLevel (principalLevel n a) where |
| 245 | le := principalLevel_le_stdLevel |
| 246 | isOpen := isOpen_principalLevel Fact.out |
| 247 | |
| 248 | /-- If `a` divides `b`, then the principal level of `b` is contained in that of `a`. -/ |
| 249 | lemma principalLevel_le_of_dvd (hab : a ∣ b) : principalLevel n b ≤ principalLevel n a := by |
| 250 | obtain ⟨c, rfl⟩ := hab |
| 251 | refine fun x ⟨hx, h_cong⟩ ↦ ⟨hx, fun i j ↦ ?_⟩ |
| 252 | obtain ⟨y, hy, h_entry⟩ := h_cong i j |
| 253 | exact ⟨c * y, mul_mem (algebraMap_mem_Ô.2 c.property) hy, by simp [h_entry, mul_assoc]⟩ |
| 254 | |
| 255 | /-- Every neighbourhood of 1 in G_f contains the principal level `New.principalLevel` of some |
| 256 | nonzero natural number M. -/ |
| 257 | lemma exists_principalLevel_subset {s : Set (Gf E n)} (hs : s ∈ nhds 1) : |
| 258 | ∃ M : ℕ, M ≠ 0 ∧ (principalLevel n (M : 𝓞 E) : Set (Gf E n)) ⊆ s := by |
| 259 | -- `s` contains the trace on the unitary group of a neighbourhood of `1` in `GL n`. |
| 260 | obtain ⟨t, ht, h_sub⟩ := (mem_nhds_induced _ _ _).1 hs |
| 261 | obtain ⟨M, hM, h_cong⟩ := exists_congruenceGL_subset ht |
| 262 | refine ⟨M, hM, fun g hg ↦ h_sub (h_cong _ ?_)⟩ |
| 263 | rw [principalLevel, copy_eq] at hg |
| 264 | simpa using mem_subgroupOf.1 hg |
| 265 | |
| 266 | instance : NonarchimedeanGroup (Gf E n) where |
| 267 | is_nonarchimedean _ hs := |
| 268 | let ⟨M, hM, h_sub⟩ := exists_principalLevel_subset hs |
| 269 | ⟨⟨principalLevel n M, isOpen_principalLevel (mod_cast hM)⟩, h_sub⟩ |
| 270 | |
| 271 | /-! ### Reduction of an element with given component -/ |
| 272 | |
| 273 | /-- If the component at w of k ∈ K₀ is the integral matrix t, the reduction of k at w is t modulo |
| 274 | w. -/ |
| 275 | lemma stdLevel.reduceAt_eq_of_atPlace {k : stdLevel E n} {t : GL n (LocInt w)} |
| 276 | (h_atPlace : k.val.atPlace w = GeneralLinearGroup.map (LocInt w).subtype t) : |
| 277 | reduceAt w k = GeneralLinearGroup.map (residue (LocInt w)) t := by |
| 278 | -- Both sides are `reduceGL` of integral matrices with the same image in GL_n(E_w). |
| 279 | have h_comp : (⟨k.val.atPlace w, t, h_atPlace.symm⟩ : intGL n (v (R := LocField w)).integer) = |
| 280 | ⟨GeneralLinearGroup.map (LocInt w).subtype t, t, rfl⟩ := Subtype.ext h_atPlace |
| 281 | exact congrArg reduceGL h_comp |
| 282 | |
| 283 | /-- An element of K₀ with component 1 at w reduces to 1 modulo w. -/ |
| 284 | lemma stdLevel.reduceAt_eq_one_of_atPlace {k : stdLevel E n} (h_atPlace : k.val.atPlace w = 1) : |
| 285 | reduceAt w k = 1 := by |
| 286 | simpa using reduceAt_eq_of_atPlace (t := 1) (by simpa using h_atPlace) |
| 287 | |
| 288 | end Levels |
| 289 | |
| 290 | /-! ### Levels cut out by reductions at a family of places -/ |
| 291 | |
| 292 | section LevelsAtPlaces |
| 293 | |
| 294 | open Function NumberField IsLocalRing Subgroup stdLevel Gf Ideal algebraMap |
| 295 | |
| 296 | variable {n ι R S E : Type*} [Fintype n] [DecidableEq n] [Field E] [NumberField E] {a : 𝓞 E} |
| 297 | [IsCMField E] |
| 298 | variable {w : ι → FinPlace E} {H : Subgroup (∀ i : ι, GL n (ResField (w i)))} |
| 299 | |
| 300 | /-- The family w of finite places of the CM field E is injective and no w j is the conjugate of |
| 301 | any w i; in particular no w i is its own conjugate. -/ |
| 302 | class IsConjApart (w : ι → FinPlace E) : Prop where |
| 303 | /-- The places of the family are pairwise distinct. -/ |
| 304 | injective : w.Injective |
| 305 | /-- The conjugate of a place of the family is never a place of the family. -/ |
| 306 | star_ne (i j : ι) : star (w i) ≠ w j |
| 307 | |
| 308 | /-- The homomorphism from K₀ to ∏_i GL_n(k_{w_i}) given by reduction modulo each place of the |
| 309 | family w_i. -/ |
| 310 | def stdLevel.reduceFamily (w : ι → FinPlace E) : stdLevel E n →* ∀ i : ι, GL n (ResField (w i)) := |
| 311 | MonoidHom.pi fun i ↦ reduceAt (w i) |
| 312 | |
| 313 | /-- The subgroup of G_f of elements of K₀ whose reductions modulo the places w_i form an element |
| 314 | of the subgroup H of ∏_i GL_n(k_{w_i}). -/ |
| 315 | def levelOf (w : ι → FinPlace E) (H : Subgroup (∀ i : ι, GL n (ResField (w i)))) : |
| 316 | Subgroup (Gf E n) := |
| 317 | (H.comap (reduceFamily w)).map (stdLevel E n).subtype |
| 318 | |
| 319 | /-- The subgroup `levelOf w H` is contained in K₀ = `stdLevel E n`. -/ |
| 320 | lemma levelOf_le_stdLevel : levelOf w H ≤ stdLevel E n := map_subtype_le _ |
| 321 | |
| 322 | /-- An element of G_f is in `levelOf w H` if and only if it lies in K₀ = `stdLevel E n` and its |
| 323 | family of reductions at the places w_i lies in H. -/ |
| 324 | lemma mem_levelOf {g : Gf E n} : |
| 325 | g ∈ levelOf w H ↔ ∃ h : g ∈ stdLevel E n, reduceFamily w ⟨g, h⟩ ∈ H := by |
| 326 | simp [levelOf] |
| 327 | |
| 328 | /-- The homomorphism from the level `New.levelOf` w H to H given by reduction modulo the places |
| 329 | w_i. -/ |
| 330 | def levelOf.reduction (w : ι → FinPlace E) (H : Subgroup (∀ i : ι, GL n (ResField (w i)))) : |
| 331 | levelOf w H →* H := |
| 332 | ((reduceFamily w).comp (inclusion levelOf_le_stdLevel)).codRestrict H fun g ↦ |
| 333 | (mem_levelOf.1 g.property).2 |
| 334 | |
| 335 | lemma inf_trivialOn_le_levelOf : stdLevel E n ⊓ trivialOn n (Set.range w) ≤ levelOf w H := |
| 336 | -- An element of the left side has component `1` at each `w i`, so it reduces to `1 ∈ H`. |
| 337 | fun _ ⟨hg, h_trivial⟩ ↦ mem_levelOf.2 ⟨hg, H.ker_le_comap _ <| funext fun i ↦ |
| 338 | reduceAt_eq_one_of_atPlace (by simp_all [trivialOn])⟩ |
| 339 | |
| 340 | /-- If the integer a lies in every w_i, the principal level of a is contained in |
| 341 | `levelOf w H`. -/ |
| 342 | lemma principalLevel_le_levelOf (ha_mem : ∀ i : ι, a ∈ (w i).asIdeal) : |
| 343 | principalLevel n a ≤ levelOf w H := |
| 344 | -- `a` vanishes in each residue field, so an element of the level reduces to `1 ∈ H`. |
| 345 | fun _ hg ↦ mem_levelOf.2 ⟨hg.1, H.ker_le_comap _ <| funext fun i ↦ |
| 346 | map_eq_one_of_mem_principalLevel hg |
| 347 | ((reduceAt_algebraMap (w i) a).trans (algebraMap_ResField_eq_zero.2 (ha_mem i)))⟩ |
| 348 | |
| 349 | /-- For a finite family of places, the level `levelOf w H` is open in G_f. -/ |
| 350 | lemma isOpen_levelOf [Finite ι] : (levelOf w H).IsOpen := by |
| 351 | -- The level contains `principalLevel n a` for `a` the norm of `⨅ i, w i`, a nonzero element of |
| 352 | -- each `w i`. |
| 353 | set I : Ideal (𝓞 E) := ⨅ i : ι, (w i).asIdeal |
| 354 | have h_fin : Finite (𝓞 E ⧸ I) := .of_injective _ (quotientInfToPiQuotient_inj _) |
| 355 | have h_ne : (I.absNorm : 𝓞 E) ≠ 0 := mod_cast (absNorm_ne_zero_iff I).2 h_fin |
| 356 | exact isOpen_mono (principalLevel_le_levelOf (mem_iInf.1 (absNorm_mem I))) |
| 357 | (isOpen_principalLevel h_ne) |
| 358 | |
| 359 | /-- For finite `ι`, `levelOf w H` is a level (an instance of `IsLevel`): it is open and contained in |
| 360 | the standard level. -/ |
| 361 | instance instIsLevelLevelOf [Finite ι] : IsLevel (levelOf w H) where |
| 362 | le := levelOf_le_stdLevel |
| 363 | isOpen := isOpen_levelOf |
| 364 | |
| 365 | /-- A level K, that is an open subgroup of G_f inside K₀, has finite index in the compact group |
| 366 | K₀. -/ |
| 367 | @[simp] |
| 368 | lemma relIndex_ne_zero_of_isLevel (K : Subgroup (Gf E n)) [IsLevel K] : |
| 369 | K.relIndex (stdLevel E n) ≠ 0 := |
| 370 | isCompact_stdLevel.relIndex_ne_zero IsLevel.isOpen |
| 371 | |
| 372 | /-- For distinct places `w i`, none conjugate to a `w j` (`IsConjApart w`, whose field `star_ne` |
| 373 | says that `w i` is split), a matrix `k` in `localIntGL n (w i)` = GL_n(O_{w i}) put at the split |
| 374 | place `w i` by `New.ofSplitPlace` reduces to `reduceGL k`, the reduction of `k` modulo `w i`, at |
| 375 | `w i` and to `1` at the other places of the family. -/ |
| 376 | lemma reduceFamily_ofSplitPlace [IsConjApart w] [DecidableEq ι] (i : ι) |
| 377 | (k : localIntGL n (w i)) : |
| 378 | reduceFamily w ⟨ofSplitPlace (IsConjApart.star_ne (w := w) i i) k, by simp⟩ = |
| 379 | Pi.mulSingle i (reduceGL k) := by |
| 380 | refine eq_update_iff.2 ⟨reduceAt_eq_of_atPlace (atPlace_ofSplitPlace ..), fun j hj ↦ ?_⟩ |
| 381 | -- For `j ≠ i` the place `w j` is neither `w i` nor its conjugate. |
| 382 | exact reduceAt_eq_one_of_atPlace |
| 383 | (atPlace_ofSplitPlace_of_ne _ _ (IsConjApart.injective.ne hj) (IsConjApart.star_ne j i)) |
| 384 | |
| 385 | /-- For finitely many distinct places w_i, none conjugate to a w_j, every family s of matrices in |
| 386 | GL_n(k_{w_i}) is the reduction of some k in K₀ with component 1 away from the w_i and their |
| 387 | conjugates. -/ |
| 388 | lemma exists_reduceFamily_eq [Finite ι] [IsConjApart w] (s : ∀ i : ι, GL n (ResField (w i))) : |
| 389 | ∃ k : stdLevel E n, k.val ∈ supportedOn n (Set.range w) ∧ reduceFamily w k = s := by |
| 390 | classical |
| 391 | -- It suffices to lift an element with a single nontrivial component `s i`. |
| 392 | refine (((supportedOn n (.range w)).subgroupOf (stdLevel E n)).map |
| 393 | (reduceFamily w)).pi_mem_of_mulSingle_mem s fun i ↦ ?_ |
| 394 | -- Lift `s i` to `GL_n(O_w)` and place the lift at the split place `w i`; it is then supported |
| 395 | -- on `{w i, star (w i)}`, that is, has component `1` at all other places. |
| 396 | obtain ⟨k, hk⟩ : ∃ k : localIntGL n (w i), reduceGL k = s i := reduceGL_surjective (s i) |
| 397 | let g : stdLevel E n := ⟨ofSplitPlace (IsConjApart.star_ne (w := w) i i) k, by simp⟩ |
| 398 | have hg_supp : g.val ∈ supportedOn n (Set.range w) := |
| 399 | mem_supportedOn.2 fun u hu hu_star ↦ |
| 400 | atPlace_ofSplitPlace_of_ne _ _ (fun h_eq ↦ hu ⟨i, h_eq.symm⟩) |
| 401 | (fun h_eq ↦ hu_star ⟨i, h_eq.symm⟩) |
| 402 | have hg : reduceFamily w g = Pi.mulSingle i (s i) := by rw [reduceFamily_ofSplitPlace i k, hk] |
| 403 | exact ⟨g, hg_supp, hg⟩ |
| 404 | |
| 405 | /-- For finitely many distinct places w_i, none conjugate to a w_j, the index of the level |
| 406 | `New.levelOf` w H in K₀ is the index of H in ∏ GL_n(k_{w_i}). -/ |
| 407 | lemma relIndex_levelOf [Finite ι] [h : IsConjApart w] : |
| 408 | (levelOf w H).relIndex (stdLevel E n) = H.index := by |
| 409 | -- The level is the preimage of `H` under the surjection `reduceFamily w`. |
| 410 | have h_surj : Surjective (reduceFamily (n := n) w) := |
| 411 | fun s ↦ (exists_reduceFamily_eq s).imp fun _ hk ↦ hk.2 |
| 412 | simp [levelOf, relIndex, subgroupOf, comap_map_eq_self, H.index_comap_of_surjective h_surj] |
| 413 | |
| 414 | end LevelsAtPlaces |
| 415 | |
| 416 | /-! |
| 417 | ## Index bounds for principal levels and auxiliary facts on Ô and integers |
| 418 | |
| 419 | * `New.relIndex_principalLevel_le`: the principal level of `a ≠ 0` has index at most |
| 420 | `N(a) ^ (n ^ 2)` in K₀. |
| 421 | * `New.bijective_quot_Ô`, `New.card_Ô_quot_span`: `𝓞 / J ≃ Ô / I` when the ideal `I` of `Ô` |
| 422 | contracts to `J` and `J` contains a nonzero integer. For `a ≠ 0`, `Ô / a Ô` has `N(a)` elements. |
| 423 | * Further lemmas on characters of nonarchimedean groups, on divisibility by an integer in `Ô` and |
| 424 | on products of distinct places. |
| 425 | -/ |
| 426 | |
| 427 | section CongruenceLevel |
| 428 | |
| 429 | open Nat Circle NumberField Ideal Quotient RingOfIntegers Subgroup stdLevel algebraMap |
| 430 | IsDedekindDomain |
| 431 | |
| 432 | variable {E : Type*} [Field E] [NumberField E] {n : Type*} [Fintype n] [DecidableEq n] |
| 433 | {a b : 𝓞 E} {ι : Type*} [Fintype ι] {w : ι → FinPlace E} |
| 434 | |
| 435 | /-- A continuous character χ : G → S¹ of a nonarchimedean topological group G is trivial on a |
| 436 | neighbourhood of 1. -/ |
| 437 | lemma char_eventually_eq_one {G : Type*} [Group G] [TopologicalSpace G] [NonarchimedeanGroup G] |
| 438 | (χ : G →* Circle) (hχ : Continuous χ) : ∀ᶠ k : G in nhds 1, χ k = 1 := by |
| 439 | -- The preimage of the open arc of radius `π / 2` around `1` contains an open subgroup `K`, and |
| 440 | -- only `1` has all its positive powers in that arc. |
| 441 | obtain ⟨K, hK⟩ := NonarchimedeanGroup.is_nonarchimedean _ |
| 442 | (((isOpen_centeredArc (.pi / 2)).preimage hχ).mem_nhds ⟨0, by simp [Real.pi_pos]⟩) |
| 443 | filter_upwards [K.mem_nhds_one] with k hk |
| 444 | exact eq_one_of_forall_pow_mem_centeredArc_pi_div_two fun m _ ↦ by simpa using hK (pow_mem hk m) |
| 445 | |
| 446 | /-- For a finite commutative ring R, the group GL_n(R) has at most |R|^(n²) elements. -/ |
| 447 | lemma card_GL_le (R : Type*) [CommRing R] [Finite R] : |
| 448 | Nat.card (GL n R) ≤ Nat.card R ^ Fintype.card n ^ 2 := |
| 449 | (card_le_card_of_injective (β := Matrix n n R) _ Units.val_injective).trans_eq |
| 450 | (by simp [Matrix, card_pi, sq, pow_mul]) |
| 451 | |
| 452 | /-- Let `a` vanish to order one at each place that contains it. Then `a` divides `y ∈ Ô` if and only |
| 453 | if the reduction `reduceAt w y` of `y` modulo w is `0` for every place w that contains `a`. -/ |
| 454 | lemma dvd_iff_reduceAt_eq_zero |
| 455 | (h_val : ∀ {v : FinPlace E}, a ∈ v.asIdeal → v.intValuation a = WithZero.exp (-1)) (y : Ô E) : |
| 456 | (a : Ô E) ∣ y ↔ ∀ w : FinPlace E, a ∈ w.asIdeal → reduceAt w y = 0 := by |
| 457 | -- Both sides are conditions place by place: `a ∣ y` says `v(y_u) ≤ v_u(a)` for all `u`, the right |
| 458 | -- side says `v(y_u) < 1` for the places `u` containing `a`. |
| 459 | have h_local (u : FinPlace E) : |
| 460 | Valued.v (y.val u) ≤ u.valuation E (a : E) ↔ (a ∈ u.asIdeal → Valued.v (y.val u) < 1) := by |
| 461 | by_cases ha : a ∈ u.asIdeal |
| 462 | · -- here `v_u(a) = exp (-1)`, and `x ≤ exp (-1)` means `x < 1` |
| 463 | simp [ha, u.valuation_of_algebraMap, h_val ha, ← TauCeti.lt_one_iff_le_exp_neg_one] |
| 464 | · -- here `v_u(a) = 1`, and `y` is integral |
| 465 | simp [ha, u.valuation_of_algebraMap, u.intValuation_eq_one_iff.2 ha, mem_Ô.1 y.property] |
| 466 | simp [exists_eq_mul_iff_v_le, reduceAt_eq_zero, h_local, dvd_def, Subtype.ext_iff] |
| 467 | |
| 468 | /-- For distinct places w_i, an integer x of E lies in their product if and only if it lies in |
| 469 | each w_i. -/ |
| 470 | lemma mem_prod_finPlace_iff (hw : w.Injective) {x : 𝓞 E} : |
| 471 | x ∈ ∏ i : ι, (w i).asIdeal ↔ ∀ i : ι, x ∈ (w i).asIdeal := by |
| 472 | -- Distinct places are coprime, so their product is their intersection. |
| 473 | rw [prod_eq_iInf_of_pairwise_isCoprime fun i _ j _ hij ↦ (w i).isCoprime_of_ne _ (hw.ne hij)] |
| 474 | simp |
| 475 | |
| 476 | /-- For integers a ≠ 0 and b of E, a divides b in Ô if and only if it does so in 𝓞_E. -/ |
| 477 | lemma dvd_iff_Ô (ha_ne : a ≠ 0) : (a : Ô E) ∣ b ↔ a ∣ b := by |
| 478 | have hI : span ({a} : Set (𝓞 E)) ≠ ⊥ := span_singleton_eq_bot.not.mpr ha_ne |
| 479 | have h := FiniteAdeleRing.algebraMap_mem_completedIdeal_iff (K := E) hI (r := b) |
| 480 | simp only [FiniteAdeleRing.completedIdeal_def, map_span, Set.image_singleton, |
| 481 | mem_span_singleton] at h |
| 482 | exact h |
| 483 | |
| 484 | /-- If an ideal I of Ô contracts to the ideal J of 𝓞_E and J contains a nonzero element a, then |
| 485 | 𝓞_E/J → Ô/I is bijective. -/ |
| 486 | lemma bijective_quot_Ô (ha_ne : a ≠ 0) {I : Ideal (Ô E)} {J : Ideal (𝓞 E)} |
| 487 | (hJ : Ideal.comap (algebraMap (𝓞 E) (Ô E)) I = J) (ha : a ∈ J) : |
| 488 | Function.Bijective (quotientMap I (algebraMap (𝓞 E) (Ô E)) hJ.ge) := by |
| 489 | refine ⟨quotientMap_injective' hJ.le, Quot.ind fun x ↦ ?_⟩ |
| 490 | -- Every `x ∈ Ô` is congruent to an integer `b` modulo `a`, hence modulo `I`. |
| 491 | obtain ⟨b, hb⟩ := exists_dvd_algebraMap_sub ha_ne x |
| 492 | exact ⟨b, SModEq.sub_mem.2 (mem_of_dvd _ hb (hJ.ge ha))⟩ |
| 493 | |
| 494 | /-- An ideal I of Ô that contains a nonzero element a of 𝓞_E is generated by its contraction to |
| 495 | 𝓞_E. -/ |
| 496 | lemma map_under_Ô (ha_ne : a ≠ 0) {I : Ideal (Ô E)} (hI : algebraMap (𝓞 E) (Ô E) a ∈ I) : |
| 497 | (under (𝓞 E) I).map (algebraMap (𝓞 E) (Ô E)) = I := by |
| 498 | refine map_comap_le.antisymm fun x hx ↦ ?_ |
| 499 | -- Write `x = b - (b - x)` with `b` an integer and `a ∣ b - x`; then `b ∈ I`, as `x, a ∈ I`. |
| 500 | obtain ⟨b, h_dvd⟩ := exists_dvd_algebraMap_sub ha_ne x |
| 501 | have hb : b ∈ under (𝓞 E) I := by simpa using add_mem (mem_of_dvd _ h_dvd hI) hx |
| 502 | simpa using Ideal.sub_mem _ (mem_map_of_mem _ hb) (mem_of_dvd _ h_dvd (mem_map_of_mem _ hI)) |
| 503 | |
| 504 | /-- For a nonzero integer a of E, the quotient Ô/aÔ has N(a) elements, where N(a) is the absolute |
| 505 | norm of (a). -/ |
| 506 | lemma card_Ô_quot_span (ha_ne : a ≠ 0) : |
| 507 | Nat.card (Ô E ⧸ span {(a : Ô E)}) = absNorm (span {a}) := by |
| 508 | have hI : span ({a} : Set (𝓞 E)) ≠ ⊥ := span_singleton_eq_bot.not.mpr ha_ne |
| 509 | rw [Ideal.absNorm_eq_natCard] |
| 510 | have e := FiniteAdeleRing.quotientEquivQuotientCompletedIdeal (K := E) hI |
| 511 | have h := Nat.card_congr e.toEquiv.symm |
| 512 | simp only [FiniteAdeleRing.completedIdeal_def, map_span, Set.image_singleton] at h |
| 513 | exact h |
| 514 | |
| 515 | /-- For a CM field `E` and an integer `a` of `E`, the principal level K(a) (the g in K₀ with g - |
| 516 | 1 ≡ 0 mod aÔ) is the kernel of reduction K₀ → GL_n(Ô/aÔ). Here K₀ = `stdLevel E n` is G_f ∩ GL_n(Ô), |
| 517 | the stabiliser of Ô^n in the finite adelic unitary group G_f. -/ |
| 518 | lemma principalLevel_subgroupOf_stdLevel_eq_ker [IsCMField E] : |
| 519 | (principalLevel n a).subgroupOf (stdLevel E n) = |
| 520 | (stdLevel.map n (Ideal.Quotient.mk (span {algebraMap (𝓞 E) (Ô E) a}))).ker := by |
| 521 | ext g |
| 522 | -- Both sides say that `a` divides every entry of `g - 1`; `map_sub` would split such an entry. |
| 523 | simp [mem_subgroupOf, eq_zero_iff_dvd, -map_sub, principalLevel, Subgroup.copy, map_eq_one, |
| 524 | Matrix.one_apply, dvd_def, Subtype.ext_iff, IsScalarTower.algebraMap_apply (𝓞 E) E (𝔸f E)] |
| 525 | |
| 526 | /-- For a nonzero integer a of E, the index of the principal level K(a) in K₀ = `New.stdLevel` is at |
| 527 | most N(a)^(n²). Here N(a) is the absolute norm of (a) and n in the exponent is the size of the index |
| 528 | type. -/ |
| 529 | lemma relIndex_principalLevel_le (ha_ne : a ≠ 0) [IsCMField E] : |
| 530 | (principalLevel n a).relIndex (stdLevel E n) ≤ absNorm (span {a}) ^ Fintype.card n ^ 2 := by |
| 531 | -- `principalLevel n a` is the kernel of reduction `stdLevel → GL n (Ô / aÔ)`, so the index is the |
| 532 | -- size of the image; `Ô / aÔ` has `N(a)` elements, so the target has at most `N(a)^(n²)`. |
| 533 | have : Finite (Ô E ⧸ span {algebraMap (𝓞 E) (Ô E) a}) := |
| 534 | finite_of_card_ne_zero (by simpa [card_Ô_quot_span ha_ne]) |
| 535 | rw [relIndex, principalLevel_subgroupOf_stdLevel_eq_ker, index_ker, ← card_Ô_quot_span ha_ne] |
| 536 | exact (card_le_card_group _).trans (card_GL_le _) |
| 537 | |
| 538 | end CongruenceLevel |
| 539 | |
| 540 | /-! |
| 541 | ## Action on vectors of a level through lifts |
| 542 | |
| 543 | * `New.liftResidue`: a chosen lift of an element of the product, supported at the `w i` and their |
| 544 | conjugates. |
| 545 | * `New.apply_liftResidue_eq`: on vectors of level `levelOf w H` and character `χ` composed with |
| 546 | reduction, all lifts act alike. |
| 547 | -/ |
| 548 | |
| 549 | section FiniteGroupAction |
| 550 | |
| 551 | variable {n ι A W E : Type*} [Fintype n] [DecidableEq n] [Field E] [NumberField E] |
| 552 | [NumberField.IsCMField E] {w : ι → FinPlace E} [CommRing A] [AddCommGroup W] [Module A W] |
| 553 | {π : Representation A (Gf E n) W} {H : Subgroup (∀ i : ι, GL n (ResField (w i)))} {χ : H →* A} |
| 554 | |
| 555 | /-- An element `k` of `New.stdLevel E n` with reduction `x ∈ H` acts on vectors of level |
| 556 | `New.levelOf w H` and character `χ` by the scalar `χ x`. -/ |
| 557 | lemma levelSpace_levelOf_apply {v : W} |
| 558 | (hv : v ∈ levelSpace π (levelOf w H) (χ.comp (levelOf.reduction w H))) (k : stdLevel E n) |
| 559 | (x : H) (hk : stdLevel.reduceFamily w k = x.val) : |
| 560 | π k v = χ x • v := by |
| 561 | obtain ⟨x, hx⟩ := x |
| 562 | subst hk |
| 563 | exact mem_levelSpace.1 hv ⟨k, mem_levelOf.2 ⟨k.property, hx⟩⟩ |
| 564 | |
| 565 | /-- A vector `v` has level `levelOf w H` and character `χ` if and only if it lies in the weight |
| 566 | space of `χ` for the action of the preimage of `H` under the reduction `stdLevel.reduceFamily w`. -/ |
| 567 | private lemma mem_levelSpace_iff_mem_weightSpace {v : W} : |
| 568 | v ∈ levelSpace π (levelOf w H) (χ.comp (levelOf.reduction w H)) ↔ |
| 569 | v ∈ Representation.weightSpace |
| 570 | ((π.comp (stdLevel E n).subtype).comp (H.comap (stdLevel.reduceFamily w)).subtype) |
| 571 | (χ.comp ((stdLevel.reduceFamily w).subgroupComap H)) := by |
| 572 | rw [Representation.mem_weightSpace_comp_subgroupComap_iff] |
| 573 | exact ⟨fun hv k x hk ↦ levelSpace_levelOf_apply hv k x hk, |
| 574 | fun hv ↦ mem_levelSpace.2 fun k ↦ |
| 575 | hv ⟨k, levelOf_le_stdLevel k.property⟩ (levelOf.reduction w H k) rfl⟩ |
| 576 | |
| 577 | variable [Finite ι] [IsConjApart w] (s : ∀ i : ι, GL n (ResField (w i))) |
| 578 | |
| 579 | /-- For finitely many distinct places w_i, none conjugate to another or itself, a chosen element |
| 580 | of K₀ supported at the w_i and their conjugates whose reductions modulo the w_i are s. -/ |
| 581 | @[local grind] |
| 582 | noncomputable def liftResidue : stdLevel E n := (exists_reduceFamily_eq s).choose |
| 583 | |
| 584 | /-- The chosen lift `liftResidue s` is supported at the places `w i` and their conjugates. -/ |
| 585 | lemma liftResidue_mem_supportedOn : (liftResidue s).val ∈ Gf.supportedOn n (Set.range w) := |
| 586 | (exists_reduceFamily_eq s).choose_spec.1 |
| 587 | |
| 588 | /-- The reduction of the chosen lift `liftResidue s` modulo the places `w i` is `s`. -/ |
| 589 | @[local simp] |
| 590 | lemma reduceFamily_liftResidue : stdLevel.reduceFamily w (liftResidue s) = s := |
| 591 | (exists_reduceFamily_eq s).choose_spec.2 |
| 592 | |
| 593 | /-- On a vector `v` of level `New.levelOf w H` and character `χ`, the chosen lift of `s` acts as any |
| 594 | `k` in `New.stdLevel E n` with reduction `s` does. -/ |
| 595 | lemma apply_liftResidue_eq (v : levelSpace π (levelOf w H) (χ.comp (levelOf.reduction w H))) |
| 596 | (k : stdLevel E n) {s : ∀ i : ι, GL n (ResField (w i))} (hk : stdLevel.reduceFamily w k = s) : |
| 597 | π (liftResidue s).val v = π k v := by |
| 598 | -- The lift and `k` have the same reduction, so they act the same way on `v`. |
| 599 | exact Representation.apply_eq_apply_of_mem_weightSpace_of_map_eq |
| 600 | (π.comp (stdLevel E n).subtype) (stdLevel.reduceFamily w) χ |
| 601 | (mem_levelSpace_iff_mem_weightSpace.mp v.property) (by simp [hk]) |
| 602 | |
| 603 | /-- If s normalises H and fixes χ, then π of the chosen lift of s maps vectors of level |
| 604 | `New.levelOf` w H and character χ to vectors of the same kind. -/ |
| 605 | lemma map_liftResidue_mem_levelSpace {s : ∀ i : ι, GL n (ResField (w i))} |
| 606 | (h_norm : ∀ x : H, ∃ hx : s⁻¹ * x * s ∈ H, χ ⟨s⁻¹ * x * s, hx⟩ = χ x) {v : W} |
| 607 | (hv : v ∈ levelSpace π (levelOf w H) (χ.comp (levelOf.reduction w H))) : |
| 608 | π (liftResidue s).val v ∈ levelSpace π (levelOf w H) (χ.comp (levelOf.reduction w H)) := by |
| 609 | apply mem_levelSpace_iff_mem_weightSpace.mpr |
| 610 | refine Representation.apply_mem_weightSpace_comp_subgroupComap |
| 611 | (π.comp (stdLevel E n).subtype) (stdLevel.reduceFamily w) χ (g := liftResidue s) ?_ |
| 612 | (mem_levelSpace_iff_mem_weightSpace.mp hv) |
| 613 | intro x |
| 614 | obtain ⟨hx, hχ⟩ := h_norm x |
| 615 | exact ⟨⟨_, hx⟩, by simp, hχ⟩ |
| 616 | |
| 617 | variable (π χ) in |
| 618 | /-- For finitely many distinct places w_i, none conjugate to a w_j, and φ : S → ∏ GL_n(k_{w_i}) |
| 619 | normalising H and fixing χ, the representation s ↦ π(`New.liftResidue` φ(s)) of S on vectors of |
| 620 | level `New.levelOf` w H and character χ. -/ |
| 621 | noncomputable def levelRep {S : Type*} [Group S] (φ : S →* (i : ι) → GL n (ResField (w i))) |
| 622 | (h : ∀ (s : S) (x : H), ∃ hx : (φ s)⁻¹ * x * φ s ∈ H, χ ⟨(φ s)⁻¹ * x * φ s, hx⟩ = χ x) : |
| 623 | Representation A S (levelSpace π (levelOf w H) (χ.comp (levelOf.reduction w H))) where |
| 624 | toFun s := |
| 625 | (π (liftResidue (φ s))).restrict fun _ hv ↦ map_liftResidue_mem_levelSpace (h s) hv |
| 626 | map_one' := by |
| 627 | ext |
| 628 | simp [apply_liftResidue_eq _ 1] |
| 629 | map_mul' s t := by |
| 630 | -- The lift of `φ (s * t)` and the product of the lifts have the same reduction. |
| 631 | ext v |
| 632 | change π (liftResidue (φ (s * t))).val v.val = |
| 633 | π (liftResidue (φ s)).val (π (liftResidue (φ t)).val v.val) |
| 634 | simp [apply_liftResidue_eq v (liftResidue (φ s) * liftResidue (φ t))] |
| 635 | |
| 636 | end FiniteGroupAction |
| 637 | |
| 638 | end New |
| 639 | |
| 640 | end |