Metamath Proof Explorer


Theorem disjel

Description: A set can't belong to both members of disjoint classes. (Contributed by NM, 28-Feb-2015)

Ref Expression
Assertion disjel AB=CA¬CB

Proof

Step Hyp Ref Expression
1 disj3 AB=A=AB
2 eleq2 A=ABCACAB
3 eldifn CAB¬CB
4 2 3 biimtrdi A=ABCA¬CB
5 1 4 sylbi AB=CA¬CB
6 5 imp AB=CA¬CB