Lean source
Lib.Adelic.Adeles.LocalComponents
Its 39 declarations
exists_congruenceGL_subsetlemma, lines 17–20map_evalAt_cutGLlemma, lines 24–25mem_intGL_Ôlemma, lines 27–28isOpen_Kwlemma, line 30isCompact_Kwlemma, line 32Set.abbrev, line 38conjClosure Set.lemma, line 40Finite. cj Set.abbrev, line 44IsConjDisjoint Gf.lemma, lines 46–47continuous_atPlace Gf.lemma, line 49ext Gf.lemma, lines 51–52atPlace_star Gf.lemma, lines 54–55eventually_atPlace_mem_Kw mem_Kf_ifflemma, line 57Gf.lemma, lines 61–62atPlace_star_mem_iff Gf.lemma, lines 64–65mem_supportedOn Gf.lemma, line 67mem_trivialOn Gf.lemma, lines 69–70atPlace_star_eq_one_iff Gf.lemma, line 75supportedOn_mono Gf.lemma, lines 77–78atPlace_eq_one_or Gf.lemma, line 80supportedOn_compl Gf.lemma, lines 82–83commute_supportedOn_trivialOn Gf.lemma, lines 85–86eq_of_supportedOn Gf.lemma, lines 88–89mem_Kf_iff_of_supportedOn star_idem_conjClosurelemma, lines 91–92Gf.def, lines 97–98componentOn Gf.lemma, lines 100–101atPlace_componentOn Gf.lemma, line 103componentOn_mem_supportedOn Gf.lemma, lines 105–106componentOn_mem_Kf Gf.lemma, lines 108–110exists_supportedOn_mul_trivialOn Gf.lemma, lines 114–119mem_of_Kf_le_of_supportedOn_le atPlace_atSplit_of_nelemma, lines 124–125atSplit_mem_supportedOnlemma, line 127range_atSplitlemma, lines 131–132atSplit_mem_Kflemma, lines 134–135continuous_atSplitlemma, lines 137–139atSplitsdef, lines 143–145atPlace_atSplitslemma, lines 147–149atSplits_mem_supportedOnlemma, lines 151–152atSplits_mem_Kflemma, lines 154–155
import Lib.Adelic.Unitary.SpaceDefsimport Lib.Adelic.Adeles.AdeleIdempotent/-! Part of: Adeles of a number field: base change, discreteness and compact quotient, modulus(known result; see Lib.Adelic.Adeles.IdeleHilbert90).This file: Principal congruence subgroups form a neighbourhood basis of 1 in finite adelic GL_n.Local components of finite adelic unitary group; GL_n at split places; restricted product API. -/open Filter Gf Matrix MonoidHomvariable {E : Type*} [Field E] [NumberField E] {n : Type*} [Fintype n] (w : FinPlace E)/-- For a number field E, every neighbourhood s of 1 in GL_n(𝔸_f) contains a principalcongruence subgroup: for some integer M ≥ 1, all matrices in GL_n(Ô) congruent to 1 moduloMÔ lie in s. -/lemma exists_congruenceGL_subset {s} (h : s ∈ nhds 1) : ∃ M ≠ 0, ∀ g ∈ congruenceGL (Ô E ∙ M.cast) (@_root_.id n), g ∈ s := ((((nhds 0).hasBasis_smallSets.comap _).frequently_iff.2 fun _ ↦ .imp (by aesop_cat) ∘ mem_nhds_zero_finAdele_iff.1).and_eventually (eventually_congruenceGL_subset map_comap_le h)).existsattribute [local simp] trivialOn supportedOn cutGL mem_intGLlemma map_evalAt_cutGL S [Decidable (w ∈ S)] (g : GL n _) : (cutGL (idem_mul_self S) g).map (evalAt w) = ite (w ∈ S) (g.map (evalAt w)) 1 := by aesoplemma mem_intGL_Ô {g} : g ∈ intGL n (Ô E) ↔ ∀ w, g.map (evalAt w) ∈ Kw .. := by simp_all [Ô, ← map_inv, iff_def]lemma isOpen_Kw : (Kw n w).IsOpen := isOpen_intGL (Valued.isOpen_integer _)lemma isCompact_Kw : IsCompact (SetLike.coe (Kw n w)) := isCompact_intGL (isCompact_LocInt w)variable [NumberField.IsCMField E] (hw : _ ≠ w) (g : GL n (LocField w)) (S : Set (FinPlace E)) {g k : Gf E n}/-- The set S ∪ S̄ of the finite places in S and their complex conjugates. -/abbrev Set.conjClosure := S ∪ star ⁻¹' Slemma Set.Finite.cj (h : S.Finite) : S.conjClosure.Finite := h.union h.star/-- The set S of finite places is disjoint from its complex conjugate: its places are notself-conjugate, and it holds at most one place of each conjugate pair. -/abbrev Set.IsConjDisjoint := Disjoint S (star ⁻¹' S)@[fun_prop] lemma Gf.continuous_atPlace : Continuous (atPlace (n := n) w) := by simp [atPlace]; fun_prop@[ext] lemma Gf.ext : (∀ w, g.atPlace w = k.atPlace w) → g = k := Subtype.ext ∘ GL_ext_evalAtlemma Gf.atPlace_star {u} {w : FinPlace E} (h : star u = w) : g.atPlace w = ((g.atPlace u)⁻¹.1.map (conjLoc h))ᵀ := congr($(U.inv_val_eq_conjTranspose g⁻¹).map _).trans (evalAt_star_GL ..)lemma Gf.eventually_atPlace_mem_Kw : ∀ᶠ w in cofinite, g.atPlace w ∈ Kw .. := by simpa [-eventually_cofinite, -coe_units_inv] using ⟨(g.1 · · |>.2), (g.1⁻¹ · · |>.2)⟩lemma mem_Kf_iff : g ∈ Kf .. ↔ ∀ w, g.atPlace w ∈ Kw .. := mem_intGL_Ôvariable {S : Set (FinPlace E)} {g : Gf E n} {w' : FinPlace E} {k : Gf E n} {w : FinPlace E}@[simp] lemma Gf.atPlace_star_mem_iff : g.atPlace (star w') ∈ Kw .. ↔ g.atPlace w' ∈ Kw .. := by simp_all [iff_def, ← map_inv, atPlace_star, mem_LocInt]@[simp low] lemma Gf.mem_supportedOn : g ∈ supportedOn n S ↔ ∀ w ∉ S, star w ∉ S → g.atPlace w = 1 := by simp@[simp low] lemma Gf.mem_trivialOn : g ∈ trivialOn n S ↔ ∀ w ∈ S, g.atPlace w = 1 := by simplemma Gf.atPlace_star_eq_one_iff : g.atPlace (star w') = 1 ↔ g.atPlace w' = 1 := by aesop (add safe Units.ext, simp [(atPlace_star (star_star w')), atPlace_star])attribute [local grind .] atPlace_star_eq_one_iff mem_trivialOn mem_supportedOn one_mem IsConcreteLE.le_iff mem_Kf_iff star_starlemma Gf.supportedOn_mono {T} : S ⊆ T → supportedOn n S ≤ supportedOn n T := by grindlemma Gf.atPlace_eq_one_or : g ∈ supportedOn n S → k ∈ trivialOn n S → ∀ u, g.atPlace u = 1 ∨ k.atPlace u = 1 := by grindlemma Gf.supportedOn_compl : supportedOn n S.conjClosureᶜ = trivialOn n S := by grind +extAlllemma Gf.commute_supportedOn_trivialOn (hg : g ∈ supportedOn n S) (hk : k ∈ trivialOn n S) : Commute g k := ext (by grind)lemma Gf.eq_of_supportedOn : g ∈ supportedOn n S → k ∈ supportedOn n S → (∀ w ∈ S, g.atPlace w = k.atPlace w) → g = k := by grind +extAll [atPlace_star]lemma Gf.mem_Kf_iff_of_supportedOn : g ∈ supportedOn n S → (g ∈ Kf .. ↔ ∀ w ∈ S, g.atPlace w ∈ Kw ..) := by grind [atPlace_star_mem_iff]@[simp] lemma star_idem_conjClosure : star (idem S.conjClosure) = idem S.conjClosure := by simp [star_idem, S.union_comm]variable (n S) in/-- The endomorphism of G_f that keeps the components of g at the places of S ∪ S̄ and replacesall other components by 1. -/noncomputable def Gf.componentOn : Gf E n →* Gf E n := U.cutAt (idem_mul_self S.conjClosure) star_idem_conjClosure@[simp] lemma Gf.atPlace_componentOn : (componentOn n S g).atPlace w' = ite (w' ∈ S.conjClosure) (g.atPlace w') 1 := map_evalAt_cutGL ..lemma Gf.componentOn_mem_supportedOn : componentOn n S g ∈ supportedOn n S := by aesoplemma Gf.componentOn_mem_Kf : g ∈ Kf .. → componentOn n S g ∈ Kf .. := by grind [atPlace_componentOn]lemma Gf.exists_supportedOn_mul_trivialOn S g : ∃ a ∈ supportedOn n S, ∃ b ∈ trivialOn n S, g = a * b ∧ (g ∈ Kf E n → a ∈ Kf .. ∧ b ∈ Kf ..) := ⟨componentOn n S g, by aesop, componentOn n S g⁻¹ * g, by simp_all [componentOn_mem_Kf, mul_mem]⟩/-- A subgroup H of the finite adelic unitary group G_f that contains Kf E n and, for every finiteplace w, all elements supported on {w, w̄} is the whole of G_f. -/lemma Gf.mem_of_Kf_le_of_supportedOn_le {H} (hK : Kf E n ≤ H) (hw : ∀ w, supportedOn n {w} ≤ H) g : g ∈ H := by have ⟨S, f, h⟩ := hasBasis_cofinite.eventually_iff.1 g.eventually_atPlace_mem_Kw induction S, f using Set.Finite.induction_on generalizing g exact hK (by grind) grind [g.exists_supportedOn_mul_trivialOn {‹_›}, atPlace_eq_one_or, mul_mem, -mem_supportedOn]variable {S : Finset (FinPlace E)} (hS : ∀ w ∈ S, star w ∉ S) (hw : _ ≠ w) (g : GL n (LocField w)) {u : FinPlace E}@[local simp] lemma atPlace_atSplit_of_ne : u ≠ w → star u ≠ w → (atSplit hw g).atPlace u = 1 := by simp_all [atSplit, atPlace, evalAt_star_locGL]@[simp] lemma atSplit_mem_supportedOn : atSplit hw g ∈ supportedOn n {w} := by aesop/-- For a split finite place w (w̄ ≠ w), the image of `atSplit` : GL_n(E_w) → G_f is thesubgroup of elements with component 1 at every place other than w and w̄. -/lemma range_atSplit : (atSplit hw).range = supportedOn n {w} := le_antisymm (by aesop_cat) (⟨·.atPlace w, eq_of_supportedOn (by aesop) · (by simp)⟩)@[simp] lemma atSplit_mem_Kf : atSplit hw g ∈ Kf .. ↔ g ∈ Kw .. := by simp [mem_Kf_iff_of_supportedOn (S := {w}), -supportedOn]@[fun_prop] lemma continuous_atSplit : Continuous (atSplit (n := n) hw) := .subtype_mk (by simp [Units.continuous_iff, locGL, Function.comp_def, -coe_units_inv] use ?_ <;> fun_prop) _/-- For a finite set S of finite places disjoint from S̄, the homomorphism sending (g_w) in∏_{w∈S} GL_n(E_w) to the unitary element with component g_w at w and 1 off S ∪ S̄. -/noncomputable def atSplits := noncommPiCoprod (fun w : S ↦ atSplit (n := n) (w := w.1) (by grind)) fun _ _ _ _ _ ↦ commute_supportedOn_trivialOn (atSplit_mem_supportedOn _ _) (by simp (disch := grind))@[simp] lemma atPlace_atSplits g (w : S) : (atSplits (n := n) hS g).atPlace w = g w := by erw [noncommPiCoprod_apply, ← Finset.mul_noncommProd_erase (a := w)] <;> simp apply (MonoidHom.ker _).noncommProd_mem; aesop (add safe atPlace_atSplit_of_ne)lemma atSplits_mem_supportedOn g : atSplits hS g ∈ supportedOn n S := (noncommPiCoprod_range _).trans_le (by simp [range_atSplit, -supportedOn]; grind) ⟨g, rfl⟩lemma atSplits_mem_Kf g : atSplits hS g ∈ Kf .. ↔ ∀ w, g w ∈ Kw n _ := (mem_Kf_iff_of_supportedOn (atSplits_mem_supportedOn _ _)).trans (Subtype.forall'.trans (by simp))