Exact Lean source
Nonadditivity.HaarCoreChainMultiplicity
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
3 project constants, including generated, internal and private declarations.
3 declarations
Nonadditivity.HaarPathGraph.Path.coreChain_count_dartNonadditivity.HaarPathGraph.Path.traversal_count_constant_on_chainNonadditivity.HaarPathGraph.Path.traversal_count_eq_chain_count
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPathTransport78/-! # Exact multiplicities along a suppressed chain -/9noncomputable section10attribute [local instance 2000] instBEqOfDecidableEq11set_option backward.isDefEq.respectTransparency false12set_option maxHeartbeats 100000013namespace Nonadditivity.HaarPathGraph.Path14variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1516/-- A dart in one oriented core chain occurs once in that chain and in no17other oriented core chain. -/18theorem coreChain_count_dart (c c' : P.CoreChain) {q : Dart V d} (hq : q ∈ c.val) :19c'.val.count q = if c'=c then 1 else 0 := by20classical21by_cases hc : c'=c22· subst c'23simp only [ite_true]24exact List.count_eq_one_of_mem (P.toCore_nodup c.property.1) hq25· rw [if_neg hc]26apply List.count_eq_zero.mpr27intro hq'28exact hc (P.coreChain_eq_of_common_dart c' c hq' hq)2930/-- All darts of one oriented compressed edge have exactly the same number31of occurrences in the original path. -/32theorem traversal_count_eq_chain_count (cs : List P.CoreChain)33(hcs : (cs.map Subtype.val).flatten=P.traversalList)34(c : P.CoreChain) {q : Dart V d} (hq : q ∈ c.val) :35P.traversalList.count q=cs.count c := by36classical37rw [←hcs]38clear hcs39induction cs with40| nil => simp41| cons c' cs ih =>42simp only [List.map_cons,List.flatten_cons,List.count_append]43rw [P.coreChain_count_dart c c' hq]44have ht : (List.map Subtype.val cs).flatten.count q=cs.count c := by45apply ih46rw [ht]47by_cases hc : c'=c <;> simp [hc,Nat.add_comm]4849/-- Any two positions along a chain carry identical directed multiplicity. -/50theorem traversal_count_constant_on_chain (hm : 0 < m) (c : P.CoreChain)51{q r : Dart V d} (hq : q ∈ c.val) (hr : r ∈ c.val) :52P.traversalList.count q=P.traversalList.count r := by53obtain ⟨cs,hcs⟩ := P.exists_traversal_chain_decomposition hm54rw [P.traversal_count_eq_chain_count cs hcs c hq,55P.traversal_count_eq_chain_count cs hcs c hr]5657end Nonadditivity.HaarPathGraph.Path