P3350T1GraphCellUnionConnected #
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.P3350T1GraphCellUnionConnected
{ι : Type u_1}
(adjacent : ι → ι → Prop)
(hirrefl : ∀ (a : ι), ¬adjacent a a)
(tile : ι → ProtoTile)
(S : Set ι)
(hnonempty : S.Nonempty)
(htile : ∀ a ∈ S, FourNeighborConnected ↑(tile a).cells)
(hdisjoint : ∀ a ∈ S, ∀ b ∈ S, a ≠ b → Disjoint (tile a).cells (tile b).cells)
(hedge : ∀ a ∈ S, ∀ b ∈ S, a ≠ b → adjacent a b → (FootprintEdges (tile a) ∩ FootprintEdges (tile b)).Nonempty)
(hconnected :
∀ a ∈ S,
∀ b ∈ S,
∃ (p : List ι),
p.head? = some a ∧ p.getLast? = some b ∧ (∀ c ∈ p, c ∈ S) ∧ ∀ (c d : ι) (l₁ l₂ : List ι), p = l₁ ++ c :: d :: l₂ → adjacent c d)
:
FourNeighborConnected {x : LatticeCell | ∃ a ∈ S, x ∈ (tile a).cells}