Step-by-step derivation
S001 · implies
Before
source roles = [qf-distance-comparison, distance_comparison, frame, euclidean_orthonormal_equal_units]
After
derived = [[PQ_versus_UV_operator]]
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 dependencies
Rule: R61_SOURCE_exact_keys_operation_domain_OR_frame_and_output_roles · Uses: G001
S002 · calculation
Before
Distance PQ ORIGINAL Q minus P axis0 := sub(8, -2)
After
Distance PQ ORIGINAL Q minus P axis0 = 10
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · calculation
Before
Distance PQ ORIGINAL Q minus P axis1 := sub(6, -5)
After
Distance PQ ORIGINAL Q minus P axis1 = 11
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
Distance PQ ORIGINAL signed delta squared axis0 := mul(10, 10)
After
Distance PQ ORIGINAL signed delta squared axis0 = 100
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
Distance PQ ORIGINAL signed delta squared axis1 := mul(11, 11)
After
Distance PQ ORIGINAL signed delta squared axis1 = 121
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · calculation
Before
Distance PQ ORIGINAL sum of two squares := sum(100, 121)
After
Distance PQ ORIGINAL sum of two squares = 221
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · implies
Before
source roles = [Distance PQ, [-2, -5], [8, 6]]
After
derived = [[10, 11], [100, 121], 221]
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 dependencies
Rule: Distance_ORTHONORMAL_equal_units_two_squares_NONNEGATIVE · Uses: G001, S006
S008 · calculation
Before
Distance UV ORIGINAL Q minus P axis0 := sub(5, -5)
After
Distance UV ORIGINAL Q minus P axis0 = 10
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · calculation
Before
Distance UV ORIGINAL Q minus P axis1 := sub(0, -13)
After
Distance UV ORIGINAL Q minus P axis1 = 13
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S008
S010 · calculation
Before
Distance UV ORIGINAL signed delta squared axis0 := mul(10, 10)
After
Distance UV ORIGINAL signed delta squared axis0 = 100
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · calculation
Before
Distance UV ORIGINAL signed delta squared axis1 := mul(13, 13)
After
Distance UV ORIGINAL signed delta squared axis1 = 169
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
Distance UV ORIGINAL sum of two squares := sum(100, 169)
After
Distance UV ORIGINAL sum of two squares = 269
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 dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · implies
Before
source roles = [Distance UV, [-5, -13], [5, 0]]
After
derived = [[10, 13], [100, 169], 269]
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 dependencies
Rule: Distance_ORTHONORMAL_equal_units_two_squares_NONNEGATIVE · Uses: G001, S012
S014 · implies
Before
source roles = [221, 269]
After
derived = [<]
Conditions: none
Both distances are nonnegative,and the principal square root is strictly increasing there,so compare SQUARED norms in PQ-versus-UV order.Neither norm need be a perfect square;do not compare signed components or coordinate order.
Step identifiers and dependencies
Rule: Distance_COMPARE_PQ_versus_UV_by_nondecreasing_principal_roots · Uses: G001, S013