R0057-29139 · q-20261013-advance-20261022-r07-finite-discrete-probability-distribution-0064
Step-by-step derivation
S001 · implies
Before
source roles = [qf-str22-distribution-expectation, distribution-expectation]
After
derived = [[outcomes, masses, expectation]]
Conditions: none
Use this bank exact ordered tuple and hyphenated operation.Rational outputs reduce with positive denominators and OMIT/1 for integers,unlike the preceding legacy bank.Do not change original bilingual snapshots or meaning.
Step identifiers and dependencies
Rule: STR22_exact_interface_and_source_ORDERED_tuple_roles · Uses: G001
S002 · implies
Before
source roles = [PMF raw mass slot0, [1, 4]]
After
derived = [1/4, 1, 4]
Conditions: none
A raw rational is a PAIR with each component within±1e6 and nonzero denominator.Normalize denominator sign and gcd.Do not accept a scalar or reduce before checking the RAW input bounds.
Step identifiers and dependencies
Rule: STR22_RAW_rational_PAIR_profile_and_sign_gcd_normalization · Uses: G001, S001
S003 · implies
Before
source roles = [PMF raw mass slot1, [1, 4]]
After
derived = [1/4, 1, 4]
Conditions: none
A raw rational is a PAIR with each component within±1e6 and nonzero denominator.Normalize denominator sign and gcd.Do not accept a scalar or reduce before checking the RAW input bounds.
Step identifiers and dependencies
Rule: STR22_RAW_rational_PAIR_profile_and_sign_gcd_normalization · Uses: G001, S002
S004 · implies
Before
source roles = [PMF raw mass slot2, [1, 2]]
After
derived = [1/2, 1, 2]
Conditions: none
A raw rational is a PAIR with each component within±1e6 and nonzero denominator.Normalize denominator sign and gcd.Do not accept a scalar or reduce before checking the RAW input bounds.
Step identifiers and dependencies
Rule: STR22_RAW_rational_PAIR_profile_and_sign_gcd_normalization · Uses: G001, S003
S005 · calculation
Before
PMF ORIGINAL normalization running sum0 := sum(0, 1/4)
After
PMF ORIGINAL normalization running sum0 = 1/4
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · implies
Before
source roles = [PMF ORIGINAL normalization running sum0, sum, [0, 1/4]]
After
derived = [[1], [1, 4], 1/4]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S005
S007 · calculation
Before
PMF ORIGINAL normalization running sum1 := sum(1/4, 1/4)
After
PMF ORIGINAL normalization running sum1 = 1/2
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · implies
Before
source roles = [PMF ORIGINAL normalization running sum1, sum, [1/4, 1/4]]
After
derived = [[4], [2, 4], 1/2]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S007
S009 · calculation
Before
PMF ORIGINAL normalization running sum2 := sum(1/2, 1/2)
After
PMF ORIGINAL normalization running sum2 = 1
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S008
S010 · implies
Before
source roles = [PMF ORIGINAL normalization running sum2, sum, [1/2, 1/2]]
After
derived = [[2], [2, 2], 1]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S009
S011 · implies
Before
source roles = [[13, 14, 16], [1/4, 1/4, 1/2]]
After
derived = [[[13, 1/4], [14, 1/4], [16, 1/2]], Yes, 1, Yes, Yes]
Conditions: none
Preserve ORIGINAL outcome-mass slot alignment and sum every mass in original order.Nonnegativity and total1 are separate obligations.Qualification may legally be No;do not renormalize or clip negative masses.
Step identifiers and dependencies
Rule: PMF_ALL_original_outcome_mass_alignment_NONNEG_AND_EXACTsum1 · Uses: G001, S010
S012 · calculation
Before
PMF ORIGINAL value times mass slot0 := mul(13, 1/4)
After
PMF ORIGINAL value times mass slot0 = 13/4
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · implies
Before
source roles = [PMF ORIGINAL value times mass slot0, mul, [13, 1/4]]
After
derived = [[1, 1], [13, 4], 13/4]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S012
S014 · calculation
Before
PMF ORIGINAL expectation running sum0 := sum(0, 13/4)
After
PMF ORIGINAL expectation running sum0 = 13/4
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · implies
Before
source roles = [PMF ORIGINAL expectation running sum0, sum, [0, 13/4]]
After
derived = [[1], [13, 4], 13/4]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S014
S016 · calculation
Before
PMF ORIGINAL value times mass slot1 := mul(14, 1/4)
After
PMF ORIGINAL value times mass slot1 = 7/2
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · implies
Before
source roles = [PMF ORIGINAL value times mass slot1, mul, [14, 1/4]]
After
derived = [[2, 1], [7, 2], 7/2]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S016
S018 · calculation
Before
PMF ORIGINAL expectation running sum1 := sum(13/4, 7/2)
After
PMF ORIGINAL expectation running sum1 = 27/4
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · implies
Before
source roles = [PMF ORIGINAL expectation running sum1, sum, [13/4, 7/2]]
After
derived = [[2], [27, 4], 27/4]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S018
S020 · calculation
Before
PMF ORIGINAL value times mass slot2 := mul(16, 1/2)
After
PMF ORIGINAL value times mass slot2 = 8
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · implies
Before
source roles = [PMF ORIGINAL value times mass slot2, mul, [16, 1/2]]
After
derived = [[2, 1], [8, 1], 8]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S020
S022 · calculation
Before
PMF ORIGINAL expectation running sum2 := sum(27/4, 8)
After
PMF ORIGINAL expectation running sum2 = 59/4
Conditions: none
Use the ORIGINAL operands exactly,without floating point.Only the declared SOURCE rational operations use their profile;additional integer teaching algebra adds no new input-domain restriction.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S021
S023 · implies
Before
source roles = [PMF ORIGINAL expectation running sum2, sum, [27/4, 8]]
After
derived = [[1], [59, 4], 59/4]
Conditions: none
SOURCE addition first uses denominator gcd;multiplication cross-cancels.Then BOTH raw result components must be within1e6 BEFORE final reduction.Division also checks the nonzero reciprocal.Do not apply an uncancelled-product profile or reduce the final result before the raw gate.
Step identifiers and dependencies
Rule: STR22_EACH_SOURCE_rational_gcd_cross_cancel_THEN_RAW_gate · Uses: G001, S022
S024 · implies
Before
source roles = [[13, 14, 16], [1/4, 1/4, 1/2]]
After
derived = [59/4]
Conditions: none
E[Y]=sum y_i*p_i uses EVERY original value-mass pair.Negative outcomes/expectation are legal.This is expectation under the GIVEN mathematical law,not empirical fit or population validation.
Step identifiers and dependencies
Rule: PMF_expected_value_COMPLETE_signed_weighted_sum · Uses: G001, S023