AFTD Auto-Formalizing Theoretical Domains

segment_crossing

def

Two line segments in the plane, represented as unordered pairs of endpoints in Sym2 (ℝ × ℝ), cross if the intersection of their relative interiors (open segments) is nonempty.

Statement

def segment_crossing (e₁ e₂ : Sym2 (ℝ × ℝ)) : Prop
Defined in
arXiv:2610.23130 Sec. 1
Verified
20 Oct 2026
Axioms
none listed
Used by 8

Read back from the Lean

segment_crossing e₁ e₂ defines a proposition for two unordered pairs of points in ℝ², e₁ and e₂. It asserts that the open segment between the two points of e₁ and the open segment between the two points of e₂ have a nonempty intersection (i.e., there exists a point in ℝ² that lies strictly between the endpoints of both segments).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- Predicate that two line segments in ℝ² intersect in their relative interiors. -/
def segment_crossing (e₁ e₂ : Sym2 (ℝ × ℝ)) : Prop := ((Sym2.lift ⟨fun u v => openSegment ℝ u v, fun u v => openSegment_symm (𝕜 := ℝ) u v⟩ e₁) ∩
   (Sym2.lift ⟨fun u v => openSegment ℝ u v, fun u v => openSegment_symm (𝕜 := ℝ) u v⟩ e₂)).Nonempty
See it in the graphDiscuss this resultChallenge it