Metamath Proof Explorer


Theorem npncan2

Description: Cancellation law for subtraction. (Contributed by Scott Fenton, 21-Jun-2013)

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

Proof

Step Hyp Ref Expression
1 npncan A B A A B + B - A = A A
2 1 3anidm13 A B A B + B - A = A A
3 subid A A A = 0
4 3 adantr A B A A = 0
5 2 4 eqtrd A B A B + B - A = 0