TorchLean API

FloatLib.Floats.Formats.BinaryInterchange

Binary-interchange formats #

Descriptors for sign/exponent/fraction encodings, with exact decoding, directed and status-bearing arithmetic, software backends, and refinement proofs. The descriptors cover IEEE layouts and finite-only exceptional-value policies.

Configured supplies the ExecFloat.Binary API. The descriptor-level Model supports bit-level and mathematical proofs. Scalar conversions and finite reductions are included; reductions accumulate the exact sum or dot product and round the final result once.

References #

Runtime #

Public runtime entry point for the generic kernel (Model fmt): layout, the four implemented IEEE rounding modes, exception status, dyadic/rational rounding, arithmetic, comparisons, format casts, outward-rounded intervals, mixed-precision mulAcc / dotSequential / matmul, and standard numeric instances.

Elementary functions (exp, log, sin, ...) and Model.pow are not on this import. Import FloatLib.Floats.Formats.BinaryInterchange.Configured.Transcendentals (or the model barrel BinaryInterchange.Transcendentals) by name to install Model.exp, Model.pow, and MathFunctions. These are software approximation kernels without a general accuracy theorem; they do not call the host FPU. Certified sqrt and abs are available here; their MathFunctions aliases require the elementary-function import.

Import FloatLib.Floats.ExecFloat for the universal capability API, or this module directly for descriptor-model execution. Import FloatLib.Floats.Formats.BinaryInterchange.Semantics for the descriptor model's real-refinement theorems.