Step-by-step derivation
S001 · implies
Before
source roles = [qf-density14-linear-root-substitution-grid, density14_linear_root_substitution_grid, finite_Q_affine_row_protocol]
After
derived = [[root, ALL_candidates, ALL_original_residuals, ALL_exact_solution_flags]]
Conditions: none
density14/15 use FULL-prefix underscores;density17 uses LOCAL hyphens.The coordinate and circle frames differ.Retain THIS family ordered answer roles/types and all original bilingual JSON/status.
Step identifiers and dependencies
Rule: R60_EXACT_perbank_operation_domain_FRAME_and_output_roles · Uses: G001
S002 · calculation
Before
Linear grid base ORIGINAL negated constant := sub(0, -5)
After
Linear grid base ORIGINAL negated constant = 5
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · calculation
Before
Linear grid base ORIGINAL negative b over a := div(5, -8)
After
Linear grid base ORIGINAL negative b over a = -5/8
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
Linear grid base reverse ORIGINAL a times root := mul(-8, -5/8)
After
Linear grid base reverse ORIGINAL a times root = 5
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
Linear grid base reverse ORIGINAL residual plus b := sum(5, -5)
After
Linear grid base reverse ORIGINAL residual plus b = 0
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · implies
Before
source roles = [Linear grid base, -8, -5]
After
derived = [-5/8, 0/1]
Conditions: none
ONLY nonzero a permits division:ax+b=0 IFF x=-b/a.Substitute into the ORIGINAL coefficients to verify zero residual.Normalize a negative a to a positive denominator;derived roots are not SAFE-capped or approximated.
Step identifiers and dependencies
Rule: Linear_NONZERO_a_exact_Q_root_AND_original_substitution · Uses: G001, S005
S007 · implies
Before
source roles = [Linear grid original offset0, [0, 1]]
After
derived = [0/1]
Conditions: none
Both RAW pair components are SAFE and the denominator is nonzero.Negative denominators normalize sign/gcd;derived fractions are not SAFE/1e6-capped.Integer fractions retain/1.
Step identifiers and dependencies
Rule: R60_RAW_SAFE_rational_pair_NONZERO_den_SIGN_normalized · Uses: G001, S006
S008 · implies
Before
source roles = [Linear grid original offset1, [8, 2]]
After
derived = [4/1]
Conditions: none
Both RAW pair components are SAFE and the denominator is nonzero.Negative denominators normalize sign/gcd;derived fractions are not SAFE/1e6-capped.Integer fractions retain/1.
Step identifiers and dependencies
Rule: R60_RAW_SAFE_rational_pair_NONZERO_den_SIGN_normalized · Uses: G001, S007
S009 · implies
Before
source roles = [Linear grid original offset2, [-7, 3]]
After
derived = [-7/3]
Conditions: none
Both RAW pair components are SAFE and the denominator is nonzero.Negative denominators normalize sign/gcd;derived fractions are not SAFE/1e6-capped.Integer fractions retain/1.
Step identifiers and dependencies
Rule: R60_RAW_SAFE_rational_pair_NONZERO_den_SIGN_normalized · Uses: G001, S008
S010 · calculation
Before
Linear grid ORIGINAL root plus offset0 := sum(-5/8, 0)
After
Linear grid ORIGINAL root plus offset0 = -5/8
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · calculation
Before
Linear grid ORIGINAL a times candidate0 := mul(-8, -5/8)
After
Linear grid ORIGINAL a times candidate0 = 5
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
Linear grid ORIGINAL candidate0 residual plus b := sum(5, -5)
After
Linear grid ORIGINAL candidate0 residual plus b = 0
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · calculation
Before
Linear grid reverse a times offset0 := mul(-8, 0)
After
Linear grid reverse a times offset0 = 0
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S012
S014 · calculation
Before
Linear grid ORIGINAL root plus offset1 := sum(-5/8, 4)
After
Linear grid ORIGINAL root plus offset1 = 27/8
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · calculation
Before
Linear grid ORIGINAL a times candidate1 := mul(-8, 27/8)
After
Linear grid ORIGINAL a times candidate1 = -27
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S014
S016 · calculation
Before
Linear grid ORIGINAL candidate1 residual plus b := sum(-27, -5)
After
Linear grid ORIGINAL candidate1 residual plus b = -32
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · calculation
Before
Linear grid reverse a times offset1 := mul(-8, 4)
After
Linear grid reverse a times offset1 = -32
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S016
S018 · calculation
Before
Linear grid ORIGINAL root plus offset2 := sum(-5/8, -7/3)
After
Linear grid ORIGINAL root plus offset2 = -71/24
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · calculation
Before
Linear grid ORIGINAL a times candidate2 := mul(-8, -71/24)
After
Linear grid ORIGINAL a times candidate2 = 71/3
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S018
S020 · calculation
Before
Linear grid ORIGINAL candidate2 residual plus b := sum(71/3, -5)
After
Linear grid ORIGINAL candidate2 residual plus b = 56/3
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · calculation
Before
Linear grid reverse a times offset2 := mul(-8, -7/3)
After
Linear grid reverse a times offset2 = 56/3
Conditions: none
Use ORIGINAL operands for exact integer/rational arithmetic.Only RAW inputs use SAFE or the explicit family bounds;derived values do not inherit those caps or use floating approximations.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S020
S022 · implies
Before
source roles = [-8, -5, -5/8, [0/1, 4/1, -7/3]]
After
derived = [[-5/8, 27/8, -71/24], [0/1, -32/1, 56/3], [Yes, No, No]]
Conditions: none
For EVERY candidate evaluate the ORIGINAL a*x+b,not nearness to a root or raw offset appearance.The reverse check is residual=a*offset;with a!=0,ONLY offset0 gives a solution.Normalize negative denominators first.
Step identifiers and dependencies
Rule: Linear_grid_EVERY_original_equation_residual_exact_zero_NOT_nearness · Uses: G001, S021