Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarProfilePatternBound

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

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

49 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarProfileBlockCoefficients7import Nonadditivity.NoncommutativeCSSkeletonDecoration8import Nonadditivity.HaarMarkedCompositions910/-! # Actual profile coefficients on a fixed compressed occurrence pattern1112Endpoint factors are actual padded profile coefficients. A middle block is13one actual ordinary or killed-return coefficient at its full decoded word.14All local norm estimates are discharged by the proved polynomial bounds.15-/1617noncomputable section18set_option backward.isDefEq.respectTransparency false19set_option linter.unusedSectionVars false20namespace Nonadditivity.HaarProfilePatternBound21open scoped BigOperators22open HaarOperatorPolynomial HaarProfileBlockCoefficients HaarProfilePadding23  HaarPathProfiles NoncommutativeCS HaarMarkedCompositions2425variable {I E : Type*} [DecidableEq I]26variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]27variable {d M : ℕ}2829/-- A literal whole-block coefficient, with the singleton-list case exposing30the zero-padded family needed at an endpoint. -/31def blockFactor (B : Polynomial (FreeGroup (Fin d)) E)32    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)33    (ordinary : ℕ → Bool) (duration : ℕ → ℕ) (forward : ℕ → I → Bool)34    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))35    (k : ℕ) (labels : List I) (choices : List (Palette d M)) : E →L[ℂ] E :=36  match labels, choices with37  | [i], [j] => paddedFamily B (ordinary k) (duration k) (forward k i) (profile i) (hsize i) j38  | _, _ => blockPolynomial B (ordinary k) (duration k) (decode k labels choices)3940theorem blockFactor_norm_le (B : Polynomial (FreeGroup (Fin d)) E)41    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)42    (ordinary : ℕ → Bool) (duration : ℕ → ℕ) (forward : ℕ → I → Bool)43    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))44    (hduration : ∀ k, 1 ≤ duration k) (k : ℕ) (labels : List I) (choices : List (Palette d M)) :45    ‖blockFactor B size profile hsize ordinary duration forward decode k labels choices‖ ≤46      ‖regular B‖ ^ duration k := by47  unfold blockFactor48  split49  · exact padded_norm_le B (ordinary k) (hduration k) _ _ _ _50  · exact block_coefficient_norm_le B (ordinary k) (hduration k) _5152end Nonadditivity.HaarProfilePatternBound5354namespace Nonadditivity.NoncommutativeCS.EndpointSkeleton55open scoped BigOperators56open HaarOperatorPolynomial HaarProfileBlockCoefficients HaarProfilePadding57  HaarPathProfiles HaarMarkedCompositions HaarProfilePatternBound5859variable {I E : Type*} [DecidableEq I]60variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]61variable {d M : ℕ}6263def singletonWeight {m n : ℕ} {a : Fin m → I} {b : Fin n → I}64    (P : NoncommutativeCS.EndpointSkeleton I a b) (size : I → ℕ) (d : ℕ) : ℝ :=65  match P with66  | .done _ => 167  | .first _ P => P.singletonWeight size d68  | .last _ P => P.singletonWeight size d69  | .middle _ P => P.singletonWeight size d70  | .singleton i P => P.singletonWeight size d * Real.sqrt (((2 * d) ^ size i : ℕ) : ℝ)7172def times {m n : ℕ} {a : Fin m → I} {b : Fin n → I}73    (P : NoncommutativeCS.EndpointSkeleton I a b) (duration : ℕ → ℕ) (k : ℕ) : List ℕ :=74  match P with75  | .done _ => []76  | .first _ P => duration k :: P.times duration (k + 1)77  | .last _ P => duration k :: P.times duration (k + 1)78  | .middle _ P => duration k :: P.times duration (k + 1)79  | .singleton _ P => duration k :: P.times duration (k + 1)8081def budget {m n : ℕ} {a : Fin m → I} {b : Fin n → I}82    (P : NoncommutativeCS.EndpointSkeleton I a b) (size : I → ℕ) (d : ℕ)83    (ρ : ℝ) (duration : ℕ → ℕ) (k : ℕ) : ℝ :=84  match P with85  | .done _ => 186  | .first _ P => P.budget size d ρ duration (k + 1) * ((duration k : ℝ) * ρ ^ duration k)87  | .last _ P => P.budget size d ρ duration (k + 1) * ((duration k : ℝ) * ρ ^ duration k)88  | .middle _ P => P.budget size d ρ duration (k + 1) * ρ ^ duration k89  | .singleton i P => P.budget size d ρ duration (k + 1) *90      (Real.sqrt (((2 * d) ^ size i : ℕ) : ℝ) * ((duration k : ℝ) * ρ ^ duration k))9192theorem singletonWeight_nonneg {m n : ℕ} {a : Fin m → I} {b : Fin n → I}93    (P : NoncommutativeCS.EndpointSkeleton I a b) (size : I → ℕ) (d : ℕ) :94    0 ≤ P.singletonWeight size d := by95  induction P <;> simp_all [singletonWeight] <;> positivity9697theorem budget_nonneg {m n : ℕ} {a : Fin m → I} {b : Fin n → I}98    (P : NoncommutativeCS.EndpointSkeleton I a b) (size : I → ℕ) (d : ℕ)99    {ρ : ℝ} (hρ : 0 ≤ ρ) (duration : ℕ → ℕ) (k : ℕ) :100    0 ≤ P.budget size d ρ duration k := by101  induction P generalizing k with102  | done => exact zero_le_one103  | first i P ih => exact mul_nonneg (ih (k + 1)) (by positivity)104  | last p P ih => exact mul_nonneg (ih (k + 1)) (by positivity)105  | middle v P ih => exact mul_nonneg (ih (k + 1)) (by positivity)106  | singleton i P ih => exact mul_nonneg (ih (k + 1)) (by positivity)107108theorem budget_eq {m n : ℕ} {a : Fin m → I} {b : Fin n → I}109    (P : NoncommutativeCS.EndpointSkeleton I a b) (size : I → ℕ) (d : ℕ)110    (ρ : ℝ) (duration : ℕ → ℕ) (k : ℕ) :111    P.budget size d ρ duration k = P.singletonWeight size d *112      (markedProduct P.markedFlags (P.times duration k) : ℝ) * ρ ^ (P.times duration k).sum := by113  induction P generalizing k <;>114    simp_all [budget, singletonWeight, times, NoncommutativeCS.EndpointSkeleton.markedFlags,115      markedProduct, pow_add, Nat.cast_mul] <;> ring116117/-- The actual row, column, singleton and middle bounds, assembled along118the compiler's precise register program. -/119theorem decorate_cost_le {m n : ℕ} {a : Fin m → I} {b : Fin n → I}120    (P : NoncommutativeCS.EndpointSkeleton I a b)121    (B : Polynomial (FreeGroup (Fin d)) E)122    (hB : ∀ g ∈ B.support, g.toWord.length ≤ 1)123    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)124    (ordinary : ℕ → Bool) (duration : ℕ → ℕ) (forward : ℕ → I → Bool)125    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))126    (hduration : ∀ k, 1 ≤ duration k) (k : ℕ) :127    (P.decorate (blockFactor B size profile hsize ordinary duration forward decode) k).compile.cost ≤128      P.budget size d ‖regular B‖ duration k := by129  induction P generalizing k with130  | done => rfl131  | first i P ih =>132      exact mul_le_mul (ih (k + 1))133        (HaarProfileBlockCoefficients.padded_endpoint_bounds B hB (ordinary k)134          (hduration k) (forward k i) (profile i) (hsize i)).1135        (Real.sqrt_nonneg _) (P.budget_nonneg size d (norm_nonneg _) duration (k + 1))136  | @last m n a b p P ih =>137      exact mul_le_mul (ih (k + 1))138        (HaarProfileBlockCoefficients.padded_endpoint_bounds B hB (ordinary k)139          (hduration k) (forward k (a p)) (profile (a p)) (hsize (a p))).2140        (Real.sqrt_nonneg _) (P.budget_nonneg size d (norm_nonneg _) duration (k + 1))141  | @middle m n a b v P ih =>142      have hm : ‖fun s : Fin m → Palette d M =>143          blockFactor B size profile hsize ordinary duration forward decode k (v.map a) (v.map s)‖ ≤144          ‖regular B‖ ^ duration k := by145        apply (pi_norm_le_iff_of_nonneg (by positivity)).mpr146        intro s147        exact blockFactor_norm_le B size profile hsize ordinary duration forward decode hduration k _ _148      exact mul_le_mul (ih (k + 1)) hm (norm_nonneg _)149        (P.budget_nonneg size d (norm_nonneg _) duration (k + 1))150  | singleton i P ih =>151      exact mul_le_mul (ih (k + 1))152        (HaarProfileBlockCoefficients.padded_singleton_bound B hB (ordinary k)153          (hduration k) (forward k i) (profile i) (hsize i))154        (norm_nonneg _) (P.budget_nonneg size d (norm_nonneg _) duration (k + 1))155156/-- The actual fixed-pattern global coefficient sum has the sharp marked157duration product. No local operator-norm estimate appears as a hypothesis. -/158theorem profile_sum_norm_le [Fintype I]159    (P : NoncommutativeCS.EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))160    (hn : P.profileLabels.Nodup) (hc : ∀ i : I, i ∈ P.profileLabels)161    (B : Polynomial (FreeGroup (Fin d)) E)162    (hB : ∀ g ∈ B.support, g.toWord.length ≤ 1)163    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)164    (ordinary : ℕ → Bool) (duration : ℕ → ℕ) (forward : ℕ → I → Bool)165    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))166    (hduration : ∀ k, 1 ≤ duration k) (k : ℕ) :167    ‖∑ σ : I → Palette d M,168      (P.blockFactors (blockFactor B size profile hsize ordinary duration forward decode) k σ).prod‖ ≤169      P.singletonWeight size d * (markedProduct P.markedFlags (P.times duration k) : ℝ) *170        ‖regular B‖ ^ (P.times duration k).sum := by171  have h := (P.block_sum_norm_le _ k hn hc).trans172    (P.decorate_cost_le B hB size profile hsize ordinary duration forward decode hduration k)173  rwa [P.budget_eq] at h174175end Nonadditivity.NoncommutativeCS.EndpointSkeleton