Exact Lean source
Nonadditivity.FiniteMomentMatching
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.CollinsYounProductMathlib.Algebra.MonoidAlgebra.BasicdependencyMathlib.Algebra.MonoidAlgebra.SupportdependencyMathlib.LinearAlgebra.Matrix.PermutationdependencyMathlib.GroupTheory.GroupAction.Basicdependency
Imported by project modules
3 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
29 project constants, including generated, internal and private declarations.
29 declarations
Nonadditivity.FiniteMomentMatching.branch_pair_length_leNonadditivity.FiniteMomentMatching.coefficient_sumNonadditivity.FiniteMomentMatching.finiteEvalNonadditivity.FiniteMomentMatching.finiteEval.eq_1internal/detail/privateNonadditivity.FiniteMomentMatching.finiteEval_gammaPolynomialNonadditivity.FiniteMomentMatching.gammaPolynomialNonadditivity.FiniteMomentMatching.gammaPolynomial.eq_1internal/detail/privateNonadditivity.FiniteMomentMatching.gammaPolynomial_pow_support_length_leNonadditivity.FiniteMomentMatching.gammaPolynomial_support_length_leNonadditivity.FiniteMomentMatching.gamma_trace_pow_re_leNonadditivity.FiniteMomentMatching.norm_identity_coefficient_leNonadditivity.FiniteMomentMatching.regularEvalNonadditivity.FiniteMomentMatching.regularEval._proof_1internal/detail/privateNonadditivity.FiniteMomentMatching.regularEval._proof_2internal/detail/privateNonadditivity.FiniteMomentMatching.regularEval._proof_3internal/detail/privateNonadditivity.FiniteMomentMatching.regularEval._proof_4internal/detail/privateNonadditivity.FiniteMomentMatching.regularEval.eq_1internal/detail/privateNonadditivity.FiniteMomentMatching.regularEval_gammaPolynomialNonadditivity.FiniteMomentMatching.regularEval_vacuumNonadditivity.FiniteMomentMatching.regularEval_vacuum._simp_1_3internal/detail/privateNonadditivity.FiniteMomentMatching.regularHomNonadditivity.FiniteMomentMatching.regularHom._proof_1internal/detail/privateNonadditivity.FiniteMomentMatching.regularHom._proof_2internal/detail/privateNonadditivity.FiniteMomentMatching.regularHom.eq_1internal/detail/privateNonadditivity.FiniteMomentMatching.support_pow_length_leNonadditivity.FiniteMomentMatching.trace_finiteEvalNonadditivity.FiniteMomentMatching.trace_pow_eq_regular_vacuumNonadditivity.FiniteMomentMatching.trace_pow_re_leNonadditivity.FreeModel.branchWord.eq_1internal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.CollinsYounProduct7import Mathlib.Algebra.MonoidAlgebra.Basic8import Mathlib.Algebra.MonoidAlgebra.Support9import Mathlib.LinearAlgebra.Matrix.Permutation10import Mathlib.GroupTheory.GroupAction.Basic1112/-! # Exact finite-quotient moments of the free channel polynomial1314Finite word separation suffices for trace moments. No strong convergence of15finite operator norms is used.16-/17noncomputable section18set_option backward.isDefEq.respectTransparency false19set_option maxHeartbeats 16000002021namespace Nonadditivity.FiniteMomentMatching2223open FreeModel24open scoped BigOperators ENNReal Pointwise Matrix Matrix.Norms.L2Operator2526section RegularAlgebra27variable {G : Type*} [Group G] [DecidableEq G]2829/-- The actual infinite regular representation as a monoid homomorphism. -/30def regularHom : G →* (Hilbert G →L[ℂ] Hilbert G) where31toFun := leftRegular32map_one' := leftRegular_one33map_mul' g h := leftRegular_mul g h3435/-- Algebraic evaluation of a finitely supported group polynomial. -/36def regularEval : MonoidAlgebra ℂ G →ₐ[ℂ] (Hilbert G →L[ℂ] Hilbert G) :=37MonoidAlgebra.lift ℂ _ G regularHom3839/-- Evaluating the regular polynomial at the identity coordinate selects its identity coefficient. -/40theorem regularEval_vacuum (f : MonoidAlgebra ℂ G) :41(regularEval f (lp.single 2 (1 : G) (1 : ℂ))) 1 = f 1 := by42simp [regularEval, MonoidAlgebra.lift_apply, Finsupp.sum,43ContinuousLinearMap.sum_apply, ContinuousLinearMap.smul_apply,44lp.coeFn_smul, regularHom, leftRegular_apply,45lp.single_apply, Pi.single_apply, inv_eq_one]46intro h47exact h.symm4849/-- The identity coefficient is bounded by the concrete regular operator norm. -/50theorem norm_identity_coefficient_le (f : MonoidAlgebra ℂ G) :51‖f 1‖ ≤ ‖regularEval f‖ := by52let e : Hilbert G := lp.single 2 (1 : G) (1 : ℂ)53have he : ‖e‖ = 1 := by54change ‖lp.single (E := fun _ : G => ℂ) (2 : ℝ≥0∞) (1 : G) (1 : ℂ)‖ = 155rw [lp.norm_single (by norm_num : (0 : ℝ≥0∞) < 2), norm_one]56have hv : (regularEval f e) 1 = f 1 := regularEval_vacuum f57have hcoord : ‖(regularEval f e) 1‖ ≤ ‖regularEval f e‖ :=58lp.norm_apply_le_norm (by norm_num : (2 : ℝ≥0∞) ≠ 0) (regularEval f e) 159have hop : ‖regularEval f e‖ ≤ ‖regularEval f‖ * ‖e‖ :=60(regularEval f).le_opNorm e61rw [hv] at hcoord62rw [he, mul_one] at hop63exact hcoord.trans hop6465/-- A subadditive word-length bound is preserved by polynomial powers. -/66theorem support_pow_length_le (f : MonoidAlgebra ℂ G) (len : G → ℕ)67(hone : len 1 = 0) (hmul : ∀ g h, len (g * h) ≤ len g + len h)68(r : ℕ) (hf : ∀ g ∈ f.support, len g ≤ r) (q : ℕ) :69∀ g ∈ (f ^ q).support, len g ≤ q * r := by70induction q with71| zero =>72intro g hg73have : g = 1 := by simpa using hg74simp [this, hone]75| succ q ih =>76intro g hg77rw [pow_succ] at hg78obtain ⟨a, ha, b, hb, rfl⟩ := Finset.mem_mul.mp (MonoidAlgebra.support_mul _ _ hg)79exact (hmul a b).trans (by nlinarith [ih a ha, hf b hb])8081end RegularAlgebra8283section FiniteEvaluation84variable {G ν : Type*} [Group G] [DecidableEq G] [Fintype ν] [DecidableEq ν]8586/-- Evaluation at any concrete finite matrix representation. -/87def finiteEval (ρ : G →* Matrix ν ν ℂ) : MonoidAlgebra ℂ G →ₐ[ℂ] Matrix ν ν ℂ :=88MonoidAlgebra.lift ℂ _ G ρ8990/-- Exact trace matching for a representation with the regular character on the support. -/91theorem trace_finiteEval (ρ : G →* Matrix ν ν ℂ) (f : MonoidAlgebra ℂ G)92(htrace : ∀ g ∈ f.support,93(ρ g).trace = (Fintype.card ν : ℂ) * (if g = 1 then 1 else 0)) :94(finiteEval ρ f).trace = (Fintype.card ν : ℂ) * f 1 := by95rw [finiteEval, MonoidAlgebra.lift_apply]96change (∑ g ∈ f.support, f g • ρ g).trace = _97rw [Matrix.trace_sum]98simp only [Matrix.trace_smul, smul_eq_mul]99calc100(∑ g ∈ f.support, f g * (ρ g).trace) =101∑ g ∈ f.support, (Fintype.card ν : ℂ) * (if g = 1 then f g else 0) := by102apply Finset.sum_congr rfl103intro g hg104rw [htrace g hg]105split_ifs <;> simp_all [mul_comm]106_ = _ := by107rw [← Finset.mul_sum]108congr 1109by_cases h : (1 : G) ∈ f.support110· simp [h]111· simp [h, Finsupp.notMem_support_iff.mp h]112113/-- Finite normalized trace moments are exactly the vacuum moments of the regular model. -/114theorem trace_pow_eq_regular_vacuum (ρ : G →* Matrix ν ν ℂ)115(f : MonoidAlgebra ℂ G) (q : ℕ)116(htrace : ∀ g ∈ (f ^ q).support,117(ρ g).trace = (Fintype.card ν : ℂ) * (if g = 1 then 1 else 0)) :118((finiteEval ρ f)^q).trace = (Fintype.card ν : ℂ) *119(((regularEval f)^q) (lp.single 2 (1 : G) (1 : ℂ))) 1 := by120rw [← map_pow, trace_finiteEval ρ (f^q) htrace,121← regularEval_vacuum (f^q), map_pow]122123/-- Exact finite moment matching implies the regular-norm upper bound. -/124theorem trace_pow_re_le (ρ : G →* Matrix ν ν ℂ) (f : MonoidAlgebra ℂ G) (q : ℕ)125(htrace : ∀ g ∈ (f ^ q).support,126(ρ g).trace = (Fintype.card ν : ℂ) * (if g = 1 then 1 else 0)) :127((finiteEval ρ f) ^ q).trace.re ≤128(Fintype.card ν : ℝ) * ‖regularEval f‖ ^ q := by129rw [← map_pow, trace_finiteEval ρ (f ^ q) htrace, Complex.mul_re]130simp only [Complex.natCast_re, Complex.natCast_im, zero_mul, sub_zero]131apply mul_le_mul_of_nonneg_left _ (by positivity)132calc133((f ^ q) 1).re ≤ ‖(f ^ q) 1‖ := Complex.re_le_norm _134_ ≤ ‖regularEval (f ^ q)‖ := norm_identity_coefficient_le _135_ = ‖(regularEval f) ^ q‖ := by rw [map_pow]136_ ≤ ‖regularEval f‖ ^ q := by137cases q with138| zero => exact ContinuousLinearMap.norm_id_le139| succ q => exact norm_pow_le' _ (Nat.succ_pos q)140141end FiniteEvaluation142143section ChannelPolynomial144145/-- The channel adjoint polynomial, with its coefficients and group words recorded algebraically. -/146def gammaPolynomial {K n : ℕ} (A : Matrix (Branch K n) (Branch K n) ℂ) :147MonoidAlgebra ℂ (ProductFreeGroup K n) :=148∑ a, ∑ b, MonoidAlgebra.single ((branchWord a)⁻¹ * branchWord b)149((1 / (K : ℂ)^n) * A a b)150151@[simp] theorem regularEval_gammaPolynomial {K n : ℕ}152(A : Matrix (Branch K n) (Branch K n) ℂ) :153regularEval (gammaPolynomial A) = gamma A := by154simp [gammaPolynomial, regularEval, MonoidAlgebra.lift_single, gamma,155Finset.smul_sum, mul_smul, regularHom]156157theorem coefficient_sum {G ι : Type*} (s : Finset ι) (f : ι → MonoidAlgebra ℂ G)158(g : G) : (∑ i ∈ s, f i) g = ∑ i ∈ s, f i g := by159classical160induction s using Finset.induction_on with161| empty => rfl162| @insert i s hi ih =>163simp only [Finset.sum_insert hi, MonoidAlgebra.coe_add, Pi.add_apply, ih]164165/-- Each coordinate of a word occurring in the adjoint has length at most two. -/166theorem branch_pair_length_le {K n : ℕ} (a b : Branch K n) (j : Fin n) :167FreeGroup.norm (((branchWord a)⁻¹ * branchWord b) j) ≤ 2 := by168simpa [branchWord, FreeGroup.norm_inv_eq, FreeGroup.norm_of] using169FreeGroup.norm_mul_le (FreeGroup.of (a j))⁻¹ (FreeGroup.of (b j))170171theorem gammaPolynomial_support_length_le {K n : ℕ}172(A : Matrix (Branch K n) (Branch K n) ℂ)173(g : ProductFreeGroup K n) (hg : g ∈ (gammaPolynomial A).support) (j : Fin n) :174FreeGroup.norm (g j) ≤ 2 := by175by_contra hn176have hz : gammaPolynomial A g = 0 := by177simp only [gammaPolynomial, coefficient_sum]178apply Finset.sum_eq_zero179intro a _180apply Finset.sum_eq_zero181intro b _182have hne : (branchWord a)⁻¹ * branchWord b ≠ g := by183intro h184exact hn (h ▸ branch_pair_length_le a b j)185simp [hne]186exact (Finsupp.mem_support_iff.mp hg) hz187188/-- A moment of order `q` only inspects words of coordinate length at most `2q`. -/189theorem gammaPolynomial_pow_support_length_le {K n : ℕ}190(A : Matrix (Branch K n) (Branch K n) ℂ) (q : ℕ)191(g : ProductFreeGroup K n) (hg : g ∈ (gammaPolynomial A ^ q).support) (j : Fin n) :192FreeGroup.norm (g j) ≤ 2*q := by193have h := support_pow_length_le (gammaPolynomial A) (fun w => FreeGroup.norm (w j))194(by simp) (fun g h => FreeGroup.norm_mul_le (g j) (h j))1952 (fun w hw => gammaPolynomial_support_length_le A w hw j) q g hg196simpa only [Nat.mul_comm] using h197198/-- The finite evaluation is literally the normalized adjoint polynomial. -/199theorem finiteEval_gammaPolynomial {K n : ℕ} {ν : Type*} [Fintype ν] [DecidableEq ν]200(ρ : ProductFreeGroup K n →* Matrix ν ν ℂ)201(A : Matrix (Branch K n) (Branch K n) ℂ) :202finiteEval ρ (gammaPolynomial A) =203(1 / (K : ℂ)^n) • ∑ a, ∑ b, A a b • ρ ((branchWord a)⁻¹ * branchWord b) := by204simp [finiteEval, gammaPolynomial, MonoidAlgebra.lift_single, Finset.smul_sum, mul_smul]205206/-- Exact moment matching transfers the proved free norm bound to a finite trace moment. -/207theorem gamma_trace_pow_re_le {K n : ℕ} {ν : Type*} [Fintype ν] [DecidableEq ν]208(hK : 2 ≤ K) (hn : 1 ≤ n)209(ρ : ProductFreeGroup K n →* Matrix ν ν ℂ)210(A : Matrix (Branch K n) (Branch K n) ℂ) (hA : A.trace = 0) (q : ℕ)211(htrace : ∀ g : ProductFreeGroup K n, (∀j, FreeGroup.norm (g j) ≤ 2*q) →212(ρ g).trace = (Fintype.card ν : ℂ) * (if g = 1 then 1 else 0)) :213((finiteEval ρ (gammaPolynomial A))^q).trace.re ≤214(Fintype.card ν : ℝ) * (c K n * AdjointPurity.hsLength A)^q := by215apply (trace_pow_re_le ρ (gammaPolynomial A) q (fun g hg =>216htrace g (gammaPolynomial_pow_support_length_le A q g hg))).trans217rw [regularEval_gammaPolynomial]218apply mul_le_mul_of_nonneg_left _ (by positivity)219exact pow_le_pow_left₀ (norm_nonneg _) (CollinsYounProduct.collinsYounBound hK hn A hA) q220221end ChannelPolynomial222223end Nonadditivity.FiniteMomentMatching