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.Cast

3 declarations. Mathlib docs · Source

theorem Nat.cast_choose E1 #

∀ (K : Type u_1) [inst : DivisionSemiring K] [CharZero K] {a b : ℕ},
  a ≤ b → ↑(b.choose a) = ↑b.factorial / (↑a.factorial * ↑(b - a).factorial)

theorem Nat.cast_add_choose E1 #

∀ (K : Type u_1) [inst : DivisionSemiring K] [CharZero K] {a b : ℕ},
  ↑((a + b).choose a) = ↑(a + b).factorial / (↑a.factorial * ↑b.factorial)

theorem Nat.cast_choose_two E1 #

∀ (K : Type u_1) [inst : DivisionRing K] [NeZero 2] (a : ℕ), ↑(a.choose 2) = ↑a * (↑a - 1) / 2