Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarProfileCompositionBound

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

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

15 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarProfileAssignmentBound7import Mathlib.Data.List.GetD89/-! # Sum the actual profile coefficients over positive segment durations1011The literal dependent-profile sums are bounded uniformly over every positive12composition of the moment order. Only marked endpoint durations contribute13polynomial losses, giving the repaired exponent for the compiled core pattern.14-/1516noncomputable section17set_option backward.isDefEq.respectTransparency false18set_option linter.unusedSectionVars false19namespace Nonadditivity.HaarProfileCompositionBound20open scoped BigOperators21open HaarOperatorPolynomial HaarProfilePadding HaarProfileCoefficient HaarPathProfiles22  NoncommutativeCS HaarProfilePatternBound HaarProfileAssignmentBound HaarTimeCompositions23  HaarMarkedCompositions2425def durationOf (t : List ℕ) (k : ℕ) : ℕ := t.getD k 12627theorem durationOf_pos {t : List ℕ} (ht : ∀ a ∈ t, 0 < a) (k : ℕ) :28    1 ≤ durationOf t k := by29  unfold durationOf30  by_cases hk : k < t.length31  · rw [List.getD_eq_getElem t 1 hk]32    exact ht _ (List.getElem_mem hk)33  · rw [List.getD_eq_default t 1 (by omega)]3435variable {I : Type*}3637theorem ofFn_duration_succ (duration : ℕ → ℕ) (r k : ℕ) :38    List.ofFn (fun i : Fin (r + 1) => duration (k + i.val)) =39      duration k :: List.ofFn (fun i : Fin r => duration ((k + 1) + i.val)) := by40  rw [List.ofFn_succ]41  simp only [Fin.val_zero, Fin.val_succ, Nat.add_zero]42  congr 143  apply congrArg List.ofFn44  funext i45  congr 146  omega4748theorem times_eq_ofFn {m n : ℕ} {a : Fin m → I} {b : Fin n → I}49    (P : EndpointSkeleton I a b) (duration : ℕ → ℕ) (k : ℕ) :50    P.times duration k = List.ofFn (fun i : Fin P.markedFlags.length => duration (k + i.val)) := by51  induction P generalizing k <;>52    simp_all [EndpointSkeleton.times, EndpointSkeleton.markedFlags] <;>53    funext i <;> congr 1 <;> omega5455theorem times_durationOf {m n : ℕ} {a : Fin m → I} {b : Fin n → I}56    (P : EndpointSkeleton I a b) (t : List ℕ) (ht : t.length = P.markedFlags.length) :57    P.times (durationOf t) 0 = t := by58  rw [times_eq_ofFn]59  simp only [Nat.zero_add, durationOf]60  rw [← ht]61  convert (List.ofFn_getElem (xs := t)) using 162  congr 163  funext i64  exact List.getD_eq_getElem t 1 i.isLt6566variable {E : Type*} [DecidableEq I] [Fintype I]67variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]68variable {d M : ℕ}6970/-- The literal operator obtained from the actual dependent profile choices71and one list of positive durations. -/72def compositionCoefficient73    (P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))74    (B : Polynomial (FreeGroup (Fin d)) E)75    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)76    (ordinary : ℕ → Bool) (forward : ℕ → I → Bool)77    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d)) (t : List ℕ) : E →L[ℂ] E :=78  ∑ σ : ∀ i, Words d (size i) (profile i),79    (P.blockFactors (blockFactor B size profile hsize ordinary (durationOf t) forward decode) 080      (embedAssignment size profile hsize σ)).prod8182theorem compositionCoefficient_norm_le83    (P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))84    (hn : P.profileLabels.Nodup) (hc : ∀ i : I, i ∈ P.profileLabels)85    (hblocks : 1 ≤ P.markedFlags.length)86    (B : Polynomial (FreeGroup (Fin d)) E)87    (hB : ∀ g ∈ B.support, g.toWord.length ≤ 1)88    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)89    (ordinary : ℕ → Bool) (forward : ℕ → I → Bool)90    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))91    {q : ℕ} {t : List ℕ} (ht : t ∈ compositions (P.markedFlags.length - 1) q) :92    ‖compositionCoefficient P B size profile hsize ordinary forward decode t‖ ≤93      P.singletonWeight size d * (markedProduct P.markedFlags t : ℝ) * ‖regular B‖ ^ q := by94  have hl : t.length = P.markedFlags.length := by95    simpa only [Nat.sub_add_cancel hblocks] using length_of_mem ht96  have h := dependent_profile_sum_norm_le P hn hc B hB size profile hsize ordinary (durationOf t)97    forward decode (durationOf_pos (positive_of_mem ht)) 098  rw [times_durationOf P t hl, sum_of_mem ht] at h99  exact h100101/-- The actual grouped coefficient sum over all positive segment durations102has the repaired BC exponent. Every operator bound is proved upstream for103the literal ordinary/non-returning polynomial coefficients. -/104theorem composition_sum_norm_le105    (P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))106    (hP : P.Compressed) (hn : P.profileLabels.Nodup) (hc : ∀ i : I, i ∈ P.profileLabels)107    (hblocks : 1 ≤ P.markedFlags.length)108    (B : Polynomial (FreeGroup (Fin d)) E)109    (hB : ∀ g ∈ B.support, g.toWord.length ≤ 1)110    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)111    (ordinary : ℕ → Bool) (forward : ℕ → I → Bool)112    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))113    (q : ℕ) (hq : 1 ≤ q) :114    ‖∑ t ∈ compositions (P.markedFlags.length - 1) q,115      compositionCoefficient P B size profile hsize ordinary forward decode t‖ ≤116      P.singletonWeight size d * (q : ℝ) ^ (6 * Fintype.card I - 1) * ‖regular B‖ ^ q := by117  have hexp := P.coefficient_exponent_le hP118  rw [P.profileLabels_length_eq_card hn hc] at hexp119  have hnat := (marked_composition_sum_le q hq P.markedFlags).trans120    (Nat.pow_le_pow_right hq hexp)121  have hs : (∑ t ∈ compositions (P.markedFlags.length - 1) q,122      (markedProduct P.markedFlags t : ℝ)) ≤ (q : ℝ) ^ (6 * Fintype.card I - 1) := by123    exact_mod_cast hnat124  calc125    _ ≤ ∑ t ∈ compositions (P.markedFlags.length - 1) q,126        ‖compositionCoefficient P B size profile hsize ordinary forward decode t‖ :=127      norm_sum_le _ _128    _ ≤ ∑ t ∈ compositions (P.markedFlags.length - 1) q,129        P.singletonWeight size d * (markedProduct P.markedFlags t : ℝ) * ‖regular B‖ ^ q := by130      exact Finset.sum_le_sum fun t ht => compositionCoefficient_norm_le P hn hc hblocks131        B hB size profile hsize ordinary forward decode ht132    _ = P.singletonWeight size d *133        (∑ t ∈ compositions (P.markedFlags.length - 1) q, (markedProduct P.markedFlags t : ℝ)) *134          ‖regular B‖ ^ q := by rw [← Finset.sum_mul, ← Finset.mul_sum]135    _ ≤ _ := mul_le_mul_of_nonneg_right136      (mul_le_mul_of_nonneg_left hs (P.singletonWeight_nonneg size d)) (by positivity)137138end Nonadditivity.HaarProfileCompositionBound