Finite walks from restricted relations #
Adapted from Wesley Pegden's Apache-2.0 Trellis formalization.
theorem
ApollonianSuperharmonic.restrictedRelationWalk
{α : Type u_1}
(relation adjacent : α → α → Prop)
(map_adjacent : ∀ (x y : α), relation x y → adjacent x y)
(vertices : α → Prop)
(a b : α)
(ha : vertices a)
(h : Relation.ReflTransGen (fun (x y : α) => relation x y ∧ vertices x ∧ vertices y) a b)
:
A restricted reflexive-transitive path yields a finite walk within its predicate.