Metamath Proof Explorer


Theorem nnpcan

Description: Cancellation law for subtraction: ((a-b)-c)+b = a-c holds for complex numbers a,b,c. (Contributed by Alexander van der Vekens, 24-Mar-2018)

Ref Expression
Assertion nnpcan A B C A B - C + B = A C

Proof

Step Hyp Ref Expression
1 subcl A B A B
2 1 3adant3 A B C A B
3 addsub A B B C A B + B - C = A B - C + B
4 3 eqcomd A B B C A B - C + B = A B + B - C
5 2 4 syld3an1 A B C A B - C + B = A B + B - C
6 npcan A B A - B + B = A
7 6 3adant3 A B C A - B + B = A
8 7 oveq1d A B C A B + B - C = A C
9 5 8 eqtrd A B C A B - C + B = A C