Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarTensorEvaluation

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

Direct imports

Imported by project modules

2 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

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

10 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarTensorReplacement78/-! # Partial substitution agrees with literal tensor evaluation910Only a finite basis permutation separates consecutive matrix substitutions11from a single tensor representation. The operator norm is exactly preserved.12-/13noncomputable section14set_option backward.isDefEq.respectTransparency false15set_option maxHeartbeats 100000016set_option linter.unusedSectionVars false17namespace Nonadditivity.HaarTensorReplacement18open HaarWordExpansion RegularCoefficientEnergy19open scoped BigOperators Matrix Matrix.Norms.L2Operator Kronecker ENNReal2021variable {G H ι ν κ : Type} [Group G] [Group H] [DecidableEq G] [DecidableEq H]22  [Fintype ι] [DecidableEq ι] [Fintype ν] [DecidableEq ν] [Fintype κ] [DecidableEq κ]2324def productRepresentation (ρ : G →* Matrix ν ν ℂ) (σ : H →* Matrix κ κ ℂ) :25    G × H →* Matrix (ν × κ) (ν × κ) ℂ where26  toFun w := ρ w.1 ⊗ₖ σ w.227  map_one' := by simp28  map_mul' g h := by simp only [Prod.fst_mul, Prod.snd_mul, map_mul, Matrix.mul_kronecker_mul]2930theorem finiteEval_partial_eq (ρ : G →* Matrix ν ν ℂ) (σ : H →* Matrix κ κ ℂ)31    (f : MatrixPolynomial (G × H) ι) :32    finiteEval σ (partialEval ρ f) =33      (finiteEval (productRepresentation ρ σ) f).submatrix34        (Equiv.prodAssoc ι ν κ) (Equiv.prodAssoc ι ν κ) := by35  induction f using Finsupp.induction_linear with36  | zero => simp37  | add f k hf hk =>38    change finiteEval σ (partialEval ρ ((f : MatrixPolynomial (G × H) ι) + k)) = _39    rw [map_add, map_add, map_add, Matrix.submatrix_add, hf, hk]40    rfl41  | single g A =>42    simp only [partialEval_single, finiteEval_single]43    ext a b44    change (A a.1.1 b.1.1 * ρ g.1 a.1.2 b.1.2) * σ g.2 a.2 b.2 =45      A a.1.1 b.1.1 * (ρ g.1 a.1.2 b.1.2 * σ g.2 a.2 b.2)46    ring4748theorem finiteEval_partial_norm (ρ : G →* Matrix ν ν ℂ) (σ : H →* Matrix κ κ ℂ)49    (f : MatrixPolynomial (G × H) ι) :50    ‖finiteEval σ (partialEval ρ f)‖ = ‖finiteEval (productRepresentation ρ σ) f‖ := by51  rw [finiteEval_partial_eq, MatrixNormReindex.submatrix_equiv_norm]5253theorem rectLift_norm (A : Matrix ι ι ℂ) : ‖RegularFactorization.rectLift (G := G) A‖ = ‖A‖ := by54  have hc : ‖coefficientOperator A‖ = ‖A‖ := rfl55  apply le_antisymm56  · apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg A)57    intro f58    have hb := RegularFactorization.liftFunction_norm_le59      (G := G) (coefficientOperator A) f60    rw [hc] at hb61    exact hb62  · rw [← hc]63    apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)64    intro x65    have he : RegularFactorization.rectLift (G := G) A (lp.single 2 (1:G) x) =66        lp.single 2 (1:G) (coefficientOperator A x) := by67      ext g i68      simp only [RegularFactorization.rectLift_apply, lp.single_apply, Pi.single_apply]69      split_ifs <;> simp_all [coefficientOperator]70    have hb := (RegularFactorization.rectLift (G := G) A).le_opNorm (lp.single 2 (1:G) x)71    rw [he, lp.norm_single (by norm_num), lp.norm_single (by norm_num)] at hb72    exact hb7374theorem polynomial_eq_single_of_unique [Unique G] (f : MatrixPolynomial G ι) :75    f = MonoidAlgebra.single 1 (f 1) := by76  ext g i j77  have hg : g = 1 := Subsingleton.elim _ _78  simp [hg]7980/-- After every free coordinate has been replaced, the remaining regular81norm is exactly the norm of the finite coefficient matrix. -/82theorem regularEval_unique_norm [Unique G] (f : MatrixPolynomial G ι) :83    ‖regularEval f‖ = ‖f 1‖ := by84  rw [polynomial_eq_single_of_unique f, regularEval_single,85    RegularFactorization.term_identity, rectLift_norm]86  simp8788theorem kronecker_punit_one_norm (A : Matrix ι ι ℂ) :89    ‖A ⊗ₖ (1 : Matrix PUnit PUnit ℂ)‖ = ‖A‖ := by90  have he : A ⊗ₖ (1 : Matrix PUnit PUnit ℂ) =91      A.submatrix (Equiv.prodPUnit ι) (Equiv.prodPUnit ι) := by92    ext a b93    simp [Matrix.kronecker_apply]94  rw [he, MatrixNormReindex.submatrix_equiv_norm]9596theorem finiteEval_trivial_norm [Unique G] (f : MatrixPolynomial G ι) :97    ‖finiteEval (1 : G →* Matrix PUnit PUnit ℂ) f‖ = ‖regularEval f‖ := by98  rw [regularEval_unique_norm, polynomial_eq_single_of_unique f, finiteEval_single]99  simpa using kronecker_punit_one_norm (f 1)100101end Nonadditivity.HaarTensorReplacement