Containment for rational arctangent enclosures #
Mathlib's real arctangent series identifies the exact sum. Its geometric tail estimate bounds the rational partial sums. The reduction identities hold over the reals; rational interval arithmetic preserves their exact constants.
Casting the executable polynomial gives the usual real arctangent partial sum.
theorem
FloatLib.Numerics.Enclosure.contains_atanSmall
(x : ℚ)
(degree : ℕ)
(hx : |x| < 1)
:
(atanSmall x degree).Contains (Real.arctan ↑x)
The small kernel contains the true arctangent throughout its open series domain.
Adding π/4 to the transformed arctangent recovers the arctangent of any nonnegative input.
theorem
FloatLib.Numerics.Enclosure.contains_atanUnit
(x : ℚ)
(degree : ℕ)
(hx : 0 ≤ x)
(hone : x ≤ 1)
:
(atanUnit x degree).Contains (Real.arctan ↑x)
Unit reduction retains real containment, including the switch at one half.
theorem
FloatLib.Numerics.Enclosure.contains_atanNonnegative
(x : ℚ)
(degree : ℕ)
(hx : 0 ≤ x)
:
(atanNonnegative x degree).Contains (Real.arctan ↑x)
Inversion restores the arctangent of every nonnegative rational input.
theorem
FloatLib.Numerics.Enclosure.contains_atan
(x : ℚ)
(degree : ℕ)
:
(atan x degree).Contains (Real.arctan ↑x)
Every rational input and every finite degree yield a valid arctangent enclosure.