The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Data.Nat.Choose.Vandermonde

2 declarations. Mathlib docs · Source

Vandermonde's identity

In this file we prove Vandermonde's identity (Nat.add_choose_eq): (m + n).choose k = ∑ (i, j) ∈ antidiagonal k, m.choose i * n.choose j

We follow the algebraic proof from https://en.wikipedia.org/wiki/Vandermonde%27s_identity#Algebraic_proof .

theorem Nat.add_choose_eq E0 #

∀ (m n k : ℕ), (m + n).choose k = ∑ ij ∈ Finset.HasAntidiagonal.antidiagonal k, m.choose ij.1 * n.choose ij.2

Vandermonde's identity

theorem Nat.sum_range_choose_sq E1 #

∀ (n : ℕ), ∑ i ∈ Finset.range (n + 1), n.choose i ^ 2 = (2 * n).choose n

The sum of entries squared in a row of Pascal's triangle