telescoping_sum_increments
For any sequence f : ℕ → ℝ and any integer r ≥ 3, the sum of consecutive increments Δ t = f (t + 1) - f t from t = 1 to r - 3 telescopes to f (r - 2) - f 1.
Statement
open BigOperators in theorem telescoping_sum_increments (f : ℕ → ℝ) (r : ℕ) (hr : 3 ≤ r) : let Δ : ℕ → ℝ := fun t => f (t + 1) - f t ∑ t ∈ Finset.Icc 1 (r - 3), Δ t = f (r - 2) - f 1
- Source
- arXiv:2611.19312, Section 4, proof of Theorem 3 (iv)
- Verified
- 22 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
Read back from the Lean
For every function f : ℕ → ℝ and every natural number r such that 3 ≤ r, the sum over all natural numbers t in the closed interval [1, r - 3] of (f(t + 1) - f(t)) is equal to f(r - 2) - f(1).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The proof proceeds by case analysis on whether r = 3. In the base case r = 3, the summation range is empty and both sides trivially evaluate to zero. When r > 3, the lower index bound 1 ≤ r - 3 allows applying the library telescoping sum lemma Finset.sum_Icc_sub to evaluate the sum to f((r - 3) + 1) - f(1), which simplifies to f(r - 2) - f(1).
When r = 3, the sum is empty and the identity holds trivially.
We introduce the notation Δ(t) = f(t + 1) - f(t) and split into cases on whether r = 3. When r = 3, the index range Icc 1 (3 - 3) = Icc 1 0 is empty, so the sum on the left-hand side is 0. The right-hand side is f(3 - 2) - f(1) = f(1) - f(1) = 0. Simplification verifies that both sides vanish.
intro Δ by_cases hr3 : r = 3 · subst r simp
When r ≠ 3, the index inequality 1 ≤ r - 3 holds.
Since 3 ≤ r and r ≠ 3, we have 3 < r by lt_of_le_of_ne and Ne.symm. This strict inequality implies 4 ≤ r by Nat.succ_le_of_lt, which is 1 + 3 ≤ r. Applying Nat.le_sub_of_add_le then yields 1 ≤ r - 3.
uses
Nat.le_sub_of_add_le,lt_of_le_of_ne,Ne.symm,Nat.succ_le_of_lt· have h1 : 1 ≤ r - 3 := by apply Nat.le_sub_of_add_le have hlt : 3 < r := lt_of_le_of_ne hr (Ne.symm hr3) exact Nat.succ_le_of_lt hlt
The sum of increments telescopes to f(r - 2) - f 1.
Because 1 ≤ r - 3, the standard telescoping sum lemma Finset.sum_Icc_sub evaluates the sum ∑ t ∈ Icc 1 (r - 3), Δ t to f((r - 3) + 1) - f(1). Since (r - 3) + 1 = r - 2 by natural number arithmetic, rewriting by this equality completes the proof.
uses
Finset.sum_Icc_subhave h2 : r - 3 + 1 = r - 2 := by omega rw [Finset.sum_Icc_sub h1, h2]
Nat.le_sub_of_add_le- For natural numbers a, b, c, if a + b ≤ c, then a ≤ c - b.
lt_of_le_of_ne- In a partial order, if a ≤ b and a ≠ b, then a < b.
Ne.symm- Inequality is symmetric: if a ≠ b, then b ≠ a.
Nat.succ_le_of_lt- For natural numbers n and m, if n < m, then n + 1 ≤ m.
Finset.sum_Icc_sub- For any sequence f taking values in an additive commutative group and indices m ≤ n, the sum of consecutive increments ∑ i ∈ Icc m n, (f (i + 1) - f i) telescopes to f (n + 1) - f m.
- The case split on r = 3 is a formal necessity arising from natural number subtraction and the precondition m ≤ n in Finset.sum_Icc_sub: when r = 3, r - 3 = 0, so the interval Icc 1 0 is empty and 1 ≤ 0 fails. On paper, the empty sum convention handles r = 3 uniformly.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
open BigOperators in/-- Telescoping sum of consecutive increments from 1 to r - 3. -/theorem telescoping_sum_increments (f : ℕ → ℝ) (r : ℕ) (hr : 3 ≤ r) : let Δ : ℕ → ℝ := fun t => f (t + 1) - f t ∑ t ∈ Finset.Icc 1 (r - 3), Δ t = f (r - 2) - f 1 := by intro Δ by_cases hr3 : r = 3 · subst r simp · have h1 : 1 ≤ r - 3 := by apply Nat.le_sub_of_add_le have hlt : 3 < r := lt_of_le_of_ne hr (Ne.symm hr3) exact Nat.succ_le_of_lt hlt have h2 : r - 3 + 1 = r - 2 := by omega rw [Finset.sum_Icc_sub h1, h2]