Pi #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file contains lemmas which establish bounds on real.pi.
Notably, these include pi_gt_sqrt_two_add_series and pi_lt_sqrt_two_add_series,
which bound π using series;
numerical bounds on π such as pi_gt_314and pi_lt_315 (more precise versions are given, too).
See also data.real.pi.leibniz and data.real.pi.wallis for infinite formulas for π.
From an upper bound on sqrt_two_add_series 0 n = 2 cos (π / 2 ^ (n+1)) of the form
sqrt_two_add_series 0 n ≤ 2 - (a / 2 ^ (n + 1)) ^ 2), one can deduce the lower bound a < π
thanks to basic trigonometric inequalities as expressed in pi_gt_sqrt_two_add_series.
From a lower bound on sqrt_two_add_series 0 n = 2 cos (π / 2 ^ (n+1)) of the form
2 - ((a - 1 / 4 ^ n) / 2 ^ (n + 1)) ^ 2 ≤ sqrt_two_add_series 0 n, one can deduce the upper bound
π < a thanks to basic trigonometric formulas as expressed in pi_lt_sqrt_two_add_series.