Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

One Edge Middle Open Segment Neighborhood

Proved
OneEdgeMiddleOpenSegmentNeighborhood

by moona3k · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

crossing-consequencestrellis-port

Let a≠ba\ne ba=b in R2\mathbb R^2R2, let 0<t0<t1<10<t_0<t_1<10<t0​<t1​<1, and let R⊆R2R\subseteq\mathbb R^2R⊆R2 be an open middle rectangle. Suppose that

{(1−t)a+tb:t0<t<t1}⊆R.\{(1-t)a+tb:t_0<t<t_1\}\subseteq R.{(1−t)a+tb:t0​<t<t1​}⊆R.

Let ra,rbr_a,r_bra​,rb​ be endpoint radii such that

t0∣a−b∣<ra,(1−t1)∣a−b∣<rb,t_0|a-b|<r_a,\qquad (1-t_1)|a-b|<r_b,t0​∣a−b∣<ra​,(1−t1​)∣a−b∣<rb​,

and suppose also that the two cut points (1−t0)a+t0b(1-t_0)a+t_0b(1−t0​)a+t0​b and (1−t1)a+t1b(1-t_1)a+t_1b(1−t1​)a+t1​b lie respectively in B(a,ra)B(a,r_a)B(a,ra​) and B(b,rb)B(b,r_b)B(b,rb​). Then

(B(a,ra)∪R)∪B(b,rb)(B(a,r_a)\cup R)\cup B(b,r_b)(B(a,ra​)∪R)∪B(b,rb​)

is open and contains the open segment (a,b)(a,b)(a,b).

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 sorry
Source
https://github.com/wpegden/crossing-consequences/blob/8769d142033fce042f502bf2857afb6b1375b5c3/Tablet/OneEdgeMiddleOpenSegmentNeighborhood.lean#L1-L65

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me