PlaneEmbeddingAgreement #
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.
Let $P$ be a periodic tile complex and let $R$ be a
PeriodicTileContactRouting. A plane-embedding agreement records
the geometric side components and the induced rotation system of $R$, and
compares them with the fixed cellular embedding of $P$.
More precisely, it chooses a coherent fixed-face orientation in the sense
of PlaneFaceOrientation. For each directed prescribed edge
$ab$, it chooses one of its two fixed incident faces, denoted
$F_R(a,b)$, and the corresponding open connected component $S_R(a,b)$ of
the complement of the routed vertices and arcs. The full routed arc
$A_{ab}$ lies in the frontier of both $S_R(a,b)$ and $S_R(b,a)$; these two
components are disjoint. Component means maximal open connected subset of
the drawing complement. The two labels $F_R(a,b)$ and $F_R(b,a)$ are
distinct and exhaust the two fixed faces incident to $ab$, and directed
edges labeled by the same fixed face select the same complementary
component. Consequently the labels describe the cyclic order actually
induced by the routed arcs, rather than an independently stored abstract
order.
One Boolean records the single global orientation choice. Simultaneously for every directed edge, $F_R(a,b)$ is the fixed left face of $ab$ when the Boolean is false and the fixed left face of $ba$ when it is true. Thus the two fixed incident faces are individually identified with the two geometric sides of every routed edge, up to one global reversal. No ambient homeomorphism and no exact transport of the fixed face regions is part of the agreement.
- fixedOrientation : PlaneFaceOrientation P.plane
The coherent orientation of the fixed face sides.
The fixed face label occupying the selected geometric side of a routed directed edge.
The maximal open complementary component on that routed directed side.
- reversed : Bool
The single global choice comparing the routed and fixed orientations.
- routed_left_incident (a b : ι) : P.plane.adjacent a b → (∃ (i : Fin 3), P.plane.faceVertex (self.routedLeftFace a b) i = a) ∧ ∃ (i : Fin 3), P.plane.faceVertex (self.routedLeftFace a b) i = b
- routed_opposite_faces (a b : ι) : P.plane.adjacent a b → self.routedLeftFace a b ≠ self.routedLeftFace b a
- routed_sides_exhaust_faces (a b : ι) : P.plane.adjacent a b → ∀ (f : P.plane.Face), ((∃ (i : Fin 3), P.plane.faceVertex f i = a) ∧ ∃ (i : Fin 3), P.plane.faceVertex f i = b) → f = self.routedLeftFace a b ∨ f = self.routedLeftFace b a
- routed_side_open (a b : ι) : P.plane.adjacent a b → IsOpen (self.routedLeftSide a b)
- routed_side_connected (a b : ι) : P.plane.adjacent a b → IsConnected (self.routedLeftSide a b)
- routed_edge_in_side_frontiers (a b : ι) : P.plane.adjacent a b → R.edgeArc a b ⊆ frontier (self.routedLeftSide a b) ∩ frontier (self.routedLeftSide b a)
- routed_opposite_sides (a b : ι) : P.plane.adjacent a b → Disjoint (self.routedLeftSide a b) (self.routedLeftSide b a)
- same_face_same_side (a b c d : ι) : P.plane.adjacent a b → P.plane.adjacent c d → self.routedLeftFace a b = self.routedLeftFace c d → self.routedLeftSide a b = self.routedLeftSide c d
- face_side_agreement (a b : ι) : P.plane.adjacent a b → self.routedLeftFace a b = if self.reversed = true then self.fixedOrientation.leftFace b a else self.fixedOrientation.leftFace a b