NF Elementwise Bounds: Safe Division and Sigmoid #
Spec-side safe division with a clamped denominator.
Instances For
Runtime implementation of safeDiv as a single rounded primitive.
Instances For
Forward approximation bound for safeDiv in NF.
safeDiv ε x y = x / max y ε clamps the denominator away from 0. For ε > 0, this yields an
unconditional bound with explicit (1/ε) and (1/ε^2) sensitivity terms plus one rounding-ULP
term.
Per-entry bound tensor for safeDiv.
This is the elementwise lifting of approx_safeDiv_nf's bound (with a max-clamped denominator).
Instances For
approxT bound for safeDiv lifted to arbitrary tensor shapes.
This is the tensor-level wrapper around approx_safeDiv_nf, built via
approxT_map2_spec_of_scalar_bound.
Scalar forward bound for sigmoid in NF.
sigmoid(x) = 1 / (1 + exp(-x)) is implemented using the existing bounds for exp, +, and
division (with the denominator lower-bounded by 1).
Instances For
Per-entry bound tensor for sigmoid.
Instances For
approxT bound for sigmoid lifted to arbitrary tensor shapes.
This is the tensor-level wrapper around sigmoid_bound_scalar (scalar case) and the usual
componentwise linf_norm lifting (dimension case).