Exact Lean source
Nonadditivity.HaarChainColoringPath
Download original .lean · View on GitHub · Jump to source
Direct imports
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
9 project constants, including generated, internal and private declarations.
9 declarations
Nonadditivity.HaarPathGraph.Path.ChainColoring.chain_colorsNonadditivity.HaarPathGraph.Path.ChainColoring.colorFibreNonadditivity.HaarPathGraph.Path.ChainColoring.colorFibre._proof_1internal/detail/privateNonadditivity.HaarPathGraph.Path.ChainColoring.color_dartPermNonadditivity.HaarPathGraph.Path.ChainColoring.pathNonadditivity.HaarPathGraph.Path.ChainColoring.path_colorsNonadditivity.HaarPathGraph.Path.ChainColoring.path_vertexNonadditivity.HaarPathGraph.Path.ChainColoring.refinedPatternNonadditivity.HaarPathGraph.Path.ChainColoring.samePattern
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarChainColoring7import Nonadditivity.HaarPathRecoloring8import Nonadditivity.HaarRefinedVertexFibre910/-! # Actual paths reconstructed from reduced chain-profile assignments -/11noncomputable section12set_option backward.isDefEq.respectTransparency false13set_option maxHeartbeats 150000014namespace Nonadditivity.HaarPathGraph.Path.ChainColoring15open HaarPathGraph HaarPathClasses HaarPathProfiles HaarProfileCoefficient16variable {V : Type*} [Fintype V] [DecidableEq V] {d m : ℕ}17variable {P : Path V d m} (F : P.ChainColoring)1819/-- A compatible reduced-word assignment gives an actual closed reduced path. -/20def path : Path V d m :=21HaarPathRecoloring.recolorPath P F.color F.color_reverse F.color_kernel2223theorem samePattern : SamePattern P F.path :=24HaarPathRecoloring.recolorPath_samePattern P F.color F.color_reverse F.color_kernel2526@[simp] theorem path_vertex : F.path.vertex=P.vertex := rfl27@[simp] theorem path_colors (i : Fin m) :28F.path.colors i=F.color ⟨P.traversal i,P.traversal_mem i⟩ := rfl2930@[simp] theorem color_dartPerm (q : P.darts) :31HaarPathGraph.color (F.samePattern.dartPerm q.val)=F.color q := by32rw [HaarPathRecoloring.recolorPath_dartPerm]33exact color_dart _ _ _3435/-- The reconstructed chain has precisely the assigned word, at every position. -/36theorem chain_colors (c : P.CoreChain) :37(F.samePattern.coreChainEquiv c).val.map HaarPathGraph.color=List.ofFn (F.value c).val := by38simp only [SamePattern.coreChainEquiv_apply,SamePattern.coreChainMap_val,List.map_map]39apply List.ext_getElem40· simp41· intro i hi hi'42simp only [List.getElem_map,List.getElem_ofFn]43have he := F.color_dartPerm (P.positionDart ⟨c,⟨i,by simpa using hi⟩⟩)44rw [F.color_position] at he45exact he4647/-- Endpoint and count constraints of the palette prove actual refined membership. -/48theorem refinedPattern : RefinedPattern P F.path := by49refine ⟨F.samePattern,?_⟩50intro c51apply Subtype.ext52apply Profile.ext53· have hh := (F.value c).property.2.154rw [←F.chain_colors c] at hh55rw [List.head?_map,List.head?_eq_some_head56(F.path.toCore_nonempty (F.samePattern.coreChainEquiv c).property.1)] at hh57simpa only [Option.map_some,Option.some.injEq,Path.coreChainProfile_first] using hh.symm58· have hh := (F.value c).property.2.2.159rw [←F.chain_colors c] at hh60rw [List.getLast?_map,List.getLast?_eq_getLast_of_ne_nil61(F.path.toCore_nonempty (F.samePattern.coreChainEquiv c).property.1)] at hh62simpa only [Option.map_some,Option.some.injEq,Path.coreChainProfile_last] using hh.symm63· funext a64rw [F.path.coreChainProfile_count (F.samePattern.coreChainEquiv c),F.chain_colors]65exact ((F.value c).property.2.2.2 a).symm6667/-- The path produced from the assignment belongs to the literal fixed-vertex68refined class, with no realizability hypothesis on the chosen words. -/69def colorFibre : HaarRefinedVertexFibre.ColorFibre P :=70⟨F.path,F.path_vertex,F.refinedPattern⟩7172end Nonadditivity.HaarPathGraph.Path.ChainColoring