P3650T1LocalCoherence #
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.P3650T1LocalCoherence
{n : ℕ}
(p : P3381T1PolygonBoundary n)
(a b : Fin (n + 3))
(hab : a ≠ b)
(C : P3650T1CyclicChildren p a b)
(hodd : openSegment ℝ (p.vertex a) (p.vertex b) ⊆ P3544T1RayParity p)
(hleft : Disjoint (P3544T1BoundaryCarrier C.left \ segment ℝ (p.vertex a) (p.vertex b)) (P3544T1RayParity C.right))
(hright : Disjoint (P3544T1BoundaryCarrier C.right \ segment ℝ (p.vertex a) (p.vertex b)) (P3544T1RayParity C.left))
(hsum :
∀ x ∉ P3544T1BoundaryCarrier C.left,
x ∉ P3544T1BoundaryCarrier C.right →
(x ∈ P3544T1RayParity p ↔ x ∈ P3544T1RayParity C.left ∧ x ∉ P3544T1RayParity C.right ∨ x ∉ P3544T1RayParity C.left ∧ x ∈ P3544T1RayParity C.right))
:
(∀ x ∈ openSegment ℝ (p.vertex a) (p.vertex b),
∃ (r : ℝ),
0 < r ∧ ∃ (s : Bool),
∀ y ∈ Metric.ball x r,
(y ∈ P3544T1RayParity C.left ↔ if s = true then 0 < P3381T1TriangleDeterminant ![p.vertex a, p.vertex b, y]
else P3381T1TriangleDeterminant ![p.vertex a, p.vertex b, y] < 0) ∧ (y ∈ P3544T1RayParity C.right ↔ if s = true then P3381T1TriangleDeterminant ![p.vertex a, p.vertex b, y] < 0
else 0 < P3381T1TriangleDeterminant ![p.vertex a, p.vertex b, y])) ∧ ∀ z ∈ {p.vertex a, p.vertex b},
∃ (r : ℝ),
0 < r ∧ Metric.ball z r ∩ P3544T1RayParity p = Metric.ball z r ∩
(P3544T1RayParity C.left ∪ P3544T1RayParity C.right ∪ openSegment ℝ (p.vertex a) (p.vertex b))