P3650T1ExposedCorner #
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, an exposed
corner consists of an index $b$ and a real linear functional $\ell$
whose values at all indexed vertices are distinct, with its unique
maximum at $p_b$. Put $a=p_{b-1}$, $B=p_b$, $c=p_{b+1}$, with indices
read cyclically. The determinant of $(a,B,c)$ in
P3381T1TriangleDeterminant is nonzero. The data include an
affine height function $h$ with $h(a)=h(c)=0$, $h(B)=1$, together with
the existence of a positive product-metric radius $r$ such that,
for every $x\in B(B,r)$,
$$ x\in O_p\quad\Longleftrightarrow\quad x=B+s(a-B)+t(c-B)\text{ for some }s,t>0, $$
where $O_p$ is P3544T1RayParity. Thus the local odd set
is precisely the open convex cone between the two lower incident rays.
The unique boundary vertex maximizing the chosen linear functional.
A linear functional with distinct values on all boundary vertices.
- distinct_heights : Function.Injective (⇑self.ell ∘ p.vertex)
The affine height normalized to zero at the two neighbors and one at the exposed vertex.