Metamath Proof Explorer


Theorem difeq2

Description: Equality theorem for class difference. (Contributed by NM, 10-Feb-1997) (Proof shortened by Andrew Salmon, 26-Jun-2011)

Ref Expression
Assertion difeq2 A = B C A = C B

Proof

Step Hyp Ref Expression
1 eleq2 A = B x A x B
2 1 notbid A = B ¬ x A ¬ x B
3 2 rabbidv A = B x C | ¬ x A = x C | ¬ x B
4 dfdif2 C A = x C | ¬ x A
5 dfdif2 C B = x C | ¬ x B
6 3 4 5 3eqtr4g A = B C A = C B