Documentation

CslibFrontier.Foundations.Analysis.ENNRealGeomSum

Finite geometric series identity in ℝ≥0∞ #

Provides the telescoping identity (1 - p) * ∑ i ∈ Finset.range n, p ^ i = 1 - p ^ n for any p : ℝ≥0∞ with p ≤ 1, avoiding ℝ-conversion casts.

Main results #

theorem ENNReal.one_sub_mul_geom_sum {p : ENNReal} (hp : p ≤ 1) (t : ℕ) :
(1 - p) * ∑ i ∈ Finset.range t, p ^ i = 1 - p ^ t

Finite geometric-series telescoping identity in ℝ≥0∞: for p ≤ 1, (1 - p) * ∑ i ∈ Finset.range t, p ^ i = 1 - p ^ t.