Verified rational bounds for pi #
Rational lower and upper bounds for Real.pi are derived from the
Real.sqrtTwoAddSeries approximation, shown to converge, and packaged into a
ComputableℝSeq.Pi, giving an IsComputable instance for Real.pi. The bounds
go through the noncomputable square-root sequences, so Pi and the derived
bounds piLb/piUb are noncomputable Lean terms.
@[implicit_reducible]
noncomputable instance
ComputableℝSeq.instComputableSqrtTwoAddSeries
(x : ℝ)
[hx : IsComputable x]
(n : ℕ)
:
IsComputable (x.sqrtTwoAddSeries n)
Equations
- One or more equations did not get rendered due to their size.
See theorem Real.pi_lt_sqrtTwoAddSeries in Mathlib
Equations
- ComputableℝSeq.piLb n = 2 ^ (n + 1) * ↑(ComputableℝSeq.sqrtTwoSubSqrtTwoAddSeriesN n).lb (3 * n)
Instances For
See theorem Real.pi_gt_sqrtTwoAddSeries in Mathlib
Equations
Instances For
Definition of Pi.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]