Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarCoreChainMultiplicity

Download original .lean · View on GitHub · Jump to source

Direct imports

Imported by project modules

2 direct reverse imports

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

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

3 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathTransport78/-! # Exact multiplicities along a suppressed chain -/9noncomputable section10attribute [local instance 2000] instBEqOfDecidableEq11set_option backward.isDefEq.respectTransparency false12set_option maxHeartbeats 100000013namespace Nonadditivity.HaarPathGraph.Path14variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1516/-- A dart in one oriented core chain occurs once in that chain and in no17other oriented core chain. -/18theorem coreChain_count_dart (c c' : P.CoreChain) {q : Dart V d} (hq : q ∈ c.val) :19    c'.val.count q = if c'=c then 1 else 0 := by20  classical21  by_cases hc : c'=c22  · subst c'23    simp only [ite_true]24    exact List.count_eq_one_of_mem (P.toCore_nodup c.property.1) hq25  · rw [if_neg hc]26    apply List.count_eq_zero.mpr27    intro hq'28    exact hc (P.coreChain_eq_of_common_dart c' c hq' hq)2930/-- All darts of one oriented compressed edge have exactly the same number31of occurrences in the original path. -/32theorem traversal_count_eq_chain_count (cs : List P.CoreChain)33    (hcs : (cs.map Subtype.val).flatten=P.traversalList)34    (c : P.CoreChain) {q : Dart V d} (hq : q ∈ c.val) :35    P.traversalList.count q=cs.count c := by36  classical37  rw [←hcs]38  clear hcs39  induction cs with40  | nil => simp41  | cons c' cs ih =>42    simp only [List.map_cons,List.flatten_cons,List.count_append]43    rw [P.coreChain_count_dart c c' hq]44    have ht : (List.map Subtype.val cs).flatten.count q=cs.count c := by45      apply ih46    rw [ht]47    by_cases hc : c'=c <;> simp [hc,Nat.add_comm]4849/-- Any two positions along a chain carry identical directed multiplicity. -/50theorem traversal_count_constant_on_chain (hm : 0 < m) (c : P.CoreChain)51    {q r : Dart V d} (hq : q ∈ c.val) (hr : r ∈ c.val) :52    P.traversalList.count q=P.traversalList.count r := by53  obtain ⟨cs,hcs⟩ := P.exists_traversal_chain_decomposition hm54  rw [P.traversal_count_eq_chain_count cs hcs c hq,55    P.traversal_count_eq_chain_count cs hcs c hr]5657end Nonadditivity.HaarPathGraph.Path