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

Theorem cardf2 10080
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 10076 . . . 4 card = (𝑥 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥})
21funmpt2 6620 . . 3 Fun card
3 rabab 3491 . . . 4 {𝑥 ∈ V ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V} = {𝑥 ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
41dmmpt 6273 . . . 4 dom card = {𝑥 ∈ V ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
5 intexrab 5323 . . . . 5 (∃𝑦 ∈ On 𝑦 ≈ 𝑥 ↔ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V)
65abbii 2841 . . . 4 {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} = {𝑥 ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
73, 4, 63eqtr4i 2807 . . 3 dom card = {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}
8 df-fn 6582 . . 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 3465 . . . . . . . . 9 𝑤 ∈ V
1210, 11eqeltrrdi 2884 . . . . . . . 8 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ V)
13 intex 5320 . . . . . . . 8 ({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅ ↔ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ V)
1412, 13sylibr 237 . . . . . . 7 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅)
15 rabn0 4349 . . . . . . 7 ({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅ ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
1614, 15sylib 221 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
17 vex 3465 . . . . . . 7 𝑧 ∈ V
18 breq2 5120 . . . . . . . 8 (𝑥 = 𝑧 → (𝑦 ≈ 𝑥 ↔ 𝑦 ≈ 𝑧))
1918rexbidv 3201 . . . . . . 7 (𝑥 = 𝑧 → (∃𝑦 ∈ On 𝑦 ≈ 𝑥 ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧))
2017, 19elab 3643 . . . . . 6 (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
2116, 20sylibr 237 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥})
22 ssrab2 4015 . . . . . . 7 {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ⊆ On
23 oninton 7862 . . . . . . 7 (({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ⊆ On ∧ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ On)
2422, 14, 23sylancr 599 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ On)
2510, 24eqeltrd 2875 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑤 ∈ On)
2621, 25jca 521 . . . 4 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On))
2726ssopab2i 5540 . . 3 {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})} ⊆ {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On)}
28 df-card 10076 . . . 4 card = (𝑧 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})
29 df-mpt 5201 . . . 4 (𝑧 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})}
3028, 29eqtri 2797 . . 3 card = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})}
31 df-xp 5672 . . 3 ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On)}
3227, 30, 313sstr4i 3971 . 2 card ⊆ ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On)
33 dff2 7149 . 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 1572   ∈ wcel 2156  {cab 2752   ≠ wne 2970  ∃wrex 3101  {crab 3423  Vcvv 3461   ⊆ wss 3907  ∅c0 4288  ∩ cint 4920   class class class wbr 5116  {copab 5181   ↦ cmpt 5200   × cxp 5664  dom cdm 5666  Oncon0 6401  Fun wfun 6573   Fn wfn 6574  ⟶wf 6575   ≈ cen 9027  cardccrd 10072
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-pr 5406
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-rab 3424  df-v 3463  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-int 4921  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-ord 6404  df-on 6405  df-fun 6581  df-fn 6582  df-f 6583  df-card 10076
This theorem is used by:  cardon  10081  isnum2  10082  cardf  10692  smobeth  10729  hashkf  14538  hashgval  14539  cardpred  35939  nummin  35940  acwer1prclem  35988  acwer1prc  35989
  Copyright terms: Public domain W3C validator