TorchLean API

FloatLib.Floats.Formats.Posit.Quire.Semantics.Projective

Explicit projective views of posit quires #

These adapters apply Option.toOnePoint to the exact optional semantics. They map the unique quire NaR word to the added point and then to mathlib's projective line, preserving the distinction between NaR and finite values. This geometric interpretation supplies no signed or ordered infinity semantics for quire arithmetic.

References #

@[inline]

One-point view of quire meanings over Rat.

The added point represents quire NaR in this view.

Instances For
    @[simp]

    The zero quire embeds as finite zero in projective rational semantics.

    @[simp]

    The NaR quire embeds as the projective rational point at infinity.

    theorem FloatLib.Floats.Formats.Posit.Quire.Model.toProjectiveRat_eq_coe_iff {format : Format} (value : Model format) (rational : ) :
    value.toProjectiveRat = rational value.toRat? = some rational

    Finite one-point coordinates agree exactly with the primary rational semantics.

    The rational one-point view reaches its added point exactly for quire NaR.

    @[inline]

    Canonical rational projective-line point associated with the quire one-point view.

    Instances For

      Rational projective-line point representing quire NaR.

      Instances For

        The rational projective line reaches its distinguished NaR point exactly for quire NaR.

        @[inline]

        Real one-point view of quire meanings.

        Instances For
          @[simp]

          The zero quire embeds as finite zero in projective real semantics.

          @[simp]

          The NaR quire embeds as the projective real point at infinity.

          The real one-point view reaches its added point exactly for quire NaR.

          @[inline]

          Canonical real projective-line point associated with the real quire one-point view.

          Instances For

            Real projective-line point representing quire NaR.

            Instances For

              The real projective line reaches its distinguished NaR point exactly for quire NaR.