Package natural-factorial-thm: Properties of natural number factorial
Information
name | natural-factorial-thm |
version | 1.31 |
description | Properties of natural number factorial |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | HOLLight |
provenance | HOL Light theory extracted on 2014-06-12 |
requires | bool natural-add natural-def natural-factorial-def natural-mult natural-numeral natural-order |
show | Data.Bool Number.Natural |
Files
- Package tarball natural-factorial-thm-1.31.tgz
- Theory source file natural-factorial-thm.thy (included in the package tarball)
Theorems
⊦ ∀n. ¬(factorial n = 0)
⊦ ∀m n. m ≤ n ⇒ factorial m ≤ factorial n
External Type Operators
- →
- bool
- Number
- Natural
- natural
- Natural
External Constants
- =
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∨
- ¬
- ⊤
- Bool
- Number
- Natural
- *
- +
- <
- ≤
- bit0
- bit1
- factorial
- suc
- zero
- Natural
Assumptions
⊦ ⊤
⊦ bit0 0 = 0
⊦ ∀n. 0 ≤ n
⊦ ∀n. n ≤ n
⊦ factorial 0 = 1
⊦ ∀n. 0 < suc n
⊦ ∀t. (∀x. t) ⇔ t
⊦ (∀) = λp. p = λx. ⊤
⊦ ∀t. ⊤ ∧ t ⇔ t
⊦ ∀t. t ∧ ⊤ ⇔ t
⊦ ∀t. ⊤ ∨ t ⇔ ⊤
⊦ ∀m. m + 0 = m
⊦ ∀n. bit1 n = suc (bit0 n)
⊦ ∀m. 1 * m = m
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ ∀n. 0 < n ⇔ ¬(n = 0)
⊦ ∀n. factorial (suc n) = suc n * factorial n
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ (∃) = λp. ∀q. (∀x. p x ⇒ q) ⇒ q
⊦ ∀m n. m + suc n = suc (m + n)
⊦ ∀m n. suc m ≤ suc n ⇔ m ≤ n
⊦ ∀m n. m ≤ n ⇔ ∃d. n = m + d
⊦ ∀m n p. m ≤ n ∧ n ≤ p ⇒ m ≤ p
⊦ ∀m n. 0 < m * n ⇔ 0 < m ∧ 0 < n
⊦ ∀p. p 0 ∧ (∀n. p n ⇒ p (suc n)) ⇒ ∀n. p n
⊦ ∀m n p. m * p ≤ n * p ⇔ m ≤ n ∨ p = 0