Paths in quivers #
Given a quiver V, we define the type of paths from a : V to b : V as an inductive
family. We define composition of paths and the action of prefunctors on paths.
We also define Quiver.Reachable a b, the existence of a directed path from a to b.
Quiver.Path.toList is a contravariant functor. The inversion comes from Quiver.Path and
List having different preferred directions for adding elements.
Bounded paths of length zero between two vertices form a subsingleton.
Bounded paths of length zero between two vertices have decidable equality.
Instances For
Given decidable equality on paths of length up to n, we can construct
decidable equality on paths of length up to n + 1.
Instances For
Equality is decidable on all uniformly bounded paths given decidable equality on the vertices and the arrows.
Equality is decidable on paths in a quiver given decidable equality on the vertices and arrows.
Reachable a b holds when there is a directed path from a to b.
This is a preorder rather than an equivalence, since quiver paths are directed (compare the
symmetric SimpleGraph.Reachable).
Instances For
The image of a path under a prefunctor.