P5532T1ForestAttachment #
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.P5532T1ForestAttachment
(D P R : Finset GaussianInt)
(σ : GaussianInt → ℤ)
(hP : P ⊆ D)
(o : AcyclicIndegreeOrientation P σ)
(hf : RootedFourNeighborForest (D \ P) R)
(hres : ∀ x ∈ D \ P, σ x - ↑{y ∈ P | decide (FourNeighborAdjacent y x) = true}.card = 1 - if x ∈ R then 1 else 0)
: