Metamath Proof Explorer


Theorem gzsubcl

Description: The gaussian integers are closed under subtraction. (Contributed by Mario Carneiro, 14-Jul-2014)

Ref Expression
Assertion gzsubcl A i B i A B i

Proof

Step Hyp Ref Expression
1 gzcn A i A
2 gzcn B i B
3 negsub A B A + B = A B
4 1 2 3 syl2an A i B i A + B = A B
5 gznegcl B i B i
6 gzaddcl A i B i A + B i
7 5 6 sylan2 A i B i A + B i
8 4 7 eqeltrrd A i B i A B i