P5532T1RestrictionMassBalance #
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.P5532T1RestrictionMassBalance
(c : CircleCoordinates)
(U : ProtoTile)
(k : PartialOdometer)
(g : IntegerLatticeFunction)
(ho : TileOdometer c U k)
(hdom : ↑k.domain = FootprintVertices U)
(hext : GlobalOdometerExtends g k)
:
have I := {x ∈ k.domain | decide (x ∉ BoundaryFootprintVertices U) = true};
∑ x ∈ I, (2 + FourNeighborLaplacian g x) = ↑({e ∈ I.product I | decide (FourNeighborAdjacent e.1 e.2) = true}.card / 2)