Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarDecodedCoefficientBound

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

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

6 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarSkeletonSegmentation7import Nonadditivity.HaarNonbacktrackingListSegmentation89/-! # The literal coefficient sum over independent profile words1011This final analytic bridge identifies the actual group-polynomial coefficient12with the compressed register expression and applies its proved norm estimate.13The remaining inputs concern only which reduced group words the blocks decode.14-/1516noncomputable section17set_option backward.isDefEq.respectTransparency false18namespace Nonadditivity.HaarDecodedCoefficientBound19open scoped BigOperators20open HaarOperatorPolynomial HaarProfileBlockCoefficients HaarNonbacktracking21  NoncommutativeCS HaarProfileCompositionBound HaarProfileDecodedCoefficients22  HaarProfilePatternBound HaarProfileAssignmentBound HaarProfilePadding23  HaarProfileCoefficient HaarPathProfiles HaarTimeCompositions HaarSkeletonSegmentation2425variable {I E : Type*} [DecidableEq I] [Fintype I]26variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]27variable {d M : ℕ}2829theorem blockFactors_segmentedListProduct30    (P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))31    (hblocks : 1 ≤ P.markedFlags.length)32    (B : Polynomial (FreeGroup (Fin d)) E)33    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)34    (forward : ℕ → I → Bool)35    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))36    (σ : ∀ i, Words d (size i) (profile i))37    (hdecode : ∀ k i, decode k [i] [embedAssignment size profile hsize σ i] =38      orientedWord (forward k i) (σ i))39    (t : List ℕ) (ht : t.length = P.markedFlags.length) :40    (P.blockFactors41      (blockFactor B size profile hsize (fun k => decide (k = 0)) (durationOf t) forward decode)42      0 (embedAssignment size profile hsize σ)).prod =43      segmentedListProduct B (scanWords P decode (embedAssignment size profile hsize σ)).reverse44        t.reverse := by45  rw [blockFactors_valid P B size profile hsize (fun k => decide (k = 0))46    (durationOf t) forward decode σ hdecode 0]47  have hne : (scanWords P decode (embedAssignment size profile hsize σ)).reverse ≠ [] := by48    intro he49    have hl := congrArg List.length he50    simp only [List.length_reverse, length_scanWords, List.length_nil] at hl51    omega52  generalize he : (scanWords P decode (embedAssignment size profile hsize σ)).reverse = gs53  cases gs with54  | nil => exact False.elim (hne he)55  | cons g gs =>56      have h := raw_blockFactors_segmentedProduct P B (durationOf t) decode57        (embedAssignment size profile hsize σ) g gs he58      rw [times_durationOf P t ht] at h59      exact h6061theorem coefficient_eq_composition_sum62    (P : EndpointSkeleton I (Fin.elim0 : Fin 0 → I) (Fin.elim0 : Fin 0 → I))63    (hblocks : 1 ≤ P.markedFlags.length)64    (B : Polynomial (FreeGroup (Fin d)) E)65    (hB : ∀ g ∈ B.support, g.toWord.length ≤ 1)66    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)67    (forward : ℕ → I → Bool)68    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))69    (σ : ∀ i, Words d (size i) (profile i))70    (hdecode : ∀ k i, decode k [i] [embedAssignment size profile hsize σ i] =71      orientedWord (forward k i) (σ i))72    (target : FreeGroup (Fin d))73    (htarget : (scanWords P decode (embedAssignment size profile hsize σ)).reverse.prod = target)74    (hne : ∀ g ∈ (scanWords P decode (embedAssignment size profile hsize σ)).reverse, g ≠ 1)75    (hred : FreeGroup.IsReduced76      ((scanWords P decode (embedAssignment size profile hsize σ)).reverse.flatMap FreeGroup.toWord))77    (q : ℕ) :78    (B ^ q) target = ∑ t ∈ compositions (P.markedFlags.length - 1) q,79      (P.blockFactors80        (blockFactor B size profile hsize (fun k => decide (k = 0)) (durationOf t) forward decode)81        0 (embedAssignment size profile hsize σ)).prod := by82  let gs := (scanWords P decode (embedAssignment size profile hsize σ)).reverse83  have hgs : gs ≠ [] := by84    intro he85    have hl : gs.length = P.markedFlags.length := by simp [gs]86    simp [he] at hl87    omega88  rw [← htarget]89  change (B ^ q) gs.prod = _90  rw [coefficient_factorization_list B hB gs hgs hne hred q]91  have hl : gs.length = P.markedFlags.length := by simp [gs]92  rw [hl, ← sum_reverse (P.markedFlags.length - 1) q (segmentedListProduct B gs)]93  apply Finset.sum_congr rfl94  intro t ht95  have htlen : t.length = P.markedFlags.length := by96    simpa only [Nat.sub_add_cancel hblocks] using length_of_mem ht97  exact (blockFactors_segmentedListProduct P hblocks B size profile hsize forward decode σ98    hdecode t htlen).symm99100/-- The sum is the literal coefficient of the original word for each101independent dependent-profile assignment. No operator-norm estimate, kernel102identity or factorization is assumed: all three are proved in the preceding103modules and used here. -/104theorem decoded_coefficient_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    (forward : ℕ → I → Bool)112    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))113    (hdecode : ∀ (σ : ∀ i, Words d (size i) (profile i)) k i,114      decode k [i] [embedAssignment size profile hsize σ i] = orientedWord (forward k i) (σ i))115    (q : ℕ) (hq : 1 ≤ q)116    (target : (∀ i, Words d (size i) (profile i)) → FreeGroup (Fin d))117    (htarget : ∀ σ, (scanWords P decode (embedAssignment size profile hsize σ)).reverse.prod = target σ)118    (hne : ∀ σ g, g ∈ (scanWords P decode (embedAssignment size profile hsize σ)).reverse → g ≠ 1)119    (hred : ∀ σ, FreeGroup.IsReduced120      ((scanWords P decode (embedAssignment size profile hsize σ)).reverse.flatMap FreeGroup.toWord)) :121    ‖∑ σ, (B ^ q) (target σ)‖ ≤122      P.singletonWeight size d * (q : ℝ) ^ (6 * Fintype.card I - 1) * ‖regular B‖ ^ q := by123  have he : (∑ σ, (B ^ q) (target σ)) =124      ∑ t ∈ compositions (P.markedFlags.length - 1) q,125        compositionCoefficient P B size profile hsize (fun k => decide (k = 0)) forward decode t := by126    simp only [compositionCoefficient]127    rw [Finset.sum_comm]128    apply Finset.sum_congr rfl129    intro σ _130    exact coefficient_eq_composition_sum P hblocks B hB size profile hsize forward decode σ131      (hdecode σ) (target σ) (htarget σ) (hne σ) (hred σ) q132  rw [he]133  exact composition_sum_norm_le P hP hn hc hblocks B hB size profile hsize134    (fun k => decide (k = 0)) forward decode q hq135136end Nonadditivity.HaarDecodedCoefficientBound