TileCornerMultiplicity #
Shared facts adapted from Wesley Pegden's Apache-2.0 Trellis formalization of Levine–Pegden–Smart, replacing repeated implementations at their common dependency level.
theorem
ApollonianSuperharmonic.TileCornerMultiplicity.cornerCount
(T : ProtoTile)
:
have I := { re := 0, im := 1 };
have cornerBag := T.cells.val.bind fun (c : LatticeCell) => ↑[c, c + 1, c + I, c + 1 + I];
∀ (z : GaussianInt),
Multiset.count z cornerBag = (((if z ∈ T.cells then 1 else 0) + if z - 1 ∈ T.cells then 1 else 0) + if z - I ∈ T.cells then 1 else 0) + if z - 1 - I ∈ T.cells then 1 else 0
Shared cornerCount identity for TileCornerMultiplicity.
Shared vertexSupport fact.