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

Theorem cardf2 10061
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 10057 . . . 4 card = (𝑥 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥})
21funmpt2 6607 . . 3 Fun card
3 rabab 3484 . . . 4 {𝑥 ∈ V ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V} = {𝑥 ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
41dmmpt 6260 . . . 4 dom card = {𝑥 ∈ V ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
5 intexrab 5315 . . . . 5 (∃𝑦 ∈ On 𝑦 ≈ 𝑥 ↔ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V)
65abbii 2830 . . . 4 {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} = {𝑥 ∣ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑥} ∈ V}
73, 4, 63eqtr4i 2796 . . 3 dom card = {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥}
8 df-fn 6569 . . 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 3458 . . . . . . . . 9 𝑤 ∈ V
1210, 11eqeltrrdi 2873 . . . . . . . 8 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ V)
13 intex 5312 . . . . . . . 8 ({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅ ↔ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ V)
1412, 13sylibr 237 . . . . . . 7 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅)
15 rabn0 4342 . . . . . . 7 ({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅ ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
1614, 15sylib 221 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
17 vex 3458 . . . . . . 7 𝑧 ∈ V
18 breq2 5112 . . . . . . . 8 (𝑥 = 𝑧 → (𝑦 ≈ 𝑥 ↔ 𝑦 ≈ 𝑧))
1918rexbidv 3190 . . . . . . 7 (𝑥 = 𝑧 → (∃𝑦 ∈ On 𝑦 ≈ 𝑥 ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧))
2017, 19elab 3636 . . . . . 6 (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ↔ ∃𝑦 ∈ On 𝑦 ≈ 𝑧)
2116, 20sylibr 237 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥})
22 ssrab2 4008 . . . . . . 7 {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ⊆ On
23 oninton 7843 . . . . . . 7 (({𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ⊆ On ∧ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ≠ ∅) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ On)
2422, 14, 23sylancr 599 . . . . . 6 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧} ∈ On)
2510, 24eqeltrd 2864 . . . . 5 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → 𝑤 ∈ On)
2621, 25jca 521 . . . 4 ((𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) → (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On))
2726ssopab2i 5532 . . 3 {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})} ⊆ {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On)}
28 df-card 10057 . . . 4 card = (𝑧 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})
29 df-mpt 5193 . . . 4 (𝑧 ∈ V ↦ ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧}) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})}
3028, 29eqtri 2786 . . 3 card = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ V ∧ 𝑤 = ∩ {𝑦 ∈ On ∣ 𝑦 ≈ 𝑧})}
31 df-xp 5664 . . 3 ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On) = {⟨𝑧, 𝑤⟩ ∣ (𝑧 ∈ {𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} ∧ 𝑤 ∈ On)}
3227, 30, 313sstr4i 3964 . 2 card ⊆ ({𝑥 ∣ ∃𝑦 ∈ On 𝑦 ≈ 𝑥} × On)
33 dff2 7131 . 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 2147  {cab 2741   ≠ wne 2959  ∃wrex 3090  {crab 3416  Vcvv 3454   ⊆ wss 3900  ∅c0 4281  ∩ cint 4912   class class class wbr 5108  {copab 5173   ↦ cmpt 5192   × cxp 5656  dom cdm 5658  Oncon0 6388  Fun wfun 6560   Fn wfn 6561  ⟶wf 6562   ≈ cen 9008  cardccrd 10053
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-pr 5398
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 2102  df-mo 2567  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-int 4913  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-ord 6391  df-on 6392  df-fun 6568  df-fn 6569  df-f 6570  df-card 10057
This theorem is used by:  cardon  10062  isnum2  10063  cardf  10673  smobeth  10710  hashkf  14517  hashgval  14518  cardpred  35846  nummin  35847  acwer1prclem  35892  acwer1prc  35893
  Copyright terms: Public domain W3C validator