TileOdometerReindexedDecomposition #
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.TileOdometerReindexedDecomposition
(q : Fin 4 → CircleCoordinates)
(hq : ProperBandQuadruple q)
(T : ProtoTile)
(h : PartialOdometer)
(hroot : 1 < (q 0).1)
(hO : TileOdometer (q 0) T h)
:
∃ (S : Fin 3 → Bool → ProtoTile) (hs : Fin 3 → Bool → PartialOdometer),
BandPrototile (q 0) T ∧ (∀ (i : Fin 3) (s : Bool), TileOdometer (q i.succ) (S i s) (hs i s)) ∧ (∀ (x : LatticeCell), x ∈ T.cells ↔ ∃ (i : Fin 3) (s : Bool), x ∈ (S i s).cells) ∧ (∀ (i : Fin 3) (s : Bool), FootprintVertices (S i s) ⊆ FootprintVertices T) ∧ (∀ (i : Fin 3) (s : Bool),
TileCentroid (S i s) - TileCentroid T = (if s = true then 1 else -1) • (1 / 2) • (GaussianRealPoint (BandVectors.1 (q (i + 2).succ) (q (i + 1).succ)) - (-(GaussianRealPoint (BandVectors.1 (q (i + 2).succ) (q (i + 1).succ))).2, (GaussianRealPoint (BandVectors.1 (q (i + 2).succ) (q (i + 1).succ))).1))) ∧ (∀ (x : GaussianInt), x ∈ h.domain ↔ ∃ (i : Fin 3) (s : Bool), x ∈ (hs i s).domain) ∧ (∀ (i : Fin 3) (s : Bool), ∀ x ∈ (hs i s).domain, h.value x = (hs i s).value x) ∧ (∀ (i : Fin 3) (s : Bool) (j : Fin 3) (t : Bool), OdometerCompatibility (hs i s) (hs j t)) ∧ ∀ (i : Fin 3) (s : Bool),
(q i.succ).1 = 0 ∨ ∃ (p : ℝ × ℝ) (p_i : ℝ × ℝ),
PartialOdometerSlope h = some p ∧ PartialOdometerSlope (hs i s) = some p_i ∧ p_i.1 - p.1 = (if s = true then 1 else -1) * (1 / 2) * (↑(BandVectors.2 (q (i + 2).succ) (q (i + 1).succ)).re - ↑(BandVectors.2 (q (i + 2).succ) (q (i + 1).succ)).im) ∧ p_i.2 - p.2 = (if s = true then 1 else -1) * (1 / 2) * (↑(BandVectors.2 (q (i + 2).succ) (q (i + 1).succ)).im + ↑(BandVectors.2 (q (i + 2).succ) (q (i + 1).succ)).re)