The alternating series test (Leibniz criterion)
ProvedFamousTheorems.alternating_series_testThe alternating series test (Leibniz criterion). Let be a non-increasing sequence of reals tending to . Then the alternating series
converges: its partial sums tend to a real limit.
Leibniz's criterion gives the convergence of many conditionally convergent series, such as and the Leibniz series . The accompanying error bound (the remainder is at most the first omitted term) is not part of this statement.
Formalization note. Mathlib's Antitone.tendsto_alternating_series_of_tendsto_zero. The statement is about the sequence of partial sums converging, not about unconditional summability (Summable), which fails for conditionally convergent series.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem alternating_series_test {f : ℕ → ℝ} (hfa : Antitone f) (hf0 : Filter.Tendsto f Filter.atTop (nhds 0)) :
∃ l : ℝ, Filter.Tendsto (fun n : ℕ => ∑ i ∈ Finset.range n, (-1) ^ i * f i) Filter.atTop (nhds l) := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `Antitone.tendsto_alternating_series_of_tendsto_zero`. Proof here reduces to that Mathlib result.