Shared Trigonometric Range Reduction #
Common rational π bounds and interval-shifting proofs used by IntervalRat and
Taylor-model trigonometric evaluators.
Rational approximations of π and 2π #
Lower bound for π: 314159265/100000000 < π
Equations
- LeanCert.Core.TrigReduction.piRatLo = 314159265 / 100000000
Instances For
Lower bound for 2π
Instances For
Upper bound for 2π
Instances For
twoPiRatLo < 2π
2π < twoPiRatHi
twoPiRatLo ≤ twoPiRatHi
Range reduction #
Compute the shift amount k such that I.midpoint - k * 2π is approximately in [-π, π].
Equations
Instances For
Shift an interval by subtracting k * 2π using rational bounds.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Reduce interval to be approximately in [-π, π] by subtracting multiples of 2π.
Equations
Instances For
Correctness of range reduction #
theorem
LeanCert.Core.TrigReduction.mem_shiftInterval_of_mem
{x : ℝ}
{I : IntervalRat}
{k : ℤ}
(hx : x ∈ I)
:
If x ∈ I, then x - 2πk ∈ shiftInterval I k.
theorem
LeanCert.Core.TrigReduction.mem_reduceToMainPeriod_of_mem
{x : ℝ}
{I : IntervalRat}
(hx : x ∈ I)
:
Convenience form: if x ∈ I, then x - 2πk ∈ (reduceToMainPeriod I).1.