Step-by-step derivation
S001 · implies
Before
source roles = [gd-boundary]
After
derived = [[mode, step_count, iterate_objective_records, convergence_or_global_optimality_claim, boundary]]
Conditions: none
List the complete operation/mode field order without JavaScript or answer-shape inference;Boolean,string,null and an unclaimed result remain distinct.
Step identifiers and dependencies
Rule: source_ordered_fields_without_JS · Uses: G001
S002 · calculation
Before
GD boundary ORIGINAL ORIGINAL gradient d*x coordinate0 := mul(1, 23)
After
GD boundary ORIGINAL ORIGINAL gradient d*x coordinate0 = 23
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · calculation
Before
GD boundary ORIGINAL ORIGINAL gradient plus b coordinate0 := sum(23, 22)
After
GD boundary ORIGINAL ORIGINAL gradient plus b coordinate0 = 45
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
GD boundary ORIGINAL ORIGINAL gradient d*x coordinate1 := mul(2, 1)
After
GD boundary ORIGINAL ORIGINAL gradient d*x coordinate1 = 2
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
GD boundary ORIGINAL ORIGINAL gradient plus b coordinate1 := sum(2, -22)
After
GD boundary ORIGINAL ORIGINAL gradient plus b coordinate1 = -20
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · calculation
Before
GD boundary ORIGINAL ORIGINAL objective SQUARE FIRST coordinate0 := mul(23, 23)
After
GD boundary ORIGINAL ORIGINAL objective SQUARE FIRST coordinate0 = 529
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · calculation
Before
GD boundary ORIGINAL ORIGINAL diagonal times square coordinate0 := mul(1, 529)
After
GD boundary ORIGINAL ORIGINAL diagonal times square coordinate0 = 529
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · calculation
Before
GD boundary ORIGINAL ORIGINAL quadratic divide2 coordinate0 := div(529, 2)
After
GD boundary ORIGINAL ORIGINAL quadratic divide2 coordinate0 = 529/2
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · calculation
Before
GD boundary ORIGINAL ORIGINAL linear product coordinate0 := mul(22, 23)
After
GD boundary ORIGINAL ORIGINAL linear product coordinate0 = 506
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S008
S010 · calculation
Before
GD boundary ORIGINAL ORIGINAL coordinate objective sum0 := sum(529/2, 506)
After
GD boundary ORIGINAL ORIGINAL coordinate objective sum0 = 1541/2
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · calculation
Before
GD boundary ORIGINAL ORIGINAL objective running sum0 := sum(0, 1541/2)
After
GD boundary ORIGINAL ORIGINAL objective running sum0 = 1541/2
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
GD boundary ORIGINAL ORIGINAL objective SQUARE FIRST coordinate1 := mul(1, 1)
After
GD boundary ORIGINAL ORIGINAL objective SQUARE FIRST coordinate1 = 1
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · calculation
Before
GD boundary ORIGINAL ORIGINAL diagonal times square coordinate1 := mul(2, 1)
After
GD boundary ORIGINAL ORIGINAL diagonal times square coordinate1 = 2
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S012
S014 · calculation
Before
GD boundary ORIGINAL ORIGINAL quadratic divide2 coordinate1 := div(2, 2)
After
GD boundary ORIGINAL ORIGINAL quadratic divide2 coordinate1 = 1
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · calculation
Before
GD boundary ORIGINAL ORIGINAL linear product coordinate1 := mul(-22, 1)
After
GD boundary ORIGINAL ORIGINAL linear product coordinate1 = -22
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S014
S016 · calculation
Before
GD boundary ORIGINAL ORIGINAL coordinate objective sum1 := sum(1, -22)
After
GD boundary ORIGINAL ORIGINAL coordinate objective sum1 = -21
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · calculation
Before
GD boundary ORIGINAL ORIGINAL objective running sum1 := sum(1541/2, -21)
After
GD boundary ORIGINAL ORIGINAL objective running sum1 = 1499/2
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S016
S018 · implies
Before
source roles = [GD boundary ORIGINAL, [1, 2], [22, -22], [23, 1]]
After
derived = [[1, 2], [22, -22], [23, 1], [45, -20], 1499/2]
Conditions: none
For the WHOLE specified f(x)=1/2 sum d_i x_i²+sum b_i x_i,differentiate each coordinate to d_i x_i+b_i,not2d_i x_i.Compute ALL gradient entries first,then the objective in original order,squaring before multiplying d_i.Qualify positive diagonals,dimensions and coordinate order.
Step identifiers and dependencies
Rule: GD_WHOLE_positive_diagonal_quadratic_ordered_gradient_and_objective · Uses: G001, S017
S019 · calculation
Before
GD boundary step1 ORIGINAL alpha times gradient0 := mul(1/4, 45)
After
GD boundary step1 ORIGINAL alpha times gradient0 = 45/4
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S018
S020 · calculation
Before
GD boundary step1 ORIGINAL next coordinate0 := sub(23, 45/4)
After
GD boundary step1 ORIGINAL next coordinate0 = 47/4
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · calculation
Before
GD boundary step1 ORIGINAL alpha times gradient1 := mul(1/4, -20)
After
GD boundary step1 ORIGINAL alpha times gradient1 = -5
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S020
S022 · calculation
Before
GD boundary step1 ORIGINAL next coordinate1 := sub(1, -5)
After
GD boundary step1 ORIGINAL next coordinate1 = 6
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S021
S023 · calculation
Before
GD boundary step1 next recomputation ORIGINAL gradient d*x coordinate0 := mul(1, 47/4)
After
GD boundary step1 next recomputation ORIGINAL gradient d*x coordinate0 = 47/4
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S022
S024 · calculation
Before
GD boundary step1 next recomputation ORIGINAL gradient plus b coordinate0 := sum(47/4, 22)
After
GD boundary step1 next recomputation ORIGINAL gradient plus b coordinate0 = 135/4
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S023
S025 · calculation
Before
GD boundary step1 next recomputation ORIGINAL gradient d*x coordinate1 := mul(2, 6)
After
GD boundary step1 next recomputation ORIGINAL gradient d*x coordinate1 = 12
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S024
S026 · calculation
Before
GD boundary step1 next recomputation ORIGINAL gradient plus b coordinate1 := sum(12, -22)
After
GD boundary step1 next recomputation ORIGINAL gradient plus b coordinate1 = -10
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S025
S027 · calculation
Before
GD boundary step1 next recomputation ORIGINAL objective SQUARE FIRST coordinate0 := mul(47/4, 47/4)
After
GD boundary step1 next recomputation ORIGINAL objective SQUARE FIRST coordinate0 = 2209/16
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S026
S028 · calculation
Before
GD boundary step1 next recomputation ORIGINAL diagonal times square coordinate0 := mul(1, 2209/16)
After
GD boundary step1 next recomputation ORIGINAL diagonal times square coordinate0 = 2209/16
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S027
S029 · calculation
Before
GD boundary step1 next recomputation ORIGINAL quadratic divide2 coordinate0 := div(2209/16, 2)
After
GD boundary step1 next recomputation ORIGINAL quadratic divide2 coordinate0 = 2209/32
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S028
S030 · calculation
Before
GD boundary step1 next recomputation ORIGINAL linear product coordinate0 := mul(22, 47/4)
After
GD boundary step1 next recomputation ORIGINAL linear product coordinate0 = 517/2
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S029
S031 · calculation
Before
GD boundary step1 next recomputation ORIGINAL coordinate objective sum0 := sum(2209/32, 517/2)
After
GD boundary step1 next recomputation ORIGINAL coordinate objective sum0 = 10481/32
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S030
S032 · calculation
Before
GD boundary step1 next recomputation ORIGINAL objective running sum0 := sum(0, 10481/32)
After
GD boundary step1 next recomputation ORIGINAL objective running sum0 = 10481/32
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S031
S033 · calculation
Before
GD boundary step1 next recomputation ORIGINAL objective SQUARE FIRST coordinate1 := mul(6, 6)
After
GD boundary step1 next recomputation ORIGINAL objective SQUARE FIRST coordinate1 = 36
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S032
S034 · calculation
Before
GD boundary step1 next recomputation ORIGINAL diagonal times square coordinate1 := mul(2, 36)
After
GD boundary step1 next recomputation ORIGINAL diagonal times square coordinate1 = 72
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S033
S035 · calculation
Before
GD boundary step1 next recomputation ORIGINAL quadratic divide2 coordinate1 := div(72, 2)
After
GD boundary step1 next recomputation ORIGINAL quadratic divide2 coordinate1 = 36
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S034
S036 · calculation
Before
GD boundary step1 next recomputation ORIGINAL linear product coordinate1 := mul(-22, 6)
After
GD boundary step1 next recomputation ORIGINAL linear product coordinate1 = -132
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S035
S037 · calculation
Before
GD boundary step1 next recomputation ORIGINAL coordinate objective sum1 := sum(36, -132)
After
GD boundary step1 next recomputation ORIGINAL coordinate objective sum1 = -96
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S036
S038 · calculation
Before
GD boundary step1 next recomputation ORIGINAL objective running sum1 := sum(10481/32, -96)
After
GD boundary step1 next recomputation ORIGINAL objective running sum1 = 7409/32
Conditions: none
Substitute original roles and established intermediates exactly,not approximations or internally consistent changed operands;extra teaching algebra adds no source-domain gate.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S037
S039 · implies
Before
source roles = [GD boundary step1 next recomputation, [[1, 1], [2, 1]], [[22, 1], [-22, 1]], [[47, 4], [6, 1]]]
After
derived = [[1, 2], [22, -22], [47/4, 6], [135/4, -10], 7409/32]
Conditions: none
For the WHOLE specified f(x)=1/2 sum d_i x_i²+sum b_i x_i,differentiate each coordinate to d_i x_i+b_i,not2d_i x_i.Compute ALL gradient entries first,then the objective in original order,squaring before multiplying d_i.Qualify positive diagonals,dimensions and coordinate order.
Step identifiers and dependencies
Rule: GD_WHOLE_positive_diagonal_quadratic_ordered_gradient_and_objective · Uses: G001, S038
S040 · implies
Before
source roles = [1/4, 1]
After
derived = [[[0, [23, 1], 1499/2], [1, [47/4, 6], 7409/32]], No]
Conditions: none
This mode requires only alpha>0,not the safe range.Retain the initial point and every later objective.A finite trace,whether decreasing or increasing,is not a general convergence/global-optimality certificate.
Step identifiers and dependencies
Rule: GD_finite_trace_ONLY_positive_not_safe_no_limit_claim · Uses: G001, S039