Documentation

LeanPool.ApollonianSuperharmonic.P5290T1EqualDiamondPaths

P5290T1EqualDiamondPaths #

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.P5290T1EqualDiamondPaths (k : ℕ) (hk : 0 < k) (i : Fin 3) (hi : i ≠ 2) :
have M := P5260T1PlacementLedger k i false; have D := DiamondTile k; have x := M.2.2.1; have y := M.2.2.2; have eR := if i = 0 then { re := -↑k, im := ↑k + 1 } else 0; have eI := if i = 0 then { re := ↑k, im := ↑k } else { re := -1, im := 2 * ↑k }; have rows := [(D, TileTranslation D M.2.1.1, x, eR), (D, TileTranslation D M.2.1.2, y, eI)]; (∀ (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 (TileTranslation D M.2.1.1) = {z : GaussianInt | if i = 0 then -↑k ≤ z.re ∧ z.re ≤ 0 ∧ ↑k + 1 ≤ z.im ∧ z.im ≤ 2 * ↑k ∧ 2 * ↑k ≤ z.im - z.re ∧ z.im - z.re ≤ 2 * ↑k + 1 else -↑k ≤ z.re ∧ z.re ≤ 0 ∧ 0 ≤ z.im ∧ z.im ≤ ↑k - 1 ∧ -1 ≤ z.re + z.im ∧ z.re + z.im ≤ 0} ∧ BoundaryFootprintVertices D ∩ BoundaryFootprintVertices (TileTranslation D M.2.1.2) = {z : GaussianInt | if i = 0 then 1 ≤ z.re ∧ z.re ≤ ↑k ∧ ↑k ≤ z.im ∧ z.im ≤ 2 * ↑k ∧ 2 * ↑k ≤ z.re + z.im ∧ z.re + z.im ≤ 2 * ↑k + 1 else -↑k ≤ z.re ∧ z.re ≤ -1 ∧ ↑k ≤ z.im ∧ z.im ≤ 2 * ↑k ∧ 2 * ↑k ≤ z.im - z.re ∧ z.im - z.re ≤ 2 * ↑k + 1}