P3511T1SourceDissection #
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.
For a boundary $p$ of P3381T1PolygonBoundary with $m=n+3$
vertices and a plane set $X$, a source dissection consists of a positive
integer $N$ and triples $f_k:\{0,1,2\}\to\{0,\ldots,m-1\}$,
$0\le k<N$. The increasing full index list $[0,\ldots,m-1]$ and the
ordered list $(f_k)_{k<N}$ have a saved
P3511T1CyclicDissection. Each triple is injective, their
index sets are distinct, and every boundary index occurs in a triple.
Every source triangle has nonzero
P3381T1TriangleDeterminant. Writing
$\Delta_k=\operatorname{conv}\{p_{f_k(j)}:0\le j<3\}$, the geometric
certificates are
$$ X=\bigcup_{k<N}\Delta_k,\qquad \Delta_k\cap\Delta_l= \operatorname{conv}\{p_i:i\in\operatorname{range}f_k \cap\operatorname{range}f_l\}. $$
For distinct indices $i,j$, the number of indexed triangles containing
both is one for cyclic neighbors, two for a used nonboundary pair,
and zero for an unused nonboundary pair. The hull of an empty common
index set is empty. No target coordinates, attachment ordering,
homeomorphism, or connectedness of the exterior is included.
- count : ℕ
The positive number of source triangles.
The ordered triples of original labels in the saved cyclic dissection.
- 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)