NN.MLTheory.CROWN.Operators.Arithmetic #
IBP and affine transfer rules for arithmetic primitives (negation, absolute value, reciprocal, square root, powers, min/max) used by the CROWN bound propagation engine.
Negation #
Negation: f(x) = -x. Simplest linear operation.
Instances For
IBP for negation. Just swaps and negates bounds.
Instances For
IBP for negation on boxes.
Instances For
Derivative of negation (constant -1).
Instances For
Absolute Value #
Absolute value: f(x) = |x|.
Instances For
IBP for absolute value.
Instances For
IBP for absolute value on boxes.
Instances For
Square Root #
Square-root approximation using two Babylonian refinement steps for a Context scalar.
Instances For
IBP for square root. Sqrt is monotone increasing on [0,∞).
Instances For
IBP for square root on boxes.
Instances For
Derivative bounds for sqrt: d/dx √x = 1/(2√x).
Instances For
Reciprocal #
Reciprocal: f(x) = 1/x.
Instances For
IBP for reciprocal. Warning: 1/x has asymptote at 0, so this is only valid when 0 ∉ [l,u].
Instances For
IBP for reciprocal on boxes.
Instances For
Derivative bounds for reciprocal: d/dx (1/x) = -1/x².
Instances For
Power #
Helper for positive integer power.
Instances For
Power: f(x) = x^n (integer power).
Instances For
IBP for x².
Instances For
IBP for x² on boxes.
Instances For
Min/Max #
Elementwise minimum of two boxes.
Instances For
Elementwise maximum of two boxes.
Instances For
Clamp operation: clamp(x, lo, hi) = max(lo, min(hi, x)).
Instances For
IBP for clamp.
Instances For
Absolute value IBP returns a pair.
Square IBP returns a pair.