NF Elementwise Bounds: Binary Arithmetic #
approxTensor bound for elementwise addition (addSpec) over arbitrary tensor shapes.
The output epsilon is computed as linf_norm (add_bound_tensor epsx epsy xR yR), which combines the
input epsilons and one rounding-ULP term per element.
approxTensor bound for elementwise subtraction (subSpec) over arbitrary tensor shapes.
This is obtained by lifting the scalar subtraction bound approx_sub_nf via
approxTensor_map2_spec_of_scalar_bound.
approxTensor bound for elementwise multiplication (mulSpec) over arbitrary tensor shapes.
The scalar core is approx_mul_nf, lifted componentwise; the resulting bound is packaged as
mulBoundTensor and reduced with linfNorm.
Squaring is the diagonal specialization of elementwise multiplication, so it uses the same rounded multiplication bound rather than a separate numerical rule.