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.Factorial.BigOperators

9 declarations. Mathlib docs · Source

theorem Nat.monotone_factorial E1 #

Monotone Nat.factorial

theorem Nat.prod_factorial_pos E1 #

∀ {α : Type u_1} (s : Finset α) (f : α → ℕ), 0 < ∏ i ∈ s, (f i).factorial

theorem Nat.prod_factorial_dvd_factorial_sum E1 #

∀ {α : Type u_1} (s : Finset α) (f : α → ℕ), ∏ i ∈ s, (f i).factorial ∣ (∑ i ∈ s, f i).factorial

theorem Nat.factorial_eq_prod_range_add_one E1 #

∀ (n : ℕ), n.factorial = ∏ i ∈ Finset.range n, (i + 1)

theorem Finset.prod_range_add_one_eq_factorial E0 #

∀ (n : ℕ), ∏ i ∈ Finset.range n, (i + 1) = n.factorial

theorem Nat.ascFactorial_eq_prod_range E1 #

∀ (n k : ℕ), n.ascFactorial k = ∏ i ∈ Finset.range k, (n + i)

theorem Nat.Prime.dvd_ascFactorial_iff E0 #

∀ {p k n : ℕ}, Nat.Prime p → (p ∣ k.ascFactorial n ↔ ∃ i < n, p ∣ k + i)

theorem Nat.descFactorial_eq_prod_range E1 #

∀ (n k : ℕ), n.descFactorial k = ∏ i ∈ Finset.range k, (n - i)

theorem Nat.factorial_coe_dvd_prod E1 #

∀ (k : ℕ) (n : ℤ), ↑k.factorial ∣ ∏ i ∈ Finset.range k, (n + ↑i)

k! divides the product of any k consecutive integers.