TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Model.ERealSemantics

Extended-real interpretation of binary models #

Every non-NaN Model fmt has an extended-real interpretation. Finite values use their exact real decoding, while the two infinities map to and . The partial interpretation maps NaNs to none; toEReal is a convenient totalization that maps that single unordered case to zero.

The definitions and proofs are uniform in fmt.

Extended-real interpretation of Model; none is reserved exactly for NaNs.

Instances For

    Total extended-real interpretation, with the unordered NaN case mapped to zero.

    Instances For

      The partial extended-real interpretation is undefined exactly on NaNs.

      A value classified as infinity is not classified as NaN.

      A value classified as infinity is not classified as zero.

      Finite values enter EReal through their exact real interpretation.

      @[simp]

      Totalization agrees with every successful partial interpretation.

      @[simp]

      Totalization maps the partial NaN case to zero.

      Direct case expansion of the total extended-real interpretation.

      On finite values, the total interpretation is the coercion of toReal.

      @[simp]

      The policy-aware zero constructor denotes zero in the extended reals.

      Special values #

      @[simp]

      The partial interpretation maps an IEEE model-packed signed zero to zero.

      The total interpretation maps an IEEE model-packed signed zero to zero.

      @[simp]

      The partial interpretation maps a model-packed infinity to the endpoint selected by its sign.

      The total interpretation maps a model-packed infinity to the endpoint selected by its sign.

      @[simp]

      Either IEEE signed zero denotes zero in the extended reals.

      @[simp]

      Positive executable infinity denotes in a conventional IEEE format.

      @[simp]

      Negative executable infinity denotes in a conventional IEEE format.