Exact Lean source
Nonadditivity.HaarCoreChainEndpoints
Download original .lean · View on GitHub · Jump to source
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
5 project constants, including generated, internal and private declarations.
5 declarations
Nonadditivity.HaarPathGraph.Path.coreChain_reverse_source_mem_core_iffNonadditivity.HaarPathGraph.Path.coreChain_reverse_source_mem_core_iff._proof_1_1internal/detail/privateNonadditivity.HaarPathGraph.Path.coreChain_source_mem_core_iffNonadditivity.HaarPathGraph.Path.coreChain_source_mem_core_iff._proof_1_1internal/detail/privateNonadditivity.HaarPathGraph.Path.coreChain_source_mem_core_iff._proof_1_2internal/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.HaarPathInternalColors7import Nonadditivity.HaarCoreChainReverseAddress89/-! # Exact core endpoints in chain position coordinates1011A complete suppressed chain meets the core only at its initial source12and final target. These equivalences also cover one-edge chains and loops.13-/14noncomputable section15set_option backward.isDefEq.respectTransparency false16namespace Nonadditivity.HaarPathGraph.Path17variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1819theorem coreChain_source_mem_core_iff (c : P.CoreChain) (i : Fin c.val.length) :20source (c.val.get i) ∈ P.coreVertices ↔ i.val=0 := by21constructor22· intro hc23by_contra hi24have ht : i.val-1<c.val.tail.length := by25simp only [List.length_tail]26have hi' := i.isLt27omega28have he : c.val.tail.get ⟨i.val-1,ht⟩=c.val.get i := by29rw [List.get_tail]30congr 131apply Fin.ext32change i.val-1+1=i.val33omega34have hm : c.val.get i ∈ c.val.tail := he ▸ List.get_mem c.val.tail ⟨i.val-1,ht⟩35exact P.toCore_tail_source_not_core c.property.1 hm hc36· intro hi37obtain ⟨q,l,he,hq⟩ := c.property.238have hg : c.val.get i=q := by simp [List.get_eq_getElem,he,hi]39simpa only [hg] using hq4041theorem coreChain_reverse_source_mem_core_iff (c : P.CoreChain) (i : Fin c.val.length) :42source (reverse (c.val.get i)) ∈ P.coreVertices ↔ i.val+1=c.val.length := by43let j : Fin (P.coreChainReverse c).val.length :=44Fin.cast (P.coreChainReverse_length c).symm i.rev45have he : (P.coreChainReverse c).val.get j=reverse (c.val.get i) := by46exact congrArg Subtype.val (P.positionDart_reversePosition ⟨c,i⟩)47rw [← he,P.coreChain_source_mem_core_iff]48simp only [j,Fin.val_cast,Fin.val_rev]49have hi := i.isLt50omega5152end Nonadditivity.HaarPathGraph.Path