Leibniz's series for
ProvedFamousTheorems.leibniz_series_picalculusmathlibreal-analysis
The Leibniz (Madhava–Gregory) series.
It is the Taylor series of evaluated at , where convergence is only conditional — the terms decrease to and alternate, so Leibniz's test applies, but the series is not absolutely convergent.
Discovered by Madhava of Sangamagrama around 1400, some 250 years before Gregory and Leibniz. As a way to compute it is hopeless: the error after terms is about , so ten correct digits would need billions of terms. Its interest is that such an elementary alternating sum of unit fractions produces at all.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem leibniz_series_pi :
Filter.Tendsto (fun k : ℕ => ∑ i ∈ Finset.range k, ((-1) ^ i / (2 * (i : ℝ) + 1)))
Filter.atTop (nhds (Real.pi / 4)) := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.