TorchLean API

FloatLib.Floats.Formats.Posit.Semantics.Real

Optional real-valued semantics of posits #

The exact rational meaning of every ordinary posit embeds into mathlib's Real. NaR remains ExceptionalValue.notAReal in the complete view and none in the partial view.

Posit.Semantics.Exact.Runtime provides the executable rational denotation. This module adds real coordinates for proofs.

@[inline]

Canonically embed finite rational meanings into mathlib reals.

Instances For
    @[inline]

    Complete real-valued view, obtained only by mapping finite rational values.

    Instances For
      @[inline]
      noncomputable def FloatLib.Floats.Formats.Posit.Model.toReal? {format : Format} (value : Model format) :

      Exact real value of an ordinary posit, or none exactly for NaR.

      Instances For
        @[simp]

        The canonical posit zero denotes real zero.

        @[simp]

        Posit NaR has no ordinary real interpretation.

        The optional real view is unavailable precisely for the unique NaR word.