Metamath Proof Explorer


Theorem hashle2pr

Description: A nonempty set of size less than or equal to two is an unordered pair of sets. (Contributed by AV, 24-Nov-2021)

Ref Expression
Assertion hashle2pr PVPP2abP=ab

Proof

Step Hyp Ref Expression
1 hashxnn0 PVP0*
2 xnn0le2is012 P0*P2P=0P=1P=2
3 1 2 sylan PVP2P=0P=1P=2
4 3 ex PVP2P=0P=1P=2
5 hasheq0 PVP=0P=
6 eqneqall P=PabP=ab
7 5 6 syl6bi PVP=0PabP=ab
8 7 com12 P=0PVPabP=ab
9 hash1snb PVP=1cP=c
10 vex cV
11 preq12 a=cb=cab=cc
12 dfsn2 c=cc
13 11 12 eqtr4di a=cb=cab=c
14 13 eqeq2d a=cb=cP=abP=c
15 10 10 14 spc2ev P=cabP=ab
16 15 exlimiv cP=cabP=ab
17 9 16 syl6bi PVP=1abP=ab
18 17 imp PVP=1abP=ab
19 18 a1d PVP=1PabP=ab
20 19 expcom P=1PVPabP=ab
21 hash2pr PVP=2abP=ab
22 21 a1d PVP=2PabP=ab
23 22 expcom P=2PVPabP=ab
24 8 20 23 3jaoi P=0P=1P=2PVPabP=ab
25 24 com12 PVP=0P=1P=2PabP=ab
26 4 25 syld PVP2PabP=ab
27 26 com23 PVPP2abP=ab
28 27 imp PVPP2abP=ab
29 fveq2 P=abP=ab
30 hashprlei abFinab2
31 30 simpri ab2
32 29 31 eqbrtrdi P=abP2
33 32 exlimivv abP=abP2
34 28 33 impbid1 PVPP2abP=ab