Metamath Proof Explorer


Theorem rankse

Description: Construct a relation that is set-like on any class. (Contributed by BTernaryTau, 18-Sep-2026)

Ref Expression
Hypothesis rankse.1 ⊢ S = x y | rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ
Assertion rankse ⊢ S Se A

Proof

Step Hyp Ref Expression
1 rankse.1 ⊢ S = x y | rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ
2 rankon ⊢ rank ⁡ y ∈ On
3 id ⊢ rank ⁡ x ⊆ rank ⁡ y → rank ⁡ x ⊆ rank ⁡ y
4 3 rgenw ⊢ ∀ x ∈ A rank ⁡ x ⊆ rank ⁡ y → rank ⁡ x ⊆ rank ⁡ y
5 fveq2 ⊢ v = x → rank ⁡ v = rank ⁡ x
6 5 sseq1d ⊢ v = x → rank ⁡ v ⊆ rank ⁡ y ↔ rank ⁡ x ⊆ rank ⁡ y
7 6 ralrab2 ⊢ ∀ v ∈ x ∈ A | rank ⁡ x ⊆ rank ⁡ y rank ⁡ v ⊆ rank ⁡ y ↔ ∀ x ∈ A rank ⁡ x ⊆ rank ⁡ y → rank ⁡ x ⊆ rank ⁡ y
8 4 7 mpbir ⊢ ∀ v ∈ x ∈ A | rank ⁡ x ⊆ rank ⁡ y rank ⁡ v ⊆ rank ⁡ y
9 sseq2 ⊢ u = rank ⁡ y → rank ⁡ v ⊆ u ↔ rank ⁡ v ⊆ rank ⁡ y
10 9 ralbidv ⊢ u = rank ⁡ y → ∀ v ∈ x ∈ A | rank ⁡ x ⊆ rank ⁡ y rank ⁡ v ⊆ u ↔ ∀ v ∈ x ∈ A | rank ⁡ x ⊆ rank ⁡ y rank ⁡ v ⊆ rank ⁡ y
11 10 rspcev ⊢ rank ⁡ y ∈ On ∧ ∀ v ∈ x ∈ A | rank ⁡ x ⊆ rank ⁡ y rank ⁡ v ⊆ rank ⁡ y → ∃ u ∈ On ∀ v ∈ x ∈ A | rank ⁡ x ⊆ rank ⁡ y rank ⁡ v ⊆ u
12 2 8 11 mp2an ⊢ ∃ u ∈ On ∀ v ∈ x ∈ A | rank ⁡ x ⊆ rank ⁡ y rank ⁡ v ⊆ u
13 bndrank ⊢ ∃ u ∈ On ∀ v ∈ x ∈ A | rank ⁡ x ⊆ rank ⁡ y rank ⁡ v ⊆ u → x ∈ A | rank ⁡ x ⊆ rank ⁡ y ∈ V
14 12 13 ax-mp ⊢ x ∈ A | rank ⁡ x ⊆ rank ⁡ y ∈ V
15 simpl ⊢ rank ⁡ x = rank ⁡ y ∧ φ → rank ⁡ x = rank ⁡ y
16 15 orim2i ⊢ rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ → rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y
17 1 breqi ⊢ x S y ↔ x x y | rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ y
18 df-br ⊢ x x y | rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ y ↔ x y ∈ x y | rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ
19 opabidw ⊢ x y ∈ x y | rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ ↔ rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ
20 17 18 19 3bitri ⊢ x S y ↔ rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ
21 rankon ⊢ rank ⁡ x ∈ On
22 21 2 onsseli ⊢ rank ⁡ x ⊆ rank ⁡ y ↔ rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y
23 16 20 22 3imtr4i ⊢ x S y → rank ⁡ x ⊆ rank ⁡ y
24 23 a1i ⊢ x ∈ A → x S y → rank ⁡ x ⊆ rank ⁡ y
25 24 ss2rabi ⊢ x ∈ A | x S y ⊆ x ∈ A | rank ⁡ x ⊆ rank ⁡ y
26 14 25 ssexi ⊢ x ∈ A | x S y ∈ V
27 26 rgenw ⊢ ∀ y ∈ A x ∈ A | x S y ∈ V
28 nfcv ⊢ Ⅎ _ x A
29 nfcv ⊢ Ⅎ _ z A
30 nfv ⊢ Ⅎ z x S w
31 nfcv ⊢ Ⅎ _ x z
32 nfopab1 ⊢ Ⅎ _ x x y | rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ
33 1 32 nfcxfr ⊢ Ⅎ _ x S
34 nfcv ⊢ Ⅎ _ x w
35 31 33 34 nfbr ⊢ Ⅎ x z S w
36 breq1 ⊢ x = z → x S w ↔ z S w
37 28 29 30 35 36 cbvrabw ⊢ x ∈ A | x S w = z ∈ A | z S w
38 37 eleq1i ⊢ x ∈ A | x S w ∈ V ↔ z ∈ A | z S w ∈ V
39 38 ralbii ⊢ ∀ w ∈ A x ∈ A | x S w ∈ V ↔ ∀ w ∈ A z ∈ A | z S w ∈ V
40 nfv ⊢ Ⅎ w x ∈ A | x S y ∈ V
41 nfcv ⊢ Ⅎ _ y x
42 nfopab2 ⊢ Ⅎ _ y x y | rank ⁡ x ∈ rank ⁡ y ∨ rank ⁡ x = rank ⁡ y ∧ φ
43 1 42 nfcxfr ⊢ Ⅎ _ y S
44 nfcv ⊢ Ⅎ _ y w
45 41 43 44 nfbr ⊢ Ⅎ y x S w
46 nfcv ⊢ Ⅎ _ y A
47 45 46 nfrabw ⊢ Ⅎ _ y x ∈ A | x S w
48 47 nfel1 ⊢ Ⅎ y x ∈ A | x S w ∈ V
49 breq2 ⊢ y = w → x S y ↔ x S w
50 49 rabbidv ⊢ y = w → x ∈ A | x S y = x ∈ A | x S w
51 50 eleq1d ⊢ y = w → x ∈ A | x S y ∈ V ↔ x ∈ A | x S w ∈ V
52 40 48 51 cbvralw ⊢ ∀ y ∈ A x ∈ A | x S y ∈ V ↔ ∀ w ∈ A x ∈ A | x S w ∈ V
53 df-se ⊢ S Se A ↔ ∀ w ∈ A z ∈ A | z S w ∈ V
54 39 52 53 3bitr4ri ⊢ S Se A ↔ ∀ y ∈ A x ∈ A | x S y ∈ V
55 27 54 mpbir ⊢ S Se A