BandOrderedGeneralNestedRightOdometerRows #
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.BandOrderedGeneralNestedRightOdometerRows
(q : Fin 4 → CircleCoordinates)
(cfg : BandOrderedGeneralConfiguration q)
(C0 : BandCircle)
(T : ProtoTile)
(cert : BandOrderedGeneralLayoutCertificate q cfg C0 T)
(h : PartialOdometer)
(P : Fin 3 → Bool → ProtoTile)
(r : Fin 3 → Bool → PartialOdometer)
(Q S : Fin 3 → Bool → ProtoTile)
(u v : Fin 3 → Bool → PartialOdometer)
(g : IntegerLatticeFunction)
(x : GaussianInt)
(marked : Bool)
(data : BandOrderedGeneralOdometerRowData q cfg C0 T cert h P r Q S u v g)
(row : BandOrderedGeneralInteriorWebRow cert x marked)
(right :
(∃ (left_mem : x ∈ FootprintVertices (cert.Q 1 true)) (right_mem : x ∈ FootprintVertices (cert.P 1 true)) (star :
∀ (y : GaussianInt),
y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } →
y ∈ FootprintVertices (cert.Q 1 true) ∨ y ∈ FootprintVertices (cert.P 1 true))
(squares :
(∀ (z : GaussianInt),
z = x ∨ z = x - 1 ∨ z = x - { re := 0, im := 1 } ∨ z = x - 1 - { re := 0, im := 1 } →
z ∈ (cert.Q 1 true).cells ∨ z ∈ (cert.P 1 true).cells) ↔ marked = false),
row = ⋯) ∨ ∃ (left_mem : x ∈ FootprintVertices (cert.S 1 false)) (right_mem : x ∈ FootprintVertices (cert.P 1 false)) (star :
∀ (y : GaussianInt),
y = x ∨ y = x + 1 ∨ y = x - 1 ∨ y = x + { re := 0, im := 1 } ∨ y = x - { re := 0, im := 1 } →
y ∈ FootprintVertices (cert.S 1 false) ∨ y ∈ FootprintVertices (cert.P 1 false))
(squares :
(∀ (z : GaussianInt),
z = x ∨ z = x - 1 ∨ z = x - { re := 0, im := 1 } ∨ z = x - 1 - { re := 0, im := 1 } →
z ∈ (cert.S 1 false).cells ∨ z ∈ (cert.P 1 false).cells) ↔ marked = false),
row = ⋯)
: