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 diagnostic payload without the quiet bit, sign bit, and signaling class, as in the real-valued numericalSystem. ExactValue.nan separately retains the complete encoded fraction field.

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 diagnostic payload without its quiet bit, together with its sign bit and signaling class.

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.