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

13 declarations. Mathlib docs · Source

theorem Nat.superFactorial.match_1.congr_eq_1 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (n : ℕ) → motive n.succ),
  x = 0 →
    (match x with
      | 0 => h_1 ()
      | n.succ => h_2 n) ≍
      h_1 ()

theorem Nat.superFactorial.match_1.congr_eq_2 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (n : ℕ) → motive n.succ) (n : ℕ),
  x = n.succ →
    (match x with
      | 0 => h_1 ()
      | n.succ => h_2 n) ≍
      h_2 n

def Nat.superFactorial E1 #

ℕ → ℕ

Nat.superFactorial n is the superfactorial of n.

def Nat.termSf_ E1 #

Lean.ParserDescr

sf notation for superfactorial

theorem Nat.superFactorial_zero E0 #

Nat.superFactorial 0 = 1

theorem Nat.superFactorial_succ E1 #

∀ (n : ℕ), n.succ.superFactorial = (n + 1).factorial * n.superFactorial

theorem Nat.superFactorial_one E0 #

Nat.superFactorial 1 = 1

theorem Nat.superFactorial_two E0 #

Nat.superFactorial 2 = 2

theorem Nat.prod_Icc_factorial E0 #

∀ (n : ℕ), ∏ x ∈ Finset.Icc 1 n, x.factorial = n.superFactorial

theorem Nat.prod_range_factorial_succ E0 #

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

theorem Nat.prod_range_succ_factorial E0 #

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

theorem Nat.superFactorial_two_mul E1 #

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

theorem Nat.superFactorial_four_mul E1 #

∀ (n : ℕ),
  (4 * n).superFactorial = ((∏ i ∈ Finset.range (2 * n), (2 * i + 1).factorial) * 2 ^ n) ^ 2 * (2 * n).factorial