Metamath Proof Explorer


Theorem renegadd

Description: Relationship between real negation and addition. (Contributed by Steven Nguyen, 7-Jan-2023)

Ref Expression
Assertion renegadd A B 0 - A = B A + B = 0

Proof

Step Hyp Ref Expression
1 elre0re A 0
2 resubval 0 A 0 - A = ι x | A + x = 0
3 1 2 mpancom A 0 - A = ι x | A + x = 0
4 3 eqeq1d A 0 - A = B ι x | A + x = 0 = B
5 4 adantr A B 0 - A = B ι x | A + x = 0 = B
6 renegeu A ∃! x A + x = 0
7 oveq2 x = B A + x = A + B
8 7 eqeq1d x = B A + x = 0 A + B = 0
9 8 riota2 B ∃! x A + x = 0 A + B = 0 ι x | A + x = 0 = B
10 6 9 sylan2 B A A + B = 0 ι x | A + x = 0 = B
11 10 ancoms A B A + B = 0 ι x | A + x = 0 = B
12 5 11 bitr4d A B 0 - A = B A + B = 0