Operations on walks #
Operations on walks that produce a new walk in the same graph.
Main definitions #
SimpleGraph.Walk.copy: Change the endpoints of a walk using equalitiesSimpleGraph.Walk.append: Concatenate two compatible walksSimpleGraph.Walk.concat: Concatenate an edge to the end of a walkSimpleGraph.Walk.reverse: Reverse a walkSimpleGraph.Walk.drop: Remove the firstndarts of a walkSimpleGraph.Walk.take: Take the firstndarts of a walkSimpleGraph.Walk.tail: Remove the first dart of a walkSimpleGraph.Walk.dropLast: Remove the last dart of a walk
Tags #
walks
Change the endpoints of a walk using equalities. This is helpful for relaxing
definitional equality constraints and to be able to state otherwise difficult-to-state
lemmas. While this is a simple wrapper around Eq.rec, it gives a canonical way to write it.
The simp-normal form is for the copy to be pushed outward. That way calculations can
occur within the "copy context."
Equations
Instances For
The concatenation of two compatible walks.
Equations
Instances For
The reversed version of SimpleGraph.Walk.cons, concatenating an edge to
the end of a walk.
Equations
Instances For
The concatenation of the reverse of the first walk with the second walk.
Equations
Instances For
The walk in reverse.
Equations
Instances For
A non-trivial cons walk is representable as a concat walk.
A non-trivial concat walk is representable as a cons walk.
Auxiliary definition for SimpleGraph.Walk.concatRec
Equations
Instances For
Recursor on walks by inducting on SimpleGraph.Walk.concat.
This is inducting from the opposite end of the walk compared
to SimpleGraph.Walk.rec, which inducts on SimpleGraph.Walk.cons.
Equations
Instances For
The walk obtained by removing the first n darts of a walk.
Equations
Instances For
The walk obtained by taking the first n darts of a walk.
Equations
Instances For
The walk obtained by removing the first dart of a walk. A nil walk stays nil.
Equations
Instances For
The walk obtained by removing the last dart of a walk. A nil walk stays nil.
Equations
Instances For
Alias of SimpleGraph.Walk.tail_cons.
Alias of SimpleGraph.Walk.support_tail_of_not_nil.