Metamath Proof Explorer


Theorem hashdif

Description: The size of the difference of a finite set and another set is the first set's size minus that of the intersection of both. (Contributed by Steve Rodriguez, 24-Oct-2015)

Ref Expression
Assertion hashdif AFinAB=AAB

Proof

Step Hyp Ref Expression
1 difin AAB=AB
2 1 fveq2i AAB=AB
3 inss1 ABA
4 hashssdif AFinABAAAB=AAB
5 3 4 mpan2 AFinAAB=AAB
6 2 5 eqtr3id AFinAB=AAB