Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarCoreChainReverseAddress

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

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

8 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarCoreChainAddress78/-! # Reversal in literal core-chain position coordinates -/9noncomputable section10set_option backward.isDefEq.respectTransparency false11namespace Nonadditivity.HaarPathGraph.Path12variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1314@[simp] theorem coreChainReverse_length (c : P.CoreChain) :15    (P.coreChainReverse c).val.length=c.val.length := by16  change (c.val.reverse.map reverse).length=c.val.length17  simp1819def reversePosition (p : P.ChainPosition) : P.ChainPosition :=20  ⟨P.coreChainReverse p.1, Fin.cast (P.coreChainReverse_length p.1).symm p.2.rev⟩2122/-- The precise reversed address is the reversed chain and the reversed23finite index. This includes one-edge chains and colored loops. -/24theorem positionDart_reversePosition (p : P.ChainPosition) :25    P.positionDart (P.reversePosition p) =26      ⟨reverse (P.positionDart p).val,P.reverse_mem (P.positionDart p).property⟩ := by27  obtain ⟨c,i⟩ := p28  apply Subtype.ext29  change (c.val.reverse.map reverse).get _ = reverse (c.val.get i)30  simp only [reversePosition,List.get_eq_getElem,List.getElem_map,List.getElem_reverse,Fin.val_cast,Fin.val_rev]31  congr 232  have hi := i.isLt33  omega3435@[simp] theorem reversePosition_involutive (p : P.ChainPosition) :36    P.reversePosition (P.reversePosition p)=p := by37  apply P.positionDart_injective38  rw [P.positionDart_reversePosition]39  apply Subtype.ext40  simp only [P.positionDart_reversePosition,reverse_reverse]4142/-- Reversal of an actual dart reverses its unique complete-chain address. -/43theorem positionEquiv_symm_reverse (q : P.darts) :44    P.positionEquiv.symm ⟨reverse q.val,P.reverse_mem q.property⟩ =45      P.reversePosition (P.positionEquiv.symm q) := by46  apply P.positionEquiv.injective47  rw [Equiv.apply_symm_apply,P.positionEquiv_apply,P.positionDart_reversePosition]48  congr 149  exact congrArg (fun z : P.darts => reverse z.val) (P.positionEquiv.apply_symm_apply q).symm5051end Nonadditivity.HaarPathGraph.Path