Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.CollinsYounTensor

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

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

76 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.CollinsYoun7import Nonadditivity.MatrixRegularRestriction89/-! # Operator coefficients in the length-two regular estimate1011The creation and annihilation decomposition acts on the genuine vector-valued12space `lp (fun _ : FreeGroup α => E) 2`.  Arbitrary bounded operators on the13coefficient Hilbert space commute with the coordinate projections and shifts.14The three cancellation components are each bounded by the square root of the15sum of the squared operator norms of the coefficients.  This supplies the16analytic induction step for the product-group Collins--Youn estimate.17-/18noncomputable section19set_option maxHeartbeats 80000020set_option backward.isDefEq.respectTransparency false21set_option linter.unusedSectionVars false22namespace Nonadditivity.CollinsYounTensor23open FreeCreation (Letter Cone letter flip cone_disjoint cone_shift_iff letter_flip)24open RegularCoefficientEnergy (VectorHilbert liftOperator)25open CollinsYoun (norm_sum_sq_of_inner_zero)26open scoped BigOperators InnerProductSpace27attribute [local instance] Classical.propDecidable28variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]29section Mask3031variable {G : Type*}3233/-- An actual coordinate projection on the regular Hilbert space. -/34def maskFunction (P : G → Prop) (f : VectorHilbert G E) : VectorHilbert G E :=35  ⟨fun x => if P x then f x else 0, by36    classical37    apply memℓp_gen38    apply Summable.of_nonneg_of_le (fun _ => Real.rpow_nonneg (norm_nonneg _) _)39      (fun x => ?_) (f.property.summable (by norm_num))40    split_ifs <;> simp⟩4142@[simp] theorem maskFunction_apply (P : G → Prop) (f : VectorHilbert G E) (x : G) :43    maskFunction (E := E) P f x = if P x then f x else 0 := rfl4445theorem maskFunction_norm_le (P : G → Prop) (f : VectorHilbert G E) :46    ‖maskFunction (E := E) P f‖ ≤ ‖f‖ := by47  apply lp.norm_le_of_tsum_le (by norm_num) (norm_nonneg f)48  rw [lp.norm_rpow_eq_tsum (by norm_num)]49  apply Summable.tsum_le_tsum50    (fun x => ?_) ((maskFunction (E := E) P f).property.summable (by norm_num))51    (f.property.summable (by norm_num))52  classical53  simp only [maskFunction_apply]54  split_ifs <;> simp5556def maskLinear (P : G → Prop) : VectorHilbert G E →ₗ[ℂ] VectorHilbert G E where57  toFun := maskFunction (E := E) P58  map_add' := by59    intro f h60    ext x61    classical62    simp only [maskFunction_apply, lp.coeFn_add, Pi.add_apply]63    split_ifs <;> simp64  map_smul' := by65    intro c f66    ext x67    classical68    simp only [maskFunction_apply, lp.coeFn_smul, Pi.smul_apply]69    split_ifs <;> simp7071/-- The coordinate mask is a genuine bounded linear projection. -/72def mask (P : G → Prop) : VectorHilbert G E →L[ℂ] VectorHilbert G E :=73  (maskLinear (E := E) P).mkContinuous 1 (by74    intro f75    simpa [maskLinear] using maskFunction_norm_le P f)7677@[simp] theorem mask_apply (P : G → Prop) (f : VectorHilbert G E) (x : G) :78    mask (E := E) P f x = if P x then f x else 0 := rfl7980theorem mask_norm_le (P : G → Prop) (f : VectorHilbert G E) : ‖mask (E := E) P f‖ ≤ ‖f‖ :=81  maskFunction_norm_le P f8283theorem mask_adjoint (P : G → Prop) : (mask (E := E) P).adjoint = mask (E := E) P := by84  apply ContinuousLinearMap.ext85  intro f86  apply ext_inner_right ℂ87  intro h88  rw [ContinuousLinearMap.adjoint_inner_left]89  change (∑' x, inner ℂ (f x) (mask (E := E) P h x)) =90    ∑' x, inner ℂ (mask (E := E) P f x) (h x)91  apply tsum_congr92  intro x93  classical94  simp only [mask_apply]95  split_ifs <;> simp9697theorem mask_add_complement (P : G → Prop) :98    mask (E := E) P + mask (E := E) (fun x => ¬ P x) = ContinuousLinearMap.id ℂ (VectorHilbert G E) := by99  ext f x100  classical101  simp only [ContinuousLinearMap.add_apply, lp.coeFn_add, Pi.add_apply,102    mask_apply, ContinuousLinearMap.id_apply]103  by_cases h : P x <;> simp [h]104105end Mask106107section Regular108variable {G : Type*} [Group G]109abbrev leftRegular (g : G) : VectorHilbert G E →L[ℂ] VectorHilbert G E :=110  MatrixRegularRestriction.leftRegular g111@[simp] theorem leftRegular_apply (g : G) (f : VectorHilbert G E) (h : G) :112    leftRegular g f h = f (g⁻¹ * h) := rfl113 theorem leftRegular_preserves_norm (g : G) (f : VectorHilbert G E) :114    ‖leftRegular g f‖ = ‖f‖ :=115  (RegularCoefficientEnergy.reindexIsometry (E := E) (Equiv.mulLeft g⁻¹)).norm_map f116 theorem leftRegular_mul (g h : G) :117    leftRegular (E := E) (g*h) = (leftRegular g).comp (leftRegular h) := by118  ext f x119  simp [mul_assoc]120end Regular121section Operators122123variable {α : Type*} [DecidableEq α]124125theorem leftRegular_adjoint {G : Type*} [Group G] (g : G) :126    (leftRegular (E := E) g).adjoint = leftRegular (E := E) g⁻¹ := by127  unfold leftRegular MatrixRegularRestriction.leftRegular128  change ((RegularCoefficientEnergy.reindexIsometry (E := E) (Equiv.mulLeft g⁻¹)).toContinuousLinearEquiv.toContinuousLinearMap).adjoint = _129  rw [LinearIsometryEquiv.adjoint_eq_symm]130  ext f x131  change f ((Equiv.mulLeft g⁻¹).symm x) = f ((g⁻¹)⁻¹ * x)132  simp133134theorem leftRegular_inner {G : Type*} [Group G] (g : G) (f h : VectorHilbert G E) :135    inner ℂ (leftRegular (E := E) g f) (leftRegular (E := E) g h) = inner ℂ f h :=136  (RegularCoefficientEnergy.reindexIsometry (Equiv.mulLeft g⁻¹)).inner_map_map f h137138/-- A letter creation shift, retaining only words where the new letter does139not cancel. Its range consists of words with that reduced first letter. -/140def creation (s : Letter α) : VectorHilbert (FreeGroup α) E →L[ℂ] VectorHilbert (FreeGroup α) E :=141  (mask (E := E) (Cone s)).comp (leftRegular (E := E) (letter s))142143@[simp] theorem creation_apply (s : Letter α) (f : VectorHilbert (FreeGroup α) E)144    (x : FreeGroup α) :145    creation (E := E) s f x = if Cone s x then f ((letter s)⁻¹ * x) else 0 := rfl146147/-- Creation is equally the full shift restricted to its noncancelling input cone. -/148theorem creation_domain (s : Letter α) :149    creation (E := E) s = (leftRegular (E := E) (letter s)).comp (mask (E := E) (fun x => ¬ Cone (flip s) x)) := by150  ext f x151  have hc : Cone s x ↔ ¬ Cone (flip s) ((letter s)⁻¹ * x) := by152    simpa [mul_assoc] using cone_shift_iff s ((letter s)⁻¹ * x)153  simp [creation_apply, ContinuousLinearMap.comp_apply, mask_apply, hc]154155theorem creation_adjoint (s : Letter α) :156    (creation (E := E) s).adjoint = (leftRegular (E := E) (letter s)⁻¹).comp (mask (E := E) (Cone s)) := by157  rw [creation, ContinuousLinearMap.adjoint_comp, mask_adjoint, leftRegular_adjoint]158159/-- The actual regular generator is the sum of creation and inverse annihilation. -/160theorem leftRegular_letter_decomposition (s : Letter α) :161    leftRegular (E := E) (letter s) = creation (E := E) s + (creation (E := E) (flip s)).adjoint := by162  rw [creation_domain, creation_adjoint, letter_flip, inv_inv]163  ext f x164  simp only [ContinuousLinearMap.add_apply, ContinuousLinearMap.comp_apply,165    lp.coeFn_add, Pi.add_apply, leftRegular_apply, mask_apply]166  by_cases hx : Cone (flip s) ((letter s)⁻¹ * x) <;> simp [hx]167168theorem creation_norm_le (s : Letter α) (f : VectorHilbert (FreeGroup α) E) :169    ‖creation (E := E) s f‖ ≤ ‖f‖ :=170  (mask_norm_le (Cone s) (leftRegular (E := E) (letter s) f)).trans_eq171    (leftRegular_preserves_norm (letter s) f)172173/-- Different first-letter creation ranges are orthogonal. -/174theorem creation_inner_zero {s t : Letter α} (hne : s ≠ t)175    (f h : VectorHilbert (FreeGroup α) E) : inner ℂ (creation (E := E) s f) (creation (E := E) t h) = 0 := by176  change (∑' x, inner ℂ (creation (E := E) s f x) (creation (E := E) t h x)) = 0177  have hz : ∀ x, inner ℂ (creation (E := E) s f x) (creation (E := E) t h x) = 0 := by178    intro x179    by_cases hs : Cone s x180    · have ht : ¬ Cone t x := fun ht => cone_disjoint hne x ⟨hs,ht⟩181      simp [creation_apply, ht]182    · simp [creation_apply, hs]183  simp_rw [hz]184  exact tsum_zero185186/-- The middle cancellation term vanishes for different letters. -/187theorem creation_adjoint_comp_zero {s t : Letter α} (hne : s ≠ t) :188    (creation (E := E) s).adjoint.comp (creation (E := E) t) = 0 := by189  rw [creation_adjoint]190  ext f x191  simp only [ContinuousLinearMap.comp_apply, leftRegular_apply, mask_apply,192    creation_apply, ContinuousLinearMap.zero_apply, lp.coeFn_zero, Pi.zero_apply]193  by_cases hs : Cone s (letter s * x)194  · have ht : ¬ Cone t (letter s * x) := fun ht => cone_disjoint hne _ ⟨hs,ht⟩195    simp [hs, ht]196  · simp [hs]197198/-- On another first-letter range, creation has no cancellation and is a full isometry. -/199theorem creation_comp_creation_eq_shift {s t : Letter α} (hne : flip s ≠ t) :200    (creation (E := E) s).comp (creation (E := E) t) = (leftRegular (E := E) (letter s)).comp (creation (E := E) t) := by201  rw [creation_domain]202  ext f x203  simp only [ContinuousLinearMap.comp_apply, leftRegular_apply, mask_apply, creation_apply]204  by_cases hs : Cone (flip s) ((letter s)⁻¹ * x)205  · have ht : ¬ Cone t ((letter s)⁻¹ * x) := fun ht => cone_disjoint hne _ ⟨hs,ht⟩206    simp [hs, ht]207  · simp [hs]208209/-- A reduced length-two shift has exactly three cancellation components. -/210theorem length_two_decomposition {s t : Letter α} (hne : flip s ≠ t) :211    leftRegular (E := E) (letter s * letter t) =212      (creation (E := E) s).comp (creation (E := E) t) +213      (creation (E := E) s).comp (creation (E := E) (flip t)).adjoint +214      (creation (E := E) (flip s)).adjoint.comp (creation (E := E) (flip t)).adjoint := by215  rw [leftRegular_mul, leftRegular_letter_decomposition s,216    leftRegular_letter_decomposition t]217  rw [ContinuousLinearMap.add_comp, ContinuousLinearMap.comp_add,218    ContinuousLinearMap.comp_add, creation_adjoint_comp_zero hne, zero_add]219220end Operators221222section ConeEstimates223224variable {α I : Type*} [DecidableEq α] [Fintype I]225226theorem mask_cone_inner_zero {s t : Letter α} (hne : s ≠ t)227    (f h : VectorHilbert (FreeGroup α) E) :228    inner ℂ (mask (E := E) (Cone s) f) (mask (E := E) (Cone t) h) = 0 := by229  change (∑' x, inner ℂ (mask (E := E) (Cone s) f x) (mask (E := E) (Cone t) h x)) = 0230  have hz : ∀ x, inner ℂ (mask (E := E) (Cone s) f x) (mask (E := E) (Cone t) h x) = 0 := by231    intro x232    by_cases hs : Cone s x233    · have ht : ¬ Cone t x := fun ht => cone_disjoint hne x ⟨hs,ht⟩234      simp [mask_apply, ht]235    · simp [mask_apply, hs]236  simp_rw [hz]237  exact tsum_zero238239theorem sum_cone_masks_eq (L : I → Letter α) (hL : Function.Injective L)240    (f : VectorHilbert (FreeGroup α) E) :241    (∑ i, mask (E := E) (Cone (L i)) f) = mask (E := E) (fun x => ∃ i, Cone (L i) x) f := by242  classical243  ext x244  simp only [lp.coeFn_sum, Finset.sum_apply, mask_apply]245  by_cases hx : ∃ i, Cone (L i) x246  · obtain ⟨i,hi⟩ := hx247    rw [if_pos ⟨i,hi⟩]248    have hz : ∀ j ≠ i, ¬ Cone (L j) x := by249      intro j hji hj250      exact cone_disjoint (fun he => hji (hL he)) x ⟨hj,hi⟩251    calc252      (∑ j, if Cone (L j) x then f x else 0) =253          (if Cone (L i) x then f x else 0) :=254        Finset.sum_eq_single i (fun j _ hji => by simp [hz j hji]) (by simp)255      _ = f x := by simp [hi]256  · rw [if_neg hx]257    apply Finset.sum_eq_zero258    intro i _259    have hi : ¬ Cone (L i) x := fun hi => hx ⟨i,hi⟩260    simp [hi]261262/-- The energies of disjoint concrete first-letter projections are bounded263by the total Hilbert-space energy. -/264theorem sum_cone_mask_norm_sq_le (L : I → Letter α) (hL : Function.Injective L)265    (f : VectorHilbert (FreeGroup α) E) :266    (∑ i, ‖mask (E := E) (Cone (L i)) f‖ ^ 2) ≤ ‖f‖ ^ 2 := by267  have hsum := norm_sum_sq_of_inner_zero (fun i => mask (E := E) (Cone (L i)) f)268    (fun i j hij => mask_cone_inner_zero (fun he => hij (hL he)) f f)269  rw [sum_cone_masks_eq L hL f] at hsum270  have hn := mask_norm_le (fun x => ∃ i, Cone (L i) x) f271  nlinarith [norm_nonneg (mask (E := E) (fun x => ∃ i, Cone (L i) x) f), norm_nonneg f]272273/-- The corresponding annihilation operators satisfy the same row-energy bound. -/274theorem sum_annihilation_norm_sq_le (L : I → Letter α) (hL : Function.Injective L)275    (f : VectorHilbert (FreeGroup α) E) :276    (∑ i, ‖(creation (E := E) (L i)).adjoint f‖ ^ 2) ≤ ‖f‖ ^ 2 := by277  simp_rw [creation_adjoint, ContinuousLinearMap.comp_apply, leftRegular_preserves_norm]278  exact sum_cone_mask_norm_sq_le L hL f279280end ConeEstimates281282section LengthTwo283284variable {α : Type*} [DecidableEq α] [Fintype α]285286omit [Fintype α] in287theorem creation_comp_flip_zero (s : Letter α) :288    (creation (E := E) s).comp (creation (E := E) (flip s)) = 0 := by289  rw [creation_domain]290  ext f x291  simp only [ContinuousLinearMap.comp_apply, leftRegular_apply, mask_apply,292    creation_apply, ContinuousLinearMap.zero_apply, lp.coeFn_zero, Pi.zero_apply]293  by_cases hx : Cone (flip s) ((letter s)⁻¹ * x) <;> simp [hx]294295def doubleCreation (i j : α) :296    VectorHilbert (FreeGroup α) E →L[ℂ] VectorHilbert (FreeGroup α) E :=297  (creation (E := E) (i,false)).comp (creation (E := E) (j,true))298299omit [Fintype α] in300@[simp] theorem doubleCreation_self (i : α) : doubleCreation (E := E) i i = 0 := by301  simpa [doubleCreation, FreeCreation.flip] using creation_comp_flip_zero (E := E) (i,false)302303omit [Fintype α] in304theorem doubleCreation_norm_le (i j : α) (f : VectorHilbert (FreeGroup α) E) :305    ‖doubleCreation (E := E) i j f‖ ≤ ‖f‖ :=306  (creation_norm_le (i,false) (creation (E := E) (j,true) f)).trans (creation_norm_le (j,true) f)307308omit [Fintype α] in309/-- Distinct reduced two-letter creation ranges are orthogonal. -/310theorem doubleCreation_inner_zero (p q : α × α) (hpq : p ≠ q)311    (f h : VectorHilbert (FreeGroup α) E) :312    inner ℂ (doubleCreation (E := E) p.1 p.2 f) (doubleCreation (E := E) q.1 q.2 h) = 0 := by313  by_cases hp : p.1 = p.2314  · simp [hp]315  by_cases hq : q.1 = q.2316  · simp [hq]317  by_cases hf : p.1 = q.1318  · have hs : p.2 ≠ q.2 := fun hs => hpq (Prod.ext hf hs)319    have hcp := creation_comp_creation_eq_shift (E := E)320      (s := (p.1,false)) (t := (p.2,true)) (by simpa [FreeCreation.flip] using hp)321    have hcq := creation_comp_creation_eq_shift (E := E)322      (s := (q.1,false)) (t := (q.2,true)) (by simpa [FreeCreation.flip] using hq)323    unfold doubleCreation324    rw [hcp, hcq]325    simp only [ContinuousLinearMap.comp_apply]326    rw [hf, leftRegular_inner]327    exact creation_inner_zero (by simpa using hs) f h328  · exact creation_inner_zero (by simpa using hf) _ _329330331end LengthTwo332section Coefficients333variable {α : Type*} [DecidableEq α] [Fintype α]334335/-- Pointwise coefficient operators commute with every coordinate creation. -/336theorem lift_creation_commute (B : E →L[ℂ] E) (s : Letter α) :337    (liftOperator B).comp (creation (E := E) s) = (creation (E := E) s).comp (liftOperator B) := by338  ext f x339  simp only [ContinuousLinearMap.comp_apply, RegularCoefficientEnergy.liftOperator_apply,340    creation_apply]341  split_ifs <;> simp342343theorem lift_creation_adjoint_commute (B : E →L[ℂ] E) (s : Letter α) :344    (liftOperator B).comp (creation (E := E) s).adjoint =345      (creation (E := E) s).adjoint.comp (liftOperator B) := by346  rw [creation_adjoint]347  ext f x348  simp only [ContinuousLinearMap.comp_apply, RegularCoefficientEnergy.liftOperator_apply,349    leftRegular_apply, mask_apply]350  split_ifs <;> simp351352theorem lift_doubleCreation_commute (B : E →L[ℂ] E) (i j : α) :353    (liftOperator B).comp (doubleCreation (E := E) i j) =354      (doubleCreation (E := E) i j).comp (liftOperator B) := by355  rw [doubleCreation, ← ContinuousLinearMap.comp_assoc, lift_creation_commute,356    ContinuousLinearMap.comp_assoc, lift_creation_commute, ← ContinuousLinearMap.comp_assoc]357358theorem lift_adjoint {G : Type*} (B : E →L[ℂ] E) :359    (liftOperator (G := G) B).adjoint = liftOperator B.adjoint := by360  apply ContinuousLinearMap.ext361  intro f362  apply ext_inner_right ℂ363  intro h364  rw [ContinuousLinearMap.adjoint_inner_left]365  change (∑' x, inner ℂ (f x) (B (h x))) = ∑' x, inner ℂ (B.adjoint (f x)) (h x)366  apply tsum_congr367  intro x368  exact (ContinuousLinearMap.adjoint_inner_left B (h x) (f x)).symm369370/-- The coefficient norm used in the operator-valued length-two estimate. -/371def coefficientLength (B : Matrix α α (E →L[ℂ] E)) : ℝ :=372  Real.sqrt (∑ i, ∑ j, ‖B i j‖ ^ 2)373374theorem coefficientLength_sq (B : Matrix α α (E →L[ℂ] E)) :375    coefficientLength B ^ 2 = ∑ i, ∑ j, ‖B i j‖ ^ 2 := Real.sq_sqrt (by positivity)376377theorem coefficientLength_nonneg (B : Matrix α α (E →L[ℂ] E)) :378    0 ≤ coefficientLength B := Real.sqrt_nonneg _379380/-- Orthogonal two-letter ranges control arbitrary operator coefficients. -/381theorem double_creation_sum_norm_le (B : Matrix α α (E →L[ℂ] E)) :382    ‖∑ i, ∑ j, (liftOperator (B i j)).comp (doubleCreation (E := E) i j)‖ ≤ coefficientLength B := by383  simp_rw [lift_doubleCreation_commute]384  apply ContinuousLinearMap.opNorm_le_bound _ (coefficientLength_nonneg B)385  intro f386  simp only [ContinuousLinearMap.sum_apply, ContinuousLinearMap.comp_apply]387  have hsum := norm_sum_sq_of_inner_zero388    (fun p : α × α => doubleCreation (E := E) p.1 p.2 (liftOperator (B p.1 p.2) f))389    (fun p q hpq => doubleCreation_inner_zero p q hpq _ _)390  rw [Fintype.sum_prod_type, Fintype.sum_prod_type] at hsum391  dsimp only at hsum392  have henergy : (∑ i, ∑ j, ‖doubleCreation (E := E) i j (liftOperator (B i j) f)‖ ^ 2) ≤393      (∑ i, ∑ j, ‖B i j‖ ^ 2) * ‖f‖ ^ 2 := by394    rw [Finset.sum_mul]395    apply Finset.sum_le_sum396    intro i _397    rw [Finset.sum_mul]398    apply Finset.sum_le_sum399    intro j _400    have hn := (doubleCreation_norm_le i j (liftOperator (B i j) f)).trans401      (RegularCoefficientEnergy.liftFunction_norm_le (B i j) f)402    simpa only [mul_pow] using pow_le_pow_left₀ (norm_nonneg _) hn 2403  apply (sq_le_sq₀ (norm_nonneg _)404    (mul_nonneg (coefficientLength_nonneg B) (norm_nonneg f))).mp405  rw [mul_pow, coefficientLength_sq, hsum]406  exact henergy407408/-- The coefficient-valued one-cancellation component. -/409def mixed (B : Matrix α α (E →L[ℂ] E)) :410    VectorHilbert (FreeGroup α) E →L[ℂ] VectorHilbert (FreeGroup α) E :=411  ∑ i, ∑ j, (liftOperator (B i j)).comp412    ((creation (E := E) (i,false)).comp (creation (E := E) (j,false)).adjoint)413414theorem mixed_norm_le (B : Matrix α α (E →L[ℂ] E)) : ‖mixed B‖ ≤ coefficientLength B := by415  apply ContinuousLinearMap.opNorm_le_bound _ (coefficientLength_nonneg B)416  intro f417  let row : α → VectorHilbert (FreeGroup α) E :=418    fun i => ∑ j, liftOperator (B i j) ((creation (E := E) (j,false)).adjoint f)419  have he : mixed B f = ∑ i, creation (E := E) (i,false) (row i) := by420    unfold mixed421    simp_rw [← ContinuousLinearMap.comp_assoc, lift_creation_commute,422      ContinuousLinearMap.comp_assoc]423    simp [row, map_sum]424  rw [he]425  have hsum := norm_sum_sq_of_inner_zero (fun i => creation (E := E) (i,false) (row i))426    (fun i j hij => creation_inner_zero (by simpa using hij) _ _)427  have hrowenergy : (∑ j, ‖(creation (E := E) (j,false)).adjoint f‖ ^ 2) ≤ ‖f‖ ^ 2 :=428    sum_annihilation_norm_sq_le (fun j : α => (j,false))429      (by intro i j he; exact congrArg Prod.fst he) f430  have hrow : ∀ i, ‖row i‖ ^ 2 ≤ (∑ j, ‖B i j‖ ^ 2) * ‖f‖ ^ 2 := by431    intro i432    have hn : ‖row i‖ ≤ ∑ j, ‖B i j‖ * ‖(creation (E := E) (j,false)).adjoint f‖ := by433      change ‖∑ j, liftOperator (B i j) ((creation (E := E) (j,false)).adjoint f)‖ ≤ _434      apply (norm_sum_le _ _).trans435      apply Finset.sum_le_sum436      intro j _437      exact RegularCoefficientEnergy.liftFunction_norm_le (G := FreeGroup α)438        (B i j) ((creation (E := E) (j,false)).adjoint f)439    have hs := Finset.sum_mul_sq_le_sq_mul_sq Finset.univ440      (fun j => ‖B i j‖) (fun j => ‖(creation (E := E) (j,false)).adjoint f‖)441    have hp : ‖row i‖ ^ 2 ≤442        (∑ j, ‖B i j‖ ^ 2) * ∑ j, ‖(creation (E := E) (j,false)).adjoint f‖ ^ 2 := by443      nlinarith [norm_nonneg (row i)]444    exact hp.trans (mul_le_mul_of_nonneg_left hrowenergy (by positivity))445  have henergy : (∑ i, ‖creation (E := E) (i,false) (row i)‖ ^ 2) ≤446      (∑ i, ∑ j, ‖B i j‖ ^ 2) * ‖f‖ ^ 2 := by447    rw [Finset.sum_mul]448    apply Finset.sum_le_sum449    intro i _450    have hn := creation_norm_le (i,false) (row i)451    exact (pow_le_pow_left₀ (norm_nonneg _) hn 2).trans (hrow i)452  apply (sq_le_sq₀ (norm_nonneg _)453    (mul_nonneg (coefficientLength_nonneg B) (norm_nonneg f))).mp454  rw [mul_pow, coefficientLength_sq, hsum]455  exact henergy456457def doubleAnnihilation (i j : α) :458    VectorHilbert (FreeGroup α) E →L[ℂ] VectorHilbert (FreeGroup α) E :=459  (doubleCreation (E := E) j i).adjoint460461theorem doubleAnnihilation_eq (i j : α) :462    doubleAnnihilation (E := E) i j =463      (creation (E := E) (i,true)).adjoint.comp (creation (E := E) (j,false)).adjoint := by464  rw [doubleAnnihilation, doubleCreation, ContinuousLinearMap.adjoint_comp]465466theorem lift_doubleAnnihilation_commute (B : E →L[ℂ] E) (i j : α) :467    (liftOperator B).comp (doubleAnnihilation (E := E) i j) =468      (doubleAnnihilation (E := E) i j).comp (liftOperator B) := by469  rw [doubleAnnihilation_eq, ← ContinuousLinearMap.comp_assoc, lift_creation_adjoint_commute,470    ContinuousLinearMap.comp_assoc, lift_creation_adjoint_commute, ← ContinuousLinearMap.comp_assoc]471472theorem double_annihilation_sum_norm_le (B : Matrix α α (E →L[ℂ] E)) :473    ‖∑ i, ∑ j, (liftOperator (B i j)).comp (doubleAnnihilation (E := E) i j)‖ ≤ coefficientLength B := by474  have hadj :475      ‖∑ i, ∑ j, (liftOperator (B i j)).comp (doubleAnnihilation (E := E) i j)‖ =476        ‖∑ i, ∑ j, (liftOperator (B i j).adjoint).comp (doubleCreation (E := E) j i)‖ := by477    rw [← (ContinuousLinearMap.adjoint.norm_map478      (∑ i, ∑ j, (liftOperator (B i j)).comp (doubleAnnihilation (E := E) i j)))]479    congr 1480    simp only [doubleAnnihilation, map_sum, ContinuousLinearMap.adjoint_comp,481      ContinuousLinearMap.adjoint_adjoint, lift_adjoint, lift_doubleCreation_commute]482  rw [hadj, Finset.sum_comm]483  have hbound := double_creation_sum_norm_le (fun i j => (B j i).adjoint)484  have he : coefficientLength (fun i j => (B j i).adjoint) = coefficientLength B := by485    unfold coefficientLength486    simp only [ContinuousLinearMap.adjoint.norm_map]487    rw [Finset.sum_comm]488  exact hbound.trans_eq he489490/-- The actual operator-valued local regular polynomial. -/491def localPolynomial (B : Matrix α α (E →L[ℂ] E)) :492    VectorHilbert (FreeGroup α) E →L[ℂ] VectorHilbert (FreeGroup α) E :=493  ∑ i, ∑ j, (liftOperator (B i j)).comp494    (leftRegular (E := E) ((FreeGroup.of i)⁻¹ * FreeGroup.of j))495496@[simp] theorem localPolynomial_apply (B : Matrix α α (E →L[ℂ] E))497    (f : VectorHilbert (FreeGroup α) E) (x : FreeGroup α) :498    localPolynomial B f x = ∑ i, ∑ j, B i j (f (((FreeGroup.of i)⁻¹ * FreeGroup.of j)⁻¹ * x)) := by499  simp [localPolynomial, RegularCoefficientEnergy.liftOperator_apply]500501theorem local_polynomial_three_components (B : Matrix α α (E →L[ℂ] E))502    (hdiag : ∀ i, B i i = 0) :503    localPolynomial B = (∑ i, ∑ j, (liftOperator (B i j)).comp (doubleCreation (E := E) i j)) + mixed B +504      ∑ i, ∑ j, (liftOperator (B i j)).comp (doubleAnnihilation (E := E) i j) := by505  have hzero : (liftOperator (G := FreeGroup α) (0 : E →L[ℂ] E)) = 0 := by ext f x; simp506  have he : ∀ i j, (liftOperator (B i j)).comp (leftRegular (E := E) ((FreeGroup.of i)⁻¹ * FreeGroup.of j)) =507      (liftOperator (B i j)).comp (doubleCreation (E := E) i j) +508        (liftOperator (B i j)).comp ((creation (E := E) (i,false)).comp (creation (E := E) (j,false)).adjoint) +509        (liftOperator (B i j)).comp (doubleAnnihilation (E := E) i j) := by510    intro i j511    by_cases hij : i = j512    · subst j513      simp [hdiag, hzero]514    · have hl := length_two_decomposition (E := E) (s := (i,false)) (t := (j,true))515        (by simpa [FreeCreation.flip] using hij)516      simp [letter, FreeCreation.flip] at hl517      rw [hl, ContinuousLinearMap.comp_add, ContinuousLinearMap.comp_add, doubleAnnihilation_eq]518      rfl519  unfold localPolynomial mixed520  simp_rw [he]521  simp only [Finset.sum_add_distrib]522523/-- Operator-valued length-two Haagerup bound, proved on the actual vector-valued524regular Hilbert space, with no operator norm input assumption. -/525theorem local_polynomial_norm_le_three_coeff (B : Matrix α α (E →L[ℂ] E))526    (hdiag : ∀ i, B i i = 0) :527    ‖localPolynomial B‖ ≤ 3 * Real.sqrt (∑ i, ∑ j, ‖B i j‖ ^ 2) := by528  rw [local_polynomial_three_components B hdiag]529  have hfirst := double_creation_sum_norm_le B530  have hmiddle := mixed_norm_le B531  have hlast := double_annihilation_sum_norm_le B532  have hn1 := norm_add_le533    (∑ i, ∑ j, (liftOperator (B i j)).comp (doubleCreation (E := E) i j)) (mixed B)534  have hn2 := norm_add_le535    ((∑ i, ∑ j, (liftOperator (B i j)).comp (doubleCreation (E := E) i j)) + mixed B)536    (∑ i, ∑ j, (liftOperator (B i j)).comp (doubleAnnihilation (E := E) i j))537  change _ ≤ 3 * coefficientLength B538  linarith539540end Coefficients541542end Nonadditivity.CollinsYounTensor