Documentation

LeanPool.ApollonianSuperharmonic.P4250T2IndegreeSubtraction

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)) :
have W := D \ P; ∑ x ∈ W, (σ x - ↑{y ∈ P | decide (FourNeighborAdjacent y x) = true}.card) = ↑({e ∈ W.product W | decide (FourNeighborAdjacent e.1 e.2) = true}.card / 2)