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

Theorem cardf2 7576
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 : {
x  |  E. y  e.  On  y  ~~  x }
--> On
Distinct variable group:    x, y

Proof of Theorem cardf2
Dummy variables  w  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-card 7572 . . . 4  |-  card  =  ( x  e.  _V  |->  |^|
{ y  e.  On  |  y  ~~  x }
)
21funmpt2 5291 . . 3  |-  Fun  card
3 rabab 2805 . . . 4  |-  { x  e.  _V  |  |^| { y  e.  On  |  y 
~~  x }  e.  _V }  =  { x  |  |^| { y  e.  On  |  y  ~~  x }  e.  _V }
41dmmpt 5168 . . . 4  |-  dom  card  =  { x  e.  _V  |  |^| { y  e.  On  |  y  ~~  x }  e.  _V }
5 intexrab 4170 . . . . 5  |-  ( E. y  e.  On  y  ~~  x  <->  |^| { y  e.  On  |  y  ~~  x }  e.  _V )
65abbii 2395 . . . 4  |-  { x  |  E. y  e.  On  y  ~~  x }  =  { x  |  |^| { y  e.  On  | 
y  ~~  x }  e.  _V }
73, 4, 63eqtr4i 2313 . . 3  |-  dom  card  =  { x  |  E. y  e.  On  y  ~~  x }
8 df-fn 5258 . . 3  |-  ( card 
Fn  { x  |  E. y  e.  On  y  ~~  x }  <->  ( Fun  card  /\  dom  card  =  {
x  |  E. y  e.  On  y  ~~  x } ) )
92, 7, 8mpbir2an 886 . 2  |-  card  Fn  { x  |  E. y  e.  On  y  ~~  x }
10 simpr 447 . . . . . . . . 9  |-  ( ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } )  ->  w  =  |^| { y  e.  On  | 
y  ~~  z }
)
11 vex 2791 . . . . . . . . 9  |-  w  e. 
_V
1210, 11syl6eqelr 2372 . . . . . . . 8  |-  ( ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } )  ->  |^| { y  e.  On  |  y  ~~  z }  e.  _V )
13 intex 4167 . . . . . . . 8  |-  ( { y  e.  On  | 
y  ~~  z }  =/=  (/)  <->  |^| { y  e.  On  |  y  ~~  z }  e.  _V )
1412, 13sylibr 203 . . . . . . 7  |-  ( ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } )  ->  { y  e.  On  |  y  ~~  z }  =/=  (/) )
15 rabn0 3474 . . . . . . 7  |-  ( { y  e.  On  | 
y  ~~  z }  =/=  (/)  <->  E. y  e.  On  y  ~~  z )
1614, 15sylib 188 . . . . . 6  |-  ( ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } )  ->  E. y  e.  On  y  ~~  z )
17 vex 2791 . . . . . . 7  |-  z  e. 
_V
18 breq2 4027 . . . . . . . 8  |-  ( x  =  z  ->  (
y  ~~  x  <->  y  ~~  z ) )
1918rexbidv 2564 . . . . . . 7  |-  ( x  =  z  ->  ( E. y  e.  On  y  ~~  x  <->  E. y  e.  On  y  ~~  z
) )
2017, 19elab 2914 . . . . . 6  |-  ( z  e.  { x  |  E. y  e.  On  y  ~~  x }  <->  E. y  e.  On  y  ~~  z
)
2116, 20sylibr 203 . . . . 5  |-  ( ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } )  ->  z  e.  {
x  |  E. y  e.  On  y  ~~  x } )
22 ssrab2 3258 . . . . . . 7  |-  { y  e.  On  |  y 
~~  z }  C_  On
23 oninton 4591 . . . . . . 7  |-  ( ( { y  e.  On  |  y  ~~  z } 
C_  On  /\  { y  e.  On  |  y 
~~  z }  =/=  (/) )  ->  |^| { y  e.  On  |  y 
~~  z }  e.  On )
2422, 14, 23sylancr 644 . . . . . 6  |-  ( ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } )  ->  |^| { y  e.  On  |  y  ~~  z }  e.  On )
2510, 24eqeltrd 2357 . . . . 5  |-  ( ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } )  ->  w  e.  On )
2621, 25jca 518 . . . 4  |-  ( ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } )  ->  ( z  e. 
{ x  |  E. y  e.  On  y  ~~  x }  /\  w  e.  On ) )
2726ssopab2i 4292 . . 3  |-  { <. z ,  w >.  |  ( z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } ) }  C_  { <. z ,  w >.  |  (
z  e.  { x  |  E. y  e.  On  y  ~~  x }  /\  w  e.  On ) }
28 df-card 7572 . . . 4  |-  card  =  ( z  e.  _V  |->  |^|
{ y  e.  On  |  y  ~~  z } )
29 df-mpt 4079 . . . 4  |-  ( z  e.  _V  |->  |^| { y  e.  On  |  y 
~~  z } )  =  { <. z ,  w >.  |  (
z  e.  _V  /\  w  =  |^| { y  e.  On  |  y 
~~  z } ) }
3028, 29eqtri 2303 . . 3  |-  card  =  { <. z ,  w >.  |  ( z  e. 
_V  /\  w  =  |^| { y  e.  On  |  y  ~~  z } ) }
31 df-xp 4695 . . 3  |-  ( { x  |  E. y  e.  On  y  ~~  x }  X.  On )  =  { <. z ,  w >.  |  ( z  e. 
{ x  |  E. y  e.  On  y  ~~  x }  /\  w  e.  On ) }
3227, 30, 313sstr4i 3217 . 2  |-  card  C_  ( { x  |  E. y  e.  On  y  ~~  x }  X.  On )
33 dff2 5672 . 2  |-  ( card
: { x  |  E. y  e.  On  y  ~~  x } --> On  <->  ( card  Fn 
{ x  |  E. y  e.  On  y  ~~  x }  /\  card  C_  ( { x  |  E. y  e.  On  y  ~~  x }  X.  On ) ) )
349, 32, 33mpbir2an 886 1  |-  card : {
x  |  E. y  e.  On  y  ~~  x }
--> On
Colors of variables: wff set class
Syntax hints:    /\ wa 358    = wceq 1623    e. wcel 1684   {cab 2269    =/= wne 2446   E.wrex 2544   {crab 2547   _Vcvv 2788    C_ wss 3152   (/)c0 3455   |^|cint 3862   class class class wbr 4023   {copab 4076    e. cmpt 4077   Oncon0 4392    X. cxp 4687   dom cdm 4689   Fun wfun 5249    Fn wfn 5250   -->wf 5251    ~~ cen 6860   cardccrd 7568
This theorem is referenced by:  cardon  7577  isnum2  7578  cardf  8172  smobeth  8208  hashkf  11339  hashgval  11340
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pr 4214  ax-un 4512
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-ral 2548  df-rex 2549  df-rab 2552  df-v 2790  df-sbc 2992  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-int 3863  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-we 4354  df-ord 4395  df-on 4396  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-fun 5257  df-fn 5258  df-f 5259  df-card 7572
  Copyright terms: Public domain W3C validator