AFTD Auto-Formalizing Theoretical Domains

rat_plane_point

def

The point of the Euclidean plane EuclideanSpace ℝ (Fin 2) with coordinates (x, y), for a pair (x, y) of rationals.

Statement

noncomputable def rat_plane_point (p : ℚ × ℚ) : EuclideanSpace ℝ (Fin 2)
Source
Geometry, helper for the polynomial-time statement of OP-2019 (arXiv:2611.24611 (Inapproximability of Euclidean Steiner Tree), Section 6.1, after Corollary 20 (open question: is planar Euclidean Cable Steiner Tree APX-hard or does it admit a PTAS?)).
Verified
23 Nov 2026
Axioms
none listed
Used by 5
  • rat_segments_lengthFor a list S of pairs of rational points of the plane, the real number that is the sum over the pairs (a, b) in S (with multiplicity) of…
  • rat_segments_union_pointThe union of the single degenerate segment from p to p is the one-point set {p}.
  • rat_plane_point_distThe distance between the plane points of rational pairs p and q is sqrt((p1-q1)^2 + (p2-q2)^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…
  • cable_steiner_opt_two_pointsFor two one-point cables p and q (degenerate segments), the cable Steiner optimum is the Euclidean distance between p and q.

Lean source view module on GitHub

/-- The point (x, y) of the Euclidean plane `EuclideanSpace ℝ (Fin 2)` given by a pair of rationals. -/
noncomputable def rat_plane_point (p : ℚ × ℚ) : EuclideanSpace ℝ (Fin 2) :=
  !₂[(p.1 : ℝ), (p.2 : ℝ)]
See it in the graphDiscuss this resultChallenge it