Interval arithmetic lemmas (ℝ) #
This file provides foundational lemmas for interval arithmetic operations used in CROWN/LiRPA bound propagation soundness proofs.
It is primarily intended as a small toolbox for proof scripts and examples; it lives under
NN/MLTheory/CROWN/Extras/ to keep the main CROWN modules focused on the bound propagation API.
Monotone nonlinear functions #
The real sigmoid written in the form used by NonlinearBoundOps.
Instances For
The real sigmoid is monotone.
Derivative of real hyperbolic tangent.
The real hyperbolic tangent is strictly monotone.
The real hyperbolic tangent is monotone.
Basic Interval Membership #
A value is in an interval [lo, hi]
Instances For
Addition Interval Soundness #
If $x\in[a,b]$ and $y\in[c,d]$, then $x+y\in[a+c,b+d]$.
Subtraction Interval Soundness #
If $x\in[a,b]$ and $y\in[c,d]$, then $x-y\in[a-d,b-c]$.
ReLU Interval Soundness #
Real-valued ReLU used by the interval soundness lemmas.
Instances For
ReLU outputs are always nonnegative.
ReLU maps an input interval [l,u] into [max 0 l, max 0 u].
Square Interval Soundness #
Squaring function used by interval propagation lemmas.
Instances For
Squares over the reals are nonnegative.
Lower endpoint for the range of x ↦ x^2 over an interval.
Instances For
Maximum square in an interval
Instances For
Square interval soundness: if $x\in[l,u]$, then $x^2\in[\mathrm{minSq},\mathrm{maxSq}]$.
Negation Interval #
Negation flips and swaps the interval: $-[a,b]=[-b,-a]$.
Absolute Value Interval #
Directed endpoint arithmetic #
Exact real meaning of an endpoint supplied by its lawful directed-arithmetic instance.
Instances For
BoundOps.min2 selects the smaller endpoint in the mathematical interpretation.
BoundOps.max2 selects the larger endpoint in the mathematical interpretation.
Directed endpoint addition encloses exact real addition.
Directed endpoint subtraction encloses exact real subtraction.
The outward-rounded four-corner rule encloses exact real multiplication.
This is the scalar fact needed by rounded IBP and backward CROWN. It depends only on the declared endpoint interpretation and directed-operation laws; it does not assume that rounded scalars form a ring or that reassociation is exact.
Nonlinear transfer laws over the reals #
Exact real nonlinear transfers satisfy their mathematical interval contracts.