# Question 31341: Sign and Square Eligibility of a Candidate Distance

[Return to catalogue page 157](https://ocme.evemisslab.com/en/questions/page/157/)

[← Question derivation index](https://ocme.evemisslab.com/en/questions/) · [Original question batch](https://ocme.evemisslab.com/en/practice/batch-20261005-advance-20261006-r04-distance-formula-foundations/#q-20261005-advance-20261006-r04-distance-formula-0066)

This teaching derivation has second-context AI mathematical and bilingual semantic review, limited to the model and assumptions stated in this question. It has no human review or new Lean proof and does not promote the original question or MKO to Canonical truth.

R0061-31341 · q-20261005-advance-20261006-r04-distance-formula-0066



## Original question and givens

Use one equal-unit orthonormal Euclidean Cartesian frame. P=(3, -10) and Q=(-285, 24). Is the candidate d=290 the Euclidean L2 distance? Check both its sign and its square.


- G001 — Use one equal-unit orthonormal Euclidean Cartesian frame. P=(3, -10) and Q=(-285, 24). Is the candidate d=290 the Euclidean L2 distance? Check both its sign and its square.





## Definition and scope

Use the original question domain, assumptions and cited MKO definitions. This item has second-context mathematical and bilingual review, with the model, answer and every arithmetic step independently recomputed from the original parameters; the source question remains a candidate.


- [mko-distance-formula](https://ocme.evemisslab.com/en/mko/mko-distance-formula/)





## Step-by-step derivation

S001 · impliesBefore

source roles = [qf-distance-candidate, candidate_distance, frame, euclidean_orthonormal_equal_units]

After

derived = [[nonnegative_exact_candidate_YesNo]]

Conditions: none

Check THIS source interface:distance uses ONLY its complete coordinate frame;other families use a domain.Discrete operations use local hyphens,legacy banks underscores.Retain family-specific ordered output types and original bilingual data/status.

Step identifiers and dependenciesRule: R61_SOURCE_exact_keys_operation_domain_OR_frame_and_output_roles · Uses: G001





S002 · calculationBefore

Distance PQ ORIGINAL Q minus P axis0 := sub(-285, 3)

After

Distance PQ ORIGINAL Q minus P axis0 = -288

Conditions: none

Retain ORIGINAL operands and order for exact integer arithmetic.Only raw inputs are SAFE-bounded;derived integers are not recapped or approximated.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S001





S003 · calculationBefore

Distance PQ ORIGINAL Q minus P axis1 := sub(24, -10)

After

Distance PQ ORIGINAL Q minus P axis1 = 34

Conditions: none

Retain ORIGINAL operands and order for exact integer arithmetic.Only raw inputs are SAFE-bounded;derived integers are not recapped or approximated.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S002





S004 · calculationBefore

Distance PQ ORIGINAL signed delta squared axis0 := mul(-288, -288)

After

Distance PQ ORIGINAL signed delta squared axis0 = 82944

Conditions: none

Retain ORIGINAL operands and order for exact integer arithmetic.Only raw inputs are SAFE-bounded;derived integers are not recapped or approximated.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S003





S005 · calculationBefore

Distance PQ ORIGINAL signed delta squared axis1 := mul(34, 34)

After

Distance PQ ORIGINAL signed delta squared axis1 = 1156

Conditions: none

Retain ORIGINAL operands and order for exact integer arithmetic.Only raw inputs are SAFE-bounded;derived integers are not recapped or approximated.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S004





S006 · calculationBefore

Distance PQ ORIGINAL sum of two squares := sum(82944, 1156)

After

Distance PQ ORIGINAL sum of two squares = 84100

Conditions: none

Retain ORIGINAL operands and order for exact integer arithmetic.Only raw inputs are SAFE-bounded;derived integers are not recapped or approximated.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S005





S007 · impliesBefore

source roles = [Distance PQ, [3, -10], [-285, 24]]

After

derived = [[-288, 34], [82944, 1156], 84100]

Conditions: none

In the DECLARED orthonormal equal-unit frame,distance squared is(Δx)²+(Δy)²≥0,including coincident points.Keep signed differences;do not mistake a signed component for distance.

Step identifiers and dependenciesRule: Distance_ORTHONORMAL_equal_units_two_squares_NONNEGATIVE · Uses: G001, S006





S008 · calculationBefore

Distance ORIGINAL candidate d squared := mul(290, 290)

After

Distance ORIGINAL candidate d squared = 84100

Conditions: none

Retain ORIGINAL operands and order for exact integer arithmetic.Only raw inputs are SAFE-bounded;derived integers are not recapped or approximated.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S007





S009 · impliesBefore

source roles = [290, 84100, 84100]

After

derived = [Yes, Yes, Yes]

Conditions: none

A distance candidate requires BOTH nonnegativity and equal squares.Negative d is a LEGAL input returning No,even if its square matches;do not reject it as malformed.

Step identifiers and dependenciesRule: Distance_CANDIDATE_BOTH_nonnegative_AND_square_equality · Uses: G001, S008









## Reverse checks


- S009 · premise_and_result_audit — Reverse-check the ORIGINAL inputs,types and premises;the conclusion need not uniquely recover its premises.This source-bound candidate is not independent review or formal proof.
- S008 · premise_and_result_audit — Recompute Distance ORIGINAL candidate d squared with exact rational arithmetic, not rounded decimals.
- S007 · premise_and_result_audit — Reverse-check the ORIGINAL inputs,types and premises;the conclusion need not uniquely recover its premises.This source-bound candidate is not independent review or formal proof.
- S006 · premise_and_result_audit — Recompute Distance PQ ORIGINAL sum of two squares with exact rational arithmetic, not rounded decimals.
- S005 · premise_and_result_audit — Recompute Distance PQ ORIGINAL signed delta squared axis1 with exact rational arithmetic, not rounded decimals.
- S004 · premise_and_result_audit — Recompute Distance PQ ORIGINAL signed delta squared axis0 with exact rational arithmetic, not rounded decimals.
- S003 · premise_and_result_audit — Recompute Distance PQ ORIGINAL Q minus P axis1 with exact rational arithmetic, not rounded decimals.
- S002 · premise_and_result_audit — Recompute Distance PQ ORIGINAL Q minus P axis0 with exact rational arithmetic, not rounded decimals.
- S001 · premise_and_result_audit — Reverse-check the ORIGINAL inputs,types and premises;the conclusion need not uniquely recover its premises.This source-bound candidate is not independent review or formal proof.





## Result

Yes

The full substitutions and premise checks give the original answer; source identity,format and status are unchanged.





## This question review and source binding

Review date: 2026-10-26

Original questions, answers, step expressions, numeric ASTs and historical records are retained. Source candidate labels remain historical and are not overwritten as formal proof.

Source hashes and review receipts
- input commit: 0f7be61e2c22317a4075561dc822c87d881a50db
- original question SHA-256: f3eaa69ca7b0bafe6692c82f1751fca96f3822c19e62d57fc18cbc8e39319561
- candidate record SHA-256: e4630a4ebdebb5af8e408682b8a363c56754f21e401f375abb30b8ee187d841c
- semantic review receipt SHA-256: 5403317467ff7c6b74c18ae7211530d0156ebc67d63fc00a3e07b81a201d3d69
- question-first witness SHA-256: c2b5022aa77f803cd3e1ba9ce162a707da0281aa5bb5289111a97de51fe8c495
- Lean: NOT_RUN · human review: NOT_PERFORMED

[Same-source full JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261005-advance-20261006-r04-distance-formula-0066.json)




