Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarPathColorRelabel

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

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.HaarPathRefined7import Nonadditivity.HaarPathInternalColors89/-! # Row and column permutations from colored dart matching1011A color-preserving dart bijection that fixes the core incidence labels gives12separate permutations of vertex labels for every signed color. The assertion13uses reducedness of the actual paths at their degree-two internal vertices.14Reversal compatibility then supplies the independent row/column permutations15of each Haar matrix family.16-/17noncomputable section18set_option backward.isDefEq.respectTransparency false19set_option maxHeartbeats 100000020namespace Nonadditivity.HaarPathColorRelabel21open HaarPathGraph HaarPathProfiles HaarPathClasses22variable {V : Type*} [Fintype V] [DecidableEq V] {d m : ℕ}23variable {P Q : Path V d m} (h : SamePattern P Q)24variable (F : {q // q∈P.darts} ≃ {q // q∈Q.darts})25variable (hcolor : ∀ q, color (F q).val=color q.val)26variable (hcore : ∀ q, source q.val∈P.coreVertices →27  source (F q).val=h.vertexPerm (source q.val))28variable (hcoreiff : ∀ q, source (F q).val∈Q.coreVertices ↔ source q.val∈P.coreVertices)29include h hcolor hcore hcoreiff3031/-- On a single signed-color fibre, the source-label equality pattern is32preserved. This is the precise compatibility needed to extend labels to a33permutation; it does not assume a global vertex bijection on chain interiors. -/34theorem source_kernel_iff_of_color_eq (q r : {q // q∈P.darts})35    (hc : color q.val=color r.val) :36    source q.val=source r.val ↔ source (F q).val=source (F r).val := by37  constructor38  · intro hs39    by_cases hq : source q.val∈P.coreVertices40    · rw [hcore q hq,hcore r (hs ▸ hq),hs]41    · have he : q=r := Subtype.ext42        (P.internal_color_injective q.property r.property hq hs hc)43      exact congrArg (fun a => source (F a).val) he44  · intro hs45    by_cases hq : source (F q).val∈Q.coreVertices46    · have hr : source (F r).val∈Q.coreVertices := hs ▸ hq47      rw [hcore q ((hcoreiff q).mp hq),hcore r ((hcoreiff r).mp hr)] at hs48      exact h.vertexPerm.injective hs49    · have he : F q=F r := Subtype.ext50        (Q.internal_color_injective (F q).property (F r).property hq hs51          ((hcolor q).trans (hc.trans (hcolor r).symm)))52      exact congrArg (fun a => source a.val) (F.injective he)5354/-- A genuine permutation of the whole vertex alphabet for each signed color. -/55theorem exists_color_source_perms :56    ∃ κ : Color d → Equiv.Perm V, ∀ q : {q // q∈P.darts},57      κ (color q.val) (source q.val)=source (F q).val := by58  classical59  have hex (c : Color d) : ∃ κ : Equiv.Perm V,60      ∀ q : {q : {q // q∈P.darts} // color q.val=c},61        κ (source q.val.val)=source (F q.val).val := by62    apply exists_perm_of_kernel_eq63    intro q r64    exact source_kernel_iff_of_color_eq h F hcolor hcore hcoreiff q.val r.val65      (q.property.trans r.property.symm)66  choose κ hκ using hex67  exact ⟨κ,fun q => hκ (color q.val) ⟨q,rfl⟩⟩6869/-- Positive sources are row labels; sources of reversed positive darts are70column labels. The two permutations are independent for every generator. -/71theorem exists_family_entry_perms72    (hrev : ∀ q : {q // q∈P.darts},73      F ⟨reverse q.val,P.reverse_mem q.property⟩ =74        ⟨reverse (F q).val,Q.reverse_mem (F q).property⟩) :75    ∃ σ τ : Fin d → Equiv.Perm V, ∀ q : {q // q∈P.darts}, ∀ a : Fin d,76      color q.val=(a,true) →77        σ a (source q.val)=source (F q).val ∧78        τ a (source (reverse q.val))=source (reverse (F q).val) := by79  obtain ⟨κ,hκ⟩ := exists_color_source_perms h F hcolor hcore hcoreiff80  refine ⟨fun a => κ (a,true),fun a => κ (a,false),?_⟩81  intro q a hq82  constructor83  · simpa only [hq] using hκ q84  · have hr : color (reverse q.val)=(a,false) := by85      have hqa := congrArg Prod.fst hq86      have hqb := congrArg Prod.snd hq87      simp only [color] at hqa hqb88      simp only [color,reverse,hqa,hqb,Bool.not_true]89    have he := hκ ⟨reverse q.val,P.reverse_mem q.property⟩90    simpa only [hr,hrev] using he9192end Nonadditivity.HaarPathColorRelabel