Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarProfileDecodedCoefficients

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

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

5 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarProfileAssignmentBound78/-! # Eliminate profile padding on valid decoded assignments910On the actual dependent profile palettes the block factory is exactly the11ordinary/non-returning coefficient at the decoded whole group word. The only12decoder condition is its defining value on a singleton segment.13-/1415noncomputable section16set_option backward.isDefEq.respectTransparency false17set_option linter.unusedSectionVars false18namespace Nonadditivity.HaarProfileDecodedCoefficients19open scoped BigOperators20open HaarOperatorPolynomial HaarProfileBlockCoefficients HaarProfilePadding21  HaarProfileCoefficient HaarPathProfiles NoncommutativeCS HaarProfilePatternBound22  HaarProfileAssignmentBound2324variable {I E : Type*} [DecidableEq I]25variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]26variable {d M : ℕ}2728/-- Zero padding disappears on every valid profile assignment. -/29theorem blockFactor_valid30    (B : Polynomial (FreeGroup (Fin d)) E)31    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)32    (ordinary : ℕ → Bool) (duration : ℕ → ℕ) (forward : ℕ → I → Bool)33    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))34    (σ : ∀ i, Words d (size i) (profile i)) (k : ℕ)35    (hdecode : ∀ i, decode k [i] [embedAssignment size profile hsize σ i] =36      orientedWord (forward k i) (σ i)) (labels : List I) :37    blockFactor B size profile hsize ordinary duration forward decode k labels38        (labels.map (embedAssignment size profile hsize σ)) =39      blockPolynomial B (ordinary k) (duration k)40        (decode k labels (labels.map (embedAssignment size profile hsize σ))) := by41  cases labels with42  | nil => rfl43  | cons i l =>44      cases l with45      | nil =>46          simp only [List.map_cons, List.map_nil, blockFactor, paddedFamily, embedAssignment]47          rw [(embedWords_injective (p := profile i) (hsize i)).extend_apply]48          exact congrArg (blockPolynomial B (ordinary k) (duration k)) (hdecode i).symm49      | cons j l => rfl5051/-- Factor-list congruence only needs equality at the actual named assignment,52not equality of the coefficient factories on malformed profile lists. -/53theorem blockFactors_congr_on_assignment {J : Type*} {m n : ℕ}54    {a : Fin m → I} {b : Fin n → I} (P : EndpointSkeleton I a b)55    (A C : ℕ → List I → List J → E →L[ℂ] E) (σ : I → J)56    (h : ∀ k labels, A k labels (labels.map σ) = C k labels (labels.map σ)) (k : ℕ) :57    P.blockFactors A k σ = P.blockFactors C k σ := by58  induction P generalizing k with59  | done => rfl60  | first i P ih =>61      simpa [EndpointSkeleton.blockFactors, ih] using62        congrArg (fun X => P.blockFactors C (k + 1) σ ++ [X]) (h k [i])63  | @last m n a b p P ih =>64      simpa [EndpointSkeleton.blockFactors, ih] using65        congrArg (fun X => P.blockFactors C (k + 1) σ ++ [X]) (h k [a p])66  | @middle m n a b v P ih =>67      simpa [EndpointSkeleton.blockFactors, ih, List.map_map] using68        congrArg (fun X => P.blockFactors C (k + 1) σ ++ [X]) (h k (v.map a))69  | singleton i P ih =>70      simpa [EndpointSkeleton.blockFactors, ih] using71        congrArg (fun X => P.blockFactors C (k + 1) σ ++ [X]) (h k [i])7273/-- The entire literal ordered product is the corresponding product of74actual whole-word coefficients after decoding the valid profile assignment. -/75theorem blockFactors_valid {m n : ℕ} {a : Fin m → I} {b : Fin n → I}76    (P : EndpointSkeleton I a b)77    (B : Polynomial (FreeGroup (Fin d)) E)78    (size : I → ℕ) (profile : I → Profile (Color d)) (hsize : ∀ i, size i ≤ M)79    (ordinary : ℕ → Bool) (duration : ℕ → ℕ) (forward : ℕ → I → Bool)80    (decode : ℕ → List I → List (Palette d M) → FreeGroup (Fin d))81    (σ : ∀ i, Words d (size i) (profile i))82    (hdecode : ∀ k i, decode k [i] [embedAssignment size profile hsize σ i] =83      orientedWord (forward k i) (σ i)) (k : ℕ) :84    P.blockFactors (blockFactor B size profile hsize ordinary duration forward decode) k85      (embedAssignment size profile hsize σ) =86    P.blockFactors (fun k labels choices =>87      blockPolynomial B (ordinary k) (duration k) (decode k labels choices)) k88      (embedAssignment size profile hsize σ) := by89  apply blockFactors_congr_on_assignment90  intro s labels91  exact blockFactor_valid B size profile hsize ordinary duration forward decode σ s (hdecode s) labels9293end Nonadditivity.HaarProfileDecodedCoefficients