Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathCoefficientWords

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

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

11 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarProfileCoefficient7import Nonadditivity.HaarNonbacktrackingSegmentation8import Nonadditivity.HaarPathDecomposition910/-! # Reduced coefficient chunks from the actual closed path1112The degree-two chain decomposition is connected to the free group coefficient13factorization. Reducedness and nontriviality of every occurring chain are14proved from the original path, rather than supplied as extra hypotheses.15-/1617noncomputable section18set_option backward.isDefEq.respectTransparency false1920namespace Nonadditivity.HaarPathGraph2122open scoped BigOperators23open HaarPathProfiles HaarNonbacktracking HaarTimeCompositions2425private theorem reducedPair {d : ℕ} (a b : Color d) (h : b ≠ flipColor a) :26    a.1 = b.1 → a.2 = b.2 := by27  rcases a with ⟨a,s⟩28  rcases b with ⟨b,t⟩29  intro hab30  change a = b at hab31  subst b32  cases s <;> cases t <;> simp_all [flipColor]3334namespace Path35variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)3637omit [DecidableEq V] in38/-- The signed generator list of the actual graph path is reduced. -/39theorem colorList_reduced : FreeGroup.IsReduced (List.ofFn P.colors) := by40  apply List.isChain_iff_getElem.mpr41  intro i hi42  have hi' : i + 1 < m := by simpa using hi43  simp only [List.getElem_ofFn]44  exact reducedPair _ _ (P.reduced ⟨i, by omega⟩ ⟨i + 1, hi'⟩ rfl)4546omit [DecidableEq V] in47@[simp] theorem color_traversalList : P.traversalList.map color = List.ofFn P.colors := by48  simp [traversalList, List.map_ofFn, Function.comp_def, traversal]4950/-- An actual occurring core chain is a contiguous subword of the original path. -/51theorem chain_colors_reduced (cs : List P.CoreChain)52    (hcs : (cs.map Subtype.val).flatten = P.traversalList)53    (c : P.CoreChain) (hc : c ∈ cs) : FreeGroup.IsReduced (c.val.map color) := by54  have hchain : c.val <:+: P.traversalList := by55    rw [← hcs]56    exact List.infix_of_mem_flatten (List.mem_map_of_mem hc)57  apply P.colorList_reduced.infix58  simpa only [P.color_traversalList] using hchain.map color5960/-- The group element of the literal signed-color sequence on a core chain. -/61def chainWord (c : P.CoreChain) : FreeGroup (Fin d) := FreeGroup.mk (c.val.map color)6263theorem chainWord_toWord (cs : List P.CoreChain)64    (hcs : (cs.map Subtype.val).flatten = P.traversalList)65    (c : P.CoreChain) (hc : c ∈ cs) : (P.chainWord c).toWord = c.val.map color := by66  exact FreeGroup.toWord_mk.trans (P.chain_colors_reduced cs hcs c hc).reduce_eq6768theorem chainWord_ne_one (cs : List P.CoreChain)69    (hcs : (cs.map Subtype.val).flatten = P.traversalList)70    (c : P.CoreChain) (hc : c ∈ cs) : P.chainWord c ≠ 1 := by71  intro h72  have hw := P.chainWord_toWord cs hcs c hc73  rw [h, FreeGroup.toWord_one] at hw74  exact P.toCore_nonempty c.property.1 (List.map_eq_nil_iff.mp hw.symm)7576/-- Concatenating the actual chain words recovers the original reduced word. -/77theorem chainWords_flatMap (cs : List P.CoreChain)78    (hcs : (cs.map Subtype.val).flatten = P.traversalList) :79    (cs.map P.chainWord).flatMap FreeGroup.toWord = List.ofFn P.colors := by80  rw [List.flatMap_map]81  have hf : cs.flatMap (fun c => (P.chainWord c).toWord) =82      cs.flatMap (fun c => c.val.map color) := by83    apply List.flatMap_congr84    intro c hc85    exact P.chainWord_toWord cs hcs c hc86  rw [hf]87  have he : cs.flatMap (fun c => c.val.map color) =88      (cs.map (fun c => c.val.map color)).flatten := by89    clear hcs hf90    induction cs with91    | nil => rfl92    | cons c cs ih => simp [ih]93  rw [he]94  have hm := congrArg (List.map color) hcs95  rw [List.map_flatten, List.map_map] at hm96  exact hm.trans P.color_traversalList9798/-- The exact non-returning time expansion for the actual core-chain path99segments, with no assumed separation or reducedness of the segments. -/100theorem coefficient_factorization_chains {R : Type*} [Ring R]101    (A : MonoidAlgebra R (FreeGroup (Fin d)))102    (hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)103    (c : P.CoreChain) (cs : List P.CoreChain)104    (hcs : ((c :: cs).map Subtype.val).flatten = P.traversalList) (n : ℕ) :105    (A ^ n) (FreeGroup.mk (List.ofFn P.colors)) =106      ∑ times ∈ compositions cs.length n,107        segmentedProduct A (P.chainWord c) (cs.map P.chainWord) times := by108  have hflat := P.chainWords_flatMap (c :: cs) hcs109  have hprod : FreeGroup.mk (List.ofFn P.colors) =110      (P.chainWord c :: cs.map P.chainWord).prod := by111    rw [← hflat, mk_flatMap_toWord]112    rfl113  rw [hprod]114  have hh : ∀ w ∈ P.chainWord c :: cs.map P.chainWord, w ≠ 1 := by115    intro w hw116    obtain ⟨q, hq, rfl⟩ := List.mem_map.mp (show w ∈ (c :: cs).map P.chainWord from hw)117    exact P.chainWord_ne_one (c :: cs) hcs q hq118  simpa only [List.length_map] using coefficient_factorization_segments A hA119    (P.chainWord c) (cs.map P.chainWord) hh120    (by rw [← List.map_cons, hflat]; exact P.colorList_reduced) n121122end Path123end Nonadditivity.HaarPathGraph