Metamath Proof Explorer


Theorem hashprb

Description: The size of an unordered pair is 2 if and only if its elements are different sets. (Contributed by Alexander van der Vekens, 17-Jan-2018)

Ref Expression
Assertion hashprb MVNVMNMN=2

Proof

Step Hyp Ref Expression
1 hashprg MVNVMNMN=2
2 1 biimp3a MVNVMNMN=2
3 elprchashprn2 ¬MV¬MN=2
4 pm2.21 ¬MN=2MN=2MVNVMN
5 3 4 syl ¬MVMN=2MVNVMN
6 elprchashprn2 ¬NV¬NM=2
7 prcom NM=MN
8 7 fveq2i NM=MN
9 8 eqeq1i NM=2MN=2
10 9 4 sylnbi ¬NM=2MN=2MVNVMN
11 6 10 syl ¬NVMN=2MVNVMN
12 simpll MVNVMN=2MV
13 simplr MVNVMN=2NV
14 1 biimpar MVNVMN=2MN
15 12 13 14 3jca MVNVMN=2MVNVMN
16 15 ex MVNVMN=2MVNVMN
17 5 11 16 ecase MN=2MVNVMN
18 2 17 impbii MVNVMNMN=2