Metamath Proof Explorer


Theorem subcan2d

Description: Cancellation law for subtraction. (Contributed by Mario Carneiro, 22-Sep-2016)

Ref Expression
Hypotheses negidd.1 φA
pncand.2 φB
subaddd.3 φC
subcan2d.4 φAC=BC
Assertion subcan2d φA=B

Proof

Step Hyp Ref Expression
1 negidd.1 φA
2 pncand.2 φB
3 subaddd.3 φC
4 subcan2d.4 φAC=BC
5 subcan2 ABCAC=BCA=B
6 1 2 3 5 syl3anc φAC=BCA=B
7 4 6 mpbid φA=B