P5532T1ParentInteriorGeometry #
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.P5532T1ParentInteriorGeometry
(C : BandCircle)
(q : Fin 4 → CircleCoordinates)
(cfg : BandOrderedGeneralConfiguration q)
(T : ProtoTile)
(cert : BandOrderedGeneralLayoutCertificate q cfg C T)
(h : PartialOdometer)
(hs : Fin 3 → Bool → PartialOdometer)
(k : PartialOdometer)
:
LatticeTile T →
↑h.domain = FootprintVertices T →
(∀ (i : Fin 3) (s : Bool), ↑(hs i s).domain = FootprintVertices (cert.P i s)) →
↑k.domain = FootprintVertices cert.O →
have D := {x ∈ h.domain | decide (x ∉ BoundaryFootprintVertices T) = true};
have A := fun (a : Fin 3 × Bool) =>
{x ∈ (hs a.1 a.2).domain | decide (x ∉ BoundaryFootprintVertices (cert.P a.1 a.2)) = true};
have I := {x ∈ k.domain | decide (x ∉ BoundaryFootprintVertices cert.O) = true};
(∀ (a : Fin 3 × Bool), A a ⊆ D) ∧ (∀ (a b : Fin 3 × Bool), a ≠ b → A a ∩ A b = if a.1 = 0 ∧ b.1 = 0 then I else ∅) ∧ (∀ (a b : Fin 3 × Bool), ∀ x ∈ A a, x ∉ A b → ∀ y ∈ A b, y ∉ A a → ¬FourNeighborAdjacent x y) ∧ Finset.univ.biUnion A = {x ∈ D |
decide (∃ (i : Fin 3) (s : Bool), x ∈ (hs i s).domain ∧ x ∉ BoundaryFootprintVertices (cert.P i s)) = true}