P4590T1MixedInteriorGeometry #
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.P4590T1MixedInteriorGeometry
(q : Fin 4 → CircleCoordinates)
(cfg : BandOrderedGeneralConfiguration q)
(C : BandCircle)
(T : ProtoTile)
(cert : BandOrderedGeneralLayoutCertificate q cfg C T)
(hT : LatticeTile T)
(x : GaussianInt)
(hx : x ∈ FootprintVertices T)
(hxb : x ∉ BoundaryFootprintVertices T)
(hk : Nat.card { is : Fin 3 × Bool // x ∈ BoundaryFootprintVertices (cert.P is.1 is.2) } = 2)
:
(x ∈ FootprintVertices (cert.P 0 true) →
x ∈ FootprintVertices (cert.P 1 false) →
(∀ (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.P 0 true) ∨ y ∈ FootprintVertices (cert.P 1 false)) ∧ x ∉ FootprintVertices (cert.P 0 false)) ∧ (x ∈ FootprintVertices (cert.P 0 true) →
x ∈ FootprintVertices (cert.P 2 false) →
(∀ (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.P 0 true) ∨ y ∈ FootprintVertices (cert.P 2 false)) ∧ x ∉ FootprintVertices (cert.P 1 true)) ∧ (x ∈ FootprintVertices (cert.P 1 true) →
x ∈ FootprintVertices (cert.P 0 false) →
(∀ (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.P 1 true) ∨ y ∈ FootprintVertices (cert.P 0 false)) ∧ x ∉ FootprintVertices (cert.P 0 true)) ∧ (x ∈ FootprintVertices (cert.P 2 true) →
x ∈ FootprintVertices (cert.P 0 false) →
(∀ (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.P 2 true) ∨ y ∈ FootprintVertices (cert.P 0 false)) ∧ x ∉ FootprintVertices (cert.P 1 false)) ∧ (x ∈ FootprintVertices (cert.P 1 true) →
x ∈ FootprintVertices (cert.P 2 false) →
(∀ (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.P 1 true) ∨ y ∈ FootprintVertices (cert.P 2 false)) ∧ x ∉ FootprintVertices (cert.P 0 true)) ∧ (x ∈ FootprintVertices (cert.P 2 true) →
x ∈ FootprintVertices (cert.P 1 false) →
(∀ (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.P 2 true) ∨ y ∈ FootprintVertices (cert.P 1 false)) ∧ x ∉ FootprintVertices (cert.P 0 false))