TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Configured.Interval.Runtime

Intervals with configured binary endpoints #

ExecFloat.Binary.Interval stores endpoints in the same carrier as configured scalar values. All operations delegate to Model.Interval; packing and decoding change representation, not rounding or exceptional-value behavior. The format, storage plan, and codec are unrestricted.

Arithmetic uses outward rounding and the model's whole-range fallback for unordered bounds. Valid requires finite endpoints; ValidExtended also permits infinities. The real-enclosure theorems and lossless-conversion proofs are in Configured.Interval.Proof.

@[reducible, inline]

A closed interval stored in the configured endpoint carrier.

Instances For
    @[inline]

    Decode both endpoints without changing their complete encodings.

    Instances For
      @[inline]

      Pack both model endpoints into the configured carrier.

      Instances For

        Numerical membership; a NaN value or endpoint is unordered.

        Instances For
          @[reducible, inline]

          Both endpoints are finite and ordered.

          Instances For
            @[reducible, inline]

            Both endpoints are non-NaN and ordered; infinities are permitted.

            Instances For
              @[inline]

              Degenerate interval, preserving even a signed zero or NaN encoding.

              Instances For
                @[inline]

                Complete numerical range: infinities where supported, maximal finite endpoints otherwise.

                Instances For
                  @[inline]

                  Executable numerical comparison; unordered comparisons return false.

                  Instances For
                    @[inline]

                    Keep ordered bounds, falling back to whole for NaNs or reversed endpoints.

                    Instances For
                      @[inline]

                      Test whether the numerical endpoint range contains zero.

                      Instances For
                        @[inline]

                        Endpoint hull, inheriting the model's IEEE NaN propagation.

                        Instances For
                          @[inline]

                          Outward-rounded sum, with the model's conservative fallback for indeterminate bounds.

                          Instances For
                            @[inline]

                            Outward-rounded four-corner product enclosure.

                            Instances For
                              @[inline]

                              Outward-rounded quotient; a denominator containing zero returns the whole range.

                              Instances For
                                @[inline]

                                Negate and exchange the endpoints.

                                Instances For
                                  @[inline]

                                  Reciprocal enclosure; an interval containing zero returns the whole range.

                                  Instances For
                                    @[inline]

                                    Endpoint-grid image enclosure for max x 0.

                                    Instances For
                                      @[inline]

                                      Absolute-value enclosure, handling intervals crossing zero.

                                      Instances For
                                        @[inline]

                                        Directed square-root endpoints; real soundness additionally needs nonnegative input bounds.

                                        Instances For