Theorems · Theorem · combinatorics
Nat.sum_range_add_choose
∀ (n k : ℕ), ∑ i ∈ Finset.range (n + 1), (i + k).choose k = (n + k + 1).choose (k + 1)
Zhu Shijie's identity aka hockey-stick identity, version with range.
Summing (i + k).choose k for i ∈ [0, n] gives (n + k + 1).choose (k + 1).
Combinatorial interpretation: (i + k).choose k is the number of decompositions of [0, i) in
k + 1 (possibly empty) intervals (this follows from a stars and bars description). In particular,
(n + k + 1).choose (k + 1) corresponds to decomposing [0, n) into k + 2 intervals.
By putting away the last interval (of some length n - i),
we have to decompose the remaining interval [0, i) into k + 1 intervals, hence the sum.
- Defined in
- Mathlib.Data.Nat.Choose.Sum
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 64 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites17
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- DFunLike.coeproof · cited by 62,936
- Finsetproof · cited by 13,712
- Finset.sumstatement and proof · cited by 5,195
- zero_addproof · cited by 2,366
- Finset.sum_congrproof · cited by 2,323
- Finset.rangestatement and proof · cited by 1,341
- Finset.mapproof · cited by 747
- Nat.choosestatement and proof · cited by 494
- Finset.Icoproof · cited by 450
- Finset.Iccproof · cited by 348
- Finset.sum_mapproof · cited by 115
- add_right_commproof · cited by 85
Cited by1
Results whose statement or proof uses this declaration.
- hasSum_choose_mul_geometric_of_norm_lt_one'proof · cited by 4