Numerical correctness of exact MX dot products #
The executable list reductions are related to finite sums of decoded rational products and to the factored shared-scale formula of OCP MX 1.0 §6.1. For finite input lanes and a finite binary32 result, the result is one nearest-even rounding of the exact real dot across any number of blocks. Its error is at most half an ULP, including gradual underflow; there is no accumulation error.
Exact finite reduction agrees with the algebraic sum, independently of cancellation.
An indexed finite reduction agrees with the mathematical finite sum.
An infinity survives a reduction whose other terms are finite or infinities of the same sign. The hypothesis excludes both invalid products and opposite-infinity cancellation.
The existing binary rational packer realizes the independent nearest-even real projection. Finiteness excludes overflow, where a real-valued error is not defined.
One exceptional lane product poisons an exact reduction, regardless of its position.
A lane-local NaN on the left propagates through multiplication and the full block sum.
A lane-local NaN on the right also poisons the full dot.
A NaN shared scale on either operand poisons the dot independently of element bits.
A zero lane multiplied by infinity is invalid even when every other product is finite.
An invalid block dot propagates to the final binary32 NaN across any number of blocks.
Finite decoded lanes are multiplied and accumulated exactly, even when they cancel.
A finite one-block result is one nearest-even rounding of its exact real dot.
The one-block dot also incurs only the final half-ULP rounding error.
The exact block reduction equals the specification's factored shared-scale expression.
General accumulation sums every exact lane product without intermediate rounding.
Real exact dot of decoded lanes, without an intermediate representability restriction.
Instances For
The final finite binary32 result is one nearest-even rounding of the exact real dot.
Finite-result absolute error is at most half an ULP of the exact dot. This includes subnormal results and cancellation; there is no error from the number or order of finite summands.