S001 · implies
Before
P=(19,-13), Q=(31,-48)
After
Δx=Q_x−P_x; Δy=Q_y−P_y
Conditions: none
Use the same direction Q−P for both coordinate differences.
Step identifiers and dependencies
Rule: coordinate_difference · Uses: G001
Explore related knowledge and questions →
← Question derivation index · Original question batch
P250-0007 · q-20260912-distance-coordinate-0007
In the Euclidean plane, P=(19, -13) and Q=(31, -48). Find the distance d(P,Q).
G001 — In the Euclidean plane, P=(19, -13) and Q=(31, -48). Find the distance d(P,Q).Distance uses the nonnegative principal square root, following existing source assumption a3. Coincident points have zero distance; the selected pairs are distinct and have positive distances.
Before
P=(19,-13), Q=(31,-48)
After
Δx=Q_x−P_x; Δy=Q_y−P_y
Conditions: none
Use the same direction Q−P for both coordinate differences.
Rule: coordinate_difference · Uses: G001
Before
Δx := sub(31, 19)
After
Δx = 12
Conditions: none
Subtract 19 from 31; keep parentheses around negative coordinates.
Rule: exact_rational_arithmetic · Uses: G001, S001
Before
Δy := sub(-48, -13)
After
Δy = -35
Conditions: none
The vertical difference is -48 minus -13.
Rule: exact_rational_arithmetic · Uses: G001, S002
Before
(Δx)² := square(12)
After
(Δx)² = 144
Conditions: none
Square the entire horizontal difference, not just the subtracted coordinate.
Rule: exact_rational_arithmetic · Uses: G001, S003
Before
(Δy)² := square(-35)
After
(Δy)² = 1225
Conditions: none
The square is nonnegative even when the vertical difference is negative.
Rule: exact_rational_arithmetic · Uses: G001, S004
Before
d² := sum(144, 1225)
After
d² = 1369
Conditions: none
Add the two squares in the Euclidean distance formula.
Rule: exact_rational_arithmetic · Uses: G001, S005
Before
d²=1369, d≥0
After
d=√(1369)=37
Conditions: d≥0
Since 37²=1369 and distance is nonnegative, choose the nonnegative root 37.
Rule: nonnegative_square_root · Uses: G001, S006
Before
answer² := square(37)
After
answer² = 1369
Conditions: none
Square the proposed distance to recover the original sum of squares.
Rule: exact_rational_arithmetic · Uses: G001, S007
S008 · premise_and_result_audit — Recompute answer² with exact rational arithmetic, not rounded decimals.S007 · premise_and_result_audit — The negative root is not a distance, and squared distance is not distance itself.S006 · premise_and_result_audit — Recompute d² with exact rational arithmetic, not rounded decimals.S005 · premise_and_result_audit — Recompute (Δy)² with exact rational arithmetic, not rounded decimals.S004 · premise_and_result_audit — Recompute (Δx)² with exact rational arithmetic, not rounded decimals.S003 · premise_and_result_audit — Recompute Δy with exact rational arithmetic, not rounded decimals.S002 · premise_and_result_audit — Recompute Δx with exact rational arithmetic, not rounded decimals.S001 · premise_and_result_audit — Swapping the points changes both signs but not the sum of squares.37
The distance is 37.
Review date: 2026-10-24
Original questions, answers, step expressions, numeric ASTs and historical records are retained. Source candidate labels remain historical and are not overwritten as formal proof.
input commit: 0f7be61e2c22317a4075561dc822c87d881a50dboriginal question SHA-256: 8a3e88ae82f7b21b24cafc5a49d170c074b6ae44716736f49f755fac1fb1d118candidate record SHA-256: 036a79801460dbd23b908a1162066f48133b05d72c4c0547aabb8aa2022fe412semantic review receipt SHA-256: ada91cd601dc368efd790cdd3aa80d0c7432d82b465fcdd1eef5148d3959755cquestion-first witness SHA-256: c36a153d3b48c84ba1bb7f6534cc6b835c243b74dd8080300b8026ab133fc6f6Lean: NOT_RUN · human review: NOT_PERFORMED