FiniteConnectedAcyclicDegreeTwoGridPath #
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.FiniteConnectedAcyclicDegreeTwoGridPath
(X : Set GaussianInt)
(E : Set (Finset GaussianInt))
(hEfinite : E.Finite)
(hEne : E.Nonempty)
(hendpoints : X = {x : GaussianInt | ∃ e ∈ E, x ∈ e})
(hgrid : ∀ e ∈ E, ∃ (a : GaussianInt) (b : GaussianInt), e = {a, b} ∧ FourNeighborAdjacent a b)
(hconnected : (SimpleGraph.fromRel fun (a b : ↑X) => {↑a, ↑b} ∈ E).Connected)
(hacyclic : (SimpleGraph.fromRel fun (a b : ↑X) => {↑a, ↑b} ∈ E).IsAcyclic)
(hdegree : ∀ (v : ↑X), ((SimpleGraph.fromRel fun (a b : ↑X) => {↑a, ↑b} ∈ E).neighborSet v).ncard ≤ 2)
:
∃ (x : GaussianInt) (y : GaussianInt), SimpleGridPathBetween X E x y