Exact Lean source
Nonadditivity.HaarPathCoefficientWords
Download original .lean · View on GitHub · Jump to source
Direct imports
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
11 project constants, including generated, internal and private declarations.
11 declarations
Nonadditivity.HaarPathGraph.Path.chainWordNonadditivity.HaarPathGraph.Path.chainWord_ne_oneNonadditivity.HaarPathGraph.Path.chainWord_toWordNonadditivity.HaarPathGraph.Path.chainWords_flatMapNonadditivity.HaarPathGraph.Path.chain_colors_reducedNonadditivity.HaarPathGraph.Path.coefficient_factorization_chainsNonadditivity.HaarPathGraph.Path.colorList_reducedNonadditivity.HaarPathGraph.Path.colorList_reduced._proof_1_1internal/detail/privateNonadditivity.HaarPathGraph.Path.color_traversalListNonadditivity.HaarPathGraph.flipColor.eq_1internal/detail/private_private.Nonadditivity.HaarPathCoefficientWords.0.Nonadditivity.HaarPathGraph.reducedPairinternal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarProfileCoefficient7import Nonadditivity.HaarNonbacktrackingSegmentation8import Nonadditivity.HaarPathDecomposition910/-! # Reduced coefficient chunks from the actual closed path1112The degree-two chain decomposition is connected to the free group coefficient13factorization. Reducedness and nontriviality of every occurring chain are14proved from the original path, rather than supplied as extra hypotheses.15-/1617noncomputable section18set_option backward.isDefEq.respectTransparency false1920namespace Nonadditivity.HaarPathGraph2122open scoped BigOperators23open HaarPathProfiles HaarNonbacktracking HaarTimeCompositions2425private theorem reducedPair {d : ℕ} (a b : Color d) (h : b ≠ flipColor a) :26a.1 = b.1 → a.2 = b.2 := by27rcases a with ⟨a,s⟩28rcases b with ⟨b,t⟩29intro hab30change a = b at hab31subst b32cases s <;> cases t <;> simp_all [flipColor]3334namespace Path35variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)3637omit [DecidableEq V] in38/-- The signed generator list of the actual graph path is reduced. -/39theorem colorList_reduced : FreeGroup.IsReduced (List.ofFn P.colors) := by40apply List.isChain_iff_getElem.mpr41intro i hi42have hi' : i + 1 < m := by simpa using hi43simp only [List.getElem_ofFn]44exact reducedPair _ _ (P.reduced ⟨i, by omega⟩ ⟨i + 1, hi'⟩ rfl)4546omit [DecidableEq V] in47@[simp] theorem color_traversalList : P.traversalList.map color = List.ofFn P.colors := by48simp [traversalList, List.map_ofFn, Function.comp_def, traversal]4950/-- An actual occurring core chain is a contiguous subword of the original path. -/51theorem chain_colors_reduced (cs : List P.CoreChain)52(hcs : (cs.map Subtype.val).flatten = P.traversalList)53(c : P.CoreChain) (hc : c ∈ cs) : FreeGroup.IsReduced (c.val.map color) := by54have hchain : c.val <:+: P.traversalList := by55rw [← hcs]56exact List.infix_of_mem_flatten (List.mem_map_of_mem hc)57apply P.colorList_reduced.infix58simpa only [P.color_traversalList] using hchain.map color5960/-- The group element of the literal signed-color sequence on a core chain. -/61def chainWord (c : P.CoreChain) : FreeGroup (Fin d) := FreeGroup.mk (c.val.map color)6263theorem chainWord_toWord (cs : List P.CoreChain)64(hcs : (cs.map Subtype.val).flatten = P.traversalList)65(c : P.CoreChain) (hc : c ∈ cs) : (P.chainWord c).toWord = c.val.map color := by66exact FreeGroup.toWord_mk.trans (P.chain_colors_reduced cs hcs c hc).reduce_eq6768theorem chainWord_ne_one (cs : List P.CoreChain)69(hcs : (cs.map Subtype.val).flatten = P.traversalList)70(c : P.CoreChain) (hc : c ∈ cs) : P.chainWord c ≠ 1 := by71intro h72have hw := P.chainWord_toWord cs hcs c hc73rw [h, FreeGroup.toWord_one] at hw74exact P.toCore_nonempty c.property.1 (List.map_eq_nil_iff.mp hw.symm)7576/-- Concatenating the actual chain words recovers the original reduced word. -/77theorem chainWords_flatMap (cs : List P.CoreChain)78(hcs : (cs.map Subtype.val).flatten = P.traversalList) :79(cs.map P.chainWord).flatMap FreeGroup.toWord = List.ofFn P.colors := by80rw [List.flatMap_map]81have hf : cs.flatMap (fun c => (P.chainWord c).toWord) =82cs.flatMap (fun c => c.val.map color) := by83apply List.flatMap_congr84intro c hc85exact P.chainWord_toWord cs hcs c hc86rw [hf]87have he : cs.flatMap (fun c => c.val.map color) =88(cs.map (fun c => c.val.map color)).flatten := by89clear hcs hf90induction cs with91| nil => rfl92| cons c cs ih => simp [ih]93rw [he]94have hm := congrArg (List.map color) hcs95rw [List.map_flatten, List.map_map] at hm96exact hm.trans P.color_traversalList9798/-- The exact non-returning time expansion for the actual core-chain path99segments, with no assumed separation or reducedness of the segments. -/100theorem coefficient_factorization_chains {R : Type*} [Ring R]101(A : MonoidAlgebra R (FreeGroup (Fin d)))102(hA : ∀ a ∈ A.support, a.toWord.length ≤ 1)103(c : P.CoreChain) (cs : List P.CoreChain)104(hcs : ((c :: cs).map Subtype.val).flatten = P.traversalList) (n : ℕ) :105(A ^ n) (FreeGroup.mk (List.ofFn P.colors)) =106∑ times ∈ compositions cs.length n,107segmentedProduct A (P.chainWord c) (cs.map P.chainWord) times := by108have hflat := P.chainWords_flatMap (c :: cs) hcs109have hprod : FreeGroup.mk (List.ofFn P.colors) =110(P.chainWord c :: cs.map P.chainWord).prod := by111rw [← hflat, mk_flatMap_toWord]112rfl113rw [hprod]114have hh : ∀ w ∈ P.chainWord c :: cs.map P.chainWord, w ≠ 1 := by115intro w hw116obtain ⟨q, hq, rfl⟩ := List.mem_map.mp (show w ∈ (c :: cs).map P.chainWord from hw)117exact P.chainWord_ne_one (c :: cs) hcs q hq118simpa only [List.length_map] using coefficient_factorization_segments A hA119(P.chainWord c) (cs.map P.chainWord) hh120(by rw [← List.map_cons, hflat]; exact P.colorList_reduced) n121122end Path123end Nonadditivity.HaarPathGraph