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

Theorem cardf2 9447
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 9443 . . . 4 card = (𝑥 ∈ V ↦ {𝑦 ∈ On ∣ 𝑦𝑥})
21funmpt2 6378 . . 3 Fun card
3 rabab 3426 . . . 4 {𝑥 ∈ V ∣ {𝑦 ∈ On ∣ 𝑦𝑥} ∈ V} = {𝑥 {𝑦 ∈ On ∣ 𝑦𝑥} ∈ V}
41dmmpt 6072 . . . 4 dom card = {𝑥 ∈ V ∣ {𝑦 ∈ On ∣ 𝑦𝑥} ∈ V}
5 intexrab 5208 . . . . 5 (∃𝑦 ∈ On 𝑦𝑥 {𝑦 ∈ On ∣ 𝑦𝑥} ∈ V)
65abbii 2803 . . . 4 {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} = {𝑥 {𝑦 ∈ On ∣ 𝑦𝑥} ∈ V}
73, 4, 63eqtr4i 2771 . . 3 dom card = {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥}
8 df-fn 6342 . . 3 (card Fn {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} ↔ (Fun card ∧ dom card = {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥}))
92, 7, 8mpbir2an 711 . 2 card Fn {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥}
10 simpr 488 . . . . . . . . 9 ((𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧}) → 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧})
11 vex 3402 . . . . . . . . 9 𝑤 ∈ V
1210, 11eqeltrrdi 2842 . . . . . . . 8 ((𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧}) → {𝑦 ∈ On ∣ 𝑦𝑧} ∈ V)
13 intex 5205 . . . . . . . 8 ({𝑦 ∈ On ∣ 𝑦𝑧} ≠ ∅ ↔ {𝑦 ∈ On ∣ 𝑦𝑧} ∈ V)
1412, 13sylibr 237 . . . . . . 7 ((𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧}) → {𝑦 ∈ On ∣ 𝑦𝑧} ≠ ∅)
15 rabn0 4274 . . . . . . 7 ({𝑦 ∈ On ∣ 𝑦𝑧} ≠ ∅ ↔ ∃𝑦 ∈ On 𝑦𝑧)
1614, 15sylib 221 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧}) → ∃𝑦 ∈ On 𝑦𝑧)
17 vex 3402 . . . . . . 7 𝑧 ∈ V
18 breq2 5034 . . . . . . . 8 (𝑥 = 𝑧 → (𝑦𝑥𝑦𝑧))
1918rexbidv 3207 . . . . . . 7 (𝑥 = 𝑧 → (∃𝑦 ∈ On 𝑦𝑥 ↔ ∃𝑦 ∈ On 𝑦𝑧))
2017, 19elab 3573 . . . . . 6 (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} ↔ ∃𝑦 ∈ On 𝑦𝑧)
2116, 20sylibr 237 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧}) → 𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥})
22 ssrab2 3969 . . . . . . 7 {𝑦 ∈ On ∣ 𝑦𝑧} ⊆ On
23 oninton 7536 . . . . . . 7 (({𝑦 ∈ On ∣ 𝑦𝑧} ⊆ On ∧ {𝑦 ∈ On ∣ 𝑦𝑧} ≠ ∅) → {𝑦 ∈ On ∣ 𝑦𝑧} ∈ On)
2422, 14, 23sylancr 590 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧}) → {𝑦 ∈ On ∣ 𝑦𝑧} ∈ On)
2510, 24eqeltrd 2833 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧}) → 𝑤 ∈ On)
2621, 25jca 515 . . . 4 ((𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧}) → (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} ∧ 𝑤 ∈ On))
2726ssopab2i 5405 . . 3 {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧})} ⊆ {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} ∧ 𝑤 ∈ On)}
28 df-card 9443 . . . 4 card = (𝑧 ∈ V ↦ {𝑦 ∈ On ∣ 𝑦𝑧})
29 df-mpt 5111 . . . 4 (𝑧 ∈ V ↦ {𝑦 ∈ On ∣ 𝑦𝑧}) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧})}
3028, 29eqtri 2761 . . 3 card = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = {𝑦 ∈ On ∣ 𝑦𝑧})}
31 df-xp 5531 . . 3 ({𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} × On) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} ∧ 𝑤 ∈ On)}
3227, 30, 313sstr4i 3920 . 2 card ⊆ ({𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} × On)
33 dff2 6877 . 2 (card:{𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥}⟶On ↔ (card Fn {𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} ∧ card ⊆ ({𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥} × On)))
349, 32, 33mpbir2an 711 1 card:{𝑥 ∣ ∃𝑦 ∈ On 𝑦𝑥}⟶On
Colors of variables: wff setvar class
Syntax hints:  wa 399   = wceq 1542  wcel 2114  {cab 2716  wne 2934  wrex 3054  {crab 3057  Vcvv 3398  wss 3843  c0 4211   cint 4836   class class class wbr 5030  {copab 5092  cmpt 5110   × cxp 5523  dom cdm 5525  Oncon0 6172  Fun wfun 6333   Fn wfn 6334  wf 6335  cen 8554  cardccrd 9439
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2020  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2162  ax-12 2179  ax-ext 2710  ax-sep 5167  ax-nul 5174  ax-pr 5296  ax-un 7481
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2075  df-mo 2540  df-eu 2570  df-clab 2717  df-cleq 2730  df-clel 2811  df-nfc 2881  df-ne 2935  df-ral 3058  df-rex 3059  df-rab 3062  df-v 3400  df-dif 3846  df-un 3848  df-in 3850  df-ss 3860  df-pss 3862  df-nul 4212  df-if 4415  df-sn 4517  df-pr 4519  df-tp 4521  df-op 4523  df-uni 4797  df-int 4837  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5429  df-eprel 5434  df-po 5442  df-so 5443  df-fr 5483  df-we 5485  df-xp 5531  df-rel 5532  df-cnv 5533  df-co 5534  df-dm 5535  df-rn 5536  df-res 5537  df-ima 5538  df-ord 6175  df-on 6176  df-fun 6341  df-fn 6342  df-f 6343  df-card 9443
This theorem is referenced by:  cardon  9448  isnum2  9449  cardf  10052  smobeth  10088  hashkf  13786  hashgval  13787  cardpred  32635  nummin  32636
  Copyright terms: Public domain W3C validator