P3597T1SideCrossing #
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.
theorem
ApollonianSuperharmonic.P3597T1SideCrossing
{n : ℕ}
(p : P3381T1PolygonBoundary n)
(i : Fin (n + 3))
(x : ℝ × ℝ)
(hx : x ∈ openSegment ℝ (p.vertex i) (p.vertex (i + 1)))
:
∃ (r : ℝ),
0 < r ∧ (∃ (s : Bool),
∀ y ∈ Metric.ball x r,
y ∈ P3544T1RayParity p ↔ if s = true then 0 < P3381T1TriangleDeterminant ![p.vertex i, p.vertex (i + 1), y]
else P3381T1TriangleDeterminant ![p.vertex i, p.vertex (i + 1), y] < 0) ∧ x ∈ closure (P3544T1RayParity p) ∧ x ∈ closure (P3544T1RayParity p ∪ P3544T1BoundaryCarrier p)ᶜ