FP32 #
FP32-specialized entrypoints for the CROWN/LiRPA graph engine.
This is not an executable backend (it is noncomputable in general, because FP32 is modeled on
ℝ). It exists so proofs can state “sound w.r.t. float32 semantics” without mentioning Lean’s
builtin Float.
This module is an optional convenience layer and lives under NN/MLTheory/CROWN/Extras/.
FP32 entrypoints #
FP32 scalar type used for FP32-specialized CROWN/LiRPA statements.
Instances For
Directed endpoint arithmetic for the rounded-real FP32 model.
Each operation is performed on the underlying real values and rounded directly toward the
appropriate side of the binary32 grid. The enclosure laws are
TorchLean.Floats.Interval.roundDown_le and TorchLean.Floats.Interval.le_roundUp.
The proof-oriented FP32 endpoint operations enclose exact real arithmetic.
This follows directly from the format-generic floor and ceiling rounding theorems. It is the law
dictionary used by sound rounded CROWN statements over FP32.
Embed a real endpoint after rounding it downward to the binary32 grid.
Instances For
Embed a real endpoint after rounding it upward to the binary32 grid.
Instances For
Exact-real nonlinear operations rounded outward to the binary32 grid.
Downward-rounded proof endpoints do not exceed their exact real inputs.
Upward-rounded proof endpoints do not fall below their exact real inputs.
The rounded-real FP32 nonlinear transfers enclose their exact real meanings.
Run IBP over FP32 graph semantics.
Instances For
Run the forward affine CROWN pass over FP32 graph semantics.
Instances For
Run the forward CROWN lower/upper affine-bounds pass over FP32 graph semantics.