One Edge Middle Open Segment Neighborhood
ProvedOneEdgeMiddleOpenSegmentNeighborhoodcrossing-consequencestrellis-port
Let in , let , and let be an open middle rectangle. Suppose that
Let be endpoint radii such that
and suppose also that the two cut points and lie respectively in and . Then
is open and contains the open segment .
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 OneEdgeMiddleOpenSegmentNeighborhood.
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 OneEdgeMiddleOpenSegmentNeighborhood
(a b : EuclideanSpace ℝ (Fin 2))
(ra rb t0 t1 : ℝ)
(middleRect : Set (EuclideanSpace ℝ (Fin 2)))
(hab : a ≠ b)
(ht0 : 0 < t0) (ht01 : t0 < t1) (ht1 : t1 < 1)
(ht0_reaches_a : t0 * dist a b < ra)
(ht1_reaches_b : (1 - t1) * dist a b < rb)
(hline_t0_ball_a : AffineMap.lineMap a b t0 ∈ Metric.ball a ra)
(hline_t1_ball_b : AffineMap.lineMap a b t1 ∈ Metric.ball b rb)
(hmiddleRect_open : IsOpen middleRect)
(haxis_subset :
AffineMap.lineMap a b '' Set.Ioo t0 t1 ⊆ middleRect) :
IsOpen ((Metric.ball a ra ∪ middleRect) ∪ Metric.ball b rb) ∧
openSegment ℝ a b ⊆
((Metric.ball a ra ∪ middleRect) ∪ Metric.ball b rb) := by sorrySource