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

Theorem cardf2 10034
Description: The cardinality function is a function with domain the well-orderable sets. Assuming AC, this is the universe. (Contributed by Mario Carneiro, 6-Jun-2013.) (Revised by Mario Carneiro, 20-Sep-2014.)
Assertion
Ref Expression
cardf2 card:{𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}⟶On
Distinct variable group:   𝑥,𝑦

Proof of Theorem cardf2
Dummy variables 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-card 10030 . . . 4 card = (𝑥 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥})
21funmpt2 6587 . . 3 Fun card
3 rabab 3483 . . . 4 {𝑥 ∈ V ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V} = {𝑥 ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
41dmmpt 6247 . . . 4 dom card = {𝑥 ∈ V ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
5 intexrab 5311 . . . . 5 (∃𝑦 ∈ On 𝑦 ≈ 𝑥 ↔ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V)
65abbii 2830 . . . 4 {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} = {𝑥 ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
73, 4, 63eqtr4i 2796 . . 3 dom card = {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}
8 df-fn 6549 . . 3 (card Fn {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ↔ (Fun card ∧ dom card = {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}))
92, 7, 8mpbir2an 724 . 2 card Fn {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}
10 simpr 490 . . . . . . . . 9 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})
11 vex 3457 . . . . . . . . 9 𝑤 ∈ V
1210, 11eqeltrrdi 2872 . . . . . . . 8 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ V)
13 intex 5308 . . . . . . . 8 ({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅ ↔ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ V)
1412, 13sylibr 237 . . . . . . 7 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅)
15 rabn0 4341 . . . . . . 7 ({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅ ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
1614, 15sylib 221 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
17 vex 3457 . . . . . . 7 𝑧 ∈ V
18 breq2 5109 . . . . . . . 8 (𝑥 = 𝑧 → (𝑦 ≈ 𝑥 ↔ 𝑦 ≈ 𝑧))
1918rexbidv 3189 . . . . . . 7 (𝑥 = 𝑧 → (∃𝑦 ∈ On 𝑦 ≈ 𝑥 ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧))
2017, 19elab 3635 . . . . . 6 (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
2116, 20sylibr 237 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥})
22 ssrab2 4007 . . . . . . 7 {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ⊆ On
23 oninton 7816 . . . . . . 7 (({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ⊆ On ∧ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ On)
2422, 14, 23sylancr 599 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ On)
2510, 24eqeltrd 2863 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑤 ∈ On)
2621, 25jca 521 . . . 4 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On))
2726ssopab2i 5528 . . 3 {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})} ⊆ {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On)}
28 df-card 10030 . . . 4 card = (𝑧 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})
29 df-mpt 5189 . . . 4 (𝑧 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})}
3028, 29eqtri 2786 . . 3 card = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})}
31 df-xp 5660 . . 3 ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On)}
3227, 30, 313sstr4i 3963 . 2 card ⊆ ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On)
33 dff2 7107 . 2 (card:{𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}⟶On ↔ (card Fn {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ card ⊆ ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On)))
349, 32, 33mpbir2an 724 1 card:{𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}⟶On
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1569   ∈ wcel 2146  {cab 2741   ≠ wne 2958  ∃wrex 3089  {crab 3415  Vcvv 3453   ⊆ wss 3899  ∅c0 4280  ∩ cint 4909   class class class wbr 5105  {copab 5169   ↦ cmpt 5188   × cxp 5652  dom cdm 5654  Oncon0 6368  Fun wfun 6540   Fn wfn 6541  ⟶wf 6542   ≈ cen 8981  cardccrd 10026
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735  ax-sep 5251  ax-pr 5394
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  df-mo 2567  df-clab 2742  df-cleq 2755  df-clel 2838  df-nfc 2912  df-ne 2959  df-ral 3080  df-rex 3090  df-rab 3416  df-v 3455  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4838  df-uni 4870  df-int 4910  df-br 5106  df-opab 5170  df-mpt 5189  df-tr 5215  df-id 5549  df-eprel 5554  df-po 5562  df-so 5563  df-fr 5607  df-we 5609  df-xp 5660  df-rel 5661  df-cnv 5662  df-co 5663  df-dm 5664  df-rn 5665  df-res 5666  df-ima 5667  df-ord 6371  df-on 6372  df-fun 6548  df-fn 6549  df-f 6550  df-card 10030
This theorem is used by:  cardon  10035  isnum2  10036  cardf  10644  smobeth  10681  hashkf  14486  hashgval  14487  cardpred  35782  nummin  35783  acwer1prclem  35830  acwer1prc  35831
  Copyright terms: Public domain W3C validator