Metamath Proof Explorer


Theorem difab

Description: Difference of two class abstractions. (Contributed by NM, 23-Oct-2004) (Proof shortened by Andrew Salmon, 26-Jun-2011)

Ref Expression
Assertion difab x|φx|ψ=x|φ¬ψ

Proof

Step Hyp Ref Expression
1 df-clab yx|φ¬ψyxφ¬ψ
2 sban yxφ¬ψyxφyx¬ψ
3 df-clab yx|φyxφ
4 3 bicomi yxφyx|φ
5 sbn yx¬ψ¬yxψ
6 df-clab yx|ψyxψ
7 5 6 xchbinxr yx¬ψ¬yx|ψ
8 4 7 anbi12i yxφyx¬ψyx|φ¬yx|ψ
9 1 2 8 3bitrri yx|φ¬yx|ψyx|φ¬ψ
10 9 difeqri x|φx|ψ=x|φ¬ψ