P4953T1QuadrilateralSections #
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.P4953T1QuadrilateralSections
(h σ : ℝ)
(A B : ℂ)
(hσ : σ ^ 2 = 1)
(hA : 0 < σ * (A.re - h))
(hB : 0 < σ * (B.re - h))
(hAB : A.im < B.im)
:
have fA := { re := h, im := A.im };
have fB := { re := h, im := B.im };
have d := fun (y : ℝ) => A.re + (B.re - A.re) * (y - A.im) / (B.im - A.im);
have Q := (convexHull ℝ) {A, B, fA, fB};
(∀ (z : ℂ), z ∈ Q ↔ A.im ≤ z.im ∧ z.im ≤ B.im ∧ 0 ≤ σ * (z.re - h) ∧ 0 ≤ σ * (d z.im - z.re)) ∧ (∀ (z : ℂ), z ∈ interior Q ↔ A.im < z.im ∧ z.im < B.im ∧ 0 < σ * (z.re - h) ∧ 0 < σ * (d z.im - z.re)) ∧ frontier Q = segment ℝ A B ∪ segment ℝ A fA ∪ segment ℝ B fB ∪ segment ℝ fA fB