Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathChainProfiles

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

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

6 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathChainPartition78/-! # Bounded word profiles of actual suppressed chains -/9noncomputable section10namespace Nonadditivity.HaarPathGraph.Path11variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1213/-- A maximal core chain visits each unoriented colored edge at most once. -/14theorem coreChain_edges_nodup (c : P.CoreChain) : (c.val.map Prod.fst).Nodup := by15  apply List.Nodup.map_on _ (P.toCore_nodup c.property.1)16  intro q hq q' hq' he17  obtain ⟨e,b⟩ := q18  obtain ⟨e',b'⟩ := q'19  change e=e' at he20  subst e'21  cases b <;> cases b'22  · rfl23  · exact (P.coreChain_not_both_orientations c hq (by simpa [reverse] using hq')).elim24  · exact (P.coreChain_not_both_orientations c hq (by simpa [reverse] using hq')).elim25  · rfl2627/-- A suppressed chain has length at most the original path length. -/28theorem coreChain_length_le (c : P.CoreChain) : c.val.length ≤ m := by29  have hsub : (c.val.map Prod.fst).toFinset ⊆ P.edges := by30    intro e he31    obtain ⟨q,hq,rfl⟩ := List.mem_map.mp (List.mem_toFinset.mp he)32    exact (Finset.mem_product.mp (P.toCore_mem c.property.1 hq)).133  have hc := Finset.card_le_card hsub34  rw [List.toFinset_card_of_nodup (P.coreChain_edges_nodup c),List.length_map] at hc35  have he := List.toFinset_card_le P.edgeList36  rw [P.edgeList_length] at he37  exact hc.trans he3839/-- The actual signed-color profile of a suppressed chain, with its required40length bound proved from the original graph. -/41def coreChainProfile (c : P.CoreChain) : HaarPathProfiles.BoundedProfile42    (HaarPathProfiles.Color d) m := by43  let a := c.val.head (P.toCore_nonempty c.property.1)44  let l := c.val.tail45  have he : c.val=a::l := (List.cons_head_tail (P.toCore_nonempty c.property.1)).symm46  refine ⟨HaarPathProfiles.wordProfile (color a) (l.map color), color a, l.map color, ?_, rfl⟩47  have hl := P.coreChain_length_le c48  simpa [he] using hl4950end Nonadditivity.HaarPathGraph.Path