Metamath Proof Explorer


Theorem gzabssqcl

Description: The squared norm of a gaussian integer is an integer. (Contributed by Mario Carneiro, 16-Jul-2014)

Ref Expression
Assertion gzabssqcl A i A 2 0

Proof

Step Hyp Ref Expression
1 gzcn A i A
2 1 absvalsq2d A i A 2 = A 2 + A 2
3 elgz A i A A A
4 3 simp2bi A i A
5 zsqcl2 A A 2 0
6 4 5 syl A i A 2 0
7 3 simp3bi A i A
8 zsqcl2 A A 2 0
9 7 8 syl A i A 2 0
10 6 9 nn0addcld A i A 2 + A 2 0
11 2 10 eqeltrd A i A 2 0