PlaneTriangulation #
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.
A locally finite, $3$-connected cellular plane triangulation consists of a simple locally finite graph, triangular faces with every edge incident to exactly two distinct faces, and a cellular embedding in $\mathbb R^2$. The two faces are given without an ordering: every other face incident to that edge is one of them. The embedding records distinct vertex positions and, for every adjacent pair, an arc homeomorphic to $[0,1]$ whose two endpoints are the two vertex positions. Distinct edge arcs are disjoint when their edges are disjoint and otherwise meet exactly at their common endpoint. It also records pairwise-disjoint open connected face regions whose frontiers are exactly the three incident arcs and whose vertices, arcs, and regions cover the plane. Three-connectivity means that deleting any set of fewer than three vertices leaves a path between any two remaining vertices.
- adjacent : ι → ι → Prop
The simple locally finite graph adjacency relation.
- Face : Type
The type of triangular face labels of the fixed cellular embedding.
The three numbered graph vertices of each face.
The injective plane position of each graph vertex.
The symmetric embedded arc on each graph edge.
The open connected region enclosed by the three arcs of each face.
- face_vertices_distinct (f : self.Face) : Function.Injective (self.faceVertex f)
- face_edges (f : self.Face) (i j : Fin 3) : i ≠ j → self.adjacent (self.faceVertex f i) (self.faceVertex f j)
- every_edge_two_faces (a b : ι) : self.adjacent a b → ∃ (f : self.Face) (g : self.Face), f ≠ g ∧ ((∃ (i : Fin 3), self.faceVertex f i = a) ∧ ∃ (i : Fin 3), self.faceVertex f i = b) ∧ ((∃ (i : Fin 3), self.faceVertex g i = a) ∧ ∃ (i : Fin 3), self.faceVertex g i = b) ∧ ∀ (h : self.Face), ((∃ (i : Fin 3), self.faceVertex h i = a) ∧ ∃ (i : Fin 3), self.faceVertex h i = b) → h = f ∨ h = g
- position_injective : Function.Injective self.position
- region_open (f : self.Face) : IsOpen (self.faceRegion f)
- region_connected (f : self.Face) : IsConnected (self.faceRegion f)
- region_disjoint : Pairwise fun (f g : self.Face) => Disjoint (self.faceRegion f) (self.faceRegion g)
- face_boundary (f : self.Face) : frontier (self.faceRegion f) = self.edgeArc (self.faceVertex f 0) (self.faceVertex f 1) ∪ self.edgeArc (self.faceVertex f 1) (self.faceVertex f 2) ∪ self.edgeArc (self.faceVertex f 2) (self.faceVertex f 0)