Paths along a relation #
Facts about Relation.TransGen, and about walks: paths that record the vertex
each of their edges leaves from.
They live in Cedar.Relation rather than Relation, like the Mathlib copies in
Cedar.List, so that a file can import both Cedar and Mathlib.
theorem
Cedar.Relation.transGen_head
{α : Sort u_1}
{r : α → α → Prop}
{a b : α}
(h : Relation.TransGen r a b)
:
A path starts with an edge.
theorem
Cedar.Relation.transGen_tail
{α : Sort u_1}
{r : α → α → Prop}
{a b : α}
(h : Relation.TransGen r a b)
:
A path ends with an edge.
theorem
Cedar.Relation.transGen_mono
{α : Sort u_1}
{r s : α → α → Prop}
(hrs : ∀ (a b : α), r a b → s a b)
{a b : α}
(h : Relation.TransGen r a b)
:
Relation.TransGen s a b
A path stays a path along a larger relation.