OdometerGluing #
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.OdometerGluing :
(∀ {n : ℕ} {T : ProtoTile} {U : Fin n → ProtoTile} {h : Fin n → PartialOdometer},
LatticeTile T →
(∀ (i : Fin n), LatticeTile (U i)) →
(∀ (i : Fin n), ↑(h i).domain = FootprintVertices (U i)) →
(∀ (i j : Fin n), OdometerCompatibility (h i) (h j)) →
(∀ (x : LatticeCell), x ∈ T.cells ↔ ∃ (i : Fin n), x ∈ (U i).cells) →
(∀ (x : GaussianInt), x ∈ FootprintVertices T ↔ ∃ (i : Fin n), x ∈ (h i).domain) →
∃ (g : PartialOdometer),
↑g.domain = FootprintVertices T ∧ (∀ (i : Fin n), OdometerCompatibility g (h i)) ∧ ∀ (g' : PartialOdometer),
↑g'.domain = FootprintVertices T →
(∀ (i : Fin n), OdometerCompatibility g' (h i)) →
∃ (c : ℤ), ∀ x ∈ g.domain, g'.value x - g.value x = c) ∧ ∀ {ι : Type} [Nonempty ι] {T : ι → ProtoTile} {h : ι → PartialOdometer},
(∀ (i : ι), LatticeTile (T i)) →
(∀ (i : ι), ↑(h i).domain = FootprintVertices (T i)) →
(∀ (i j : ι), OdometerCompatibility (h i) (h j)) →
(∀ (x : GaussianInt),
∃ (i : ι),
x ∈ (h i).domain ∧ x + 1 ∈ (h i).domain ∧ x + { re := 0, im := 1 } ∈ (h i).domain ∧ x + 1 + { re := 0, im := 1 } ∈ (h i).domain) →
∃ (g : IntegerLatticeFunction),
(∀ (i : ι), ∃ (c : ℤ), ∀ x ∈ (h i).domain, g x - (h i).value x = c) ∧ ∀ (g' : IntegerLatticeFunction),
(∀ (i : ι), ∃ (c : ℤ), ∀ x ∈ (h i).domain, g' x - (h i).value x = c) →
∃ (c : ℤ), ∀ (x : GaussianInt), g' x - g x = c