P3381T1PairedTriangulation #
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 P3381T1PolygonBoundary, and let $X,K\subseteq \mathbb R^2$. A paired triangulation consists of distinct target points
$q_i$, a finite indexed family of triples $f_k$ of distinct vertex
indices, and the following certificates. The target boundary segments
have exactly the same simplicity condition as the source boundary.
Distinct triples have distinct sets of indices, and every vertex index
occurs in a triple. Both source and target triangles are nondegenerate
in the sense of P3381T1TriangleDeterminant.
Put
$$ \Delta_k=\operatorname{conv}\{p_{f_k(0)},p_{f_k(1)},p_{f_k(2)}\}, \qquad \Delta'_k=\operatorname{conv}\{q_{f_k(0)},q_{f_k(1)},q_{f_k(2)}\}. $$
The coverage certificates are $X=\bigcup_k\Delta_k$ and
$K=\bigcup_k\Delta'_k$. If $J_{kl}$ is the intersection of the two
sets of indices, the exact face-intersection certificates are
$$ \Delta_k\cap\Delta_l=\operatorname{conv}\{p_i:i\in J_{kl}\}, \qquad \Delta'_k\cap\Delta'_l=\operatorname{conv}\{q_i:i\in J_{kl}\}. $$
The convex hull of the empty set is empty. For any two distinct indices
$i,j$, precisely one triangle contains them both if they are cyclic
neighbors. Otherwise precisely two triangles contain them both if any
does, and none do if none does. These are counts of indexed triangles,
not an assertion about a drawing supplied elsewhere.
Finally, $K$ equals the convex hull of all $q_i$, is convex, closed and bounded, has nonempty ambient interior, and its actual ambient frontier is $\bigcup_i[q_i,q_{i+1}]$. Every source boundary vertex, including a straight vertex or an inserted rational port, remains an index in both realizations. No source diskness, source frontier formula, homeomorphism, or separation conclusion is assumed.
The target positions of the unchanged boundary labels.
- target_injective : Function.Injective self.target
- count : ℕ
The number of indexed triangles in the common face family.
The three boundary labels of each indexed triangle.
- face_injective (k : Fin self.count) : Function.Injective (self.face k)
- face_distinct : Function.Injective fun (k : Fin self.count) => Set.range (self.face k)
- target_closed : IsClosed K
- target_bounded : Bornology.IsBounded K