One Edge Middle Parameters From Endpoint Radii
ProvedOneEdgeMiddleParametersFromEndpointRadiicrossing-consequencestrellis-port
Let and let be endpoint radii satisfying
Then there are parameters such that the closed parameter interval lies in the relative interior of , the initial cut point lies in , the terminal cut point lies in , and
Formalization Note This node is ported from the Trellis formalization of the crossing lemma and its consequences (wpegden/crossing-consequences, commit 8769d142, W. Pegden, Apache-2.0); the statement is the Trellis node OneEdgeMiddleParametersFromEndpointRadii.
Preamble
import Mathlib.Tactic import Mathlib.Analysis.Normed.Affine.AddTorsor import Mathlib.Analysis.InnerProductSpace.PiL2 import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Combinatorics.SimpleGraph.Finite import Mathlib.Data.Finset.Prod import Mathlib.Data.Set.Finite.Basic import Mathlib.LinearAlgebra.AffineSpace.AffineSubspace.Basic open Classical noncomputable section
Formal statement
lemma OneEdgeMiddleParametersFromEndpointRadii
(a b : EuclideanSpace ℝ (Fin 2))
(ra rb : ℝ)
(hab : a ≠ b)
(hra_pos : 0 < ra) (hrb_pos : 0 < rb)
(hradii_sum_lt : ra + rb < dist a b) :
∃ t0 t1 : ℝ,
0 < t0 ∧ t0 < t1 ∧ t1 < 1 ∧
t0 * dist a b < ra ∧
(1 - t1) * dist a b < rb ∧
AffineMap.lineMap a b t0 ∈ Metric.ball a ra ∧
AffineMap.lineMap a b t1 ∈ Metric.ball b rb ∧
(∀ t : ℝ, t ∈ Set.Icc t0 t1 → t ∈ Set.Ioo (0 : ℝ) 1) := by sorrySource