Global rational sine and cosine bounds #
The rational polynomials are identified with real Taylor polynomials at zero. Mathlib's Lagrange remainder theorem applies at every real argument: every iterated derivative of sine or cosine has absolute value at most one. Thus no domain restriction or unproved reduction condition enters the containment theorem.
Rational sine coefficients are the exact real derivatives at the origin.
Rational cosine coefficients are the exact real derivatives at the origin.
theorem
FloatLib.Numerics.Enclosure.contains_restrictUnit
{interval : RationalInterval}
{x : ℝ}
(hx : interval.Contains x)
(hbound : |x| ≤ 1)
:
(restrictUnit interval).Contains x
Intersecting with [-1, 1] retains containment of any value in that range.