Exact Lean source
Nonadditivity.HaarCoreChainReverseAddress
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
8 project constants, including generated, internal and private declarations.
8 declarations
Nonadditivity.HaarPathGraph.Path.coreChainReverse_lengthNonadditivity.HaarPathGraph.Path.positionDart_reversePositionNonadditivity.HaarPathGraph.Path.positionDart_reversePosition._proof_1_2internal/detail/privateNonadditivity.HaarPathGraph.Path.positionEquiv_symm_reverseNonadditivity.HaarPathGraph.Path.reversePositionNonadditivity.HaarPathGraph.Path.reversePosition._proof_1internal/detail/privateNonadditivity.HaarPathGraph.Path.reversePosition.eq_1internal/detail/privateNonadditivity.HaarPathGraph.Path.reversePosition_involutive
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarCoreChainAddress78/-! # Reversal in literal core-chain position coordinates -/9noncomputable section10set_option backward.isDefEq.respectTransparency false11namespace Nonadditivity.HaarPathGraph.Path12variable {V : Type*} [DecidableEq V] {d m : ℕ} (P : Path V d m)1314@[simp] theorem coreChainReverse_length (c : P.CoreChain) :15(P.coreChainReverse c).val.length=c.val.length := by16change (c.val.reverse.map reverse).length=c.val.length17simp1819def reversePosition (p : P.ChainPosition) : P.ChainPosition :=20⟨P.coreChainReverse p.1, Fin.cast (P.coreChainReverse_length p.1).symm p.2.rev⟩2122/-- The precise reversed address is the reversed chain and the reversed23finite index. This includes one-edge chains and colored loops. -/24theorem positionDart_reversePosition (p : P.ChainPosition) :25P.positionDart (P.reversePosition p) =26⟨reverse (P.positionDart p).val,P.reverse_mem (P.positionDart p).property⟩ := by27obtain ⟨c,i⟩ := p28apply Subtype.ext29change (c.val.reverse.map reverse).get _ = reverse (c.val.get i)30simp only [reversePosition,List.get_eq_getElem,List.getElem_map,List.getElem_reverse,Fin.val_cast,Fin.val_rev]31congr 232have hi := i.isLt33omega3435@[simp] theorem reversePosition_involutive (p : P.ChainPosition) :36P.reversePosition (P.reversePosition p)=p := by37apply P.positionDart_injective38rw [P.positionDart_reversePosition]39apply Subtype.ext40simp only [P.positionDart_reversePosition,reverse_reverse]4142/-- Reversal of an actual dart reverses its unique complete-chain address. -/43theorem positionEquiv_symm_reverse (q : P.darts) :44P.positionEquiv.symm ⟨reverse q.val,P.reverse_mem q.property⟩ =45P.reversePosition (P.positionEquiv.symm q) := by46apply P.positionEquiv.injective47rw [Equiv.apply_symm_apply,P.positionEquiv_apply,P.positionDart_reversePosition]48congr 149exact congrArg (fun z : P.darts => reverse z.val) (P.positionEquiv.apply_symm_apply q).symm5051end Nonadditivity.HaarPathGraph.Path