Comparison helpers for executable interval examples #
This module contains small, reusable baselines for numerical-audit examples:
Interval Float32: a deliberately naive runtime-Float32interval model;- FloatLib's
RationalInterval: exact rational endpoints for small reference checks; - conversions from finite
Binary 8 23/ runtimeFloat32endpoints into rational intervals.
FloatLib supplies the interval arithmetic and its proofs. This module provides baselines that make examples and regression tests easier to read.
Display configured endpoints through binary64, retaining their full original bit encodings.
Instances For
Pretty-print endpoints using a scalar renderer.
Instances For
+0.0f by IEEE-754 binary32 bits.
Instances For
-0.0f by IEEE-754 binary32 bits.
Instances For
+∞ by IEEE-754 binary32 bits.
Instances For
-∞ by IEEE-754 binary32 bits.
Instances For
Naive endpoint addition; no directed rounding.
Instances For
Naive endpoint subtraction; no directed rounding.
Instances For
Classical four-corner multiplication in the endpoint carrier; no directed rounding.
Instances For
Conservative fallback interval [-∞, +∞].
Instances For
Return true iff the interval contains zero, including signed-zero endpoints.
Instances For
Naive four-corner division when the denominator does not contain zero.
If the denominator straddles zero, return whole, mirroring the shape of
Binary.Interval.div but without directed rounding.
Instances For
Classical four-corner multiplication over exact rationals.
Instances For
Boolean check that outer contains inner.
Instances For
Pretty-print an exact rational interval.
Instances For
Decode rational endpoints, preserving the decoder's special-value policy on failure.
Instances For
Endpoint-evaluate a unary function, using the carrier's minimum and maximum.
This is not a sound transcendental interval rule in general; it is a comparison baseline for examples.