P5617T1RectangleReachabilityAndBasepointConnectivity #
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.P5617T1RectangleReachabilityAndBasepointConnectivity :
(∀ (A : Set LatticeCell) (x y : LatticeCell),
(∀ (z : LatticeCell),
min x.re y.re ≤ z.re → z.re ≤ max x.re y.re → min x.im y.im ≤ z.im → z.im ≤ max x.im y.im → z ∈ A) →
Relation.ReflTransGen (fun (x y : LatticeCell) => FourNeighborAdjacent x y ∧ x ∈ A ∧ y ∈ A) x y) ∧ ∀ (A : Set LatticeCell),
∀ o ∈ A,
(∀ x ∈ A, Relation.ReflTransGen (fun (x y : LatticeCell) => FourNeighborAdjacent x y ∧ x ∈ A ∧ y ∈ A) x o) →
FourNeighborConnected A