P4250T2IndegreeSubtraction #
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.P4250T2IndegreeSubtraction
(D P : Finset GaussianInt)
(σ : GaussianInt → ℤ)
(hPD : P ⊆ D)
(hP : Nonempty (AcyclicIndegreeOrientation P σ))
(htotal : ∑ x ∈ D, σ x = ↑({e ∈ D.product D | decide (FourNeighborAdjacent e.1 e.2) = true}.card / 2))
: