Exact Lean source
Nonadditivity.HaarPathColorRelabel
Download original .lean · View on GitHub · Jump to source
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
Nonadditivity.HaarPathColorRelabel.exists_color_source_permsNonadditivity.HaarPathColorRelabel.exists_family_entry_permsNonadditivity.HaarPathColorRelabel.source_kernel_iff_of_color_eq
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 →27source (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) :36source q.val=source r.val ↔ source (F q).val=source (F r).val := by37constructor38· intro hs39by_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)43exact congrArg (fun a => source (F a).val) he44· intro hs45by_cases hq : source (F q).val∈Q.coreVertices46· have hr : source (F r).val∈Q.coreVertices := hs ▸ hq47rw [hcore q ((hcoreiff q).mp hq),hcore r ((hcoreiff r).mp hr)] at hs48exact 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)))52exact 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 := by58classical59have 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 := by62apply exists_perm_of_kernel_eq63intro q r64exact source_kernel_iff_of_color_eq h F hcolor hcore hcoreiff q.val r.val65(q.property.trans r.property.symm)66choose κ hκ using hex67exact ⟨κ,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},73F ⟨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,76color q.val=(a,true) →77σ a (source q.val)=source (F q).val ∧78τ a (source (reverse q.val))=source (reverse (F q).val) := by79obtain ⟨κ,hκ⟩ := exists_color_source_perms h F hcolor hcore hcoreiff80refine ⟨fun a => κ (a,true),fun a => κ (a,false),?_⟩81intro q a hq82constructor83· simpa only [hq] using hκ q84· have hr : color (reverse q.val)=(a,false) := by85have hqa := congrArg Prod.fst hq86have hqb := congrArg Prod.snd hq87simp only [color] at hqa hqb88simp only [color,reverse,hqa,hqb,Bool.not_true]89have he := hκ ⟨reverse q.val,P.reverse_mem q.property⟩90simpa only [hr,hrev] using he9192end Nonadditivity.HaarPathColorRelabel