Metamath Proof Explorer


Theorem subid

Description: Subtraction of a number from itself. (Contributed by NM, 8-Oct-1999) (Revised by Mario Carneiro, 27-May-2016)

Ref Expression
Assertion subid AAA=0

Proof

Step Hyp Ref Expression
1 addrid AA+0=A
2 1 oveq1d AA+0-A=AA
3 0cn 0
4 pncan2 A0A+0-A=0
5 3 4 mpan2 AA+0-A=0
6 2 5 eqtr3d AAA=0