Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathRefined

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

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

19 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/-! # The genuine refined equivalence of Haar paths910The original local-color equivalence is refined by equality of the actual11signed-color profiles on corresponding suppressed chains.12-/13noncomputable section14set_option backward.isDefEq.respectTransparency false15set_option maxHeartbeats 100000016namespace Nonadditivity.HaarPathClasses17open HaarPathGraph HaarPathProfiles18variable {V : Type*} [Fintype V] [DecidableEq V] {d m : ℕ}1920namespace SamePattern21variable {P Q R : Path V d m}2223theorem refl (P : Path V d m) : SamePattern P P := samePattern_equivalence.refl P2425theorem trans (h : SamePattern P Q) (k : SamePattern Q R) : SamePattern P R :=26  samePattern_equivalence.trans h k2728theorem dartPerm_refl {P : Path V d m} {q : Dart V d} (hq : q ∈ P.darts) :29    (refl P).dartPerm q=q := by30  obtain ⟨a,rfl⟩ := exists_incidenceDart P hq31  exact (refl P).dartPerm_apply a3233theorem dartPerm_trans (h : SamePattern P Q) (k : SamePattern Q R)34    {q : Dart V d} (hq : q ∈ P.darts) :35    (h.trans k).dartPerm q=k.dartPerm (h.dartPerm q) := by36  obtain ⟨a,rfl⟩ := exists_incidenceDart P hq37  rw [h.dartPerm_apply,k.dartPerm_apply,(h.trans k).dartPerm_apply]3839@[simp] theorem coreChainMap_refl (P : Path V d m) (c : P.CoreChain) :40    (refl P).coreChainMap c=c := by41  apply Subtype.ext42  change c.val.map (refl P).dartPerm=c.val43  calc44    _ = c.val.map id := List.map_congr_left (fun q hq => dartPerm_refl (P.toCore_mem c.property.1 hq))45    _ = _ := List.map_id _4647theorem coreChainMap_trans (h : SamePattern P Q) (k : SamePattern Q R) (c : P.CoreChain) :48    (h.trans k).coreChainMap c=k.coreChainMap (h.coreChainMap c) := by49  apply Subtype.ext50  simp only [coreChainMap_val,List.map_map]51  exact List.map_congr_left (fun q hq => h.dartPerm_trans k (P.toCore_mem c.property.1 hq))5253theorem color_dartPerm_of_colors_eq (h : SamePattern P Q) (hc : P.colors=Q.colors)54    {q : Dart V d} (hq : q ∈ P.darts) : color (h.dartPerm q)=color q := by55  obtain ⟨a,rfl⟩ := exists_incidenceDart P hq56  simp only [h.dartPerm_apply,color_incidenceDart,incidenceColor,hc]5758end SamePattern5960/-- BC's refined relation, using actual corresponding core chains. The61existential witness is a proof of the already established coarse relation. -/62def RefinedPattern (P Q : Path V d m) : Prop :=63  ∃ h : SamePattern P Q, ∀ c : P.CoreChain,64    P.coreChainProfile c=Q.coreChainProfile (h.coreChainEquiv c)656667/-- Chain profiles depend only on the literal color word. -/68theorem coreChainProfile_eq_of_colorList_eq {P Q : Path V d m}69    (c : P.CoreChain) (c' : Q.CoreChain) (h : c.val.map color=c'.val.map color) :70    P.coreChainProfile c=Q.coreChainProfile c' := by71  obtain ⟨a,l,he,ha⟩ := c.property.272  obtain ⟨b,r,he',hb⟩ := c'.property.273  have hl : color a=color b ∧ l.map color=r.map color := by simpa [he,he'] using h74  apply Subtype.ext75  simp only [Path.coreChainProfile,he,he',List.head_cons,List.tail_cons]76  rw [hl.1,hl.2]7778namespace RefinedPattern79variable {P Q R : Path V d m}8081theorem samePattern (h : RefinedPattern P Q) : SamePattern P Q := h.choose8283theorem profile_eq (h : RefinedPattern P Q) (c : P.CoreChain) :84    P.coreChainProfile c=Q.coreChainProfile (h.samePattern.coreChainEquiv c) := h.choose_spec c8586/-- Keeping the literal colors fixed leaves all refined chain profiles fixed;87only the injective vertex labels change. -/88theorem of_colors_eq (h : SamePattern P Q) (hc : P.colors=Q.colors) : RefinedPattern P Q := by89  refine ⟨h,fun c => ?_⟩90  apply coreChainProfile_eq_of_colorList_eq91  simp only [SamePattern.coreChainEquiv_apply,SamePattern.coreChainMap_val,List.map_map]92  symm93  exact List.map_congr_left (fun q hq => h.color_dartPerm_of_colors_eq hc (P.toCore_mem c.property.1 hq))9495theorem refl (P : Path V d m) : RefinedPattern P P := by96  refine ⟨SamePattern.refl P,fun c => ?_⟩97  simp9899theorem symm (h : RefinedPattern P Q) : RefinedPattern Q P := by100  obtain ⟨h,hp⟩ := h101  refine ⟨h.symm,fun c => ?_⟩102  change Q.coreChainProfile c=P.coreChainProfile (h.symm.coreChainMap c)103  calc104    _ = Q.coreChainProfile (h.coreChainMap (h.symm.coreChainMap c)) :=105      congrArg Q.coreChainProfile (h.coreChainEquiv.right_inv c).symm106    _ = _ := (hp (h.symm.coreChainMap c)).symm107108theorem trans (h : RefinedPattern P Q) (k : RefinedPattern Q R) : RefinedPattern P R := by109  obtain ⟨h,hp⟩ := h110  obtain ⟨k,kp⟩ := k111  refine ⟨h.trans k,fun c => ?_⟩112  calc113    _ = Q.coreChainProfile (h.coreChainEquiv c) := hp c114    _ = R.coreChainProfile (k.coreChainEquiv (h.coreChainEquiv c)) := kp _115    _ = _ := congrArg R.coreChainProfile (h.coreChainMap_trans k c).symm116117end RefinedPattern118119theorem refinedPattern_equivalence : Equivalence (@RefinedPattern V _ _ d m) :=120  ⟨RefinedPattern.refl,RefinedPattern.symm,RefinedPattern.trans⟩121122def refinedPathSetoid : Setoid (Path V d m) := ⟨RefinedPattern,refinedPattern_equivalence⟩123124/-- The actual refined quotient whose fibres appear in the operator estimate. -/125abbrev RefinedClass (V : Type*) [Fintype V] [DecidableEq V] (d m : ℕ) :=126  Quotient (@refinedPathSetoid V _ _ d m)127128end Nonadditivity.HaarPathClasses