P5203T1CapInterface #
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.P5203T1CapInterface
(k : ℕ)
(hk : 0 < k)
(u : GaussianInt)
:
have T := TileTranslation (DiamondTile k) u;
have U := TileTranslation (DiamondTile k) (u + { re := 0, im := 2 * ↑k });
have V := {z : GaussianInt | (z - u).im = 2 * ↑k ∧ -1 ≤ (z - u).re ∧ (z - u).re ≤ 1};
have E :=
{e : Finset GaussianInt | ∃ (a : ℤ), -1 ≤ a ∧ a < 1 ∧ e = {u + { re := a, im := 2 * ↑k }, u + { re := a + 1, im := 2 * ↑k }}};
Finset.Nonempty T.cells ∧ Finset.Nonempty U.cells ∧ Disjoint T.cells U.cells ∧ BoundaryFootprintVertices T ∩ BoundaryFootprintVertices U = V ∧ BoundaryFootprintEdges T ∩ BoundaryFootprintEdges U = E ∧ SimpleGridPath V E