Containment after exact rational angle reduction #
Removing an integer number of full turns preserves sine and cosine exactly. Their global Lipschitz bounds control the remaining uncertainty in pi, and the usual Taylor remainder then gives a real containment theorem at every degree.
The Taylor argument is bounded by four independently of the unreduced input.
theorem
FloatLib.Numerics.Enclosure.abs_piArgument_sub_le
(argument : ℚ)
(degree : ℕ)
:
|↑(piArgument argument degree) - ↑(piReduced argument) * Real.pi| ≤ ↑(piArgumentError argument degree)
The rational approximation error bounds distance from the exact reduced angle.
theorem
FloatLib.Numerics.Enclosure.abs_sinPi_sub_sinArgument_le
(argument : ℚ)
(degree : ℕ)
:
|Real.sin (↑argument * Real.pi) - Real.sin ↑(piArgument argument degree)| ≤ ↑(piArgumentError argument degree)
The argument uncertainty transfers through sine by its global Lipschitz bound.
theorem
FloatLib.Numerics.Enclosure.abs_cosPi_sub_cosArgument_le
(argument : ℚ)
(degree : ℕ)
:
|Real.cos (↑argument * Real.pi) - Real.cos ↑(piArgument argument degree)| ≤ ↑(piArgumentError argument degree)
The argument uncertainty transfers through cosine by its global Lipschitz bound.