TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.ModelRounding.Runtime

Executable normalization for binary interchange formats #

These computations normalize exact integer mantissas with round-to-nearest, ties-to-even. Mantissa widths and target exponents are parameters; no named binary format is selected.

Proofs relating these computations to Lean's logical floating-point model are kept in ModelRounding.Proof, so executable clients can import this module without the large semantic proof layer.

References #

Round an exact integer mantissa after expressing it at targetExponent.

Instances For

    Round a positive integer mantissa to the precision specified by leadingBit + 1; a rounding carry can produce one extra bit.

    Instances For

      Complete model rounding after the first rounded mantissa and exponent are known.

      Instances For