Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.FreeCreation

Download original .lean · View on GitHub · Jump to source

Direct imports

  • Nonadditivity.FreeModel
  • Mathlib.GroupTheory.FreeGroup.Reduce dependency
  • Mathlib.Analysis.InnerProductSpace.Adjoint dependency

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

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

43 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 Mathlib.GroupTheory.FreeGroup.Reduce8import Mathlib.Analysis.InnerProductSpace.Adjoint910/-! # Concrete reduced-word projections and free creation operators1112These operators act on the actual square-summable functions used by FreeModel.13They are the cancellation decomposition underlying the length-two estimate.14-/1516noncomputable section1718namespace Nonadditivity.FreeCreation1920open Nonadditivity.FreeModel21open scoped BigOperators InnerProductSpace2223attribute [local instance] Classical.propDecidable2425section Mask2627variable {G : Type*}2829/-- An actual coordinate projection on the regular Hilbert space. -/30def maskFunction (P : G → Prop) (f : Hilbert G) : Hilbert G :=31  ⟨fun x => if P x then f x else 0, by32    classical33    apply memℓp_gen34    apply Summable.of_nonneg_of_le (fun _ => Real.rpow_nonneg (norm_nonneg _) _)35      (fun x => ?_) (f.property.summable (by norm_num))36    split_ifs <;> simp⟩3738@[simp] theorem maskFunction_apply (P : G → Prop) (f : Hilbert G) (x : G) :39    maskFunction P f x = if P x then f x else 0 := rfl4041theorem maskFunction_norm_le (P : G → Prop) (f : Hilbert G) :42    ‖maskFunction P f‖ ≤ ‖f‖ := by43  apply lp.norm_le_of_tsum_le (by norm_num) (norm_nonneg f)44  rw [lp.norm_rpow_eq_tsum (by norm_num)]45  apply Summable.tsum_le_tsum46    (fun x => ?_) ((maskFunction P f).property.summable (by norm_num))47    (f.property.summable (by norm_num))48  classical49  simp only [maskFunction_apply]50  split_ifs <;> simp5152def maskLinear (P : G → Prop) : Hilbert G →ₗ[ℂ] Hilbert G where53  toFun := maskFunction P54  map_add' := by55    intro f h56    ext x57    classical58    simp only [maskFunction_apply, lp.coeFn_add, Pi.add_apply]59    split_ifs <;> simp60  map_smul' := by61    intro c f62    ext x63    classical64    simp only [maskFunction_apply, lp.coeFn_smul, Pi.smul_apply]65    split_ifs <;> simp6667/-- The coordinate mask is a genuine bounded linear projection. -/68def mask (P : G → Prop) : Hilbert G →L[ℂ] Hilbert G :=69  (maskLinear P).mkContinuous 1 (by70    intro f71    simpa [maskLinear] using maskFunction_norm_le P f)7273@[simp] theorem mask_apply (P : G → Prop) (f : Hilbert G) (x : G) :74    mask P f x = if P x then f x else 0 := rfl7576theorem mask_norm_le (P : G → Prop) (f : Hilbert G) : ‖mask P f‖ ≤ ‖f‖ :=77  maskFunction_norm_le P f7879theorem mask_adjoint (P : G → Prop) : (mask P).adjoint = mask P := by80  apply ContinuousLinearMap.ext81  intro f82  apply ext_inner_right ℂ83  intro h84  rw [ContinuousLinearMap.adjoint_inner_left]85  change (∑' x, inner ℂ (f x) (mask P h x)) =86    ∑' x, inner ℂ (mask P f x) (h x)87  apply tsum_congr88  intro x89  classical90  simp only [mask_apply]91  split_ifs <;> simp9293theorem mask_add_complement (P : G → Prop) :94    mask P + mask (fun x => ¬ P x) = ContinuousLinearMap.id ℂ (Hilbert G) := by95  ext f x96  classical97  simp only [ContinuousLinearMap.add_apply, lp.coeFn_add, Pi.add_apply,98    mask_apply, ContinuousLinearMap.id_apply]99  by_cases h : P x <;> simp [h]100101end Mask102103section Word104105variable {α : Type*} [DecidableEq α]106107abbrev Letter (α : Type*) := α × Bool108109def flip (s : Letter α) : Letter α := (s.1, !s.2)110111omit [DecidableEq α] in112@[simp] theorem flip_flip (s : Letter α) : flip (flip s) = s := by113  rcases s with ⟨a,b⟩114  cases b <;> rfl115116def letter (s : Letter α) : FreeGroup α :=117  if s.2 then FreeGroup.of s.1 else (FreeGroup.of s.1)⁻¹118119omit [DecidableEq α] in120@[simp] theorem letter_flip (s : Letter α) : letter (flip s) = (letter s)⁻¹ := by121  rcases s with ⟨a,b⟩122  cases b <;> simp [letter, flip]123124@[simp] theorem letter_toWord (s : Letter α) : (letter s).toWord = [s] := by125  rcases s with ⟨a,b⟩126  cases b <;> simp [letter, FreeGroup.invRev]127128/-- Words whose reduced first letter is the specified letter. -/129def Cone (s : Letter α) (x : FreeGroup α) : Prop := ∃ t, x.toWord = s :: t130131theorem cone_disjoint {s t : Letter α} (hne : s ≠ t) (x : FreeGroup α) :132    ¬ (Cone s x ∧ Cone t x) := by133  rintro ⟨⟨u,hu⟩, ⟨v,hv⟩⟩134  exact hne (List.cons.inj (hu.symm.trans hv)).1135136theorem cone_shift_iff (s : Letter α) (x : FreeGroup α) :137    Cone s (letter s * x) ↔ ¬ Cone (flip s) x := by138  have hword : (letter s * x).toWord = FreeGroup.reduce (s :: x.toWord) := by139    rw [FreeGroup.toWord_mul, letter_toWord]140    rfl141  cases hx : x.toWord with142  | nil =>143    simp [Cone, hword, hx, FreeGroup.reduce]144  | cons t tail =>145    have hred : FreeGroup.reduce (t :: tail) = t :: tail := by146      rw [← hx]147      exact FreeGroup.reduce_toWord x148    unfold Cone149    rw [hword, FreeGroup.reduce.cons, hx, hred]150    by_cases he : s.1 = t.1 ∧ s.2 = !t.2151    · have ht : t = flip s := by152        rcases s with ⟨a,b⟩153        rcases t with ⟨c,d⟩154        cases b <;> cases d <;> simp_all [flip]155      simp only [he]156      have hn : ¬ ∃ u, tail = s :: u := by157        rintro ⟨u, rfl⟩158        have hr := FreeGroup.isReduced_toWord (x := x)159        rw [hx, FreeGroup.isReduced_cons_cons] at hr160        have hb := hr.1 (by simp [ht, flip])161        have hb' : (flip s).2 = s.2 := by simpa [ht] using hb162        rcases s with ⟨a,b⟩163        cases b <;> simp [flip] at hb'164      simp [ht, hn]165    · have ht : t ≠ flip s := by166        intro ht167        apply he168        rw [ht]169        rcases s with ⟨a,b⟩170        cases b <;> simp [flip]171      simp [he, ht]172173end Word174175section Operators176177variable {α : Type*} [DecidableEq α]178179theorem leftRegular_adjoint {G : Type*} [Group G] (g : G) :180    (leftRegular g).adjoint = leftRegular g⁻¹ := by181  change ContinuousLinearMap.adjoint182    ((reindexIsometry (Equiv.mulLeft g⁻¹)) : Hilbert G →L[ℂ] Hilbert G) = _183  rw [LinearIsometryEquiv.adjoint_eq_symm]184  ext f x185  change f ((Equiv.mulLeft g⁻¹).symm x) = f ((g⁻¹)⁻¹ * x)186  simp187188theorem leftRegular_inner {G : Type*} [Group G] (g : G) (f h : Hilbert G) :189    inner ℂ (leftRegular g f) (leftRegular g h) = inner ℂ f h :=190  (reindexIsometry (Equiv.mulLeft g⁻¹)).inner_map_map f h191192/-- A letter creation shift, retaining only words where the new letter does193not cancel. Its range consists of words with that reduced first letter. -/194def creation (s : Letter α) : Hilbert (FreeGroup α) →L[ℂ] Hilbert (FreeGroup α) :=195  (mask (Cone s)).comp (leftRegular (letter s))196197@[simp] theorem creation_apply (s : Letter α) (f : Hilbert (FreeGroup α))198    (x : FreeGroup α) :199    creation s f x = if Cone s x then f ((letter s)⁻¹ * x) else 0 := rfl200201/-- Creation is equally the full shift restricted to its noncancelling input cone. -/202theorem creation_domain (s : Letter α) :203    creation s = (leftRegular (letter s)).comp (mask (fun x => ¬ Cone (flip s) x)) := by204  ext f x205  have hc : Cone s x ↔ ¬ Cone (flip s) ((letter s)⁻¹ * x) := by206    simpa [mul_assoc] using cone_shift_iff s ((letter s)⁻¹ * x)207  simp [creation_apply, ContinuousLinearMap.comp_apply, leftRegular_apply, mask_apply, hc]208209theorem creation_adjoint (s : Letter α) :210    (creation s).adjoint = (leftRegular (letter s)⁻¹).comp (mask (Cone s)) := by211  rw [creation, ContinuousLinearMap.adjoint_comp, mask_adjoint, leftRegular_adjoint]212213/-- The actual regular generator is the sum of creation and inverse annihilation. -/214theorem leftRegular_letter_decomposition (s : Letter α) :215    leftRegular (letter s) = creation s + (creation (flip s)).adjoint := by216  rw [creation_domain, creation_adjoint, letter_flip, inv_inv]217  ext f x218  simp only [ContinuousLinearMap.add_apply, ContinuousLinearMap.comp_apply,219    lp.coeFn_add, Pi.add_apply, leftRegular_apply, mask_apply]220  by_cases hx : Cone (flip s) ((letter s)⁻¹ * x) <;> simp [hx]221222theorem creation_norm_le (s : Letter α) (f : Hilbert (FreeGroup α)) :223    ‖creation s f‖ ≤ ‖f‖ :=224  (mask_norm_le (Cone s) (leftRegular (letter s) f)).trans_eq225    (leftRegular_preserves_norm (letter s) f)226227/-- Different first-letter creation ranges are orthogonal. -/228theorem creation_inner_zero {s t : Letter α} (hne : s ≠ t)229    (f h : Hilbert (FreeGroup α)) : inner ℂ (creation s f) (creation t h) = 0 := by230  change (∑' x, inner ℂ (creation s f x) (creation t h x)) = 0231  have hz : ∀ x, inner ℂ (creation s f x) (creation t h x) = 0 := by232    intro x233    by_cases hs : Cone s x234    · have ht : ¬ Cone t x := fun ht => cone_disjoint hne x ⟨hs,ht⟩235      simp [creation_apply, ht]236    · simp [creation_apply, hs]237  simp_rw [hz]238  exact tsum_zero239240/-- The middle cancellation term vanishes for different letters. -/241theorem creation_adjoint_comp_zero {s t : Letter α} (hne : s ≠ t) :242    (creation s).adjoint.comp (creation t) = 0 := by243  rw [creation_adjoint]244  ext f x245  simp only [ContinuousLinearMap.comp_apply, leftRegular_apply, mask_apply,246    creation_apply, ContinuousLinearMap.zero_apply, lp.coeFn_zero, Pi.zero_apply]247  by_cases hs : Cone s (letter s * x)248  · have ht : ¬ Cone t (letter s * x) := fun ht => cone_disjoint hne _ ⟨hs,ht⟩249    simp [hs, ht]250  · simp [hs]251252/-- On another first-letter range, creation has no cancellation and is a full isometry. -/253theorem creation_comp_creation_eq_shift {s t : Letter α} (hne : flip s ≠ t) :254    (creation s).comp (creation t) = (leftRegular (letter s)).comp (creation t) := by255  rw [creation_domain]256  ext f x257  simp only [ContinuousLinearMap.comp_apply, leftRegular_apply, mask_apply, creation_apply]258  by_cases hs : Cone (flip s) ((letter s)⁻¹ * x)259  · have ht : ¬ Cone t ((letter s)⁻¹ * x) := fun ht => cone_disjoint hne _ ⟨hs,ht⟩260    simp [hs, ht]261  · simp [hs]262263/-- A reduced length-two shift has exactly three cancellation components. -/264theorem length_two_decomposition {s t : Letter α} (hne : flip s ≠ t) :265    leftRegular (letter s * letter t) =266      (creation s).comp (creation t) +267      (creation s).comp (creation (flip t)).adjoint +268      (creation (flip s)).adjoint.comp (creation (flip t)).adjoint := by269  rw [leftRegular_mul, leftRegular_letter_decomposition s,270    leftRegular_letter_decomposition t]271  rw [ContinuousLinearMap.add_comp, ContinuousLinearMap.comp_add,272    ContinuousLinearMap.comp_add, creation_adjoint_comp_zero hne, zero_add]273274end Operators275276end Nonadditivity.FreeCreation