Notation for TorchLean's FP32 model #
TorchLean uses a proof-oriented float32 model (FP32) defined by:
- a radix (
β = 2), - the canonical IEEE-754 binary32 exponent function (
fexp32), and - round-to-nearest, ties-to-even (
rnd32).
This file provides small, ergonomic aliases for the corresponding real-level operators:
round₃₂ x(or ASCIIround32 x): roundx : ℝto the binary32 grid.ulp₃₂ xandeps₃₂ x: the ULP scale (and half-ULP) associated withx.
We keep these under TorchLean.Floats so they are available where float semantics are in focus,
without polluting unrelated namespaces.
Real-level binary32 rounding operator for the canonical fexp32/rnd32 configuration.
This is definitionally the same rounding operator used in the NF/FP32 semantics, but phrased as
a function ℝ → ℝ (useful for bridge theorems and error bounds).
Instances For
One ULP at x for the canonical binary32 exponent configuration.
The optional phase parameter matches TorchLean's mixed-precision hook:
TrainingPhase.requires_high_precision tightens the bound by one extra bit.
Instances For
Convenience abbreviation: half-ULP at x (with the same optional phase hook as ulp32).
Instances For
Unicode alias for ulp32 (useful in error-bound statements).
Instances For
Unicode alias for eps32 (half-ULP).
Instances For
ulp₃₂ is definitionally equal to ulp32 (unicode → ASCII simp).
eps₃₂ is definitionally equal to eps32 (unicode → ASCII simp).