Step-by-step derivation
S001 · implies
Before
source roles = [qf-mod50-trap-affine-exactness, trap-affine-exactness]
After
derived = [[slope, intercept, nodes, endpoint_values, trapezoid_value, exact_integral, exact_on_this_partition, scope]]
Conditions: none
List this scalar/label/set/point answer role or mode-specific ordered fields,not an imposed universal tuple.Retain legacy domain/underscore operation and integer fractions with/1;original bilingual snapshots stay unchanged.
Step identifiers and dependencies
Rule: source_answer_roles_or_ordered_fields_without_JS · Uses: G001
S002 · calculation
Before
Trapezoid affine ORIGINAL value product0 := mul(-1, 0)
After
Trapezoid affine ORIGINAL value product0 = 0
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · calculation
Before
Trapezoid affine ORIGINAL value plus intercept0 := sum(0, 3)
After
Trapezoid affine ORIGINAL value plus intercept0 = 3
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
Trapezoid affine ORIGINAL value product1 := mul(-1, 1)
After
Trapezoid affine ORIGINAL value product1 = -1
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
Trapezoid affine ORIGINAL value plus intercept1 := sum(-1, 3)
After
Trapezoid affine ORIGINAL value plus intercept1 = 2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · calculation
Before
Trapezoid affine ORIGINAL value product2 := mul(-1, 5)
After
Trapezoid affine ORIGINAL value product2 = -5
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · calculation
Before
Trapezoid affine ORIGINAL value plus intercept2 := sum(-5, 3)
After
Trapezoid affine ORIGINAL value plus intercept2 = -2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · calculation
Before
Trapezoid affine partition ORIGINAL width0 := sub(1, 0)
After
Trapezoid affine partition ORIGINAL width0 = 1
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · calculation
Before
Trapezoid affine partition ORIGINAL width1 := sub(5, 1)
After
Trapezoid affine partition ORIGINAL width1 = 4
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S008
S010 · calculation
Before
Trapezoid affine partition ORIGINAL width over2 interval0 := div(1, 2)
After
Trapezoid affine partition ORIGINAL width over2 interval0 = 1/2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · calculation
Before
Trapezoid affine partition ORIGINAL endpoint sum interval0 := sum(3, 2)
After
Trapezoid affine partition ORIGINAL endpoint sum interval0 = 5
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
Trapezoid affine partition ORIGINAL individual trapezoid interval0 := mul(1/2, 5)
After
Trapezoid affine partition ORIGINAL individual trapezoid interval0 = 5/2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · implies
Before
source roles = [Trapezoid affine partition, 0, 0, 1, 3, 2]
After
derived = [1, 1/2, 5, 5/2]
Conditions: none
Use the own width and aligned endpoints of this ORIGINAL interval times the endpoint average.Widths may differ and values may be negative;do not sort or replace all widths with the first.
Step identifiers and dependencies
Rule: Trapezoid_EACH_original_interval_own_width_and_aligned_endpoints · Uses: G001, S012
S014 · calculation
Before
Trapezoid affine partition ORIGINAL width over2 interval1 := div(4, 2)
After
Trapezoid affine partition ORIGINAL width over2 interval1 = 2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · calculation
Before
Trapezoid affine partition ORIGINAL endpoint sum interval1 := sum(2, -2)
After
Trapezoid affine partition ORIGINAL endpoint sum interval1 = 0
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S014
S016 · calculation
Before
Trapezoid affine partition ORIGINAL individual trapezoid interval1 := mul(2, 0)
After
Trapezoid affine partition ORIGINAL individual trapezoid interval1 = 0
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · implies
Before
source roles = [Trapezoid affine partition, 1, 1, 5, 2, -2]
After
derived = [4, 2, 0, 0]
Conditions: none
Use the own width and aligned endpoints of this ORIGINAL interval times the endpoint average.Widths may differ and values may be negative;do not sort or replace all widths with the first.
Step identifiers and dependencies
Rule: Trapezoid_EACH_original_interval_own_width_and_aligned_endpoints · Uses: G001, S016
S018 · calculation
Before
Trapezoid affine partition ORIGINAL trapezoid running total0 := sum(0, 5/2)
After
Trapezoid affine partition ORIGINAL trapezoid running total0 = 5/2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · calculation
Before
Trapezoid affine partition ORIGINAL trapezoid running total1 := sum(5/2, 0)
After
Trapezoid affine partition ORIGINAL trapezoid running total1 = 5/2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S018
S020 · implies
Before
source roles = [Trapezoid affine partition, [[0, 1], [1, 1], [5, 1]], [[3, 1], [2, 1], [-2, 1]]]
After
derived = [[0, 1, 5], [3, 2, -2], [1, 4], [5/2, 0], 5/2]
Conditions: none
A complete partition is STRICTLY increasing in original order,with n+1 aligned nodes/values for n intervals;the24-node cap is not the vector8 cap.The table determines this sum,not a unique integral without a full integrand.
Step identifiers and dependencies
Rule: Trapezoid_COMPLETE_partition_n_intervals_nplus1_nodes_no_unique_integrand · Uses: G001, S019
S021 · calculation
Before
Trapezoid affine ORIGINAL slope over2 := div(-1, 2)
After
Trapezoid affine ORIGINAL slope over2 = -1/2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S020
S022 · calculation
Before
Trapezoid affine ORIGINAL right square := mul(5, 5)
After
Trapezoid affine ORIGINAL right square = 25
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S021
S023 · calculation
Before
Trapezoid affine ORIGINAL left square := mul(0, 0)
After
Trapezoid affine ORIGINAL left square = 0
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S022
S024 · calculation
Before
Trapezoid affine ORIGINAL square difference := sub(25, 0)
After
Trapezoid affine ORIGINAL square difference = 25
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S023
S025 · calculation
Before
Trapezoid affine ORIGINAL quadratic integral part := mul(-1/2, 25)
After
Trapezoid affine ORIGINAL quadratic integral part = -25/2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S024
S026 · calculation
Before
Trapezoid affine ORIGINAL whole width := sub(5, 0)
After
Trapezoid affine ORIGINAL whole width = 5
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S025
S027 · calculation
Before
Trapezoid affine ORIGINAL intercept integral part := mul(3, 5)
After
Trapezoid affine ORIGINAL intercept integral part = 15
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S026
S028 · calculation
Before
Trapezoid affine ORIGINAL exact integral := sum(-25/2, 15)
After
Trapezoid affine ORIGINAL exact integral = 5/2
Conditions: none
Substitute original roles exactly,without floating approximation or changed operands;extra teaching identities add no source-domain restrictions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S027
S029 · implies
Before
source roles = [-1, 3, [0, 1, 5], [3, 2, -2]]
After
derived = [5/2, 5/2, Yes]
Conditions: none
The WHOLE affine law makes each trapezoid equal to the antiderivative difference over the same interval.Internal endpoints telescope,hence exactness on any qualified partition;not for arbitrary functions.
Step identifiers and dependencies
Rule: Trapezoid_WHOLE_affine_exactness_each_interval_antiderivative_telescopes · Uses: G001, S028