Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.ProductHaagerupCreation

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

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

19 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.CollinsYounTensor78/-! # Arbitrary reduced-word creation operators910Actual word creation on vector-valued `ℓ²` and the Hilbert-space estimate for11arbitrary cancellation sectors.  Coefficients may themselves be bounded12operators on any complex Hilbert space.13-/1415noncomputable section16set_option maxHeartbeats 80000017set_option backward.isDefEq.respectTransparency false1819namespace Nonadditivity.ProductHaagerupCreation2021open scoped BigOperators InnerProductSpace22open FreeCreation (Letter flip letter)23open RegularCoefficientEnergy (VectorHilbert liftOperator)24open CollinsYounTensor2526section OrthogonalContractions2728variable {I J H : Type*} [Fintype I] [Fintype J]29  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]3031/-- Orthogonal contraction ranges give an annihilation row contraction. -/32theorem adjoint_energy_le (C : I → H →L[ℂ] H)33    (hc : ∀ i x, ‖C i x‖ ≤ ‖x‖)34    (ho : ∀ i j, i ≠ j → ∀ x y, inner ℂ (C i x) (C j y) = 0) (f : H) :35    (∑ i, ‖(C i).adjoint f‖ ^ 2) ≤ ‖f‖ ^ 2 := by36  let S : H := ∑ i, C i ((C i).adjoint f)37  let a : ℝ := ∑ i, ‖(C i).adjoint f‖ ^ 238  have ha : 0 ≤ a := by dsimp [a]; positivity39  have hs : ‖S‖ ^ 2 ≤ a := by40    dsimp [S, a]41    rw [CollinsYoun.norm_sum_sq_of_inner_zero _ (fun i j hij => ho i j hij _ _)]42    exact Finset.sum_le_sum (fun i _ => pow_le_pow_left₀ (norm_nonneg _) (hc i _) 2)43  have hi : (inner ℂ S f).re = a := by44    dsimp [S, a]45    rw [sum_inner, Complex.re_sum]46    apply Finset.sum_congr rfl47    intro i _48    rw [← ContinuousLinearMap.adjoint_inner_right]49    exact (norm_sq_eq_re_inner (𝕜 := ℂ) _).symm50  have hb : a ≤ ‖S‖ * ‖f‖ := by rw [← hi]; exact re_inner_le_norm (𝕜 := ℂ) S f51  have hb2 := pow_le_pow_left₀ ha hb 252  rw [mul_pow] at hb253  have hs2 := mul_le_mul_of_nonneg_right hs (sq_nonneg ‖f‖)54  nlinarith5556/-- One cancellation sector has coefficient `ℓ²` norm as its operator bound.57This uses only orthogonal creation ranges and their proved row contraction. -/58theorem sector_norm_le (C : I → H →L[ℂ] H) (D : J → H →L[ℂ] H)59    (hc : ∀ i x, ‖C i x‖ ≤ ‖x‖)60    (ho : ∀ i j, i ≠ j → ∀ x y, inner ℂ (C i x) (C j y) = 0)61    (hd : ∀ j x, ‖D j x‖ ≤ ‖x‖)62    (hdo : ∀ i j, i ≠ j → ∀ x y, inner ℂ (D i x) (D j y) = 0)63    (B : I → J → H →L[ℂ] H) :64    ‖∑ i, ∑ j, (C i).comp ((B i j).comp (D j).adjoint)‖ ≤65      Real.sqrt (∑ i, ∑ j, ‖B i j‖ ^ 2) := by66  apply ContinuousLinearMap.opNorm_le_bound _ (Real.sqrt_nonneg _)67  intro f68  let row : I → H := fun i => ∑ j, B i j ((D j).adjoint f)69  have he : (∑ i, ∑ j, (C i).comp ((B i j).comp (D j).adjoint)) f =70      ∑ i, C i (row i) := by simp [row, map_sum]71  rw [he]72  have hdenergy := adjoint_energy_le D hd hdo f73  have hrow : ∀ i, ‖row i‖ ^ 2 ≤ (∑ j, ‖B i j‖ ^ 2) * ‖f‖ ^ 2 := by74    intro i75    have hn : ‖row i‖ ≤ ∑ j, ‖B i j‖ * ‖(D j).adjoint f‖ := by76      exact (norm_sum_le _ _).trans77        (Finset.sum_le_sum (fun j _ => (B i j).le_opNorm _))78    have hh := Finset.sum_mul_sq_le_sq_mul_sq Finset.univ79      (fun j => ‖B i j‖) (fun j => ‖(D j).adjoint f‖)80    have h2 := pow_le_pow_left₀ (norm_nonneg _) hn 281    exact (h2.trans hh).trans82      (mul_le_mul_of_nonneg_left hdenergy (Finset.sum_nonneg (fun _ _ => sq_nonneg _)))83  apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _))).mp84  rw [mul_pow, Real.sq_sqrt (by positivity),85    CollinsYoun.norm_sum_sq_of_inner_zero _ (fun i j hij => ho i j hij _ _), Finset.sum_mul]86  exact Finset.sum_le_sum (fun i _ =>87    (pow_le_pow_left₀ (norm_nonneg _) (hc i _) 2).trans (hrow i))8889end OrthogonalContractions9091section Words9293variable {α E : Type*} [DecidableEq α]94  [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]9596abbrev WordHilbert (α E : Type*) [NormedAddCommGroup E] := VectorHilbert (FreeGroup α) E9798def createWord : List (Letter α) → WordHilbert α E →L[ℂ] WordHilbert α E99  | [] => ContinuousLinearMap.id ℂ _100  | s :: w => (creation s).comp (createWord w)101102@[simp] theorem createWord_nil : createWord (E := E) ([] : List (Letter α)) =103    ContinuousLinearMap.id ℂ _ := rfl104105@[simp] theorem createWord_cons (s : Letter α) (w : List (Letter α)) :106    createWord (E := E) (s :: w) = (creation s).comp (createWord w) := rfl107108theorem createWord_contract (w : List (Letter α)) (f : WordHilbert α E) :109    ‖createWord w f‖ ≤ ‖f‖ := by110  induction w with111  | nil => exact le_rfl112  | cons s w ih => exact (creation_norm_le s (createWord w f)).trans ih113114theorem createWord_append (u v : List (Letter α)) :115    createWord (E := E) (u ++ v) = (createWord u).comp (createWord v) := by116  induction u with117  | nil => simp118  | cons s u ih => simp [ih, ContinuousLinearMap.comp_assoc]119120/-- A cancellation inside a purported creation word makes it zero. -/121theorem createWord_flip_zero (s : Letter α) (w : List (Letter α)) :122    createWord (E := E) (s :: flip s :: w) = 0 := by123  rw [createWord_cons, createWord_cons, ← ContinuousLinearMap.comp_assoc,124    creation_comp_flip_zero, ContinuousLinearMap.zero_comp]125126/-- On a reduced nonempty suffix, the first creator is the full regular shift. -/127theorem createWord_cons_eq_shift {s t : Letter α} (h : flip s ≠ t)128    (w : List (Letter α)) :129    createWord (E := E) (s :: t :: w) =130      (leftRegular (letter s)).comp (createWord (t :: w)) := by131  simp only [createWord_cons]132  rw [← ContinuousLinearMap.comp_assoc, creation_comp_creation_eq_shift h,133    ContinuousLinearMap.comp_assoc]134135/-- Arbitrary distinct words of the same length have orthogonal creation136ranges. Unreduced words cause no exception: their creators vanish. -/137theorem createWord_inner_zero (u v : List (Letter α))138    (hlen : u.length = v.length) (hne : u ≠ v) (f g : WordHilbert α E) :139    inner ℂ (createWord u f) (createWord v g) = 0 := by140  induction u generalizing v f g with141  | nil => cases v <;> simp_all142  | cons s u ih =>143    cases v with144    | nil => simp at hlen145    | cons t v =>146      simp only [List.length_cons, Nat.add_right_cancel_iff] at hlen147      by_cases hst : s = t148      · subst t149        have huv : u ≠ v := fun h => hne (by rw [h])150        cases u with151        | nil => cases v <;> simp_all152        | cons a u =>153          cases v with154          | nil => simp at hlen155          | cons b v =>156            by_cases ha : flip s = a157            · subst a; rw [createWord_flip_zero]; simp158            by_cases hb : flip s = b159            · subst b; rw [createWord_flip_zero]; simp160            rw [createWord_cons_eq_shift ha, createWord_cons_eq_shift hb]161            simp only [ContinuousLinearMap.comp_apply]162            rw [leftRegular_inner]163            exact ih _ hlen huv _ _164      · exact creation_inner_zero hst _ _165166/-- Bounded coefficient operators commute with arbitrary word creation. -/167theorem lift_createWord_commute [Fintype α] (B : E →L[ℂ] E) (w : List (Letter α)) :168    (liftOperator B).comp (createWord w) = (createWord w).comp (liftOperator B) := by169  induction w with170  | nil => simp171  | cons s w ih =>172    rw [createWord_cons, ← ContinuousLinearMap.comp_assoc, lift_creation_commute,173      ContinuousLinearMap.comp_assoc, ih, ← ContinuousLinearMap.comp_assoc]174175end Words176end Nonadditivity.ProductHaagerupCreation