Exact Lean source
Nonadditivity.HaarPathChainProfiles
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
6 project constants, including generated, internal and private declarations.
6 declarations
Nonadditivity.HaarPathGraph.Path.coreChainProfileNonadditivity.HaarPathGraph.Path.coreChainProfile._proof_1internal/detail/privateNonadditivity.HaarPathGraph.Path.coreChainProfile._proof_2internal/detail/privateNonadditivity.HaarPathGraph.Path.coreChainProfile._proof_3internal/detail/privateNonadditivity.HaarPathGraph.Path.coreChain_edges_nodupNonadditivity.HaarPathGraph.Path.coreChain_length_le
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathChainPartition78/-! # Bounded word profiles of actual suppressed chains -/9noncomputable section10namespace Nonadditivity.HaarPathGraph.Path11variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1213/-- A maximal core chain visits each unoriented colored edge at most once. -/14theorem coreChain_edges_nodup (c : P.CoreChain) : (c.val.map Prod.fst).Nodup := by15apply List.Nodup.map_on _ (P.toCore_nodup c.property.1)16intro q hq q' hq' he17obtain ⟨e,b⟩ := q18obtain ⟨e',b'⟩ := q'19change e=e' at he20subst e'21cases b <;> cases b'22· rfl23· exact (P.coreChain_not_both_orientations c hq (by simpa [reverse] using hq')).elim24· exact (P.coreChain_not_both_orientations c hq (by simpa [reverse] using hq')).elim25· rfl2627/-- A suppressed chain has length at most the original path length. -/28theorem coreChain_length_le (c : P.CoreChain) : c.val.length ≤ m := by29have hsub : (c.val.map Prod.fst).toFinset ⊆ P.edges := by30intro e he31obtain ⟨q,hq,rfl⟩ := List.mem_map.mp (List.mem_toFinset.mp he)32exact (Finset.mem_product.mp (P.toCore_mem c.property.1 hq)).133have hc := Finset.card_le_card hsub34rw [List.toFinset_card_of_nodup (P.coreChain_edges_nodup c),List.length_map] at hc35have he := List.toFinset_card_le P.edgeList36rw [P.edgeList_length] at he37exact hc.trans he3839/-- The actual signed-color profile of a suppressed chain, with its required40length bound proved from the original graph. -/41def coreChainProfile (c : P.CoreChain) : HaarPathProfiles.BoundedProfile42(HaarPathProfiles.Color d) m := by43let a := c.val.head (P.toCore_nonempty c.property.1)44let l := c.val.tail45have he : c.val=a::l := (List.cons_head_tail (P.toCore_nonempty c.property.1)).symm46refine ⟨HaarPathProfiles.wordProfile (color a) (l.map color), color a, l.map color, ?_, rfl⟩47have hl := P.coreChain_length_le c48simpa [he] using hl4950end Nonadditivity.HaarPathGraph.Path