rat_segments_union_point
The union of the single degenerate segment from p to p is the one-point set {p}.
Statement
theorem rat_segments_union_point (p : ℚ × ℚ) :
rat_segments_union [(p, p)] = {rat_plane_point p}- Source
- Sanity check of rat_segments_union: a degenerate segment is a point.
- Verified
- 23 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- rat_segments_unionFor a list S of pairs of rational points of the plane, the subset of EuclideanSpace ℝ (Fin 2) that is the union, over the pairs (a, b) in…
- rat_plane_pointThe point of the Euclidean plane EuclideanSpace ℝ (Fin 2) with coordinates (x, y), for a pair (x, y) of rationals.
The proof, explained
We expand the definition of `rat_segments_union` on the singleton list `[(p, p)]`. The union over this single pair reduces to the degenerate segment from the point `rat_plane_point p` to itself, which simplifies to the singleton set containing that point.
rat_segments_union [(p, p)] = {rat_plane_point p} automation
Unfolding `rat_segments_union`, the union over the singleton list `[(p, p)]` reduces to the single line segment from `rat_plane_point p` to `rat_plane_point p`. The simplifier evaluates this degenerate segment to the singleton set `{rat_plane_point p}`.
uses
rat_segments_unionsimp [rat_segments_union]
rat_segments_union- the union over all pairs s in a list S of the closed segment between the points s.1 and s.2
- The simplifier automatically applies the fact that a line segment between identical endpoints is a singleton set (`segment_same`), as well as simplification lemmas for unions indexed over singleton lists.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem rat_segments_union_point (p : ℚ × ℚ) : rat_segments_union [(p, p)] = {rat_plane_point p} := by simp [rat_segments_union]