Metamath Proof Explorer


Theorem repncan3

Description: Addition and subtraction of equals. Based on pncan3 . (Contributed by Steven Nguyen, 8-Jan-2023)

Ref Expression
Assertion repncan3 A B A + B - A = B

Proof

Step Hyp Ref Expression
1 rersubcl B A B - A
2 eqid B - A = B - A
3 resubadd B A B - A B - A = B - A A + B - A = B
4 2 3 mpbii B A B - A A + B - A = B
5 1 4 mpd3an3 B A A + B - A = B
6 5 ancoms A B A + B - A = B