Exact Lean source
Nonadditivity.HaarCoreChainWords
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
10 project constants, including generated, internal and private declarations.
10 declarations
Nonadditivity.HaarPathGraph.Path.chainWord_reverseNonadditivity.HaarPathGraph.Path.coreChain_colors_reducedNonadditivity.HaarPathGraph.Path.coreProfileWordNonadditivity.HaarPathGraph.Path.coreProfileWord._proof_1internal/detail/privateNonadditivity.HaarPathGraph.Path.coreProfileWord._proof_2internal/detail/privateNonadditivity.HaarPathGraph.Path.coreProfileWord._proof_3internal/detail/privateNonadditivity.HaarPathGraph.Path.coreProfileWord_wordNonadditivity.HaarPathGraph.Path.coreWord_toWordNonadditivity.HaarPathGraph.Path.reduced_invRevNonadditivity.HaarPathGraph.Path.reverse_chain_colors
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarCoreChainLabels7import Nonadditivity.HaarPathRefined89/-! # The actual reduced profile word on every oriented core chain -/1011noncomputable section12set_option backward.isDefEq.respectTransparency false1314namespace Nonadditivity.HaarPathGraph.Path1516open HaarPathProfiles HaarProfileCoefficient17variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1819/-- Reversing a graph chain gives exactly the inverse signed word. -/20theorem reverse_chain_colors (c : P.CoreChain) :21(P.coreChainReverse c).val.map color = FreeGroup.invRev (c.val.map color) := by22change (c.val.reverse.map reverse).map color = _23simp only [FreeGroup.invRev,List.map_map,List.map_reverse]24rfl2526/-- Reducedness is preserved by inverse-word reversal. -/27theorem reduced_invRev {α : Type*} [DecidableEq α] {l : List (α × Bool)}28(h : FreeGroup.IsReduced l) : FreeGroup.IsReduced (FreeGroup.invRev l) := by29apply FreeGroup.isReduced_iff_reduce_eq.mpr30rw [FreeGroup.reduce_invRev,h.reduce_eq]3132/-- Every core chain is reduced, including an orientation not visited by the path. -/33theorem coreChain_colors_reduced (c : P.CoreChain) : FreeGroup.IsReduced (c.val.map color) := by34have hq := P.toCore_mem c.property.135(List.head_mem (P.toCore_nonempty c.property.1))36obtain ⟨i,_⟩ := P.dart_eq_traversal_or_reverse _ hq37have hm : 0 < m := Nat.zero_lt_of_lt i.isLt38obtain ⟨cs,hcs⟩ := P.exists_traversal_chain_decomposition hm39rcases P.chain_or_reverse_mem_decomposition cs hcs c with hc | hc40· exact P.chain_colors_reduced cs hcs c hc41· have hr := reduced_invRev (P.chain_colors_reduced cs hcs (P.coreChainReverse c) hc)42simpa only [P.reverse_chain_colors, FreeGroup.invRev_invRev] using hr4344/-- The literal word on a core chain is an element of its finite profile palette. -/45def coreProfileWord (c : P.CoreChain) : Words d c.val.length (P.coreChainProfile c).val := by46refine ⟨fun i => color c.val[i], ?_⟩47have he : List.ofFn (fun i : Fin c.val.length => color c.val[i]) = c.val.map color :=48List.ofFn_getElem_eq_map c.val color49rw [he]50refine ⟨P.coreChain_colors_reduced c, ?_⟩51cases hc : c.val with52| nil => exact (P.toCore_nonempty c.property.1 hc).elim53| cons a l =>54simp [coreChainProfile, hc, wordProfile, List.getLast?_eq_getLast_of_ne_nil]55intro x56constructor <;> simp only [List.count, beq_eq_decide]5758@[simp] theorem coreProfileWord_word (c : P.CoreChain) :59word (P.coreProfileWord c) = P.chainWord c := by60unfold word chainWord coreProfileWord61congr 162exact List.ofFn_getElem_eq_map c.val color6364@[simp] theorem coreWord_toWord (c : P.CoreChain) :65(P.chainWord c).toWord = c.val.map color :=66FreeGroup.toWord_mk.trans (P.coreChain_colors_reduced c).reduce_eq6768/-- The two orientations evaluate to inverse actual group words. -/69theorem chainWord_reverse (c : P.CoreChain) :70P.chainWord (P.coreChainReverse c) = (P.chainWord c)⁻¹ := by71unfold chainWord72rw [P.reverse_chain_colors,FreeGroup.inv_mk]7374end Nonadditivity.HaarPathGraph.Path