Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarCoreChainWords

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

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

10 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarCoreChainLabels7import Nonadditivity.HaarPathRefined89/-! # The actual reduced profile word on every oriented core chain -/1011noncomputable section12set_option backward.isDefEq.respectTransparency false1314namespace Nonadditivity.HaarPathGraph.Path1516open HaarPathProfiles HaarProfileCoefficient17variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1819/-- Reversing a graph chain gives exactly the inverse signed word. -/20theorem reverse_chain_colors (c : P.CoreChain) :21    (P.coreChainReverse c).val.map color = FreeGroup.invRev (c.val.map color) := by22  change (c.val.reverse.map reverse).map color = _23  simp only [FreeGroup.invRev,List.map_map,List.map_reverse]24  rfl2526/-- Reducedness is preserved by inverse-word reversal. -/27theorem reduced_invRev {α : Type*} [DecidableEq α] {l : List (α × Bool)}28    (h : FreeGroup.IsReduced l) : FreeGroup.IsReduced (FreeGroup.invRev l) := by29  apply FreeGroup.isReduced_iff_reduce_eq.mpr30  rw [FreeGroup.reduce_invRev,h.reduce_eq]3132/-- Every core chain is reduced, including an orientation not visited by the path. -/33theorem coreChain_colors_reduced (c : P.CoreChain) : FreeGroup.IsReduced (c.val.map color) := by34  have hq := P.toCore_mem c.property.135    (List.head_mem (P.toCore_nonempty c.property.1))36  obtain ⟨i,_⟩ := P.dart_eq_traversal_or_reverse _ hq37  have hm : 0 < m := Nat.zero_lt_of_lt i.isLt38  obtain ⟨cs,hcs⟩ := P.exists_traversal_chain_decomposition hm39  rcases P.chain_or_reverse_mem_decomposition cs hcs c with hc | hc40  · exact P.chain_colors_reduced cs hcs c hc41  · have hr := reduced_invRev (P.chain_colors_reduced cs hcs (P.coreChainReverse c) hc)42    simpa only [P.reverse_chain_colors, FreeGroup.invRev_invRev] using hr4344/-- The literal word on a core chain is an element of its finite profile palette. -/45def coreProfileWord (c : P.CoreChain) : Words d c.val.length (P.coreChainProfile c).val := by46  refine ⟨fun i => color c.val[i], ?_⟩47  have he : List.ofFn (fun i : Fin c.val.length => color c.val[i]) = c.val.map color :=48    List.ofFn_getElem_eq_map c.val color49  rw [he]50  refine ⟨P.coreChain_colors_reduced c, ?_⟩51  cases hc : c.val with52  | nil => exact (P.toCore_nonempty c.property.1 hc).elim53  | cons a l =>54      simp [coreChainProfile, hc, wordProfile, List.getLast?_eq_getLast_of_ne_nil]55      intro x56      constructor <;> simp only [List.count, beq_eq_decide]5758@[simp] theorem coreProfileWord_word (c : P.CoreChain) :59    word (P.coreProfileWord c) = P.chainWord c := by60  unfold word chainWord coreProfileWord61  congr 162  exact List.ofFn_getElem_eq_map c.val color6364@[simp] theorem coreWord_toWord (c : P.CoreChain) :65    (P.chainWord c).toWord = c.val.map color :=66  FreeGroup.toWord_mk.trans (P.coreChain_colors_reduced c).reduce_eq6768/-- The two orientations evaluate to inverse actual group words. -/69theorem chainWord_reverse (c : P.CoreChain) :70    P.chainWord (P.coreChainReverse c) = (P.chainWord c)⁻¹ := by71  unfold chainWord72  rw [P.reverse_chain_colors,FreeGroup.inv_mk]7374end Nonadditivity.HaarPathGraph.Path