Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarBranchContractions

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

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

139 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarBranchCoefficients78/-! # Constrained sums of actual non-returning coefficients910A schedule records when a chain label is first seen, retained, and last seen.11Its evaluation is the literal finite path sum, including crossing pairs.12Every operator bound is derived from the original regular operator.13-/14noncomputable section15set_option backward.isDefEq.respectTransparency false16namespace Nonadditivity.HaarNonbacktracking17open scoped BigOperators InnerProduct18open NoncommutativeCS1920/-- Register operations with concrete first-letter and endpoint word data. -/21inductive BranchPlan (G J : Type*) : ℕ → ℕ → Type _22  | identity (n : ℕ) : BranchPlan G J n n23  | openReg {n : ℕ} (p : Fin (n+1)) (g : G) (r : ℕ)24      (w : J → G) (hw : Function.Injective w) : BranchPlan G J n (n+1)25  | closeReg {n : ℕ} (p : Fin (n+1)) (g : G) (r : ℕ)26      (w : J → G) (hw : Function.Injective w) : BranchPlan G J (n+1) n27  | middle (n : ℕ) (g : G) (r : ℕ) (w : (Fin n → J) → G) : BranchPlan G J n n28  | singleton (n : ℕ) (g : G) (r : ℕ) (w : J → G)29      (hw : Function.Injective w) : BranchPlan G J n n30  | comp {l m n : ℕ} (Q : BranchPlan G J m n) (P : BranchPlan G J l m) :31      BranchPlan G J l n3233namespace BranchPlan34variable {G J : Type*} {m n : ℕ}3536def order {m n : ℕ} : BranchPlan G J m n → ℕ37  | .identity _ => 038  | .openReg _ _ r _ _ => r+139  | .closeReg _ _ r _ _ => r+140  | .middle _ _ r _ => r+141  | .singleton _ _ r _ _ => r+142  | .comp Q P => Q.order + P.order4344def marked {m n : ℕ} : BranchPlan G J m n → ℕ45  | .identity _ => 046  | .openReg _ _ _ _ _ => 147  | .closeReg _ _ _ _ _ => 148  | .middle _ _ _ _ => 049  | .singleton _ _ _ _ _ => 150  | .comp Q P => Q.marked + P.marked5152def singletons {m n : ℕ} : BranchPlan G J m n → ℕ53  | .identity _ => 054  | .openReg _ _ _ _ _ => 055  | .closeReg _ _ _ _ _ => 056  | .middle _ _ _ _ => 057  | .singleton _ _ _ _ _ => 158  | .comp Q P => Q.singletons + P.singletons5960def timeWeight {m n : ℕ} : BranchPlan G J m n → ℕ61  | .identity _ => 162  | .openReg _ _ r _ _ => r+163  | .closeReg _ _ r _ _ => r+164  | .middle _ _ _ _ => 165  | .singleton _ _ r _ _ => r+166  | .comp Q P => Q.timeWeight * P.timeWeight6768/-- Only marked first/last visits incur time factors. -/69theorem timeWeight_le (P : BranchPlan G J m n) (L : ℕ) (hL : P.order ≤ L) :70    P.timeWeight ≤ L^P.marked := by71  induction P with72  | identity => simp [timeWeight, marked]73  | openReg p g r w hw => simpa [timeWeight, marked] using hL74  | closeReg p g r w hw => simpa [timeWeight, marked] using hL75  | middle => simp [timeWeight, marked]76  | singleton n g r w hw => simpa [timeWeight, marked] using hL77  | comp Q P hQ hP =>78    have hq : Q.order ≤ L := by change Q.order + P.order ≤ L at hL; omega79    have hp : P.order ≤ L := by change Q.order + P.order ≤ L at hL; omega80    simpa only [timeWeight, marked, pow_add] using Nat.mul_le_mul (hQ hq) (hP hp)8182variable {E : Type*} [Group G] [DecidableEq G] [Fintype J] [DecidableEq J]83variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]8485def realize {m n : ℕ} (A : H G E →L[ℂ] H G E) :86    BranchPlan G J m n → Contraction ℂ E J m n87  | .identity n => .identity n88  | .openReg p g r w _ => .openReg p (fun j => wordCoefficient (branch A g r) (w j))89  | .closeReg p g r w _ => .closeReg p (fun j => wordCoefficient (branch A g r) (w j))90  | .middle n g r w => .diagonalReg n (fun s => wordCoefficient (branch A g r) (w s))91  | .singleton n g r w _ => .diagonalReg n (fun _ => ∑ j, wordCoefficient (branch A g r) (w j))92  | .comp Q P => (realize A Q).comp (realize A P)9394omit [DecidableEq J] in95theorem cost_le {A : H G E →L[ℂ] H G E} (hA : IsStationary A)96    (P : BranchPlan G J m n) :97    (P.realize A).cost ≤ (P.timeWeight:ℝ) * ‖A‖^P.order *98      (Real.sqrt (Fintype.card J:ℝ))^P.singletons := by99  induction P with100  | identity n => simp [realize, Contraction.cost, timeWeight, order, singletons]101  | openReg p g r w hw =>102    simp only [realize, Contraction.cost, timeWeight, order, singletons, pow_zero, mul_one]103    rw [← HaarCoefficientBounds.column_norm_sq,104      Real.sqrt_sq (norm_nonneg (column (fun j => wordCoefficient (branch A g r) (w j))))]105    apply (branch_column_norm_le A g r w hw).trans106    have hp : (1:ℝ) ≤ (r+1:ℕ) := by exact_mod_cast (Nat.succ_pos r)107    nlinarith [pow_nonneg (norm_nonneg A) (r+1)]108  | closeReg p g r w hw =>109    simp only [realize, Contraction.cost, timeWeight, order, singletons, pow_zero, mul_one]110    rw [← HaarCoefficientBounds.row_norm_sq,111      Real.sqrt_sq (norm_nonneg (row (fun j => wordCoefficient (branch A g r) (w j))))]112    exact branch_row_norm_le hA g r w hw113  | middle n g r w =>114    simp only [realize, Contraction.cost, timeWeight, order, singletons, pow_zero,115      Nat.cast_one, one_mul, mul_one]116    apply (pi_norm_le_iff_of_nonneg (by positivity)).mpr117    intro s118    exact branch_word_norm_le A g r (w s)119  | singleton n g r w hw =>120    simp only [realize, Contraction.cost, timeWeight, order, singletons, pow_one]121    apply (pi_norm_le_iff_of_nonneg (by positivity)).mpr122    intro s123    apply (branch_singleton_norm_le A g r w hw).trans124    have hp : (1:ℝ) ≤ (r+1:ℕ) := by exact_mod_cast (Nat.succ_pos r)125    have hb : 0 ≤ Real.sqrt (Fintype.card J:ℝ) * ‖A‖^(r+1) := by positivity126    nlinarith127  | comp Q P hQ hP =>128    apply (mul_le_mul hQ hP (Contraction.cost_nonneg _) (by positivity)).trans_eq129    simp only [timeWeight, order, singletons, Nat.cast_mul, pow_add]130    ring131132/-- Bound for the fully expanded constrained sum of actual branch coefficients.133The only premise on the operator is its proved translation invariance. -/134theorem pathSum_norm_le {A : H G E →L[ℂ] H G E} (hA : IsStationary A)135    (P : BranchPlan G J m n) (s : Fin n → J) (t : Fin m → J)136    (L : ℕ) (hL : P.order ≤ L) :137    ‖(P.realize A).pathSum s t‖ ≤ (L:ℝ)^P.marked * ‖A‖^P.order *138      (Real.sqrt (Fintype.card J:ℝ))^P.singletons := by139  apply ((P.realize A).pathSum_norm_le s t).trans ((cost_le hA P).trans _)140  have hw : (P.timeWeight:ℝ) ≤ (L:ℝ)^P.marked := by exact_mod_cast timeWeight_le P L hL141  gcongr142143/-- Instantiation with a genuine finite regular polynomial; no stationarity144or coefficient-norm certificate is left as a hypothesis. -/145theorem regular_pathSum_norm_le {I : Type*} [Fintype I]146    (v : I → G) (a : I → E →L[ℂ] E) (P : BranchPlan G J m n)147    (s : Fin n → J) (t : Fin m → J) (L : ℕ) (hL : P.order ≤ L) :148    ‖(P.realize (MatrixRegularRestriction.coefficientPolynomial v a)).pathSum s t‖ ≤149      (L:ℝ)^P.marked * ‖MatrixRegularRestriction.coefficientPolynomial v a‖^P.order *150        (Real.sqrt (Fintype.card J:ℝ))^P.singletons :=151  pathSum_norm_le (stationary_regularPolynomial v a) P s t L hL152153end BranchPlan154end Nonadditivity.HaarNonbacktracking