P4677T2TouchingWalk #
Adapted from Wesley Pegden’s Apache-2.0 Trellis formalization of Levine–Pegden–Smart. Changes: pool module paths, public exports, project namespace and current Mathlib compatibility.
theorem
ApollonianSuperharmonic.P4677T2TouchingWalk
(T U : ProtoTile)
(x y : GaussianInt)
(h : TileTouching T U)
(hx : x ∈ FootprintVertices T ∩ FootprintVertices U)
(hy : y ∈ FootprintVertices T ∩ FootprintVertices U)
:
∃ (p : List GaussianInt),
p.head? = some x ∧ p.getLast? = some y ∧ (∀ z ∈ p, z ∈ FootprintVertices T ∩ FootprintVertices U) ∧ ∀ (a b : GaussianInt) (l₁ l₂ : List GaussianInt),
p = l₁ ++ a :: b :: l₂ → {a, b} ∈ FootprintEdges T ∩ FootprintEdges U