TileStringCoordinateTransport #
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.TileStringCoordinateTransport
(C : BandCircle)
(orientation : Bool)
(base : ProtoTile)
(hbase : BandPrototile (↑↑C) base)
:
∃ (a : GaussianInt) (b : GaussianInt),
0 < a.re * b.im - a.im * b.re ∧ a ∈ TilingLattice C ∧ b ∈ TilingLattice C ∧ (∀ (w : ↥(TilingLattice C)), ∃! z : ℤ × ℤ, ↑z.1 * a + ↑z.2 * b = ↑w) ∧ ((↑↑C).1 = 1 ∧ (orientation = true ∧ a = 1 ∧ b = { re := 0, im := 1 } ∨ orientation = false ∧ a = { re := 0, im := 1 } ∧ b = -1) ∨ 1 < (↑↑C).1 ∧ ∃ (q : Fin 4 → CircleCoordinates),
ProperBandQuadruple q ∧ q 0 = ↑↑C ∧ (a = BandVectors.1 (q 1) (q 0) ∧ b = BandVectors.1 (q 2) (q 0) ∨ a = BandVectors.1 (q 2) (q 0) ∧ b = BandVectors.1 (q 1) (q 0))) ∧ have tileAt := fun (z : ℤ × ℤ) => TileTranslation base (↑z.1 * a + ↑z.2 * b);
have tileAdjacent := fun (T U : ProtoTile) =>
if (↑↑C).1 = 1 then
∃ (v : GaussianInt),
UnitTriangularStep orientation v ∧ TileCentroid U - TileCentroid T = GaussianRealPoint v
else TileTouching T U;
(∀ (U : ProtoTile), U ∈ RegularTileFamily base (TilingLattice C) ↔ ∃! z : ℤ × ℤ, U = tileAt z) ∧ (∀ (x y : ℤ × ℤ), tileAdjacent (tileAt x) (tileAt y) ↔ TriangularLatticeAdjacent x y) ∧ (∀ (x y z : ℤ × ℤ),
((TileCentroid (tileAt z)).2 - (TileCentroid (tileAt x)).2) * ((TileCentroid (tileAt y)).1 - (TileCentroid (tileAt x)).1) - ((TileCentroid (tileAt z)).1 - (TileCentroid (tileAt x)).1) * ((TileCentroid (tileAt y)).2 - (TileCentroid (tileAt x)).2) = ↑(a.re * b.im - a.im * b.re) * ↑(TriangularSignedHeight x y z)) ∧ ∀ (R S : ProtoTile) (tiles : List ProtoTile) (r s : ℤ × ℤ),
R = tileAt r →
S = tileAt s →
(TileString C orientation base R S tiles ↔ ∃! coordinates : List (ℤ × ℤ), List.Forall₂ (fun (T : ProtoTile) (z : ℤ × ℤ) => T = tileAt z) tiles coordinates ∧ TriangularStripSegment r s coordinates)