Metamath Proof Explorer


Theorem pncan

Description: Cancellation law for subtraction. (Contributed by NM, 10-May-2004) (Revised by Mario Carneiro, 27-May-2016)

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

Proof

Step Hyp Ref Expression
1 simpr A B B
2 simpl A B A
3 1 2 addcomd A B B + A = A + B
4 addcl A B A + B
5 subadd A + B B A A + B - B = A B + A = A + B
6 4 1 2 5 syl3anc A B A + B - B = A B + A = A + B
7 3 6 mpbird A B A + B - B = A