Documentation

LeanPool.ApollonianSuperharmonic.P5290T1UnitContactPaths

P5290T1UnitContactPaths #

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.P5290T1UnitContactPaths (k : ℕ) (hk : 0 < k) (i : Fin 3) (hi : i ≠ 2) (hreg : 1 < k ∨ i = 1) :
have M := P5260T1PlacementLedger k i false; have D := DiamondTile k; have W := M.1.1; have Z := M.1.2; have x := M.2.2.1; have y := M.2.2.2; have d := if i = 0 then { re := 0, im := 1 } else -1; have rows := [(D, W, x, y), (D, W, y, x), (TileTranslation D M.2.1.1, W, x, x + d), (TileTranslation D M.2.1.2, W, y, y + d), (W, Z, y, y + d)]; (∀ (T U : ProtoTile) (a c : GaussianInt), (T, U, a, c) ∈ rows → Finset.Nonempty T.cells ∧ Finset.Nonempty U.cells ∧ Disjoint T.cells U.cells ∧ SimpleGridPathBetween (BoundaryFootprintVertices T ∩ BoundaryFootprintVertices U) (BoundaryFootprintEdges T ∩ BoundaryFootprintEdges U) a c) ∧ BoundaryFootprintVertices D ∩ BoundaryFootprintVertices W = {x, y} ∧ BoundaryFootprintVertices W ∩ BoundaryFootprintVertices Z = {y, y + d} ∧ (i = 1 → Finset.Nonempty Z.cells ∧ Finset.Nonempty D.cells ∧ Disjoint Z.cells D.cells ∧ SimpleGridPathBetween (BoundaryFootprintVertices Z ∩ BoundaryFootprintVertices D) (BoundaryFootprintEdges Z ∩ BoundaryFootprintEdges D) y (y + { re := 0, im := 1 }))