This is an inofficial mirror of http://metamath.tirix.org for personal testing of a visualizer extension only.

Metamath Proof Explorer


Theorem npcan

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

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

Proof

Step Hyp Ref Expression
1 subcl A B A B
2 simpr A B B
3 1 2 addcomd A B A - B + B = B + A - B
4 pncan3 B A B + A - B = A
5 4 ancoms A B B + A - B = A
6 3 5 eqtrd A B A - B + B = A