P5050T1TangentLineSection #
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.P5050T1TangentLineSection
(h σ : ℝ)
(a b : ℂ)
(r s : ℝ)
(hσ : σ ^ 2 = 1)
(hr : 0 < r)
(hs : 0 < s)
(ha : σ * (a.re - h) = r)
(hb : σ * (b.re - h) = s)
(hab : dist a b = r + s)
:
have fa := { re := h, im := a.im };
have fb := { re := h, im := b.im };
have F := fun (w : ℂ) => a + (r / ‖w - a‖) • (w - a);
have Q := (convexHull ℝ) {a, b, fa, fb};
Q = (convexHull ℝ) {a, b, fb} ∪ (convexHull ℝ) {a, fb, fa} ∧ Metric.sphere a r ∩ Q = F '' segment ℝ b fb ∪ F '' segment ℝ fb fa ∧ IsPreconnected (Metric.sphere a r ∩ Q)