Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarChainColoringPath

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

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

9 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarChainColoring7import Nonadditivity.HaarPathRecoloring8import Nonadditivity.HaarRefinedVertexFibre910/-! # Actual paths reconstructed from reduced chain-profile assignments -/11noncomputable section12set_option backward.isDefEq.respectTransparency false13set_option maxHeartbeats 150000014namespace Nonadditivity.HaarPathGraph.Path.ChainColoring15open HaarPathGraph HaarPathClasses HaarPathProfiles HaarProfileCoefficient16variable {V : Type*} [Fintype V] [DecidableEq V] {d m : ℕ}17variable {P : Path V d m} (F : P.ChainColoring)1819/-- A compatible reduced-word assignment gives an actual closed reduced path. -/20def path : Path V d m :=21  HaarPathRecoloring.recolorPath P F.color F.color_reverse F.color_kernel2223theorem samePattern : SamePattern P F.path :=24  HaarPathRecoloring.recolorPath_samePattern P F.color F.color_reverse F.color_kernel2526@[simp] theorem path_vertex : F.path.vertex=P.vertex := rfl27@[simp] theorem path_colors (i : Fin m) :28    F.path.colors i=F.color ⟨P.traversal i,P.traversal_mem i⟩ := rfl2930@[simp] theorem color_dartPerm (q : P.darts) :31    HaarPathGraph.color (F.samePattern.dartPerm q.val)=F.color q := by32  rw [HaarPathRecoloring.recolorPath_dartPerm]33  exact color_dart _ _ _3435/-- The reconstructed chain has precisely the assigned word, at every position. -/36theorem chain_colors (c : P.CoreChain) :37    (F.samePattern.coreChainEquiv c).val.map HaarPathGraph.color=List.ofFn (F.value c).val := by38  simp only [SamePattern.coreChainEquiv_apply,SamePattern.coreChainMap_val,List.map_map]39  apply List.ext_getElem40  · simp41  · intro i hi hi'42    simp only [List.getElem_map,List.getElem_ofFn]43    have he := F.color_dartPerm (P.positionDart ⟨c,⟨i,by simpa using hi⟩⟩)44    rw [F.color_position] at he45    exact he4647/-- Endpoint and count constraints of the palette prove actual refined membership. -/48theorem refinedPattern : RefinedPattern P F.path := by49  refine ⟨F.samePattern,?_⟩50  intro c51  apply Subtype.ext52  apply Profile.ext53  · have hh := (F.value c).property.2.154    rw [←F.chain_colors c] at hh55    rw [List.head?_map,List.head?_eq_some_head56      (F.path.toCore_nonempty (F.samePattern.coreChainEquiv c).property.1)] at hh57    simpa only [Option.map_some,Option.some.injEq,Path.coreChainProfile_first] using hh.symm58  · have hh := (F.value c).property.2.2.159    rw [←F.chain_colors c] at hh60    rw [List.getLast?_map,List.getLast?_eq_getLast_of_ne_nil61      (F.path.toCore_nonempty (F.samePattern.coreChainEquiv c).property.1)] at hh62    simpa only [Option.map_some,Option.some.injEq,Path.coreChainProfile_last] using hh.symm63  · funext a64    rw [F.path.coreChainProfile_count (F.samePattern.coreChainEquiv c),F.chain_colors]65    exact ((F.value c).property.2.2.2 a).symm6667/-- The path produced from the assignment belongs to the literal fixed-vertex68refined class, with no realizability hypothesis on the chosen words. -/69def colorFibre : HaarRefinedVertexFibre.ColorFibre P :=70  ⟨F.path,F.path_vertex,F.refinedPattern⟩7172end Nonadditivity.HaarPathGraph.Path.ChainColoring