Metamath Proof Explorer


Theorem pnncan

Description: Cancellation law for mixed addition and subtraction. (Contributed by NM, 30-Jun-2005) (Revised by Mario Carneiro, 27-May-2016)

Ref Expression
Assertion pnncan ABCA+B-AC=B+C

Proof

Step Hyp Ref Expression
1 simp1 ABCA
2 simp2 ABCB
3 1 2 addcld ABCA+B
4 simp3 ABCC
5 subsub A+BACA+B-AC=A+B-A+C
6 3 1 4 5 syl3anc ABCA+B-AC=A+B-A+C
7 pncan2 ABA+B-A=B
8 7 3adant3 ABCA+B-A=B
9 8 oveq1d ABCA+B-A+C=B+C
10 6 9 eqtrd ABCA+B-AC=B+C