P3650T1ParitySum #
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.P3650T1ParitySum
{n : ℕ}
(p : P3381T1PolygonBoundary n)
(a b : Fin (n + 3))
(C : P3650T1CyclicChildren p a b)
:
(∀ (x d : ℝ × ℝ),
{i : Fin (C.leftParameter + 3) | ∃ (t : ℝ), 0 < t ∧ x + t • d ∈ segment ℝ (C.left.vertex i) (C.left.vertex (i + 1))}.ncard + {i : Fin (C.rightParameter + 3) | ∃ (t : ℝ), 0 < t ∧ x + t • d ∈ segment ℝ (C.right.vertex i) (C.right.vertex (i + 1))}.ncard = {i : Fin (n + 3) | ∃ (t : ℝ), 0 < t ∧ x + t • d ∈ segment ℝ (p.vertex i) (p.vertex (i + 1))}.ncard + 2 * if ∃ (t : ℝ), 0 < t ∧ x + t • d ∈ segment ℝ (p.vertex a) (p.vertex b) then 1 else 0) ∧ ∀ 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)