AFTD Auto-Formalizing Theoretical Domains

rat_segments_union_point

theoremverified

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.

  1. 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}`.

    line 3

    uses rat_segments_union

      simp [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

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

theorem rat_segments_union_point (p : ℚ × ℚ) :    rat_segments_union [(p, p)] = {rat_plane_point p} := by  simp [rat_segments_union]
See it in the graphDiscuss this resultChallenge it