Step-by-step derivation
S001 · implies
Before
source roles = [qf-real-rational-point-distance, [left, operation, right]]
After
derived = [exact_rational_distance, no-invented-domain]
Conditions: none
Separate source banks:legacy RAW SAFE with unbounded derived BigInts versus BASE Number.isInteger without invented SAFE/million caps.Operations,domains and permissive/exact keys follow THIS bank.Keep ORIGINAL JSON intact.
Step identifiers and dependencies
Rule: R68_BANK_specific_keys_operations_and_numeric_guards · Uses: G001
S002 · calculation
Before
Real ORIGINAL left point ORIGINAL exact numerator over nonzero denominator := div(4, 1)
After
Real ORIGINAL left point ORIGINAL exact numerator over nonzero denominator = 4
Conditions: none
Calculate exactly from ORIGINAL ordered operands;mul/sub/div have EXPLICITLY TWO operands.Legacy derived BigInts are not recapped at RAW SAFE;check BASE Number type/representation conditions separately.Do not use floating approximations to force an answer.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · implies
Before
source roles = [Real ORIGINAL left point, [4, 1]]
After
derived = [[4, 1], 4/1]
Conditions: none
BASE normalizeFraction requires INTEGER components and nonzero denominator,without invented SAFE/million/100million caps.Normalize denominator sign and gcd;zero is0/1.This derived representation does not alter the ORIGINAL raw pair.
Step identifiers and dependencies
Rule: Real_BASE_fraction_sign_gcd_normalization_NO_invented_SAFEcap · Uses: G001, S002
S004 · calculation
Before
Real ORIGINAL right point ORIGINAL exact numerator over nonzero denominator := div(-5, 1)
After
Real ORIGINAL right point ORIGINAL exact numerator over nonzero denominator = -5
Conditions: none
Calculate exactly from ORIGINAL ordered operands;mul/sub/div have EXPLICITLY TWO operands.Legacy derived BigInts are not recapped at RAW SAFE;check BASE Number type/representation conditions separately.Do not use floating approximations to force an answer.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · implies
Before
source roles = [Real ORIGINAL right point, [-5, 1]]
After
derived = [[-5, 1], -5/1]
Conditions: none
BASE normalizeFraction requires INTEGER components and nonzero denominator,without invented SAFE/million/100million caps.Normalize denominator sign and gcd;zero is0/1.This derived representation does not alter the ORIGINAL raw pair.
Step identifiers and dependencies
Rule: Real_BASE_fraction_sign_gcd_normalization_NO_invented_SAFEcap · Uses: G001, S004
S006 · calculation
Before
Real ORIGINAL normalized left numerator times right positive denominator := mul(4, 1)
After
Real ORIGINAL normalized left numerator times right positive denominator = 4
Conditions: none
Calculate exactly from ORIGINAL ordered operands;mul/sub/div have EXPLICITLY TWO operands.Legacy derived BigInts are not recapped at RAW SAFE;check BASE Number type/representation conditions separately.Do not use floating approximations to force an answer.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · calculation
Before
Real ORIGINAL normalized right numerator times left positive denominator := mul(-5, 1)
After
Real ORIGINAL normalized right numerator times left positive denominator = -5
Conditions: none
Calculate exactly from ORIGINAL ordered operands;mul/sub/div have EXPLICITLY TWO operands.Legacy derived BigInts are not recapped at RAW SAFE;check BASE Number type/representation conditions separately.Do not use floating approximations to force an answer.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · calculation
Before
Real distance ORIGINAL signed crossproduct difference := sub(4, -5)
After
Real distance ORIGINAL signed crossproduct difference = 9
Conditions: none
Calculate exactly from ORIGINAL ordered operands;mul/sub/div have EXPLICITLY TWO operands.Legacy derived BigInts are not recapped at RAW SAFE;check BASE Number type/representation conditions separately.Do not use floating approximations to force an answer.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · calculation
Before
Real distance ORIGINAL positive denominator product := mul(1, 1)
After
Real distance ORIGINAL positive denominator product = 1
Conditions: none
Calculate exactly from ORIGINAL ordered operands;mul/sub/div have EXPLICITLY TWO operands.Legacy derived BigInts are not recapped at RAW SAFE;check BASE Number type/representation conditions separately.Do not use floating approximations to force an answer.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S008
S010 · implies
Before
source roles = [4/1, -5/1, 9, 1]
After
derived = [9, 1]
Conditions: none
Real-line distance is|left−right|.Retain the signed difference BEFORE taking abs.Equal points have distance0;do not return signed or squared distance or guess a sign by reordering points.
Step identifiers and dependencies
Rule: Real_DISTANCE_absolute_difference_NOT_signed_or_squared · Uses: G001, S009
S011 · calculation
Before
Real exact distance derived fraction ORIGINAL exact numerator over nonzero denominator := div(9, 1)
After
Real exact distance derived fraction ORIGINAL exact numerator over nonzero denominator = 9
Conditions: none
Calculate exactly from ORIGINAL ordered operands;mul/sub/div have EXPLICITLY TWO operands.Legacy derived BigInts are not recapped at RAW SAFE;check BASE Number type/representation conditions separately.Do not use floating approximations to force an answer.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · implies
Before
source roles = [Real exact distance derived fraction, [9, 1]]
After
derived = [[9, 1], 9/1]
Conditions: none
BASE normalizeFraction requires INTEGER components and nonzero denominator,without invented SAFE/million/100million caps.Normalize denominator sign and gcd;zero is0/1.This derived representation does not alter the ORIGINAL raw pair.
Step identifiers and dependencies
Rule: Real_BASE_fraction_sign_gcd_normalization_NO_invented_SAFEcap · Uses: G001, S011