A geometric sum over a range is bounded by the full series
ProvedGeometricSums.geom_sum_le_botcalculusmathlibreal-analysis
Every partial geometric sum is bounded by the value of the full series.
For and , and every ,
All terms are non-negative, so the partial sums increase to the limit and are therefore bounded by it. The bound is uniform in , which is the point: an estimate obtained this way does not degrade as the truncation length grows.
This is the workhorse bound whenever a geometric error term is summed over an unspecified number of steps — iterative constructions, dyadic sums, and series comparisons all use it to replace a truncated sum by a closed-form constant.
Formalization note. Finset.range I is , so gives the empty sum;
the hypotheses and give both non-negativity of the terms and .
Preamble
import Mathlib
Formal statement
namespace GeometricSums
theorem geom_sum_le_bot {r c : ℝ} (hc : 0 ≤ c) (hr0 : 0 ≤ r) (hr1 : r < 1) (I : ℕ) :
∑ i ∈ Finset.range I, c * r ^ i ≤ c / (1 - r) := by sorry
end GeometricSumsSource
Elementary. Lean proof extracted from `Salt/Tactic/` of the Salt project, https://github.com/jyh/salt (Apache-2.0, Jason Hickey).