P3544T1DiagonalSplit #
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 $p$ with $n+3$ vertices, this data consists of two integers
$n_L,n_R<n$, boundaries $p^L,p^R$ of
P3381T1PolygonBoundary, and injective index maps $\iota_L,\iota_R$
with $p^L=p\circ\iota_L$ and $p^R=p\circ\iota_R$. It also consists
of distinct parent indices $a,b$, nonempty lists $U,V$, and a rotation
$k$, with the exact ordered-list identities
$$ [0,\ldots,n+2].\operatorname{rotate}(k)=[a]+U+[b]+V, \quad\operatorname{ofFn}(\iota_L)=[a]+U+[b],\quad \operatorname{ofFn}(\iota_R)=[b]+V+[a]. $$
The image index sets intersect exactly in $\{a,b\}$. Write
$e=[p_a,p_b]$, $e^\circ=(p_a,p_b)$, and use the carriers and odd sets
of P3544T1BoundaryCarrier and P3544T1RayParity.
The required geometric fields are
$$ C_L\cup C_R=C_p\cup e,\quad C_L\cap C_R=e,\quad e^\circ\subset O_p, \quad(C_L\setminus e)\cap O_R=\varnothing, \quad(C_R\setminus e)\cap O_L=\varnothing. $$
Off $C_L\cup C_R$, parent oddness is the exclusive-or of child oddness.
Balls use the product metric on the plane.
At each $x\in e^\circ$ there is a ball and a Boolean sign choice
on which the left and right odd sets are respectively the positive
and negative strict half-planes of $\det(p_b-p_a,y-p_a)$, or respectively
the negative and positive half-planes. The determinant is equivalently
P3381T1TriangleDeterminant of $(p_a,p_b,y)$.
At either endpoint $z$ there is a ball on which
$$ B(z,r)\cap O_p=B(z,r)\cap(O_L\cup O_R\cup e^\circ). $$
No child face family, filled child intersection, or source dissection
is part of this split data.
- leftParameter : ℕ
The size parameter of the left child polygon.
- rightParameter : ℕ
The size parameter of the right child polygon.
- left : P3381T1PolygonBoundary self.leftParameter
The boundary following the first saved cyclic arc and the diagonal.
- right : P3381T1PolygonBoundary self.rightParameter
The boundary following the complementary saved cyclic arc and the diagonal.
- il : Fin (self.leftParameter + 3) → Fin (n + 3)
Embed the left child labels into the original cyclic boundary.
- ir : Fin (self.rightParameter + 3) → Fin (n + 3)
Embed the right child labels into the original cyclic boundary.
- il_injective : Function.Injective self.il
- ir_injective : Function.Injective self.ir
The first original boundary label at an endpoint of the splitting diagonal.
The second original boundary label at the other diagonal endpoint.
The nonempty list of parent labels strictly inside the first saved arc.
The nonempty list of parent labels strictly inside the complementary arc.
- rotation : ℕ
The rotation identifying the saved pair of arcs with the original cyclic list.
- carrier_union : P3544T1BoundaryCarrier self.left ∪ P3544T1BoundaryCarrier self.right = P3544T1BoundaryCarrier p ∪ segment ℝ (p.vertex self.a) (p.vertex self.b)
- diagonal_odd : openSegment ℝ (p.vertex self.a) (p.vertex self.b) ⊆ P3544T1RayParity p
- parity_sum (x : ℝ × ℝ) : x ∉ P3544T1BoundaryCarrier self.left → x ∉ P3544T1BoundaryCarrier self.right → (x ∈ P3544T1RayParity p ↔ x ∈ P3544T1RayParity self.left ∧ x ∉ P3544T1RayParity self.right ∨ x ∉ P3544T1RayParity self.left ∧ x ∈ P3544T1RayParity self.right)
- diagonal_sides (x : ℝ × ℝ) : x ∈ openSegment ℝ (p.vertex self.a) (p.vertex self.b) → ∃ (r : ℝ), 0 < r ∧ ∃ (s : Bool), ∀ y ∈ Metric.ball x r, (y ∈ P3544T1RayParity self.left ↔ if s = true then 0 < P3381T1TriangleDeterminant ![p.vertex self.a, p.vertex self.b, y] else P3381T1TriangleDeterminant ![p.vertex self.a, p.vertex self.b, y] < 0) ∧ (y ∈ P3544T1RayParity self.right ↔ if s = true then P3381T1TriangleDeterminant ![p.vertex self.a, p.vertex self.b, y] < 0 else 0 < P3381T1TriangleDeterminant ![p.vertex self.a, p.vertex self.b, y])
- endpoint_coherence (z : ℝ × ℝ) : z ∈ {p.vertex self.a, p.vertex self.b} → ∃ (r : ℝ), 0 < r ∧ Metric.ball z r ∩ P3544T1RayParity p = Metric.ball z r ∩ (P3544T1RayParity self.left ∪ P3544T1RayParity self.right ∪ openSegment ℝ (p.vertex self.a) (p.vertex self.b))