Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarCoreChainEndpoints

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

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

5 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathInternalColors7import Nonadditivity.HaarCoreChainReverseAddress89/-! # Exact core endpoints in chain position coordinates1011A complete suppressed chain meets the core only at its initial source12and final target. These equivalences also cover one-edge chains and loops.13-/14noncomputable section15set_option backward.isDefEq.respectTransparency false16namespace Nonadditivity.HaarPathGraph.Path17variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1819theorem coreChain_source_mem_core_iff (c : P.CoreChain) (i : Fin c.val.length) :20    source (c.val.get i) ∈ P.coreVertices ↔ i.val=0 := by21  constructor22  · intro hc23    by_contra hi24    have ht : i.val-1<c.val.tail.length := by25      simp only [List.length_tail]26      have hi' := i.isLt27      omega28    have he : c.val.tail.get ⟨i.val-1,ht⟩=c.val.get i := by29      rw [List.get_tail]30      congr 131      apply Fin.ext32      change i.val-1+1=i.val33      omega34    have hm : c.val.get i ∈ c.val.tail := he ▸ List.get_mem c.val.tail ⟨i.val-1,ht⟩35    exact P.toCore_tail_source_not_core c.property.1 hm hc36  · intro hi37    obtain ⟨q,l,he,hq⟩ := c.property.238    have hg : c.val.get i=q := by simp [List.get_eq_getElem,he,hi]39    simpa only [hg] using hq4041theorem coreChain_reverse_source_mem_core_iff (c : P.CoreChain) (i : Fin c.val.length) :42    source (reverse (c.val.get i)) ∈ P.coreVertices ↔ i.val+1=c.val.length := by43  let j : Fin (P.coreChainReverse c).val.length :=44    Fin.cast (P.coreChainReverse_length c).symm i.rev45  have he : (P.coreChainReverse c).val.get j=reverse (c.val.get i) := by46    exact congrArg Subtype.val (P.positionDart_reversePosition ⟨c,i⟩)47  rw [← he,P.coreChain_source_mem_core_iff]48  simp only [j,Fin.val_cast,Fin.val_rev]49  have hi := i.isLt50  omega5152end Nonadditivity.HaarPathGraph.Path