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.
The degenerate interval containing one rational number.
Equations
- LeanPool.Besicovitch.RationalInterval.singleton q = { lower := q, upper := q, lower_le_upper := ⋯ }
Instances For
The interval sum.
Instances For
The additive inverse of an interval.
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.
Instances For
theorem
LeanPool.Besicovitch.RationalInterval.add_contains
{I J : RationalInterval}
{x y : ℝ}
(hx : I.Contains x)
(hy : J.Contains y)
:
theorem
LeanPool.Besicovitch.RationalInterval.neg_contains
{I : RationalInterval}
{x : ℝ}
(hx : I.Contains x)
:
theorem
LeanPool.Besicovitch.RationalInterval.mul_contains
{I J : RationalInterval}
{x y : ℝ}
(hx : I.Contains x)
(hy : J.Contains y)
:
theorem
LeanPool.Besicovitch.RationalInterval.pow_contains
{I : RationalInterval}
{x : ℝ}
(hx : I.Contains x)
(n : ℕ)
:
Interval powers contain the corresponding real powers.