P3475T1GridBoundary #
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.P3475T1GridBoundary
(T : ProtoTile)
(hinside : FourNeighborConnected ↑T.cells)
(houtside : FourNeighborConnected (↑T.cells)ᶜ)
(hchecker : NoCheckerboardCellVertex ↑T.cells)
:
∃ (n : ℕ) (p : P3381T1PolygonBoundary n) (v : Fin (n + 3) → GaussianInt),
(∀ (i : Fin (n + 3)), p.vertex i = GaussianRealPoint (v i)) ∧ (∀ (i : Fin (n + 3)), FourNeighborAdjacent (v i) (v (i + 1))) ∧ BoundaryFootprintVertices T = Set.range v ∧ BoundaryFootprintEdges T = {e : Finset GaussianInt | ∃ (i : Fin (n + 3)), e = {v i, v (i + 1)}}