Exact Lean source
Nonadditivity.HaarRefinedPaletteFibre
Download original .lean · View on GitHub · Jump to source
Imported by project modules
3 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
7 project constants, including generated, internal and private declarations.
7 declarations
Nonadditivity.HaarPathGraph.Path.ChainColoring.assignedWords_flatMapNonadditivity.HaarPathGraph.Path.ChainColoring.assignedWords_prodNonadditivity.HaarPathGraph.Path.ChainColoring.assignedWords_reducedNonadditivity.HaarPathGraph.Path.ChainColoring.chainWord_mapNonadditivity.HaarPathGraph.Path.ChainColoring.coefficient_factorizationNonadditivity.HaarPathGraph.Path.paletteColorFibreEquivNonadditivity.HaarPathGraph.Path.sum_refined_fibre_eq_palettes
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarChainColoringFibre7import Nonadditivity.HaarChainColoringPalettes89/-! # Exact refined class sums over independent reduced profile words1011This is the literal geometric parametrization needed by the coefficient bound:12vertex injections and independent reduced words on unoriented core chains.13-/14noncomputable section15set_option backward.isDefEq.respectTransparency false16namespace Nonadditivity.HaarPathGraph.Path17open scoped BigOperators18open HaarPathGraph HaarPathClasses HaarPathProfiles HaarProfileCoefficient19HaarRefinedVertexFibre HaarPathVertexFibre20variable {V : Type*} [Fintype V] [DecidableEq V] {d m : ℕ} (P : Path V d m)2122/-- Independent profile words parametrize the entire actual refined color fibre. -/23def paletteColorFibreEquiv : P.ChainPalette ≃ HaarRefinedVertexFibre.ColorFibre P :=24P.chainPaletteEquiv.trans ChainColoring.colorFibreEquiv2526/-- Exact independent-profile expansion of a genuine refined class sum. -/27theorem sum_refined_fibre_eq_palettes {R : Type*} [AddCommMonoid R]28(f : (Fin m → Color d) → R) :29∑ Q : HaarRefinedVertexFibre.Fibre P, f Q.val.colors =30Fintype.card (VertexLabels P) •31∑ σ : P.ChainPalette, f (P.paletteColoring σ).path.colors := by32rw [HaarRefinedVertexFibre.sum_fibre_colors]33rw [←(P.paletteColorFibreEquiv).sum_comp]34rfl3536namespace ChainColoring37variable {P} (F : P.ChainColoring)3839@[simp] theorem chainWord_map (c : P.CoreChain) :40F.path.chainWord (F.samePattern.coreChainEquiv c)=word (F.value c) := by41unfold Path.chainWord word42rw [F.chain_colors]4344/-- Reading the assigned reduced words along the actual occurrence sequence45recovers the complete recolored path word exactly. -/46theorem assignedWords_flatMap (cs : List P.CoreChain)47(hcs : (cs.map Subtype.val).flatten=P.traversalList) :48(cs.map (fun c => word (F.value c))).flatMap FreeGroup.toWord=49List.ofFn F.path.colors := by50have hh := F.path.chainWords_flatMap (cs.map F.samePattern.coreChainEquiv)51(F.samePattern.chain_decomposition_map cs hcs)52simpa only [List.map_map,Function.comp_def,F.chainWord_map] using hh5354/-- All reconstructed segment words concatenate without cancellation. -/55theorem assignedWords_reduced (cs : List P.CoreChain)56(hcs : (cs.map Subtype.val).flatten=P.traversalList) :57FreeGroup.IsReduced ((cs.map (fun c => word (F.value c))).flatMap FreeGroup.toWord) := by58rw [F.assignedWords_flatMap cs hcs]59exact F.path.colorList_reduced6061/-- The literal product of assigned chain words is the full recolored word. -/62theorem assignedWords_prod (cs : List P.CoreChain)63(hcs : (cs.map Subtype.val).flatten=P.traversalList) :64(cs.map (fun c => word (F.value c))).prod=FreeGroup.mk (List.ofFn F.path.colors) := by65rw [←F.assignedWords_flatMap cs hcs,HaarNonbacktracking.mk_flatMap_toWord]6667/-- The actual power coefficient on the reconstructed path factors through68its chosen profile words with the exact positive duration expansion. -/69theorem coefficient_factorization {R : Type*} [Ring R]70(A : MonoidAlgebra R (FreeGroup (Fin d)))71(hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)72(c : P.CoreChain) (cs : List P.CoreChain)73(hcs : ((c::cs).map Subtype.val).flatten=P.traversalList) (n : ℕ) :74(A^n) (FreeGroup.mk (List.ofFn F.path.colors))=75∑ times ∈ HaarTimeCompositions.compositions cs.length n,76HaarNonbacktracking.segmentedProduct A (word (F.value c))77(cs.map (fun c => word (F.value c))) times := by78have hh := F.path.coefficient_factorization_chains A hA79(F.samePattern.coreChainEquiv c) (cs.map F.samePattern.coreChainEquiv)80(F.samePattern.chain_decomposition_map (c::cs) hcs) n81simpa only [List.length_map,List.map_map,Function.comp_def,F.chainWord_map] using hh8283end ChainColoring84end Nonadditivity.HaarPathGraph.Path