Documentation

LeanCert.Core.TrigReduction

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
Instances For

    Upper bound for π: π < 355/113

    Equations
    Instances For

      piRatLo < π, proved from Mathlib's decimal π bounds.

      π < piRatHi, proved from Mathlib's decimal π bounds.

      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

          Correctness of range reduction #

          If x ∈ I, then x - 2πk ∈ shiftInterval I k.

          Convenience form: if x ∈ I, then x - 2πk ∈ (reduceToMainPeriod I).1.