MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  rankf Structured version   Visualization version   GIF version

Theorem rankf 8609
Description: The domain and range of the rank function. (Contributed by Mario Carneiro, 28-May-2013.) (Revised by Mario Carneiro, 12-Sep-2013.)
Assertion
Ref Expression
rankf rank: (𝑅1 “ On)⟶On

Proof of Theorem rankf
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-rank 8580 . . . 4 rank = (𝑥 ∈ V ↦ {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)})
21funmpt2 5890 . . 3 Fun rank
3 mptv 4716 . . . . . 6 (𝑥 ∈ V ↦ {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}) = {⟨𝑥, 𝑧⟩ ∣ 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}}
41, 3eqtri 2643 . . . . 5 rank = {⟨𝑥, 𝑧⟩ ∣ 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}}
54dmeqi 5290 . . . 4 dom rank = dom {⟨𝑥, 𝑧⟩ ∣ 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}}
6 dmopab 5300 . . . . 5 dom {⟨𝑥, 𝑧⟩ ∣ 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}} = {𝑥 ∣ ∃𝑧 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}}
7 abeq1 2730 . . . . . 6 ({𝑥 ∣ ∃𝑧 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}} = (𝑅1 “ On) ↔ ∀𝑥(∃𝑧 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ↔ 𝑥 (𝑅1 “ On)))
8 rankwflemb 8608 . . . . . . 7 (𝑥 (𝑅1 “ On) ↔ ∃𝑦 ∈ On 𝑥 ∈ (𝑅1‘suc 𝑦))
9 intexrab 4788 . . . . . . 7 (∃𝑦 ∈ On 𝑥 ∈ (𝑅1‘suc 𝑦) ↔ {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ∈ V)
10 isset 3196 . . . . . . 7 ( {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ∈ V ↔ ∃𝑧 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)})
118, 9, 103bitrri 287 . . . . . 6 (∃𝑧 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ↔ 𝑥 (𝑅1 “ On))
127, 11mpgbir 1723 . . . . 5 {𝑥 ∣ ∃𝑧 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}} = (𝑅1 “ On)
136, 12eqtri 2643 . . . 4 dom {⟨𝑥, 𝑧⟩ ∣ 𝑧 = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)}} = (𝑅1 “ On)
145, 13eqtri 2643 . . 3 dom rank = (𝑅1 “ On)
15 df-fn 5855 . . 3 (rank Fn (𝑅1 “ On) ↔ (Fun rank ∧ dom rank = (𝑅1 “ On)))
162, 14, 15mpbir2an 954 . 2 rank Fn (𝑅1 “ On)
17 rabn0 3937 . . . . 5 ({𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ≠ ∅ ↔ ∃𝑦 ∈ On 𝑥 ∈ (𝑅1‘suc 𝑦))
188, 17bitr4i 267 . . . 4 (𝑥 (𝑅1 “ On) ↔ {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ≠ ∅)
19 intex 4785 . . . . . 6 ({𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ≠ ∅ ↔ {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ∈ V)
20 vex 3192 . . . . . . 7 𝑥 ∈ V
211fvmpt2 6253 . . . . . . 7 ((𝑥 ∈ V ∧ {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ∈ V) → (rank‘𝑥) = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)})
2220, 21mpan 705 . . . . . 6 ( {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ∈ V → (rank‘𝑥) = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)})
2319, 22sylbi 207 . . . . 5 ({𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ≠ ∅ → (rank‘𝑥) = {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)})
24 ssrab2 3671 . . . . . 6 {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ⊆ On
25 oninton 6954 . . . . . 6 (({𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ⊆ On ∧ {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ≠ ∅) → {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ∈ On)
2624, 25mpan 705 . . . . 5 ({𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ≠ ∅ → {𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ∈ On)
2723, 26eqeltrd 2698 . . . 4 ({𝑦 ∈ On ∣ 𝑥 ∈ (𝑅1‘suc 𝑦)} ≠ ∅ → (rank‘𝑥) ∈ On)
2818, 27sylbi 207 . . 3 (𝑥 (𝑅1 “ On) → (rank‘𝑥) ∈ On)
2928rgen 2917 . 2 𝑥 (𝑅1 “ On)(rank‘𝑥) ∈ On
30 ffnfv 6349 . 2 (rank: (𝑅1 “ On)⟶On ↔ (rank Fn (𝑅1 “ On) ∧ ∀𝑥 (𝑅1 “ On)(rank‘𝑥) ∈ On))
3116, 29, 30mpbir2an 954 1 rank: (𝑅1 “ On)⟶On
Colors of variables: wff setvar class
Syntax hints:  wb 196   = wceq 1480  wex 1701  wcel 1987  {cab 2607  wne 2790  wral 2907  wrex 2908  {crab 2911  Vcvv 3189  wss 3559  c0 3896   cuni 4407   cint 4445  {copab 4677  cmpt 4678  dom cdm 5079  cima 5082  Oncon0 5687  suc csuc 5689  Fun wfun 5846   Fn wfn 5847  wf 5848  cfv 5852  𝑅1cr1 8577  rankcrnk 8578
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6909
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3191  df-sbc 3422  df-csb 3519  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-pss 3575  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-int 4446  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-pred 5644  df-ord 5690  df-on 5691  df-lim 5692  df-suc 5693  df-iota 5815  df-fun 5854  df-fn 5855  df-f 5856  df-f1 5857  df-fo 5858  df-f1o 5859  df-fv 5860  df-om 7020  df-wrecs 7359  df-recs 7420  df-rdg 7458  df-r1 8579  df-rank 8580
This theorem is referenced by:  rankon  8610  rankvaln  8614  tcrank  8699  hsmexlem4  9203  hsmexlem5  9204  grur1  9594  aomclem4  37142
  Copyright terms: Public domain W3C validator