Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.NetPolynomialSupport

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

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

15 project constants, including generated, internal and private declarations.

15 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.NetPolynomial7import Nonadditivity.PolynomialDilation89/-! # Collected-word polynomial for the observable test net1011Repeated branch words are summed into actual matrix coefficients on a finite12support, so the constructed shortening theorem applies to the test polynomial.13-/1415noncomputable section16set_option backward.isDefEq.respectTransparency false17set_option maxHeartbeats 8000001819namespace Nonadditivity.NetPolynomialSupport20open scoped BigOperators Matrix Matrix.Norms.L2Operator Kronecker21open NetPolynomial2223section Collection24variable {G J I : Type} [Group G] [DecidableEq G]25  [Fintype J] [DecidableEq J] [Fintype I]2627def wordSupport (w : I → G) : Finset G := Finset.univ.image w2829def collectedScalar (w : I → G) (a : I → J → ℂ) (g : G) (j : J) : ℂ :=30  ∑ i, if w i = g then a i j else 03132def collectedCoefficient (w : I → G) (a : I → J → ℂ) (g : G) : Matrix J J ℂ :=33  Matrix.diagonal (collectedScalar w a g)3435omit [Group G] [Fintype J] [DecidableEq J] in36/-- Summing repeated words preserves every scalar finite evaluation. -/37theorem collected_sum {V : Type*} [AddCommMonoid V] [Module ℂ V]38    (w : I → G) (a : I → J → ℂ) (j : J) (f : G → V) :39    ∑ g ∈ wordSupport w, collectedScalar w a g j • f g = ∑ i, a i j • f (w i) := by40  classical41  simp only [collectedScalar, Finset.sum_smul]42  rw [Finset.sum_comm]43  apply Finset.sum_congr rfl44  intro i _45  simp only [ite_smul, zero_smul]46  rw [Finset.sum_ite_eq]47  simp [wordSupport]4849/-- The grouped coefficient polynomial is exactly the original direct sum,50on the same actual vector-valued Hilbert space. -/51theorem collected_regular_eq (w : I → G) (a : I → J → ℂ) :52    RegularCoefficientEnergy.regularPolynomial (wordSupport w) (collectedCoefficient w a) =53      NetPolynomial.regularPolynomial w a := by54  ext f g j55  simp only [RegularDilation.regularPolynomial_apply, WithLp.ofLp_sum, Finset.sum_apply,56    NetPolynomial.regularPolynomial, MatrixRegularRestriction.coefficientPolynomial_apply]57  have he (v : G) : RegularCoefficientEnergy.coefficientOperator (collectedCoefficient w a v)58      (f (v⁻¹*g)) j = collectedScalar w a v j * f (v⁻¹*g) j := by59    change (Matrix.diagonal (collectedScalar w a v) *ᵥ (f (v⁻¹*g)).ofLp) j = _60    simp [Matrix.mulVec, dotProduct, Matrix.diagonal_apply]61  simp only [he, diagonalCoefficient_apply]62  exact collected_sum w a j (fun v => f (v⁻¹*g) j)6364/-- A finite polynomial record with exactly the original coefficient dimension. -/65def polynomial [Nonempty J] (w : I → G) (a : I → J → ℂ) :66    PolynomialReduction.Polynomial G where67  Index := J68  fintype := inferInstance69  decEq := inferInstance70  nonempty := inferInstance71  support := wordSupport w72  coefficient := collectedCoefficient w a7374@[simp] theorem polynomial_regularEval [Nonempty J] (w : I → G) (a : I → J → ℂ) :75    (polynomial w a).regularEval = NetPolynomial.regularPolynomial w a :=76  collected_regular_eq w a7778omit [Fintype J] in79/-- Collection followed by swapping tensor coordinates gives exactly the80finite direct sum, with no norm comparison premise. -/81theorem collected_finite_eq {V : Type*} [Fintype V] [DecidableEq V]82    (w : I → G) (a : I → J → ℂ) (π : G →* unitary (Matrix V V ℂ)) :83    (∑ g ∈ wordSupport w, collectedCoefficient w a g ⊗ₖ (π g : Matrix V V ℂ)).submatrix84      (Equiv.prodComm V J) (Equiv.prodComm V J) =85      finitePolynomial (fun i => (π (w i) : Matrix V V ℂ)) a := by86  ext ⟨x,j⟩ ⟨y,k⟩87  rw [finitePolynomial_eq_blockDiagonal]88  simp only [Matrix.submatrix_apply, Equiv.prodComm_apply, Prod.swap_prod_mk, Matrix.sum_apply,89    Matrix.kronecker_apply, collectedCoefficient, Matrix.diagonal_apply,90    Matrix.blockDiagonal_apply, Matrix.smul_apply, smul_eq_mul]91  by_cases h : j = k92  · subst k93    simp only [ite_true]94    exact collected_sum w a j (fun g => (π g : Matrix V V ℂ) x y)95  · simp [h]9697/-- The finite polynomial record has the exact maximum test norm. -/98theorem polynomial_finiteEval_norm [Nonempty J]99    {V : Type*} [Fintype V] [DecidableEq V]100    (w : I → G) (a : I → J → ℂ) (π : G →* unitary (Matrix V V ℂ)) :101    ‖(polynomial w a).finiteEval π‖ = ‖fun j => ∑ i, a i j • (π (w i) : Matrix V V ℂ)‖ := by102  rw [← MatrixNormReindex.submatrix_equiv_norm (Equiv.prodComm V J)103    ((polynomial w a).finiteEval π)]104  rw [show (polynomial w a).finiteEval π =105    ∑ g ∈ wordSupport w, collectedCoefficient w a g ⊗ₖ (π g : Matrix V V ℂ) from rfl]106  rw [collected_finite_eq, finitePolynomial_norm]107end Collection108109end Nonadditivity.NetPolynomialSupport