Documentation

LeanPool.ApollonianSuperharmonic.RestrictedRelationWalk

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) :
∃ (path : List α), path.head? = some a ∧ path.getLast? = some b ∧ (∀ (x : α), x ∈ path → vertices x) ∧ ∀ (x y : α) (l₁ l₂ : List α), path = l₁ ++ x :: y :: l₂ → adjacent x y

A restricted reflexive-transitive path yields a finite walk within its predicate.