Metamath Proof Explorer


Theorem addeq0

Description: Two complex numbers add up to zero iff they are each other's opposites. (Contributed by Thierry Arnoux, 2-May-2017)

Ref Expression
Assertion addeq0 A B A + B = 0 A = B

Proof

Step Hyp Ref Expression
1 0cnd A B 0
2 simpr A B B
3 simpl A B A
4 1 2 3 subadd2d A B 0 B = A A + B = 0
5 df-neg B = 0 B
6 5 eqeq1i B = A 0 B = A
7 eqcom B = A A = B
8 6 7 bitr3i 0 B = A A = B
9 4 8 bitr3di A B A + B = 0 A = B