Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.CollinsYoun

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

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

47 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.FreeCreation78/-! # Operator estimates behind Collins--Youn910The results here discharge concrete pieces of the free length-two estimate.11No external Haagerup or Collins--Youn inequality is assumed in these lemmas.12-/1314noncomputable section1516namespace Nonadditivity.CollinsYoun1718open Nonadditivity.FreeModel Nonadditivity.FreeCreation19open scoped BigOperators InnerProductSpace2021attribute [local instance] Classical.propDecidable2223section HilbertEstimates2425variable {I E : Type*} [Fintype I]26  [NormedAddCommGroup E] [InnerProductSpace ℂ E]2728theorem norm_sum_sq_of_inner_zero (f : I → E)29    (horth : ∀ i j, i ≠ j → inner ℂ (f i) (f j) = 0) :30    ‖∑ i, f i‖ ^ 2 = ∑ i, ‖f i‖ ^ 2 := by31  classical32  have hinner : inner ℂ (∑ i, f i) (∑ i, f i) = ∑ i, inner ℂ (f i) (f i) := by33    rw [sum_inner]34    apply Finset.sum_congr rfl35    intro i _36    rw [inner_sum]37    exact Finset.sum_eq_single i38      (fun j _ hji => horth i j hji.symm) (by simp)39  have hr := congrArg Complex.re hinner40  have hn : ∀ x : E, Complex.re (inner ℂ x x) = ‖x‖ ^ 2 := by41    intro x42    exact (norm_sq_eq_re_inner (𝕜 := ℂ) x).symm43  simpa only [Complex.re_sum, hn] using hr4445theorem norm_sum_smul_sq_le (a : I → ℂ) (f : I → E) :46    ‖∑ i, a i • f i‖ ^ 2 ≤ (∑ i, ‖a i‖ ^ 2) * ∑ i, ‖f i‖ ^ 2 := by47  have hnorm : ‖∑ i, a i • f i‖ ≤ ∑ i, ‖a i‖ * ‖f i‖ := by48    simpa only [norm_smul] using norm_sum_le Finset.univ (fun i => a i • f i)49  have hsum : 0 ≤ ∑ i, ‖a i‖ * ‖f i‖ := Finset.sum_nonneg (by intros; positivity)50  have hcs := Finset.sum_mul_sq_le_sq_mul_sq Finset.univ51    (fun i => ‖a i‖) (fun i => ‖f i‖)52  nlinarith [norm_nonneg (∑ i, a i • f i)]5354end HilbertEstimates5556section ConeEstimates5758variable {α I : Type*} [DecidableEq α] [Fintype I]5960theorem mask_cone_inner_zero {s t : Letter α} (hne : s ≠ t)61    (f h : Hilbert (FreeGroup α)) :62    inner ℂ (mask (Cone s) f) (mask (Cone t) h) = 0 := by63  change (∑' x, inner ℂ (mask (Cone s) f x) (mask (Cone t) h x)) = 064  have hz : ∀ x, inner ℂ (mask (Cone s) f x) (mask (Cone t) h x) = 0 := by65    intro x66    by_cases hs : Cone s x67    · have ht : ¬ Cone t x := fun ht => cone_disjoint hne x ⟨hs,ht⟩68      simp [mask_apply, ht]69    · simp [mask_apply, hs]70  simp_rw [hz]71  exact tsum_zero7273theorem sum_cone_masks_eq (L : I → Letter α) (hL : Function.Injective L)74    (f : Hilbert (FreeGroup α)) :75    (∑ i, mask (Cone (L i)) f) = mask (fun x => ∃ i, Cone (L i) x) f := by76  classical77  ext x78  simp only [lp.coeFn_sum, Finset.sum_apply, mask_apply]79  by_cases hx : ∃ i, Cone (L i) x80  · obtain ⟨i,hi⟩ := hx81    rw [if_pos ⟨i,hi⟩]82    have hz : ∀ j ≠ i, ¬ Cone (L j) x := by83      intro j hji hj84      exact cone_disjoint (fun he => hji (hL he)) x ⟨hj,hi⟩85    calc86      (∑ j, if Cone (L j) x then f x else 0) =87          (if Cone (L i) x then f x else 0) :=88        Finset.sum_eq_single i (fun j _ hji => by simp [hz j hji]) (by simp)89      _ = f x := by simp [hi]90  · rw [if_neg hx]91    apply Finset.sum_eq_zero92    intro i _93    have hi : ¬ Cone (L i) x := fun hi => hx ⟨i,hi⟩94    simp [hi]9596/-- The energies of disjoint concrete first-letter projections are bounded97by the total Hilbert-space energy. -/98theorem sum_cone_mask_norm_sq_le (L : I → Letter α) (hL : Function.Injective L)99    (f : Hilbert (FreeGroup α)) :100    (∑ i, ‖mask (Cone (L i)) f‖ ^ 2) ≤ ‖f‖ ^ 2 := by101  have hsum := norm_sum_sq_of_inner_zero (fun i => mask (Cone (L i)) f)102    (fun i j hij => mask_cone_inner_zero (fun he => hij (hL he)) f f)103  rw [sum_cone_masks_eq L hL f] at hsum104  have hn := mask_norm_le (fun x => ∃ i, Cone (L i) x) f105  nlinarith [norm_nonneg (mask (fun x => ∃ i, Cone (L i) x) f), norm_nonneg f]106107/-- The corresponding annihilation operators satisfy the same row-energy bound. -/108theorem sum_annihilation_norm_sq_le (L : I → Letter α) (hL : Function.Injective L)109    (f : Hilbert (FreeGroup α)) :110    (∑ i, ‖(creation (L i)).adjoint f‖ ^ 2) ≤ ‖f‖ ^ 2 := by111  simp_rw [creation_adjoint, ContinuousLinearMap.comp_apply, leftRegular_preserves_norm]112  exact sum_cone_mask_norm_sq_le L hL f113114end ConeEstimates115116section LengthTwo117118variable {α : Type*} [DecidableEq α] [Fintype α]119120omit [Fintype α] in121theorem creation_comp_flip_zero (s : Letter α) :122    (creation s).comp (creation (flip s)) = 0 := by123  rw [creation_domain]124  ext f x125  simp only [ContinuousLinearMap.comp_apply, leftRegular_apply, mask_apply,126    creation_apply, ContinuousLinearMap.zero_apply, lp.coeFn_zero, Pi.zero_apply]127  by_cases hx : Cone (flip s) ((letter s)⁻¹ * x) <;> simp [hx]128129def doubleCreation (i j : α) :130    Hilbert (FreeGroup α) →L[ℂ] Hilbert (FreeGroup α) :=131  (creation (i,false)).comp (creation (j,true))132133omit [Fintype α] in134@[simp] theorem doubleCreation_self (i : α) : doubleCreation i i = 0 := by135  simpa [doubleCreation, FreeCreation.flip] using creation_comp_flip_zero (i,false)136137omit [Fintype α] in138theorem doubleCreation_norm_le (i j : α) (f : Hilbert (FreeGroup α)) :139    ‖doubleCreation i j f‖ ≤ ‖f‖ :=140  (creation_norm_le (i,false) (creation (j,true) f)).trans (creation_norm_le (j,true) f)141142omit [Fintype α] in143/-- Distinct reduced two-letter creation ranges are orthogonal. -/144theorem doubleCreation_inner_zero (p q : α × α) (hpq : p ≠ q)145    (f h : Hilbert (FreeGroup α)) :146    inner ℂ (doubleCreation p.1 p.2 f) (doubleCreation q.1 q.2 h) = 0 := by147  by_cases hp : p.1 = p.2148  · simp [hp]149  by_cases hq : q.1 = q.2150  · simp [hq]151  by_cases hf : p.1 = q.1152  · have hs : p.2 ≠ q.2 := fun hs => hpq (Prod.ext hf hs)153    have hcp := creation_comp_creation_eq_shift154      (s := (p.1,false)) (t := (p.2,true)) (by simpa [FreeCreation.flip] using hp)155    have hcq := creation_comp_creation_eq_shift156      (s := (q.1,false)) (t := (q.2,true)) (by simpa [FreeCreation.flip] using hq)157    unfold doubleCreation158    rw [hcp, hcq]159    simp only [ContinuousLinearMap.comp_apply]160    rw [hf, leftRegular_inner]161    exact creation_inner_zero (by simpa using hs) f h162  · exact creation_inner_zero (by simpa using hf) _ _163164def coefficientLength (A : Matrix α α ℂ) : ℝ := Real.sqrt (∑ i, ∑ j, ‖A i j‖ ^ 2)165166omit [DecidableEq α] in167theorem coefficientLength_sq (A : Matrix α α ℂ) :168    coefficientLength A ^ 2 = ∑ i, ∑ j, ‖A i j‖ ^ 2 :=169  Real.sq_sqrt (by positivity)170171omit [DecidableEq α] in172theorem coefficientLength_nonneg (A : Matrix α α ℂ) : 0 ≤ coefficientLength A :=173  Real.sqrt_nonneg _174175omit [DecidableEq α] in176theorem coefficientLength_eq_hsLength (A : Matrix α α ℂ) :177    coefficientLength A = AdjointPurity.hsLength A := by178  unfold coefficientLength AdjointPurity.hsLength179  congr 1180  simp only [Matrix.trace, Matrix.diag, Matrix.mul_apply, Matrix.conjTranspose_apply,181    Complex.re_sum, Complex.star_def, ← Complex.normSq_eq_conj_mul_self,182    Complex.ofReal_re, Complex.normSq_eq_norm_sq]183  rw [Finset.sum_comm]184185/-- The no-cancellation operator has norm at most the coefficient ℓ² norm. -/186theorem double_creation_sum_norm_le (A : Matrix α α ℂ) :187    ‖∑ i, ∑ j, A i j • doubleCreation i j‖ ≤ coefficientLength A := by188  apply ContinuousLinearMap.opNorm_le_bound _ (coefficientLength_nonneg A)189  intro f190  simp only [ContinuousLinearMap.sum_apply, ContinuousLinearMap.smul_apply]191  have horth : ∀ p q : α × α, p ≠ q →192      inner ℂ (A p.1 p.2 • doubleCreation p.1 p.2 f)193        (A q.1 q.2 • doubleCreation q.1 q.2 f) = 0 := by194    intro p q hpq195    simp [inner_smul_left, inner_smul_right, doubleCreation_inner_zero p q hpq f f]196  have hsum := norm_sum_sq_of_inner_zero197    (fun p : α × α => A p.1 p.2 • doubleCreation p.1 p.2 f) horth198  rw [Fintype.sum_prod_type, Fintype.sum_prod_type] at hsum199  dsimp only at hsum200  have henergy : (∑ i, ∑ j, ‖A i j • doubleCreation i j f‖ ^ 2) ≤201      (∑ i, ∑ j, ‖A i j‖ ^ 2) * ‖f‖ ^ 2 := by202    rw [Finset.sum_mul]203    apply Finset.sum_le_sum204    intro i _205    rw [Finset.sum_mul]206    apply Finset.sum_le_sum207    intro j _208    rw [norm_smul, mul_pow]209    have hn := doubleCreation_norm_le i j f210    have hs : ‖doubleCreation i j f‖ ^ 2 ≤ ‖f‖ ^ 2 := by211      nlinarith [norm_nonneg (doubleCreation i j f), norm_nonneg f]212    exact mul_le_mul_of_nonneg_left hs (sq_nonneg _)213  apply (sq_le_sq₀ (norm_nonneg _)214    (mul_nonneg (coefficientLength_nonneg A) (norm_nonneg f))).mp215  rw [mul_pow, coefficientLength_sq, hsum]216  exact henergy217218def mixed (A : Matrix α α ℂ) :219    Hilbert (FreeGroup α) →L[ℂ] Hilbert (FreeGroup α) :=220  ∑ i, ∑ j, A i j • (creation (i,false)).comp (creation (j,false)).adjoint221222/-- The one-cancellation operator has norm at most the coefficient ℓ² norm. -/223theorem mixed_norm_le (A : Matrix α α ℂ) : ‖mixed A‖ ≤ coefficientLength A := by224  apply ContinuousLinearMap.opNorm_le_bound _ (coefficientLength_nonneg A)225  intro f226  let row : α → Hilbert (FreeGroup α) :=227    fun i => ∑ j, A i j • (creation (j,false)).adjoint f228  have he : mixed A f = ∑ i, creation (i,false) (row i) := by229    simp [mixed, row, map_sum]230  rw [he]231  have horth : ∀ i j : α, i ≠ j →232      inner ℂ (creation (i,false) (row i)) (creation (j,false) (row j)) = 0 := by233    intro i j hij234    exact creation_inner_zero (by simpa using hij) _ _235  have hsum := norm_sum_sq_of_inner_zero (fun i => creation (i,false) (row i)) horth236  have hrowenergy : (∑ j, ‖(creation (j,false)).adjoint f‖ ^ 2) ≤ ‖f‖ ^ 2 :=237    sum_annihilation_norm_sq_le (fun j : α => (j,false)) (by intro i j he; exact congrArg Prod.fst he) f238  have hrow : ∀ i, ‖row i‖ ^ 2 ≤ (∑ j, ‖A i j‖ ^ 2) * ‖f‖ ^ 2 := by239    intro i240    exact (norm_sum_smul_sq_le (A i) (fun j => (creation (j,false)).adjoint f)).trans241      (mul_le_mul_of_nonneg_left hrowenergy (by positivity))242  have henergy : (∑ i, ‖creation (i,false) (row i)‖ ^ 2) ≤243      (∑ i, ∑ j, ‖A i j‖ ^ 2) * ‖f‖ ^ 2 := by244    rw [Finset.sum_mul]245    apply Finset.sum_le_sum246    intro i _247    have hn := creation_norm_le (i,false) (row i)248    have hs : ‖creation (i,false) (row i)‖ ^ 2 ≤ ‖row i‖ ^ 2 := by249      nlinarith [norm_nonneg (creation (i,false) (row i)), norm_nonneg (row i)]250    exact hs.trans (hrow i)251  apply (sq_le_sq₀ (norm_nonneg _)252    (mul_nonneg (coefficientLength_nonneg A) (norm_nonneg f))).mp253  rw [mul_pow, coefficientLength_sq, hsum]254  exact henergy255256def doubleAnnihilation (i j : α) :257    Hilbert (FreeGroup α) →L[ℂ] Hilbert (FreeGroup α) :=258  (doubleCreation j i).adjoint259260omit [Fintype α] in261theorem doubleAnnihilation_eq (i j : α) :262    doubleAnnihilation i j =263      (creation (i,true)).adjoint.comp (creation (j,false)).adjoint := by264  rw [doubleAnnihilation, doubleCreation, ContinuousLinearMap.adjoint_comp]265266/-- The two-cancellation term has the same coefficient-norm bound, by the267actual Hilbert-space adjoint isometry. -/268theorem double_annihilation_sum_norm_le (A : Matrix α α ℂ) :269    ‖∑ i, ∑ j, A i j • doubleAnnihilation i j‖ ≤ coefficientLength A := by270  have hadj :271      ‖∑ i, ∑ j, A i j • doubleAnnihilation i j‖ =272        ‖∑ i, ∑ j, star (A i j) • doubleCreation j i‖ := by273    rw [← (ContinuousLinearMap.adjoint.norm_map274      (∑ i, ∑ j, A i j • doubleAnnihilation i j))]275    congr 1276    simp only [doubleAnnihilation, map_sum, map_smulₛₗ,277      ContinuousLinearMap.adjoint_adjoint, starRingEnd_apply]278  rw [hadj, Finset.sum_comm]279  have hbound := double_creation_sum_norm_le (fun i j => star (A j i))280  have he : coefficientLength (fun i j => star (A j i)) = coefficientLength A := by281    unfold coefficientLength282    simp only [norm_star]283    rw [Finset.sum_comm]284  exact hbound.trans_eq he285286/-- The actual unnormalized single-factor regular polynomial. -/287def localPolynomial (A : Matrix α α ℂ) :288    Hilbert (FreeGroup α) →L[ℂ] Hilbert (FreeGroup α) :=289  ∑ i, ∑ j, A i j • leftRegular ((FreeGroup.of i)⁻¹ * FreeGroup.of j)290291/-- Splitting a polynomial with zero diagonal coefficients produces exactly292the three proved cancellation components. -/293theorem local_polynomial_three_components (A : Matrix α α ℂ)294    (hdiag : ∀ i, A i i = 0) :295    localPolynomial A = (∑ i, ∑ j, A i j • doubleCreation i j) + mixed A +296      ∑ i, ∑ j, A i j • doubleAnnihilation i j := by297  have he : ∀ i j, A i j • leftRegular ((FreeGroup.of i)⁻¹ * FreeGroup.of j) =298      A i j • doubleCreation i j +299        A i j • (creation (i,false)).comp (creation (j,false)).adjoint +300        A i j • doubleAnnihilation i j := by301    intro i j302    by_cases hij : i = j303    · subst j304      simp [hdiag]305    · have hl := length_two_decomposition (s := (i,false)) (t := (j,true))306        (by simpa [FreeCreation.flip] using hij)307      simp [letter, FreeCreation.flip] at hl308      rw [hl, smul_add, smul_add, doubleAnnihilation_eq]309      rfl310  unfold localPolynomial mixed311  simp_rw [he]312  simp only [Finset.sum_add_distrib]313314def offDiagonal (A : Matrix α α ℂ) : Matrix α α ℂ :=315  fun i j => if i = j then 0 else A i j316317omit [Fintype α] in318@[simp] theorem offDiagonal_diagonal (A : Matrix α α ℂ) (i : α) : offDiagonal A i i = 0 :=319  by simp [offDiagonal]320321/-- Trace zero cancels the identical diagonal words in the actual operator. -/322theorem local_polynomial_offDiagonal (A : Matrix α α ℂ) (htrace : A.trace = 0) :323    localPolynomial A = localPolynomial (offDiagonal A) := by324  have he : ∀ i j, A i j • leftRegular ((FreeGroup.of i)⁻¹ * FreeGroup.of j) =325      offDiagonal A i j • leftRegular ((FreeGroup.of i)⁻¹ * FreeGroup.of j) +326        if i = j then A i i • ContinuousLinearMap.id ℂ (Hilbert (FreeGroup α)) else 0 := by327    intro i j328    by_cases hij : i = j329    · subst j330      simp [offDiagonal]331    · simp [offDiagonal, hij]332  unfold localPolynomial333  simp_rw [he]334  simp only [Finset.sum_add_distrib]335  have hdiag :336      (∑ i, ∑ j, if i = j then A i i •337        ContinuousLinearMap.id ℂ (Hilbert (FreeGroup α)) else 0) = 0 := by338    simp only [Finset.sum_ite_eq, Finset.mem_univ, ↓reduceIte]339    rw [← Finset.sum_smul]340    have ht : ∑ i, A i i = 0 := htrace341    rw [ht, zero_smul]342  rw [hdiag, add_zero]343344theorem offDiagonal_coefficientLength_le (A : Matrix α α ℂ) :345    coefficientLength (offDiagonal A) ≤ coefficientLength A := by346  apply Real.sqrt_le_sqrt347  apply Finset.sum_le_sum348  intro i _349  apply Finset.sum_le_sum350  intro j _351  by_cases hij : i = j352  · simp [offDiagonal, hij]353  · simp [offDiagonal, hij]354355/-- The actual length-two Haagerup estimate for the trace-zero matrix356polynomial is proved from its three cancellation components. -/357theorem local_polynomial_norm_le_three_hs (A : Matrix α α ℂ) (htrace : A.trace = 0) :358    ‖localPolynomial A‖ ≤ 3 * AdjointPurity.hsLength A := by359  rw [local_polynomial_offDiagonal A htrace,360    local_polynomial_three_components _ (offDiagonal_diagonal A)]361  have hfirst := double_creation_sum_norm_le (offDiagonal A)362  have hmiddle := mixed_norm_le (offDiagonal A)363  have hlast := double_annihilation_sum_norm_le (offDiagonal A)364  have hn1 := norm_add_le365    (∑ i, ∑ j, offDiagonal A i j • doubleCreation i j) (mixed (offDiagonal A))366  have hn2 := norm_add_le367    ((∑ i, ∑ j, offDiagonal A i j • doubleCreation i j) + mixed (offDiagonal A))368    (∑ i, ∑ j, offDiagonal A i j • doubleAnnihilation i j)369  have hcoeff := offDiagonal_coefficientLength_le A370  rw [coefficientLength_eq_hsLength A] at hcoeff371  linarith372373end LengthTwo374375end Nonadditivity.CollinsYoun