Lean source
Lib.Adelic.Adeles.AdeleSelfDual
Its 4 declarations
ψf_halflemma, lines 17–18stdAddChar_halflemma, lines 20–22isDualFamily_ratAdelesinstance, lines 30–33isDualFamily_ratMatricesinstance, lines 35–40
import Lib.Adelic.Adeles.AdditiveCharBasic/-! Part of: Self-duality of a number field in its adeles; strong approximation; Poisson inequality(known result; see Lib.Adelic.Adeles.OneSidedPoisson).This file: Rational scalars and matrices are their own annihilators in the adeles. -/open NumberField Matrix Circlevariable {E m n : Type _} [Field E] [NumberField E]attribute [local simp] AddChar.map_add_eq_mul norm_coe coe_eq_one add_mul mul_add ratAdeles ratMatrices trace single_apply ite_andattribute [local simp ←] map_mul map_sumseal stdAddCharlemma ψf_half [IsCMField E] x : ψf E ((2⁻¹ : E) * (x + star x)) = ψf E x := by simpa [ψf_star (_ * star _)] using congr(ψf E ($(add_halves (1 : E)) * x))lemma stdAddChar_half {E : Type _} [Field E] [CMType E] x : stdAddChar E (toAdele 2⁻¹ * (x + star x)) = stdAddChar E x := by simp [stdAddChar, ψf_half, -mul_add, ← two_mul, map_ofNat]variable [IsTotallyComplex E] [PlaceEmbedding E] [Fintype m] [Fintype n]/-- Self-duality of the adeles (Tate): a ↦ (x ↦ ψ(ax)) is an injective homomorphism from E tocontinuous unitary characters of the adeles trivial on E, and the common kernel lies in E.Known result: self-duality of a number field in its adeles. -/instance isDualFamily_ratAdeles : IsDualFamily (ratAdeles E) (stdAddChar E <| toAdele · * ·) := by refine' {eq_zero_of_forall_eq_one a h := (map_eq_zero toAdele).1 (eq_zero_of_forall_stdAddChar_eq_one _), periodic _ := ⟨by fun_prop, _⟩, ..} <;> simp_all [↓mem_ratAdeles_of_psi, mul_comm]instance isDualFamily_ratMatrices : IsDualFamily (ratMatrices E m n) (stdAddChar E <| trace <| @map n m E _ · toAdele * ·) := by refine' {periodic _ := ⟨by fun_prop, _⟩, mem_of_forall_eq_one x h := mem_ratMatrices.2 fun i j ↦ mem_ratAdeles_of_psi _, eq_zero_of_forall_eq_one a h := ext fun i j ↦ isDualFamily_ratAdeles.6 _ _, ..} <;> try simp [mul_apply] all_goals simpa [mul_apply] using (h <| .single j i ·)