Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.FiniteMomentMatching

Download original .lean · View on GitHub · Jump to source

Direct imports

  • Nonadditivity.CollinsYounProduct
  • Mathlib.Algebra.MonoidAlgebra.Basic dependency
  • Mathlib.Algebra.MonoidAlgebra.Support dependency
  • Mathlib.LinearAlgebra.Matrix.Permutation dependency
  • Mathlib.GroupTheory.GroupAction.Basic dependency

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

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) where31  toFun := leftRegular32  map_one' := leftRegular_one33  map_mul' g h := leftRegular_mul g h3435/-- Algebraic evaluation of a finitely supported group polynomial. -/36def regularEval : MonoidAlgebra ℂ G →ₐ[ℂ] (Hilbert G →L[ℂ] Hilbert G) :=37  MonoidAlgebra.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 := by42  simp [regularEval, MonoidAlgebra.lift_apply, Finsupp.sum,43    ContinuousLinearMap.sum_apply, ContinuousLinearMap.smul_apply,44    lp.coeFn_smul, regularHom, leftRegular_apply,45    lp.single_apply, Pi.single_apply, inv_eq_one]46  intro h47  exact 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‖ := by52  let e : Hilbert G := lp.single 2 (1 : G) (1 : ℂ)53  have he : ‖e‖ = 1 := by54    change ‖lp.single (E := fun _ : G => ℂ) (2 : ℝ≥0∞) (1 : G) (1 : ℂ)‖ = 155    rw [lp.norm_single (by norm_num : (0 : ℝ≥0∞) < 2), norm_one]56  have hv : (regularEval f e) 1 = f 1 := regularEval_vacuum f57  have hcoord : ‖(regularEval f e) 1‖ ≤ ‖regularEval f e‖ :=58    lp.norm_apply_le_norm (by norm_num : (2 : ℝ≥0∞) ≠ 0) (regularEval f e) 159  have hop : ‖regularEval f e‖ ≤ ‖regularEval f‖ * ‖e‖ :=60    (regularEval f).le_opNorm e61  rw [hv] at hcoord62  rw [he, mul_one] at hop63  exact 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 := by70  induction q with71  | zero =>72      intro g hg73      have : g = 1 := by simpa using hg74      simp [this, hone]75  | succ q ih =>76      intro g hg77      rw [pow_succ] at hg78      obtain ⟨a, ha, b, hb, rfl⟩ := Finset.mem_mul.mp (MonoidAlgebra.support_mul _ _ hg)79      exact (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 ν ν ℂ :=88  MonoidAlgebra.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 := by95  rw [finiteEval, MonoidAlgebra.lift_apply]96  change (∑ g ∈ f.support, f g • ρ g).trace = _97  rw [Matrix.trace_sum]98  simp only [Matrix.trace_smul, smul_eq_mul]99  calc100    (∑ g ∈ f.support, f g * (ρ g).trace) =101        ∑ g ∈ f.support, (Fintype.card ν : ℂ) * (if g = 1 then f g else 0) := by102      apply Finset.sum_congr rfl103      intro g hg104      rw [htrace g hg]105      split_ifs <;> simp_all [mul_comm]106    _ = _ := by107      rw [← Finset.mul_sum]108      congr 1109      by_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 := by120  rw [← 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 := by129  rw [← map_pow, trace_finiteEval ρ (f ^ q) htrace, Complex.mul_re]130  simp only [Complex.natCast_re, Complex.natCast_im, zero_mul, sub_zero]131  apply mul_le_mul_of_nonneg_left _ (by positivity)132  calc133    ((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 := by137      cases 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) ℂ) :147    MonoidAlgebra ℂ (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) ℂ) :153    regularEval (gammaPolynomial A) = gamma A := by154  simp [gammaPolynomial, regularEval, MonoidAlgebra.lift_single, gamma,155    Finset.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 := by159  classical160  induction s using Finset.induction_on with161  | empty => rfl162  | @insert i s hi ih =>163      simp 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) :167    FreeGroup.norm (((branchWord a)⁻¹ * branchWord b) j) ≤ 2 := by168  simpa [branchWord, FreeGroup.norm_inv_eq, FreeGroup.norm_of] using169    FreeGroup.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) :174    FreeGroup.norm (g j) ≤ 2 := by175  by_contra hn176  have hz : gammaPolynomial A g = 0 := by177    simp only [gammaPolynomial, coefficient_sum]178    apply Finset.sum_eq_zero179    intro a _180    apply Finset.sum_eq_zero181    intro b _182    have hne : (branchWord a)⁻¹ * branchWord b ≠ g := by183      intro h184      exact hn (h ▸ branch_pair_length_le a b j)185    simp [hne]186  exact (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) :192    FreeGroup.norm (g j) ≤ 2*q := by193  have 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))195    2 (fun w hw => gammaPolynomial_support_length_le A w hw j) q g hg196  simpa 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) ℂ) :202    finiteEval ρ (gammaPolynomial A) =203      (1 / (K : ℂ)^n) • ∑ a, ∑ b, A a b • ρ ((branchWord a)⁻¹ * branchWord b) := by204  simp [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 := by215  apply (trace_pow_re_le ρ (gammaPolynomial A) q (fun g hg =>216    htrace g (gammaPolynomial_pow_support_length_le A q g hg))).trans217  rw [regularEval_gammaPolynomial]218  apply mul_le_mul_of_nonneg_left _ (by positivity)219  exact pow_le_pow_left₀ (norm_nonneg _) (CollinsYounProduct.collinsYounBound hK hn A hA) q220221end ChannelPolynomial222223end Nonadditivity.FiniteMomentMatching