Metamath Proof Explorer


Theorem gzaddcl

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

Ref Expression
Assertion gzaddcl AiBiA+Bi

Proof

Step Hyp Ref Expression
1 gzcn AiA
2 gzcn BiB
3 addcl ABA+B
4 1 2 3 syl2an AiBiA+B
5 readd ABA+B=A+B
6 1 2 5 syl2an AiBiA+B=A+B
7 elgz AiAAA
8 7 simp2bi AiA
9 elgz BiBBB
10 9 simp2bi BiB
11 zaddcl ABA+B
12 8 10 11 syl2an AiBiA+B
13 6 12 eqeltrd AiBiA+B
14 imadd ABA+B=A+B
15 1 2 14 syl2an AiBiA+B=A+B
16 7 simp3bi AiA
17 9 simp3bi BiB
18 zaddcl ABA+B
19 16 17 18 syl2an AiBiA+B
20 15 19 eqeltrd AiBiA+B
21 elgz A+BiA+BA+BA+B
22 4 13 20 21 syl3anbrc AiBiA+Bi