Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarRefinedPaletteFibre

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

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

7 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarChainColoringFibre7import Nonadditivity.HaarChainColoringPalettes89/-! # Exact refined class sums over independent reduced profile words1011This is the literal geometric parametrization needed by the coefficient bound:12vertex injections and independent reduced words on unoriented core chains.13-/14noncomputable section15set_option backward.isDefEq.respectTransparency false16namespace Nonadditivity.HaarPathGraph.Path17open scoped BigOperators18open HaarPathGraph HaarPathClasses HaarPathProfiles HaarProfileCoefficient19  HaarRefinedVertexFibre HaarPathVertexFibre20variable {V : Type*} [Fintype V] [DecidableEq V] {d m : ℕ} (P : Path V d m)2122/-- Independent profile words parametrize the entire actual refined color fibre. -/23def paletteColorFibreEquiv : P.ChainPalette ≃ HaarRefinedVertexFibre.ColorFibre P :=24  P.chainPaletteEquiv.trans ChainColoring.colorFibreEquiv2526/-- Exact independent-profile expansion of a genuine refined class sum. -/27theorem sum_refined_fibre_eq_palettes {R : Type*} [AddCommMonoid R]28    (f : (Fin m → Color d) → R) :29    ∑ Q : HaarRefinedVertexFibre.Fibre P, f Q.val.colors =30      Fintype.card (VertexLabels P) •31        ∑ σ : P.ChainPalette, f (P.paletteColoring σ).path.colors := by32  rw [HaarRefinedVertexFibre.sum_fibre_colors]33  rw [←(P.paletteColorFibreEquiv).sum_comp]34  rfl3536namespace ChainColoring37variable {P} (F : P.ChainColoring)3839@[simp] theorem chainWord_map (c : P.CoreChain) :40    F.path.chainWord (F.samePattern.coreChainEquiv c)=word (F.value c) := by41  unfold Path.chainWord word42  rw [F.chain_colors]4344/-- Reading the assigned reduced words along the actual occurrence sequence45recovers the complete recolored path word exactly. -/46theorem assignedWords_flatMap (cs : List P.CoreChain)47    (hcs : (cs.map Subtype.val).flatten=P.traversalList) :48    (cs.map (fun c => word (F.value c))).flatMap FreeGroup.toWord=49      List.ofFn F.path.colors := by50  have hh := F.path.chainWords_flatMap (cs.map F.samePattern.coreChainEquiv)51    (F.samePattern.chain_decomposition_map cs hcs)52  simpa only [List.map_map,Function.comp_def,F.chainWord_map] using hh5354/-- All reconstructed segment words concatenate without cancellation. -/55theorem assignedWords_reduced (cs : List P.CoreChain)56    (hcs : (cs.map Subtype.val).flatten=P.traversalList) :57    FreeGroup.IsReduced ((cs.map (fun c => word (F.value c))).flatMap FreeGroup.toWord) := by58  rw [F.assignedWords_flatMap cs hcs]59  exact F.path.colorList_reduced6061/-- The literal product of assigned chain words is the full recolored word. -/62theorem assignedWords_prod (cs : List P.CoreChain)63    (hcs : (cs.map Subtype.val).flatten=P.traversalList) :64    (cs.map (fun c => word (F.value c))).prod=FreeGroup.mk (List.ofFn F.path.colors) := by65  rw [←F.assignedWords_flatMap cs hcs,HaarNonbacktracking.mk_flatMap_toWord]6667/-- The actual power coefficient on the reconstructed path factors through68its chosen profile words with the exact positive duration expansion. -/69theorem coefficient_factorization {R : Type*} [Ring R]70    (A : MonoidAlgebra R (FreeGroup (Fin d)))71    (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)72    (c : P.CoreChain) (cs : List P.CoreChain)73    (hcs : ((c::cs).map Subtype.val).flatten=P.traversalList) (n : ℕ) :74    (A^n) (FreeGroup.mk (List.ofFn F.path.colors))=75      ∑ times ∈ HaarTimeCompositions.compositions cs.length n,76        HaarNonbacktracking.segmentedProduct A (word (F.value c))77          (cs.map (fun c => word (F.value c))) times := by78  have hh := F.path.coefficient_factorization_chains A hA79    (F.samePattern.coreChainEquiv c) (cs.map F.samePattern.coreChainEquiv)80    (F.samePattern.chain_decomposition_map (c::cs) hcs) n81  simpa only [List.length_map,List.map_map,Function.comp_def,F.chainWord_map] using hh8283end ChainColoring84end Nonadditivity.HaarPathGraph.Path