Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.RegularCoefficientEnergy

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

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

45 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.FreeModel7import Nonadditivity.PositiveLinearization8import Mathlib.Analysis.InnerProductSpace.Positive910/-! # Coefficient energy of an actual regular-representation polynomial1112Evaluation on a vector supported at the group identity isolates every13coefficient into a distinct orthogonal coordinate of the vector-valued14square-summable Hilbert space.15-/1617noncomputable section1819set_option backward.isDefEq.respectTransparency false2021namespace Nonadditivity.RegularCoefficientEnergy2223open scoped BigOperators ENNReal Matrix Matrix.Norms.L2Operator ComplexOrder MatrixOrder2425abbrev VectorHilbert (G E : Type*) [NormedAddCommGroup E] := lp (fun _ : G => E) 22627section Lift2829variable {G E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E]3031private theorem square_bound (T : E →L[ℂ] E) (x : E) :32    ‖T x‖ ^ 2 ≤ ‖T‖ ^ 2 * ‖x‖ ^ 2 := by33  simpa only [mul_pow] using pow_le_pow_left₀ (norm_nonneg _) (T.le_opNorm x) 23435/-- Apply a bounded coefficient operator independently at every coordinate. -/36def liftFunction (T : E →L[ℂ] E) (f : VectorHilbert G E) : VectorHilbert G E :=37  ⟨fun g => T (f g), by38    apply memℓp_gen39    simp only [ENNReal.toReal_ofNat, Real.rpow_two]40    refine Summable.of_nonneg_of_le (fun _ => sq_nonneg _) (fun g => square_bound T (f g))41      ?_42    simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using43      (f.property.summable (by norm_num)).mul_left (‖T‖ ^ 2)⟩4445@[simp] theorem liftFunction_apply (T : E →L[ℂ] E) (f : VectorHilbert G E) (g : G) :46    liftFunction T f g = T (f g) := rfl4748theorem liftFunction_norm_le (T : E →L[ℂ] E) (f : VectorHilbert G E) :49    ‖liftFunction T f‖ ≤ ‖T‖ * ‖f‖ := by50  apply lp.norm_le_of_tsum_le (by norm_num) (mul_nonneg (norm_nonneg _) (norm_nonneg _))51  simp only [ENNReal.toReal_ofNat, Real.rpow_two]52  calc53    (∑' g, ‖T (f g)‖ ^ 2) ≤ ∑' g, ‖T‖ ^ 2 * ‖f g‖ ^ 2 := by54      apply Summable.tsum_le_tsum55      · exact fun g => square_bound T (f g)56      · simpa only [liftFunction_apply, ENNReal.toReal_ofNat, Real.rpow_two] using57          (liftFunction T f).property.summable (by norm_num)58      · simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using59          (f.property.summable (by norm_num)).mul_left (‖T‖ ^ 2)60    _ = (‖T‖ * ‖f‖) ^ 2 := by61      rw [tsum_mul_left, mul_pow]62      congr 163      simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using64        (lp.norm_rpow_eq_tsum (by norm_num) f).symm6566def liftOperator (T : E →L[ℂ] E) : VectorHilbert G E →L[ℂ] VectorHilbert G E :=67  LinearMap.mkContinuous68    { toFun := liftFunction T69      map_add' := by intro f h; ext g; simp70      map_smul' := by intro c f; ext g; simp }71    ‖T‖ (liftFunction_norm_le T)7273@[simp] theorem liftOperator_apply (T : E →L[ℂ] E) (f : VectorHilbert G E) (g : G) :74    liftOperator T f g = T (f g) := rfl7576theorem liftOperator_single [DecidableEq G] (T : E →L[ℂ] E) (g : G) (x : E) :77    liftOperator T (lp.single 2 g x) = lp.single 2 g (T x) := by78  ext h79  by_cases hh : h = g80  · subst h81    simp82  · simp [lp.single_apply, hh]8384/-- Coordinate permutations are actual Hilbert-space isometries. -/85def reindexFunction (e : G ≃ G) (f : VectorHilbert G E) : VectorHilbert G E :=86  ⟨fun g => f (e g), by87    apply memℓp_gen88    exact (e.summable_iff89      (f := fun g : G => ‖f g‖ ^ (2 : ℝ≥0∞).toReal)).mpr90      (f.property.summable (by norm_num))⟩9192def reindexIsometry (e : G ≃ G) : VectorHilbert G E ≃ₗᵢ[ℂ] VectorHilbert G E where93  toFun := reindexFunction e94  invFun := reindexFunction e.symm95  left_inv := by intro f; ext g; simp [reindexFunction]96  right_inv := by intro f; ext g; simp [reindexFunction]97  map_add' := by intro f h; ext g; rfl98  map_smul' := by intro c f; ext g; rfl99  norm_map' := by100    intro f101    rw [lp.norm_eq_tsum_rpow (by norm_num), lp.norm_eq_tsum_rpow (by norm_num)]102    exact congrArg (fun t : ℝ => t ^ (1 / (2 : ℝ≥0∞).toReal))103      (e.tsum_eq (fun g => ‖f g‖ ^ (2 : ℝ≥0∞).toReal))104105end Lift106107section Polynomial108109variable {G ι : Type*} [Group G] [DecidableEq G] [Fintype ι] [DecidableEq ι]110111abbrev CoefficientSpace (ι : Type*) [Fintype ι] := EuclideanSpace ℂ ι112abbrev Hilbert (G ι : Type*) [Fintype ι] := VectorHilbert G (CoefficientSpace ι)113114def coefficientOperator (A : Matrix ι ι ℂ) : CoefficientSpace ι →L[ℂ] CoefficientSpace ι :=115  Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ) A116117def leftRegular (g : G) : Hilbert G ι →L[ℂ] Hilbert G ι :=118  (reindexIsometry (E := CoefficientSpace ι) (Equiv.mulLeft g⁻¹)).toLinearIsometry.toContinuousLinearMap119120omit [DecidableEq G] [DecidableEq ι] in121@[simp] theorem leftRegular_apply (g : G) (f : Hilbert G ι) (h : G) :122    leftRegular g f h = f (g⁻¹ * h) := rfl123124omit [DecidableEq ι] in125theorem leftRegular_single (g h : G) (x : CoefficientSpace ι) :126    leftRegular g (lp.single 2 h x) = lp.single 2 (g * h) x := by127  ext z128  simp only [leftRegular_apply, lp.single_apply, Pi.single_apply]129  have heq : g⁻¹ * z = h ↔ z = g * h := by130    constructor131    · intro hz132      have hm := congrArg (fun t => g * t) hz133      simpa [mul_assoc] using hm134    · intro hz135      rw [hz]136      simp137  simp only [heq]138139/-- The literal finite polynomial `∑ c_w ⊗ λ(w)`, realized on vector-valued ℓ². -/140def regularPolynomial (S : Finset G) (c : G → Matrix ι ι ℂ) : Hilbert G ι →L[ℂ] Hilbert G ι :=141  ∑ w ∈ S, (liftOperator (coefficientOperator (c w))).comp (leftRegular w)142143/-- At the identity basis vector, different words occupy distinct coordinates. -/144theorem regularPolynomial_single_one (S : Finset G) (c : G → Matrix ι ι ℂ)145    (x : CoefficientSpace ι) :146    regularPolynomial S c (lp.single 2 (1 : G) x) =147      ∑ w ∈ S, lp.single 2 w (coefficientOperator (c w) x) := by148  simp only [regularPolynomial, ContinuousLinearMap.sum_apply, ContinuousLinearMap.comp_apply,149    leftRegular_single, mul_one, liftOperator_single]150151/-- The coefficient energy is bounded by the actual polynomial operator norm,152proved by identity-basis evaluation rather than supplied as a premise. -/153theorem coefficient_energy_le (S : Finset G) (c : G → Matrix ι ι ℂ)154    (x : CoefficientSpace ι) :155    ∑ w ∈ S, ‖coefficientOperator (c w) x‖ ^ 2 ≤156      ‖regularPolynomial S c‖ ^ 2 * ‖x‖ ^ 2 := by157  have h := (regularPolynomial S c).le_opNorm (lp.single 2 (1 : G) x)158  rw [regularPolynomial_single_one, lp.norm_single (by norm_num)] at h159  have hsq := pow_le_pow_left₀ (norm_nonneg _) h 2160  have hnorm := lp.norm_sum_single (p := 2) (by norm_num)161    (fun w => coefficientOperator (c w) x) S162  simp only [ENNReal.toReal_ofNat, Real.rpow_two] at hnorm163  simpa only [hnorm, mul_pow] using hsq164165/-- Matrix Gram energy in the actual positive-semidefinite matrix order. -/166theorem coefficient_gram_le (S : Finset G) (c : G → Matrix ι ι ℂ) :167    ∑ w ∈ S, (c w).conjTranspose * c w ≤168      ((‖regularPolynomial S c‖ ^ 2 : ℝ) : ℂ) • (1 : Matrix ι ι ℂ) := by169  apply Matrix.le_iff.mpr170  apply Matrix.isPositive_toEuclideanLin_iff.mp171  change (coefficientOperator172    (((‖regularPolynomial S c‖ ^ 2 : ℝ) : ℂ) • (1 : Matrix ι ι ℂ) -173      ∑ w ∈ S, (c w).conjTranspose * c w)).toLinearMap.IsPositive174  apply (ContinuousLinearMap.isPositive_toLinearMap_iff _).mp175  apply (ContinuousLinearMap.isPositive_iff_complex _).mpr176  intro x177  have hsingle (A : Matrix ι ι ℂ) :178      inner ℂ ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ) (A.conjTranspose * A)) x) x =179        ((‖(Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ) A) x‖ ^ 2 : ℝ) : ℂ) := by180    rw [← Matrix.star_eq_conjTranspose, map_mul, map_star,181      ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.mul_apply,182      ContinuousLinearMap.adjoint_inner_left, inner_self_eq_norm_sq_to_K]183    norm_cast184  have hinner :185      inner ℂ (coefficientOperator186        (((‖regularPolynomial S c‖ ^ 2 : ℝ) : ℂ) • (1 : Matrix ι ι ℂ) -187          ∑ w ∈ S, (c w).conjTranspose * c w) x) x =188        (((‖regularPolynomial S c‖ ^ 2 * ‖x‖ ^ 2 -189          ∑ w ∈ S, ‖coefficientOperator (c w) x‖ ^ 2 : ℝ)) : ℂ) := by190    change inner ℂ191      ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)192        (((‖regularPolynomial S c‖ ^ 2 : ℝ) : ℂ) • (1 : Matrix ι ι ℂ) -193          ∑ w ∈ S, (c w).conjTranspose * c w)) x) x = _194    simp only [coefficientOperator, map_sub, map_smul, map_one, map_sum,195      ContinuousLinearMap.sub_apply, ContinuousLinearMap.sum_apply,196      ContinuousLinearMap.smul_apply, ContinuousLinearMap.one_apply,197      inner_sub_left, inner_smul_left, sum_inner]198    simp only [hsingle, inner_self_eq_norm_sq_to_K,199      Complex.conj_ofReal, ← Complex.ofReal_sum]200    norm_cast201    simp only [Complex.ofReal_sub, Complex.ofReal_mul]202    rfl203  rw [hinner]204  change205    (((‖regularPolynomial S c‖ ^ 2 * ‖x‖ ^ 2 -206      ∑ w ∈ S, ‖coefficientOperator (c w) x‖ ^ 2 : ℝ) : ℂ).re : ℂ) = _ ∧207      0 ≤ ((‖regularPolynomial S c‖ ^ 2 * ‖x‖ ^ 2 -208        ∑ w ∈ S, ‖coefficientOperator (c w) x‖ ^ 2 : ℝ) : ℂ).re209  simp only [Complex.ofReal_re]210  exact ⟨trivial, sub_nonneg.mpr (coefficient_energy_le S c x)⟩211212/-- The modulus correction bound now has no supplied coefficient-energy premise. -/213theorem modulus_sum_norm_le_regular (S : Finset G) (c : G → Matrix ι ι ℂ) :214    ‖∑ w ∈ S, CFC.abs (c w)‖ ≤215      Real.sqrt (S.card : ℝ) * ‖regularPolynomial S c‖ := by216  apply Linearization.modulus_sum_norm_le_sqrt_card S c217    ‖regularPolynomial S c‖ (norm_nonneg _)218  intro x219  exact coefficient_energy_le S c x220221/-- On a difference support `S⁻¹S`, the Appendix A correction is at most222`|S|` times the genuine regular-polynomial norm. -/223theorem differenceSupport_modulus_sum_norm_le (S : Finset G)224    (c : G → Matrix ι ι ℂ) :225    ‖∑ w ∈ Linearization.differenceSupport S, CFC.abs (c w)‖ ≤226      (S.card : ℝ) * ‖regularPolynomial (Linearization.differenceSupport S) c‖ := by227  apply (modulus_sum_norm_le_regular (Linearization.differenceSupport S) c).trans228  apply mul_le_mul_of_nonneg_right _ (norm_nonneg _)229  apply Real.sqrt_le_iff.mpr230  refine ⟨Nat.cast_nonneg _, ?_⟩231  exact_mod_cast Linearization.card_differenceSupport_le S232233end Polynomial234235end Nonadditivity.RegularCoefficientEnergy