Exact Lean source
Nonadditivity.HaarPathRefined
Download original .lean · View on GitHub · Jump to source
Direct imports
Imported by project modules
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
Nonadditivity.HaarPathClasses.RefinedClassNonadditivity.HaarPathClasses.RefinedPatternNonadditivity.HaarPathClasses.RefinedPattern.of_colors_eqNonadditivity.HaarPathClasses.RefinedPattern.profile_eqNonadditivity.HaarPathClasses.RefinedPattern.reflNonadditivity.HaarPathClasses.RefinedPattern.samePatternNonadditivity.HaarPathClasses.RefinedPattern.symmNonadditivity.HaarPathClasses.RefinedPattern.transNonadditivity.HaarPathClasses.SamePattern.color_dartPerm_of_colors_eqNonadditivity.HaarPathClasses.SamePattern.coreChainEquiv.congr_simpNonadditivity.HaarPathClasses.SamePattern.coreChainMap_reflNonadditivity.HaarPathClasses.SamePattern.coreChainMap_transNonadditivity.HaarPathClasses.SamePattern.dartPerm_reflNonadditivity.HaarPathClasses.SamePattern.dartPerm_transNonadditivity.HaarPathClasses.SamePattern.reflNonadditivity.HaarPathClasses.SamePattern.transNonadditivity.HaarPathClasses.coreChainProfile_eq_of_colorList_eqNonadditivity.HaarPathClasses.refinedPathSetoidNonadditivity.HaarPathClasses.refinedPattern_equivalence
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 :=26samePattern_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 := by30obtain ⟨a,rfl⟩ := exists_incidenceDart P hq31exact (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) := by36obtain ⟨a,rfl⟩ := exists_incidenceDart P hq37rw [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 := by41apply Subtype.ext42change c.val.map (refl P).dartPerm=c.val43calc44_ = 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) := by49apply Subtype.ext50simp only [coreChainMap_val,List.map_map]51exact 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 := by55obtain ⟨a,rfl⟩ := exists_incidenceDart P hq56simp 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,64P.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) :70P.coreChainProfile c=Q.coreChainProfile c' := by71obtain ⟨a,l,he,ha⟩ := c.property.272obtain ⟨b,r,he',hb⟩ := c'.property.273have hl : color a=color b ∧ l.map color=r.map color := by simpa [he,he'] using h74apply Subtype.ext75simp only [Path.coreChainProfile,he,he',List.head_cons,List.tail_cons]76rw [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) :84P.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 := by89refine ⟨h,fun c => ?_⟩90apply coreChainProfile_eq_of_colorList_eq91simp only [SamePattern.coreChainEquiv_apply,SamePattern.coreChainMap_val,List.map_map]92symm93exact 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 := by96refine ⟨SamePattern.refl P,fun c => ?_⟩97simp9899theorem symm (h : RefinedPattern P Q) : RefinedPattern Q P := by100obtain ⟨h,hp⟩ := h101refine ⟨h.symm,fun c => ?_⟩102change Q.coreChainProfile c=P.coreChainProfile (h.symm.coreChainMap c)103calc104_ = Q.coreChainProfile (h.coreChainMap (h.symm.coreChainMap c)) :=105congrArg 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 := by109obtain ⟨h,hp⟩ := h110obtain ⟨k,kp⟩ := k111refine ⟨h.trans k,fun c => ?_⟩112calc113_ = 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 : ℕ) :=126Quotient (@refinedPathSetoid V _ _ d m)127128end Nonadditivity.HaarPathClasses