Metamath Proof Explorer


Theorem subneg

Description: Relationship between subtraction and negative. (Contributed by NM, 10-May-2004) (Revised by Mario Carneiro, 27-May-2016)

Ref Expression
Assertion subneg ABAB=A+B

Proof

Step Hyp Ref Expression
1 df-neg B=0B
2 1 oveq2i AB=A0B
3 0cn 0
4 subsub A0BA0B=A-0+B
5 3 4 mp3an2 ABA0B=A-0+B
6 2 5 eqtrid ABAB=A-0+B
7 subid1 AA0=A
8 7 adantr ABA0=A
9 8 oveq1d ABA-0+B=A+B
10 6 9 eqtrd ABAB=A+B