P3475T1TriangleTree #
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$ and plane sets $X,K$, an exact triangle attachment tree
contains all the data and certificates of
P3381T1PairedTriangulation for $(p,X,K)$, together with a
positive triangle count and a permutation $o$ of the triangle indices.
For every $k>0$ there are distinct indices $a,b,c$ such that the $k$th triangle in this order has vertex set ${a,b,c}$, $c$ occurs in no
earlier triangle, and precisely one earlier triangle contains both
$a,b$. In both the source and target realizations, the intersection of
this triangle with the union of all earlier closed triangles is exactly
the entire segment joining the vertices $a,b$.
In particular the new triangle is attached along one old boundary edge;
it has no additional contact with the old union. This records finite
attachment geometry, not connected complementary domains.
- face_distinct : Function.Injective fun (k : Fin self.count) => Set.range (self.face k)
- target_nondegenerate (k : Fin self.count) : P3381T1TriangleDeterminant (self.target ∘ self.face k) ≠ 0
- target_convex : Convex ℝ K
- target_interior : (interior K).Nonempty
The triangle attachment order, with each later triangle attached along one old edge.
- attachment (k : Fin self.count) : 0 < ↑k → ∃ (a : Fin (n + 3)) (b : Fin (n + 3)) (c : Fin (n + 3)), a ≠ b ∧ a ≠ c ∧ b ≠ c ∧ Set.range (self.face (self.order k)) = {a, b, c} ∧ (∀ (l : Fin self.count), ↑l < ↑k → c ∉ Set.range (self.face (self.order l))) ∧ {l : Fin self.count | ↑l < ↑k ∧ a ∈ Set.range (self.face (self.order l)) ∧ b ∈ Set.range (self.face (self.order l))}.ncard = 1 ∧ (convexHull ℝ) (Set.range (p.vertex ∘ self.face (self.order k))) ∩ ⋃ (l : { l : Fin self.count // ↑l < ↑k }), (convexHull ℝ) (Set.range (p.vertex ∘ self.face (self.order ↑l))) = segment ℝ (p.vertex a) (p.vertex b) ∧ (convexHull ℝ) (Set.range (self.target ∘ self.face (self.order k))) ∩ ⋃ (l : { l : Fin self.count // ↑l < ↑k }), (convexHull ℝ) (Set.range (self.target ∘ self.face (self.order ↑l))) = segment ℝ (self.target a) (self.target b)