Metamath Proof Explorer


Theorem facmapnn

Description: The factorial function restricted to positive integers is a mapping from the positive integers to the positive integers. (Contributed by AV, 8-Aug-2020)

Ref Expression
Assertion facmapnn ⊢ n ∈ ℕ ⟼ n ! ∈ ℕ ℕ

Proof

Step Hyp Ref Expression
1 eqid ⊢ n ∈ ℕ ⟼ n ! = n ∈ ℕ ⟼ n !
2 nnnn0 ⊢ n ∈ ℕ → n ∈ ℕ 0
3 2 faccld ⊢ n ∈ ℕ → n ! ∈ ℕ
4 1 3 fmpti ⊢ n ∈ ℕ ⟼ n ! : ℕ ⟶ ℕ
5 nnex ⊢ ℕ ∈ V
6 5 5 elmap ⊢ n ∈ ℕ ⟼ n ! ∈ ℕ ℕ ↔ n ∈ ℕ ⟼ n ! : ℕ ⟶ ℕ
7 4 6 mpbir ⊢ n ∈ ℕ ⟼ n ! ∈ ℕ ℕ