Lean source
Lib.Adelic.Witt.MaximalCompact
Its 3 declarations
U.def, lines 14–15inl maxCompactdef, line 21isCompact_maxCompactlemma, lines 25–26
import Lib.Adelic.Witt.SpaceOperationsimport Lib.General.LinearAlgebra.ExpSurjective/-! General lemmas of group theory (textbook or folklore).Part of: Witt's extension theorem for hermitian forms; unimodular lattices; Iwasawa decomposition(known result; see Lib.SiegelWeil.SingularForms.AdaptedHom).This file: Block embedding of U(Y) into U(Y ⊕ Y'). Maximal compact subgroup of the adelic unitarygroup and its compactness. -//-- The block embedding a ↦ diag(a, 1) of U(diag ε) into the unitary group of the concatenatedsigns (ε, η). -/@[simps! apply_coe_val] noncomputable def U.inl {n m} [Fintype n] [Fintype m] (ε : n → _) (η : m → _) := (sum (signMatrix_sum ε η)).comp (.inl ..)variable (E) {n} [Field E] [NumberField E] [NumberField.IsCMField E] [Fintype n] (s : n → ℤˣ)/-- The subgroup K_∞K₀ of G: elements that are unitary matrices at each infinite place and liein GL_n(Ô) at the finite places. -/noncomputable def maxCompact : Subgroup (G E s) := .prod (.pi .univ fun _ ↦ maxCompactU s) (Kf ..)variable {E s}lemma isCompact_maxCompact : IsCompact (maxCompact E s : Set (G E s)) := (isCompact_univ_pi fun _ ↦ isCompact_iff_compactSpace.2 ⟨@isCompact_univ (maxCompactU s) _ _⟩).prod isCompact_Kf