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