TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Model.ExactNumericalSystem

Exact policy-aware numerical systems #

The adapter interprets every finite FP8, FP6, FP4, FNUZ, or IEEE code as an exact dyadic. It uses the complete FloatFormat, so an all-ones exponent can mean infinity, a finite value, or part of a NaN encoding according to the selected representation policy. A NaN is denoted by its fraction field, the same payload convention as ExactValue.nan and the real-valued numericalSystem.

Exact numerical-system semantics for a policy-aware binary format.

Finite codes denote their exact dyadic value, infinities carry their sign, and a NaN carries its fraction field as payload.

Instances For
    @[reducible, inline]

    A policy-aware binary word with an erased proof of its exact finite dyadic value.

    Instances For

      Exact decoding is precisely finite representation in the general interface.

      A represented finite value is exactly the result of decoding its code.

      Successful finite decoding establishes representation in the general interface.

      Non-IEEE binary encodings never denote infinity in the general interface.