The integral test for series (convergence direction)
ProvedFamousTheorems.integral_test_seriesThe integral test for series (convergence direction). Let be nonnegative and nonincreasing on for some natural number . If is integrable on , then the series converges.
The integral test compares a series with an integral. It gives the convergence of for and the convergence and divergence of the Bertrand series . Its converse direction (divergence of the integral implies divergence of the series) is a separate Mathlib result and is not part of this statement.
Formalization note. Mathlib's AntitoneOn.summable_of_integrableOn_Ioi. Integrability is Lebesgue integrability on Set.Ioi N (IntegrableOn), and convergence is Summable of for real-valued terms. Since the terms are nonnegative, this is the same as convergence of the partial sums.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
open MeasureTheory
theorem integral_test_series {f : ℝ → ℝ} {N : ℕ} (hf : AntitoneOn f (Set.Ici (N : ℝ))) (hint : IntegrableOn f (Set.Ioi (N : ℝ)))
(hpos : ∀ t ∈ Set.Ioi (N : ℝ), 0 ≤ f t) : Summable fun n : ℕ => f n := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `AntitoneOn.summable_of_integrableOn_Ioi`. Proof here reduces to that Mathlib result.