Metamath Proof Explorer


Theorem zsqcl2

Description: The square of an integer is a nonnegative integer. (Contributed by Mario Carneiro, 18-Apr-2014) (Revised by Mario Carneiro, 14-Jul-2014)

Ref Expression
Assertion zsqcl2 ⊢ A ∈ ℤ → A 2 ∈ ℕ 0

Proof

Step Hyp Ref Expression
1 zsqcl ⊢ A ∈ ℤ → A 2 ∈ ℤ
2 zre ⊢ A ∈ ℤ → A ∈ ℝ
3 sqge0 ⊢ A ∈ ℝ → 0 ≤ A 2
4 2 3 syl ⊢ A ∈ ℤ → 0 ≤ A 2
5 elnn0z ⊢ A 2 ∈ ℕ 0 ↔ A 2 ∈ ℤ ∧ 0 ≤ A 2
6 1 4 5 sylanbrc ⊢ A ∈ ℤ → A 2 ∈ ℕ 0