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.
Equations
- Quiver.Path.instInhabited = { default := Quiver.Path.nil }
Quiver.Path.toList is a contravariant functor. The inversion comes from Quiver.Path and
List having different preferred directions for adding elements.
A bounded path is a path with a uniform bound on its length.
Equations
- Quiver.Path.BoundedPaths v w n = { p : Quiver.Path v w // p.length ≤ n }
Instances For
Bounded paths of length zero between two vertices form a subsingleton.
Bounded paths of length zero between two vertices have decidable equality.
Equations
- Quiver.Path.decidableEqBddPathsZero v w x✝¹ x✝ = isTrue ⋯
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.
Equations
- One or more equations did not get rendered due to their size.
- Quiver.Path.decidableEqBddPathsOfDecidableEq n h₁ h₂ h₃ v_1 v_1 ⟨Quiver.Path.nil, hp_2⟩ ⟨Quiver.Path.nil, hq_4⟩ = isTrue ⋯
- Quiver.Path.decidableEqBddPathsOfDecidableEq n h₁ h₂ h₃ v_1 v_1 ⟨Quiver.Path.nil, hp_2⟩ ⟨a_1.cons a_2, hq_4⟩ = isFalse ⋯
- Quiver.Path.decidableEqBddPathsOfDecidableEq n h₁ h₂ h₃ v_1 v_1 ⟨a_1.cons a_2, hp_2⟩ ⟨Quiver.Path.nil, hq_4⟩ = isFalse ⋯
- Quiver.Path.decidableEqBddPathsOfDecidableEq n h₁ h₂ h₃ v_1 w_1 ⟨p'_1.cons α_1, hp⟩ ⟨q'_1.cons β_1, hq⟩ = isFalse ⋯
Instances For
Equality is decidable on all uniformly bounded paths given decidable equality on the vertices and the arrows.
Equations
- One or more equations did not get rendered due to their size.
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).
Equations
- Quiver.Reachable a b = Nonempty (Quiver.Path a b)
Instances For
The image of a path under a prefunctor.
Equations
- F.mapPath Quiver.Path.nil = Quiver.Path.nil
- F.mapPath (p.cons a_1) = (F.mapPath p).cons (F.map a_1)