Metamath Proof Explorer


Theorem repnpcan

Description: Cancellation law for addition and real subtraction. Compare pnpcan . (Contributed by Steven Nguyen, 19-May-2023)

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

Proof

Step Hyp Ref Expression
1 readdcl A B A + B
2 resubsub4 A + B A C A + B - A - C = A + B - A + C
3 1 2 stoic4a A B C A + B - A - C = A + B - A + C
4 repncan2 A B A + B - A = B
5 4 3adant3 A B C A + B - A = B
6 5 oveq1d A B C A + B - A - C = B - C
7 3 6 eqtr3d A B C A + B - A + C = B - C