Documentation

LeanPool.Besicovitch.Certificates.RationalInterval

Exact rational interval arithmetic #

The intervals in this file have rational endpoints, while their semantics is over the real numbers. The operations provide the enclosure primitives used by the radical-expression evaluator, with soundness checked by the kernel.

A nonempty closed interval with rational endpoints.

  • lower : ℚ

    The lower rational endpoint.

  • upper : ℚ

    The upper rational endpoint.

  • lower_le_upper : self.lower ≤ self.upper
Instances For

    A real number belongs to a rational interval.

    Equations
    Instances For

      The degenerate interval containing one rational number.

      Equations
      Instances For

        The interval sum.

        Equations
        Instances For

          The additive inverse of an interval.

          Equations
          Instances For

            The smallest interval whose endpoints include all four endpoint products.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Natural powers of a rational interval.

              Equations
              Instances For

                An interval which avoids zero has a well-defined reciprocal interval.

                Equations
                Instances For

                  Interval powers contain the corresponding real powers.