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

Theorem qnnen 13949
Description: The rational numbers are countable. This proof does not use the Axiom of Choice, even though it uses an onto function, because the base set  ( ZZ  X.  NN ) is numerable. Exercise 2 of [Enderton] p. 133. For purposes of the Metamath 100 list, we are considering Mario Carneiro's revision as the date this proof was completed. This is Metamath 100 proof #3. (Contributed by NM, 31-Jul-2004.) (Revised by Mario Carneiro, 3-Mar-2013.)
Assertion
Ref Expression
qnnen  |-  QQ  ~~  NN

Proof of Theorem qnnen
Dummy variables  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 omelon 7977 . . . . . . 7  |-  om  e.  On
2 nnenom 11993 . . . . . . . 8  |-  NN  ~~  om
32ensymi 7484 . . . . . . 7  |-  om  ~~  NN
4 isnumi 8240 . . . . . . 7  |-  ( ( om  e.  On  /\  om 
~~  NN )  ->  NN  e.  dom  card )
51, 3, 4mp2an 670 . . . . . 6  |-  NN  e.  dom  card
6 znnen 13948 . . . . . . 7  |-  ZZ  ~~  NN
7 ennum 8241 . . . . . . 7  |-  ( ZZ 
~~  NN  ->  ( ZZ  e.  dom  card  <->  NN  e.  dom  card ) )
86, 7ax-mp 5 . . . . . 6  |-  ( ZZ  e.  dom  card  <->  NN  e.  dom  card )
95, 8mpbir 209 . . . . 5  |-  ZZ  e.  dom  card
10 xpnum 8245 . . . . 5  |-  ( ( ZZ  e.  dom  card  /\  NN  e.  dom  card )  ->  ( ZZ  X.  NN )  e.  dom  card )
119, 5, 10mp2an 670 . . . 4  |-  ( ZZ 
X.  NN )  e. 
dom  card
12 eqid 2382 . . . . . 6  |-  ( x  e.  ZZ ,  y  e.  NN  |->  ( x  /  y ) )  =  ( x  e.  ZZ ,  y  e.  NN  |->  ( x  / 
y ) )
13 ovex 6224 . . . . . 6  |-  ( x  /  y )  e. 
_V
1412, 13fnmpt2i 6768 . . . . 5  |-  ( x  e.  ZZ ,  y  e.  NN  |->  ( x  /  y ) )  Fn  ( ZZ  X.  NN )
1512rnmpt2 6311 . . . . . 6  |-  ran  (
x  e.  ZZ , 
y  e.  NN  |->  ( x  /  y ) )  =  { z  |  E. x  e.  ZZ  E. y  e.  NN  z  =  ( x  /  y ) }
16 elq 11103 . . . . . . 7  |-  ( z  e.  QQ  <->  E. x  e.  ZZ  E. y  e.  NN  z  =  ( x  /  y ) )
1716abbi2i 2515 . . . . . 6  |-  QQ  =  { z  |  E. x  e.  ZZ  E. y  e.  NN  z  =  ( x  /  y ) }
1815, 17eqtr4i 2414 . . . . 5  |-  ran  (
x  e.  ZZ , 
y  e.  NN  |->  ( x  /  y ) )  =  QQ
19 df-fo 5502 . . . . 5  |-  ( ( x  e.  ZZ , 
y  e.  NN  |->  ( x  /  y ) ) : ( ZZ 
X.  NN ) -onto-> QQ  <->  ( ( x  e.  ZZ ,  y  e.  NN  |->  ( x  /  y
) )  Fn  ( ZZ  X.  NN )  /\  ran  ( x  e.  ZZ ,  y  e.  NN  |->  ( x  /  y
) )  =  QQ ) )
2014, 18, 19mpbir2an 918 . . . 4  |-  ( x  e.  ZZ ,  y  e.  NN  |->  ( x  /  y ) ) : ( ZZ  X.  NN ) -onto-> QQ
21 fodomnum 8351 . . . 4  |-  ( ( ZZ  X.  NN )  e.  dom  card  ->  ( ( x  e.  ZZ ,  y  e.  NN  |->  ( x  /  y
) ) : ( ZZ  X.  NN )
-onto-> QQ  ->  QQ  ~<_  ( ZZ 
X.  NN ) ) )
2211, 20, 21mp2 9 . . 3  |-  QQ  ~<_  ( ZZ 
X.  NN )
23 nnex 10458 . . . . . 6  |-  NN  e.  _V
2423enref 7467 . . . . 5  |-  NN  ~~  NN
25 xpen 7599 . . . . 5  |-  ( ( ZZ  ~~  NN  /\  NN  ~~  NN )  -> 
( ZZ  X.  NN )  ~~  ( NN  X.  NN ) )
266, 24, 25mp2an 670 . . . 4  |-  ( ZZ 
X.  NN )  ~~  ( NN  X.  NN )
27 xpnnen 13946 . . . 4  |-  ( NN 
X.  NN )  ~~  NN
2826, 27entri 7488 . . 3  |-  ( ZZ 
X.  NN )  ~~  NN
29 domentr 7493 . . 3  |-  ( ( QQ  ~<_  ( ZZ  X.  NN )  /\  ( ZZ  X.  NN )  ~~  NN )  ->  QQ  ~<_  NN )
3022, 28, 29mp2an 670 . 2  |-  QQ  ~<_  NN
31 qex 11113 . . 3  |-  QQ  e.  _V
32 nnssq 11110 . . 3  |-  NN  C_  QQ
33 ssdomg 7480 . . 3  |-  ( QQ  e.  _V  ->  ( NN  C_  QQ  ->  NN  ~<_  QQ ) )
3431, 32, 33mp2 9 . 2  |-  NN  ~<_  QQ
35 sbth 7556 . 2  |-  ( ( QQ  ~<_  NN  /\  NN  ~<_  QQ )  ->  QQ  ~~  NN )
3630, 34, 35mp2an 670 1  |-  QQ  ~~  NN
Colors of variables: wff setvar class
Syntax hints:    <-> wb 184    = wceq 1399    e. wcel 1826   {cab 2367   E.wrex 2733   _Vcvv 3034    C_ wss 3389   class class class wbr 4367   Oncon0 4792    X. cxp 4911   dom cdm 4913   ran crn 4914    Fn wfn 5491   -onto->wfo 5494  (class class class)co 6196    |-> cmpt2 6198   omcom 6599    ~~ cen 7432    ~<_ cdom 7433   cardccrd 8229    / cdiv 10123   NNcn 10452   ZZcz 10781   QQcq 11101
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1626  ax-4 1639  ax-5 1712  ax-6 1755  ax-7 1798  ax-8 1828  ax-9 1830  ax-10 1845  ax-11 1850  ax-12 1862  ax-13 2006  ax-ext 2360  ax-rep 4478  ax-sep 4488  ax-nul 4496  ax-pow 4543  ax-pr 4601  ax-un 6491  ax-inf2 7972  ax-cnex 9459  ax-resscn 9460  ax-1cn 9461  ax-icn 9462  ax-addcl 9463  ax-addrcl 9464  ax-mulcl 9465  ax-mulrcl 9466  ax-mulcom 9467  ax-addass 9468  ax-mulass 9469  ax-distr 9470  ax-i2m1 9471  ax-1ne0 9472  ax-1rid 9473  ax-rnegex 9474  ax-rrecex 9475  ax-cnre 9476  ax-pre-lttri 9477  ax-pre-lttrn 9478  ax-pre-ltadd 9479  ax-pre-mulgt0 9480
This theorem depends on definitions:  df-bi 185  df-or 368  df-an 369  df-3or 972  df-3an 973  df-tru 1402  df-ex 1621  df-nf 1625  df-sb 1748  df-eu 2222  df-mo 2223  df-clab 2368  df-cleq 2374  df-clel 2377  df-nfc 2532  df-ne 2579  df-nel 2580  df-ral 2737  df-rex 2738  df-reu 2739  df-rmo 2740  df-rab 2741  df-v 3036  df-sbc 3253  df-csb 3349  df-dif 3392  df-un 3394  df-in 3396  df-ss 3403  df-pss 3405  df-nul 3712  df-if 3858  df-pw 3929  df-sn 3945  df-pr 3947  df-tp 3949  df-op 3951  df-uni 4164  df-int 4200  df-iun 4245  df-br 4368  df-opab 4426  df-mpt 4427  df-tr 4461  df-eprel 4705  df-id 4709  df-po 4714  df-so 4715  df-fr 4752  df-se 4753  df-we 4754  df-ord 4795  df-on 4796  df-lim 4797  df-suc 4798  df-xp 4919  df-rel 4920  df-cnv 4921  df-co 4922  df-dm 4923  df-rn 4924  df-res 4925  df-ima 4926  df-iota 5460  df-fun 5498  df-fn 5499  df-f 5500  df-f1 5501  df-fo 5502  df-f1o 5503  df-fv 5504  df-isom 5505  df-riota 6158  df-ov 6199  df-oprab 6200  df-mpt2 6201  df-om 6600  df-1st 6699  df-2nd 6700  df-recs 6960  df-rdg 6994  df-1o 7048  df-oadd 7052  df-omul 7053  df-er 7229  df-map 7340  df-en 7436  df-dom 7437  df-sdom 7438  df-fin 7439  df-oi 7850  df-card 8233  df-acn 8236  df-pnf 9541  df-mnf 9542  df-xr 9543  df-ltxr 9544  df-le 9545  df-sub 9720  df-neg 9721  df-div 10124  df-nn 10453  df-n0 10713  df-z 10782  df-uz 11002  df-q 11102
This theorem is referenced by:  rpnnen  13962  resdomq  13979  re2ndc  21391  ovolq  21987  opnmblALT  22097  vitali  22107  mbfimaopnlem  22147  mbfaddlem  22152  mblfinlem1  30216  irrapx1  30929
  Copyright terms: Public domain W3C validator