Step-by-step derivation
S001 · implies
Before
source roles = [qf-expectation-affine, no-domain-field, affine_expectation, no-form-field]
After
derived = [[reduced_fraction_RETAIN1_STRING]]
Conditions: none
Check THIS bank interface:BASE equations use form/domain;BASE events/complement have no operation;factorials have no domain.ext18 uses local hyphens,other legacy operations underscores.Do not force every answer into a tuple or fraction.
Step identifiers and dependencies
Rule: R62_EXACT_source_keys_domain_operation_form_AND_output_types · Uses: G001
S002 · calculation
Before
Expectation ORIGINAL weight total through slot0 := sum(0, 1)
After
Expectation ORIGINAL weight total through slot0 = 1
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · calculation
Before
Expectation ORIGINAL weight total through slot1 := sum(1, 5)
After
Expectation ORIGINAL weight total through slot1 = 6
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
Expectation ORIGINAL weight total through slot2 := sum(6, 6)
After
Expectation ORIGINAL weight total through slot2 = 12
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
Expectation ORIGINAL weight total through slot3 := sum(12, 0)
After
Expectation ORIGINAL weight total through slot3 = 12
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · implies
Before
source roles = [[0, 1, 2, 3], powerset(S), [1, 5, 6, 0], 12, [-9, -9, -4, 1002], not-supplied]
After
derived = [[0, 1, 2, 3], 12, Yes]
Conditions: none
S is nonempty,distinct and≤100;weights,X/Y align to ORIGINAL S slots.F is exactly powerset(S),weights nonnegative,denominator positive,and total EXACTLYden.EVEN at a=0 or null weights validate ALL raw fields;never silently uniformize.
Step identifiers and dependencies
Rule: Expectation_FULL_model_RAW_slots_SAME_alignment_and_normalized_law · Uses: G001, S005
S007 · calculation
Before
Expectation affine ORIGINAL slot0 a times X := mul(-4, -9)
After
Expectation affine ORIGINAL slot0 a times X = 36
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · calculation
Before
Expectation affine ORIGINAL slot0 plus b := sum(36, -2)
After
Expectation affine ORIGINAL slot0 plus b = 34
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · implies
Before
source roles = [0, 0, affine_expectation, -9, not-supplied, -4, -2, not-supplied]
After
derived = [34]
Conditions: none
Transform at EACH ORIGINAL outcome BEFORE using its aligned weight.Never sort S,X,Y,weights independently.Null-weight values remain original data;do not delete them to repair inputs or infer a range.
Step identifiers and dependencies
Rule: Expectation_EACH_original_outcome_transformation_BEFORE_weight · Uses: G001, S008
S010 · calculation
Before
Expectation ORIGINAL slot0 weight times transformed value := mul(1, 34)
After
Expectation ORIGINAL slot0 weight times transformed value = 34
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · calculation
Before
Expectation ORIGINAL weighted numerator through slot0 := sum(0, 34)
After
Expectation ORIGINAL weighted numerator through slot0 = 34
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
Expectation affine ORIGINAL slot1 a times X := mul(-4, -9)
After
Expectation affine ORIGINAL slot1 a times X = 36
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · calculation
Before
Expectation affine ORIGINAL slot1 plus b := sum(36, -2)
After
Expectation affine ORIGINAL slot1 plus b = 34
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S012
S014 · implies
Before
source roles = [1, 1, affine_expectation, -9, not-supplied, -4, -2, not-supplied]
After
derived = [34]
Conditions: none
Transform at EACH ORIGINAL outcome BEFORE using its aligned weight.Never sort S,X,Y,weights independently.Null-weight values remain original data;do not delete them to repair inputs or infer a range.
Step identifiers and dependencies
Rule: Expectation_EACH_original_outcome_transformation_BEFORE_weight · Uses: G001, S013
S015 · calculation
Before
Expectation ORIGINAL slot1 weight times transformed value := mul(5, 34)
After
Expectation ORIGINAL slot1 weight times transformed value = 170
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S014
S016 · calculation
Before
Expectation ORIGINAL weighted numerator through slot1 := sum(34, 170)
After
Expectation ORIGINAL weighted numerator through slot1 = 204
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · calculation
Before
Expectation affine ORIGINAL slot2 a times X := mul(-4, -4)
After
Expectation affine ORIGINAL slot2 a times X = 16
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S016
S018 · calculation
Before
Expectation affine ORIGINAL slot2 plus b := sum(16, -2)
After
Expectation affine ORIGINAL slot2 plus b = 14
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · implies
Before
source roles = [2, 2, affine_expectation, -4, not-supplied, -4, -2, not-supplied]
After
derived = [14]
Conditions: none
Transform at EACH ORIGINAL outcome BEFORE using its aligned weight.Never sort S,X,Y,weights independently.Null-weight values remain original data;do not delete them to repair inputs or infer a range.
Step identifiers and dependencies
Rule: Expectation_EACH_original_outcome_transformation_BEFORE_weight · Uses: G001, S018
S020 · calculation
Before
Expectation ORIGINAL slot2 weight times transformed value := mul(6, 14)
After
Expectation ORIGINAL slot2 weight times transformed value = 84
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · calculation
Before
Expectation ORIGINAL weighted numerator through slot2 := sum(204, 84)
After
Expectation ORIGINAL weighted numerator through slot2 = 288
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S020
S022 · calculation
Before
Expectation affine ORIGINAL slot3 a times X := mul(-4, 1002)
After
Expectation affine ORIGINAL slot3 a times X = -4008
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S021
S023 · calculation
Before
Expectation affine ORIGINAL slot3 plus b := sum(-4008, -2)
After
Expectation affine ORIGINAL slot3 plus b = -4010
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S022
S024 · implies
Before
source roles = [3, 3, affine_expectation, 1002, not-supplied, -4, -2, not-supplied]
After
derived = [-4010]
Conditions: none
Transform at EACH ORIGINAL outcome BEFORE using its aligned weight.Never sort S,X,Y,weights independently.Null-weight values remain original data;do not delete them to repair inputs or infer a range.
Step identifiers and dependencies
Rule: Expectation_EACH_original_outcome_transformation_BEFORE_weight · Uses: G001, S023
S025 · calculation
Before
Expectation ORIGINAL slot3 weight times transformed value := mul(0, -4010)
After
Expectation ORIGINAL slot3 weight times transformed value = 0
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S024
S026 · calculation
Before
Expectation ORIGINAL weighted numerator through slot3 := sum(288, 0)
After
Expectation ORIGINAL weighted numerator through slot3 = 288
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S025
S027 · calculation
Before
Expectation ORIGINAL weighted numerator over denominator := div(288, 12)
After
Expectation ORIGINAL weighted numerator over denominator = 24
Conditions: none
Use ORIGINAL operands and declared order for exact integer/rational arithmetic,not floats.Bounds are family-specific:do not revalidate derived values as RAW inputs or add blanket SAFE/n64 caps to BASE families.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S026
S028 · implies
Before
source roles = [[0, 1, 2, 3], [1, 5, 6, 0], 12, affine_expectation, [34, 34, 14, -4010]]
After
derived = [[34, 170, 84, 0], 288, 24/1]
Conditions: none
In the QUALIFIED SAME probability law,E[Z]=Σw_iZ(s_i)/q.Affine gives aE[X]+b and a same-model sum gives E[X]+E[Y]WITHOUT independence;this does not imply a product-expectation formula.A constant has mean c because total mass is1.Negative/unattained means are legal;retain/1.
Step identifiers and dependencies
Rule: Expectation_LINEARITY_qualified_SAME_law_NOT_independence_or_sample_mean · Uses: G001, S027