Metamath Proof Explorer


Theorem scott0

Description: Scott's trick collects all sets that have a certain property and are of the smallest possible rank. This theorem shows that the resulting collection, expressed as in Equation 9.3 of Jech p. 72, contains at least one representative with the property, if there is one. In other words, the collection is empty iff no set has the property (i.e. A is empty). (Contributed by NM, 15-Oct-2003)

Ref Expression
Assertion scott0 A = x A | y A rank x rank y =

Proof

Step Hyp Ref Expression
1 rabeq A = x A | y A rank x rank y = x | y A rank x rank y
2 rab0 x | y A rank x rank y =
3 1 2 eqtrdi A = x A | y A rank x rank y =
4 n0 A x x A
5 nfre1 x x A rank x = rank x
6 eqid rank x = rank x
7 rspe x A rank x = rank x x A rank x = rank x
8 6 7 mpan2 x A x A rank x = rank x
9 5 8 exlimi x x A x A rank x = rank x
10 4 9 sylbi A x A rank x = rank x
11 fvex rank x V
12 eqeq1 y = rank x y = rank x rank x = rank x
13 12 anbi2d y = rank x x A y = rank x x A rank x = rank x
14 11 13 spcev x A rank x = rank x y x A y = rank x
15 14 eximi x x A rank x = rank x x y x A y = rank x
16 excom y x x A y = rank x x y x A y = rank x
17 15 16 sylibr x x A rank x = rank x y x x A y = rank x
18 df-rex x A rank x = rank x x x A rank x = rank x
19 df-rex x A y = rank x x x A y = rank x
20 19 exbii y x A y = rank x y x x A y = rank x
21 17 18 20 3imtr4i x A rank x = rank x y x A y = rank x
22 10 21 syl A y x A y = rank x
23 abn0 y | x A y = rank x y x A y = rank x
24 22 23 sylibr A y | x A y = rank x
25 11 dfiin2 x A rank x = y | x A y = rank x
26 rankon rank x On
27 eleq1 y = rank x y On rank x On
28 26 27 mpbiri y = rank x y On
29 28 rexlimivw x A y = rank x y On
30 29 abssi y | x A y = rank x On
31 onint y | x A y = rank x On y | x A y = rank x y | x A y = rank x y | x A y = rank x
32 30 31 mpan y | x A y = rank x y | x A y = rank x y | x A y = rank x
33 25 32 eqeltrid y | x A y = rank x x A rank x y | x A y = rank x
34 nfii1 _ x x A rank x
35 34 nfeq2 x y = x A rank x
36 eqeq1 y = x A rank x y = rank x x A rank x = rank x
37 35 36 rexbid y = x A rank x x A y = rank x x A x A rank x = rank x
38 37 elabg x A rank x y | x A y = rank x x A rank x y | x A y = rank x x A x A rank x = rank x
39 38 ibi x A rank x y | x A y = rank x x A x A rank x = rank x
40 ssid rank y rank y
41 fveq2 x = y rank x = rank y
42 41 sseq1d x = y rank x rank y rank y rank y
43 42 rspcev y A rank y rank y x A rank x rank y
44 40 43 mpan2 y A x A rank x rank y
45 iinss x A rank x rank y x A rank x rank y
46 44 45 syl y A x A rank x rank y
47 sseq1 x A rank x = rank x x A rank x rank y rank x rank y
48 46 47 syl5ib x A rank x = rank x y A rank x rank y
49 48 ralrimiv x A rank x = rank x y A rank x rank y
50 49 reximi x A x A rank x = rank x x A y A rank x rank y
51 24 33 39 50 4syl A x A y A rank x rank y
52 rabn0 x A | y A rank x rank y x A y A rank x rank y
53 51 52 sylibr A x A | y A rank x rank y
54 53 necon4i x A | y A rank x rank y = A =
55 3 54 impbii A = x A | y A rank x rank y =