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

Theorem cardf2 10024
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 10020 . . . 4 card = (𝑥 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥})
21funmpt2 6579 . . 3 Fun card
3 rabab 3481 . . . 4 {𝑥 ∈ V ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V} = {𝑥 ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
41dmmpt 6241 . . . 4 dom card = {𝑥 ∈ V ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
5 intexrab 5308 . . . . 5 (∃𝑦 ∈ On 𝑦 ≈ 𝑥 ↔ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V)
65abbii 2828 . . . 4 {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} = {𝑥 ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
73, 4, 63eqtr4i 2794 . . 3 dom card = {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}
8 df-fn 6541 . . 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 3455 . . . . . . . . 9 𝑤 ∈ V
1210, 11eqeltrrdi 2870 . . . . . . . 8 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ V)
13 intex 5305 . . . . . . . 8 ({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅ ↔ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ V)
1412, 13sylibr 237 . . . . . . 7 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅)
15 rabn0 4339 . . . . . . 7 ({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅ ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
1614, 15sylib 221 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
17 vex 3455 . . . . . . 7 𝑧 ∈ V
18 breq2 5107 . . . . . . . 8 (𝑥 = 𝑧 → (𝑦 ≈ 𝑥 ↔ 𝑦 ≈ 𝑧))
1918rexbidv 3187 . . . . . . 7 (𝑥 = 𝑧 → (∃𝑦 ∈ On 𝑦 ≈ 𝑥 ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧))
2017, 19elab 3633 . . . . . 6 (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
2116, 20sylibr 237 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥})
22 ssrab2 4028 . . . . . . 7 {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ⊆ On
23 oninton 7809 . . . . . . 7 (({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ⊆ On ∧ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ On)
2422, 14, 23sylancr 599 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ On)
2510, 24eqeltrd 2861 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑤 ∈ On)
2621, 25jca 521 . . . 4 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On))
2726ssopab2i 5525 . . 3 {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})} ⊆ {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On)}
28 df-card 10020 . . . 4 card = (𝑧 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})
29 df-mpt 5187 . . . 4 (𝑧 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})}
3028, 29eqtri 2784 . . 3 card = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})}
31 df-xp 5657 . . 3 ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On)}
3227, 30, 313sstr4i 3982 . 2 card ⊆ ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On)
33 dff2 7099 . 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 1570   ∈ wcel 2145  {cab 2739   ≠ wne 2956  ∃wrex 3087  {crab 3413  Vcvv 3451   ⊆ wss 3899  ∅c0 4279  ∩ cint 4907   class class class wbr 5103  {copab 5167   ↦ cmpt 5186   × cxp 5649  dom cdm 5651  Oncon0 6362  Fun wfun 6532   Fn wfn 6533  ⟶wf 6534   ≈ cen 8970  cardccrd 10016
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-int 4908  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-ord 6365  df-on 6366  df-fun 6540  df-fn 6541  df-f 6542  df-card 10020
This theorem is used by:  cardon  10025  isnum2  10026  cardf  10634  smobeth  10671  hashkf  14476  hashgval  14477  cardpred  35721  nummin  35722  acwer1prclem  35759  acwer1prc  35760
  Copyright terms: Public domain W3C validator