Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.RegularDilation

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

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

38 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.MatrixRegularRestriction78/-! # Hermitian dilation of literal matrix-valued regular polynomials910The inverse-transpose coefficients implement the actual Hilbert adjoint.11Orthogonal coordinate slices then give the norm of the doubled polynomial.12-/1314noncomputable section15set_option backward.isDefEq.respectTransparency false1617namespace Nonadditivity.RegularDilation1819open RegularCoefficientEnergy20open scoped BigOperators ENNReal Matrix Matrix.Norms.L2Operator2122variable {G ι : Type*} [Group G] [DecidableEq G] [Fintype ι] [DecidableEq ι]2324omit [DecidableEq G] in25theorem regularPolynomial_apply (S : Finset G) (a : G → Matrix ι ι ℂ)26    (f : Hilbert G ι) (h : G) :27    regularPolynomial S a f h = ∑ w ∈ S, coefficientOperator (a w) (f (w⁻¹ * h)) := by28  rw [MatrixRegularRestriction.matrixPolynomial_eq]29  rw [MatrixRegularRestriction.coefficientPolynomial_apply]30  exact Finset.sum_coe_sort S (fun w => coefficientOperator (a w) (f (w⁻¹ * h)))3132theorem regularPolynomial_single (S : Finset G) (a : G → Matrix ι ι ℂ)33    (h : G) (x : CoefficientSpace ι) :34    regularPolynomial S a (lp.single 2 h x) =35      ∑ w ∈ S, lp.single 2 (w * h) (coefficientOperator (a w) x) := by36  simp only [regularPolynomial, ContinuousLinearMap.sum_apply, ContinuousLinearMap.comp_apply,37    leftRegular_single, liftOperator_single]3839theorem coefficientOperator_conjTranspose (A : Matrix ι ι ℂ) :40    coefficientOperator A.conjTranspose = (coefficientOperator A).adjoint := by41  unfold coefficientOperator42  rw [← Matrix.star_eq_conjTranspose, map_star, ContinuousLinearMap.star_eq_adjoint]4344/-- Testing the actual adjoint against one group coordinate identifies all45its inverse-transpose coefficients. -/46theorem adjoint_regularPolynomial_single (S : Finset G) (a : G → Matrix ι ι ℂ)47    (h : G) (x : CoefficientSpace ι) :48    (regularPolynomial S a).adjoint (lp.single 2 h x) =49      ∑ w ∈ S, lp.single 2 (w⁻¹ * h) (coefficientOperator (a w).conjTranspose x) := by50  apply ext_inner_right ℂ51  intro f52  rw [ContinuousLinearMap.adjoint_inner_left, lp.inner_single_left,53    regularPolynomial_apply]54  simp only [inner_sum, sum_inner, lp.inner_single_left,55    coefficientOperator_conjTranspose, ContinuousLinearMap.adjoint_inner_left]5657theorem image_inv_eq (S : Finset G) (hS : ∀ w ∈ S, w⁻¹ ∈ S) :58    S.image Inv.inv = S := by59  ext w60  simp only [Finset.mem_image]61  constructor62  · rintro ⟨v, hv, rfl⟩63    exact hS v hv64  · intro hw65    exact ⟨w⁻¹, hS w hw, inv_inv w⟩6667/-- On an inversion-closed support, inverse-transpose coefficients give68precisely the Hilbert adjoint of the original regular polynomial. -/69theorem inverse_transpose_polynomial (S : Finset G) (hS : ∀ w ∈ S, w⁻¹ ∈ S)70    (a : G → Matrix ι ι ℂ) :71    regularPolynomial S (fun w => (a w⁻¹).conjTranspose) =72      (regularPolynomial S a).adjoint := by73  apply lp.ext_continuousLinearMap (by norm_num : (2 : ℝ≥0∞) ≠ ⊤)74  intro h75  apply ContinuousLinearMap.ext76  intro x77  change regularPolynomial S (fun w => (a w⁻¹).conjTranspose) (lp.single 2 h x) =78    (regularPolynomial S a).adjoint (lp.single 2 h x)79  rw [regularPolynomial_single, adjoint_regularPolynomial_single]80  conv_lhs => rw [← image_inv_eq S hS]81  rw [Finset.sum_image inv_injective.injOn]82  simp only [inv_inv]8384def fiberLeft (x : CoefficientSpace (Sum ι ι)) : CoefficientSpace ι :=85  WithLp.toLp 2 (fun i => x (Sum.inl i))8687def fiberRight (x : CoefficientSpace (Sum ι ι)) : CoefficientSpace ι :=88  WithLp.toLp 2 (fun i => x (Sum.inr i))8990omit [DecidableEq ι] in91@[simp] theorem fiberLeft_apply (x : CoefficientSpace (Sum ι ι)) (i : ι) :92    fiberLeft x i = x (Sum.inl i) := rfl9394omit [DecidableEq ι] in95@[simp] theorem fiberRight_apply (x : CoefficientSpace (Sum ι ι)) (i : ι) :96    fiberRight x i = x (Sum.inr i) := rfl9798omit [DecidableEq ι] in99theorem fiber_energy (x : CoefficientSpace (Sum ι ι)) :100    ‖x‖ ^ 2 = ‖fiberLeft x‖ ^ 2 + ‖fiberRight x‖ ^ 2 := by101  simp only [EuclideanSpace.norm_sq_eq, fiberLeft_apply, fiberRight_apply]102  exact Fintype.sum_sum_type (fun i => ‖x i‖ ^ 2)103104def leftSlice (f : Hilbert G (Sum ι ι)) : Hilbert G ι :=105  ⟨fun g => fiberLeft (f g), by106    apply memℓp_gen107    simp only [ENNReal.toReal_ofNat, Real.rpow_two]108    refine Summable.of_nonneg_of_le (fun _ => sq_nonneg _) (fun g => ?_)109      (by simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using110        f.property.summable (by norm_num))111    nlinarith [fiber_energy (f g), sq_nonneg ‖fiberRight (f g)‖]⟩112113def rightSlice (f : Hilbert G (Sum ι ι)) : Hilbert G ι :=114  ⟨fun g => fiberRight (f g), by115    apply memℓp_gen116    simp only [ENNReal.toReal_ofNat, Real.rpow_two]117    refine Summable.of_nonneg_of_le (fun _ => sq_nonneg _) (fun g => ?_)118      (by simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using119        f.property.summable (by norm_num))120    nlinarith [fiber_energy (f g), sq_nonneg ‖fiberLeft (f g)‖]⟩121122omit [Group G] [DecidableEq G] [DecidableEq ι] in123@[simp] theorem leftSlice_apply (f : Hilbert G (Sum ι ι)) (g : G) (i : ι) :124    leftSlice f g i = f g (Sum.inl i) := rfl125126omit [Group G] [DecidableEq G] [DecidableEq ι] in127@[simp] theorem rightSlice_apply (f : Hilbert G (Sum ι ι)) (g : G) (i : ι) :128    rightSlice f g i = f g (Sum.inr i) := rfl129130omit [Group G] [DecidableEq G] [DecidableEq ι] in131/-- The original regular Hilbert norm splits into the two orthogonal blocks. -/132theorem slice_energy (f : Hilbert G (Sum ι ι)) :133    ‖f‖ ^ 2 = ‖leftSlice f‖ ^ 2 + ‖rightSlice f‖ ^ 2 := by134  rw [MatrixRegularRestriction.norm_sq, MatrixRegularRestriction.norm_sq,135    MatrixRegularRestriction.norm_sq]136  change (∑' g, ‖f g‖ ^ 2) =137    (∑' g, ‖fiberLeft (f g)‖ ^ 2) + (∑' g, ‖fiberRight (f g)‖ ^ 2)138  simp_rw [fiber_energy]139  apply Summable.tsum_add140  · simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using141      (leftSlice f).property.summable (by norm_num)142  · simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using143      (rightSlice f).property.summable (by norm_num)144145def fiberEmbedRight (x : CoefficientSpace ι) : CoefficientSpace (Sum ι ι) :=146  WithLp.toLp 2 (Sum.elim (fun _ => 0) (fun i => x i))147148omit [DecidableEq ι] in149@[simp] theorem fiberLeft_embedRight (x : CoefficientSpace ι) :150    fiberLeft (fiberEmbedRight x) = 0 := by ext i; rfl151152omit [DecidableEq ι] in153@[simp] theorem fiberRight_embedRight (x : CoefficientSpace ι) :154    fiberRight (fiberEmbedRight x) = x := by ext i; rfl155156omit [DecidableEq ι] in157theorem fiberEmbedRight_norm (x : CoefficientSpace ι) : ‖fiberEmbedRight x‖ = ‖x‖ := by158  apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp159  rw [fiber_energy]160  simp161162def embedRight (f : Hilbert G ι) : Hilbert G (Sum ι ι) :=163  ⟨fun g => fiberEmbedRight (f g), by164    apply memℓp_gen165    simp only [fiberEmbedRight_norm]166    exact f.property.summable (by norm_num)⟩167168omit [Group G] [DecidableEq G] [DecidableEq ι] in169@[simp] theorem leftSlice_embedRight (f : Hilbert G ι) : leftSlice (embedRight f) = 0 := by170  ext g i171  rfl172173omit [Group G] [DecidableEq G] [DecidableEq ι] in174@[simp] theorem rightSlice_embedRight (f : Hilbert G ι) : rightSlice (embedRight f) = f := by175  ext g i176  rfl177178omit [Group G] [DecidableEq G] [DecidableEq ι] in179theorem embedRight_norm (f : Hilbert G ι) : ‖embedRight f‖ = ‖f‖ := by180  apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp181  rw [slice_energy]182  simp183184/-- The literal inverse-transpose coefficient dilation. -/185def dilationCoefficient (a : G → Matrix ι ι ℂ) (w : G) : Matrix (Sum ι ι) (Sum ι ι) ℂ :=186  Matrix.fromBlocks 0 (a w) (a w⁻¹).conjTranspose 0187188omit [DecidableEq G] in189theorem fiberLeft_dilationCoefficient (a : G → Matrix ι ι ℂ) (w : G)190    (x : CoefficientSpace (Sum ι ι)) :191    fiberLeft (coefficientOperator (dilationCoefficient a w) x) =192      coefficientOperator (a w) (fiberRight x) := by193  ext i194  change ((dilationCoefficient a w) *ᵥ x.ofLp) (Sum.inl i) =195    ((a w) *ᵥ (fiberRight x).ofLp) i196  simp only [dilationCoefficient, Matrix.mulVec, dotProduct,197    Fintype.sum_sum_type, Matrix.fromBlocks_apply₁₁, Matrix.fromBlocks_apply₁₂,198    Matrix.zero_apply, zero_mul, Finset.sum_const_zero, zero_add, fiberRight_apply]199200omit [DecidableEq G] in201theorem fiberRight_dilationCoefficient (a : G → Matrix ι ι ℂ) (w : G)202    (x : CoefficientSpace (Sum ι ι)) :203    fiberRight (coefficientOperator (dilationCoefficient a w) x) =204      coefficientOperator (a w⁻¹).conjTranspose (fiberLeft x) := by205  ext i206  change ((dilationCoefficient a w) *ᵥ x.ofLp) (Sum.inr i) =207    ((a w⁻¹).conjTranspose *ᵥ (fiberLeft x).ofLp) i208  simp only [dilationCoefficient, Matrix.mulVec, dotProduct,209    Fintype.sum_sum_type, Matrix.fromBlocks_apply₂₁, Matrix.fromBlocks_apply₂₂,210    Matrix.zero_apply, zero_mul, Finset.sum_const_zero, add_zero, fiberLeft_apply]211212omit [DecidableEq G] in213theorem leftSlice_dilationPolynomial (S : Finset G) (a : G → Matrix ι ι ℂ)214    (f : Hilbert G (Sum ι ι)) :215    leftSlice (regularPolynomial S (dilationCoefficient a) f) =216      regularPolynomial S a (rightSlice f) := by217  ext g i218  change regularPolynomial S (dilationCoefficient a) f g (Sum.inl i) =219    regularPolynomial S a (rightSlice f) g i220  rw [regularPolynomial_apply, regularPolynomial_apply]221  simp only [WithLp.ofLp_sum, Finset.sum_apply]222  apply Finset.sum_congr rfl223  intro w hw224  exact congrArg (fun v : CoefficientSpace ι => v i)225    (fiberLeft_dilationCoefficient a w (f (w⁻¹ * g)))226227theorem rightSlice_dilationPolynomial (S : Finset G) (hS : ∀ w ∈ S, w⁻¹ ∈ S)228    (a : G → Matrix ι ι ℂ) (f : Hilbert G (Sum ι ι)) :229    rightSlice (regularPolynomial S (dilationCoefficient a) f) =230      (regularPolynomial S a).adjoint (leftSlice f) := by231  rw [← inverse_transpose_polynomial S hS a]232  ext g i233  change regularPolynomial S (dilationCoefficient a) f g (Sum.inr i) =234    regularPolynomial S (fun w => (a w⁻¹).conjTranspose) (leftSlice f) g i235  rw [regularPolynomial_apply, regularPolynomial_apply]236  simp only [WithLp.ofLp_sum, Finset.sum_apply]237  apply Finset.sum_congr rfl238  intro w hw239  exact congrArg (fun v : CoefficientSpace ι => v i)240    (fiberRight_dilationCoefficient a w (f (w⁻¹ * g)))241242/-- The doubled regular polynomial has at most the original operator norm,243by orthogonal squared norms and equality of the adjoint norm. -/244theorem dilation_polynomial_norm_le (S : Finset G) (hS : ∀ w ∈ S, w⁻¹ ∈ S)245    (a : G → Matrix ι ι ℂ) :246    ‖regularPolynomial S (dilationCoefficient a)‖ ≤ ‖regularPolynomial S a‖ := by247  apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)248  intro f249  apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _))).mp250  rw [slice_energy, leftSlice_dilationPolynomial, rightSlice_dilationPolynomial S hS,251    mul_pow, slice_energy]252  have hL := pow_le_pow_left₀ (norm_nonneg _)253    ((regularPolynomial S a).le_opNorm (rightSlice f)) 2254  have hR := pow_le_pow_left₀ (norm_nonneg _)255    ((regularPolynomial S a).adjoint.le_opNorm (leftSlice f)) 2256  have hnorm : ‖(regularPolynomial S a).adjoint‖ = ‖regularPolynomial S a‖ :=257    ContinuousLinearMap.adjoint.norm_map _258  rw [hnorm] at hR259  simp only [mul_pow] at hL hR260  nlinarith261262/-- Embedding only the right block supplies the reverse norm inequality. -/263theorem norm_le_dilation_polynomial (S : Finset G) (hS : ∀ w ∈ S, w⁻¹ ∈ S)264    (a : G → Matrix ι ι ℂ) :265    ‖regularPolynomial S a‖ ≤ ‖regularPolynomial S (dilationCoefficient a)‖ := by266  apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _)267  intro f268  have h := (regularPolynomial S (dilationCoefficient a)).le_opNorm (embedRight f)269  rw [embedRight_norm] at h270  have heq : ‖regularPolynomial S (dilationCoefficient a) (embedRight f)‖ =271      ‖regularPolynomial S a f‖ := by272    apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp273    rw [slice_energy, leftSlice_dilationPolynomial, rightSlice_dilationPolynomial S hS]274    simp275  rw [heq] at h276  exact h277278/-- Hermitian dilation preserves the literal infinite regular-polynomial norm.279The identity is proved on the actual vector-valued square-summable spaces. -/280theorem dilation_polynomial_norm (S : Finset G) (hS : ∀ w ∈ S, w⁻¹ ∈ S)281    (a : G → Matrix ι ι ℂ) :282    ‖regularPolynomial S (dilationCoefficient a)‖ = ‖regularPolynomial S a‖ :=283  le_antisymm (dilation_polynomial_norm_le S hS a) (norm_le_dilation_polynomial S hS a)284285end Nonadditivity.RegularDilation