ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  qbtwnxr Unicode version

Theorem qbtwnxr 9266
Description: The rational numbers are dense in  RR*: any two extended real numbers have a rational between them. (Contributed by NM, 6-Feb-2007.) (Proof shortened by Mario Carneiro, 23-Aug-2015.)
Assertion
Ref Expression
qbtwnxr  |-  ( ( A  e.  RR*  /\  B  e.  RR*  /\  A  < 
B )  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) )
Distinct variable groups:    x, A    x, B

Proof of Theorem qbtwnxr
StepHypRef Expression
1 elxr 8850 . . 3  |-  ( A  e.  RR*  <->  ( A  e.  RR  \/  A  = +oo  \/  A  = -oo ) )
2 elxr 8850 . . . . 5  |-  ( B  e.  RR*  <->  ( B  e.  RR  \/  B  = +oo  \/  B  = -oo ) )
3 qbtwnre 9265 . . . . . . 7  |-  ( ( A  e.  RR  /\  B  e.  RR  /\  A  <  B )  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) )
433expia 1140 . . . . . 6  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
5 simpl 107 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  B  = +oo )  ->  A  e.  RR )
6 peano2re 7244 . . . . . . . . . 10  |-  ( A  e.  RR  ->  ( A  +  1 )  e.  RR )
76adantr 270 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  B  = +oo )  ->  ( A  +  1 )  e.  RR )
8 ltp1 7922 . . . . . . . . . 10  |-  ( A  e.  RR  ->  A  <  ( A  +  1 ) )
98adantr 270 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  B  = +oo )  ->  A  <  ( A  +  1 ) )
10 qbtwnre 9265 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  ( A  +  1
)  e.  RR  /\  A  <  ( A  + 
1 ) )  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  ( A  + 
1 ) ) )
115, 7, 9, 10syl3anc 1169 . . . . . . . 8  |-  ( ( A  e.  RR  /\  B  = +oo )  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  ( A  + 
1 ) ) )
12 qre 8710 . . . . . . . . . . . . . 14  |-  ( x  e.  QQ  ->  x  e.  RR )
13 ltpnf 8856 . . . . . . . . . . . . . 14  |-  ( x  e.  RR  ->  x  < +oo )
1412, 13syl 14 . . . . . . . . . . . . 13  |-  ( x  e.  QQ  ->  x  < +oo )
1514adantl 271 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  B  = +oo )  /\  x  e.  QQ )  ->  x  < +oo )
16 simplr 496 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  B  = +oo )  /\  x  e.  QQ )  ->  B  = +oo )
1715, 16breqtrrd 3811 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR  /\  B  = +oo )  /\  x  e.  QQ )  ->  x  <  B
)
1817a1d 22 . . . . . . . . . 10  |-  ( ( ( A  e.  RR  /\  B  = +oo )  /\  x  e.  QQ )  ->  ( x  < 
( A  +  1 )  ->  x  <  B ) )
1918anim2d 330 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  B  = +oo )  /\  x  e.  QQ )  ->  ( ( A  <  x  /\  x  <  ( A  +  1 ) )  ->  ( A  <  x  /\  x  <  B ) ) )
2019reximdva 2463 . . . . . . . 8  |-  ( ( A  e.  RR  /\  B  = +oo )  ->  ( E. x  e.  QQ  ( A  < 
x  /\  x  <  ( A  +  1 ) )  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) ) )
2111, 20mpd 13 . . . . . . 7  |-  ( ( A  e.  RR  /\  B  = +oo )  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) )
2221a1d 22 . . . . . 6  |-  ( ( A  e.  RR  /\  B  = +oo )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
23 rexr 7164 . . . . . . 7  |-  ( A  e.  RR  ->  A  e.  RR* )
24 breq2 3789 . . . . . . . . 9  |-  ( B  = -oo  ->  ( A  <  B  <->  A  < -oo ) )
2524adantl 271 . . . . . . . 8  |-  ( ( A  e.  RR*  /\  B  = -oo )  ->  ( A  <  B  <->  A  < -oo ) )
26 nltmnf 8863 . . . . . . . . . 10  |-  ( A  e.  RR*  ->  -.  A  < -oo )
2726adantr 270 . . . . . . . . 9  |-  ( ( A  e.  RR*  /\  B  = -oo )  ->  -.  A  < -oo )
2827pm2.21d 581 . . . . . . . 8  |-  ( ( A  e.  RR*  /\  B  = -oo )  ->  ( A  < -oo  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) ) )
2925, 28sylbid 148 . . . . . . 7  |-  ( ( A  e.  RR*  /\  B  = -oo )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) ) )
3023, 29sylan 277 . . . . . 6  |-  ( ( A  e.  RR  /\  B  = -oo )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
314, 22, 303jaodan 1237 . . . . 5  |-  ( ( A  e.  RR  /\  ( B  e.  RR  \/  B  = +oo  \/  B  = -oo ) )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) ) )
322, 31sylan2b 281 . . . 4  |-  ( ( A  e.  RR  /\  B  e.  RR* )  -> 
( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
33 breq1 3788 . . . . . 6  |-  ( A  = +oo  ->  ( A  <  B  <-> +oo  <  B
) )
3433adantr 270 . . . . 5  |-  ( ( A  = +oo  /\  B  e.  RR* )  -> 
( A  <  B  <-> +oo 
<  B ) )
35 pnfnlt 8862 . . . . . . 7  |-  ( B  e.  RR*  ->  -. +oo  <  B )
3635adantl 271 . . . . . 6  |-  ( ( A  = +oo  /\  B  e.  RR* )  ->  -. +oo  <  B )
3736pm2.21d 581 . . . . 5  |-  ( ( A  = +oo  /\  B  e.  RR* )  -> 
( +oo  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
3834, 37sylbid 148 . . . 4  |-  ( ( A  = +oo  /\  B  e.  RR* )  -> 
( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
39 peano2rem 7375 . . . . . . . . . 10  |-  ( B  e.  RR  ->  ( B  -  1 )  e.  RR )
4039adantl 271 . . . . . . . . 9  |-  ( ( A  = -oo  /\  B  e.  RR )  ->  ( B  -  1 )  e.  RR )
41 simpr 108 . . . . . . . . 9  |-  ( ( A  = -oo  /\  B  e.  RR )  ->  B  e.  RR )
42 ltm1 7924 . . . . . . . . . 10  |-  ( B  e.  RR  ->  ( B  -  1 )  <  B )
4342adantl 271 . . . . . . . . 9  |-  ( ( A  = -oo  /\  B  e.  RR )  ->  ( B  -  1 )  <  B )
44 qbtwnre 9265 . . . . . . . . 9  |-  ( ( ( B  -  1 )  e.  RR  /\  B  e.  RR  /\  ( B  -  1 )  <  B )  ->  E. x  e.  QQ  ( ( B  - 
1 )  <  x  /\  x  <  B ) )
4540, 41, 43, 44syl3anc 1169 . . . . . . . 8  |-  ( ( A  = -oo  /\  B  e.  RR )  ->  E. x  e.  QQ  ( ( B  - 
1 )  <  x  /\  x  <  B ) )
46 simpll 495 . . . . . . . . . . . 12  |-  ( ( ( A  = -oo  /\  B  e.  RR )  /\  x  e.  QQ )  ->  A  = -oo )
4712adantl 271 . . . . . . . . . . . . 13  |-  ( ( ( A  = -oo  /\  B  e.  RR )  /\  x  e.  QQ )  ->  x  e.  RR )
48 mnflt 8858 . . . . . . . . . . . . 13  |-  ( x  e.  RR  -> -oo  <  x )
4947, 48syl 14 . . . . . . . . . . . 12  |-  ( ( ( A  = -oo  /\  B  e.  RR )  /\  x  e.  QQ )  -> -oo  <  x )
5046, 49eqbrtrd 3805 . . . . . . . . . . 11  |-  ( ( ( A  = -oo  /\  B  e.  RR )  /\  x  e.  QQ )  ->  A  <  x
)
5150a1d 22 . . . . . . . . . 10  |-  ( ( ( A  = -oo  /\  B  e.  RR )  /\  x  e.  QQ )  ->  ( ( B  -  1 )  < 
x  ->  A  <  x ) )
5251anim1d 329 . . . . . . . . 9  |-  ( ( ( A  = -oo  /\  B  e.  RR )  /\  x  e.  QQ )  ->  ( ( ( B  -  1 )  <  x  /\  x  <  B )  ->  ( A  <  x  /\  x  <  B ) ) )
5352reximdva 2463 . . . . . . . 8  |-  ( ( A  = -oo  /\  B  e.  RR )  ->  ( E. x  e.  QQ  ( ( B  -  1 )  < 
x  /\  x  <  B )  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) ) )
5445, 53mpd 13 . . . . . . 7  |-  ( ( A  = -oo  /\  B  e.  RR )  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) )
5554a1d 22 . . . . . 6  |-  ( ( A  = -oo  /\  B  e.  RR )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
56 1re 7118 . . . . . . . . . 10  |-  1  e.  RR
57 mnflt 8858 . . . . . . . . . 10  |-  ( 1  e.  RR  -> -oo  <  1 )
5856, 57ax-mp 7 . . . . . . . . 9  |- -oo  <  1
59 breq1 3788 . . . . . . . . 9  |-  ( A  = -oo  ->  ( A  <  1  <-> -oo  <  1
) )
6058, 59mpbiri 166 . . . . . . . 8  |-  ( A  = -oo  ->  A  <  1 )
61 ltpnf 8856 . . . . . . . . . 10  |-  ( 1  e.  RR  ->  1  < +oo )
6256, 61ax-mp 7 . . . . . . . . 9  |-  1  < +oo
63 breq2 3789 . . . . . . . . 9  |-  ( B  = +oo  ->  (
1  <  B  <->  1  < +oo ) )
6462, 63mpbiri 166 . . . . . . . 8  |-  ( B  = +oo  ->  1  <  B )
65 1z 8377 . . . . . . . . . 10  |-  1  e.  ZZ
66 zq 8711 . . . . . . . . . 10  |-  ( 1  e.  ZZ  ->  1  e.  QQ )
6765, 66ax-mp 7 . . . . . . . . 9  |-  1  e.  QQ
68 breq2 3789 . . . . . . . . . . 11  |-  ( x  =  1  ->  ( A  <  x  <->  A  <  1 ) )
69 breq1 3788 . . . . . . . . . . 11  |-  ( x  =  1  ->  (
x  <  B  <->  1  <  B ) )
7068, 69anbi12d 456 . . . . . . . . . 10  |-  ( x  =  1  ->  (
( A  <  x  /\  x  <  B )  <-> 
( A  <  1  /\  1  <  B ) ) )
7170rspcev 2701 . . . . . . . . 9  |-  ( ( 1  e.  QQ  /\  ( A  <  1  /\  1  <  B ) )  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) )
7267, 71mpan 414 . . . . . . . 8  |-  ( ( A  <  1  /\  1  <  B )  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) )
7360, 64, 72syl2an 283 . . . . . . 7  |-  ( ( A  = -oo  /\  B  = +oo )  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) )
7473a1d 22 . . . . . 6  |-  ( ( A  = -oo  /\  B  = +oo )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
75 3mix3 1109 . . . . . . . 8  |-  ( A  = -oo  ->  ( A  e.  RR  \/  A  = +oo  \/  A  = -oo ) )
7675, 1sylibr 132 . . . . . . 7  |-  ( A  = -oo  ->  A  e.  RR* )
7776, 29sylan 277 . . . . . 6  |-  ( ( A  = -oo  /\  B  = -oo )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
7855, 74, 773jaodan 1237 . . . . 5  |-  ( ( A  = -oo  /\  ( B  e.  RR  \/  B  = +oo  \/  B  = -oo ) )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) ) )
792, 78sylan2b 281 . . . 4  |-  ( ( A  = -oo  /\  B  e.  RR* )  -> 
( A  <  B  ->  E. x  e.  QQ  ( A  <  x  /\  x  <  B ) ) )
8032, 38, 793jaoian 1236 . . 3  |-  ( ( ( A  e.  RR  \/  A  = +oo  \/  A  = -oo )  /\  B  e.  RR* )  ->  ( A  < 
B  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) ) )
811, 80sylanb 278 . 2  |-  ( ( A  e.  RR*  /\  B  e.  RR* )  ->  ( A  <  B  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) ) )
82813impia 1135 1  |-  ( ( A  e.  RR*  /\  B  e.  RR*  /\  A  < 
B )  ->  E. x  e.  QQ  ( A  < 
x  /\  x  <  B ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 102    <-> wb 103    \/ w3o 918    /\ w3a 919    = wceq 1284    e. wcel 1433   E.wrex 2349   class class class wbr 3785  (class class class)co 5532   RRcr 6980   1c1 6982    + caddc 6984   +oocpnf 7150   -oocmnf 7151   RR*cxr 7152    < clt 7153    - cmin 7279   ZZcz 8351   QQcq 8704
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 576  ax-in2 577  ax-io 662  ax-5 1376  ax-7 1377  ax-gen 1378  ax-ie1 1422  ax-ie2 1423  ax-8 1435  ax-10 1436  ax-11 1437  ax-i12 1438  ax-bndl 1439  ax-4 1440  ax-13 1444  ax-14 1445  ax-17 1459  ax-i9 1463  ax-ial 1467  ax-i5r 1468  ax-ext 2063  ax-sep 3896  ax-pow 3948  ax-pr 3964  ax-un 4188  ax-setind 4280  ax-cnex 7067  ax-resscn 7068  ax-1cn 7069  ax-1re 7070  ax-icn 7071  ax-addcl 7072  ax-addrcl 7073  ax-mulcl 7074  ax-mulrcl 7075  ax-addcom 7076  ax-mulcom 7077  ax-addass 7078  ax-mulass 7079  ax-distr 7080  ax-i2m1 7081  ax-0lt1 7082  ax-1rid 7083  ax-0id 7084  ax-rnegex 7085  ax-precex 7086  ax-cnre 7087  ax-pre-ltirr 7088  ax-pre-ltwlin 7089  ax-pre-lttrn 7090  ax-pre-apti 7091  ax-pre-ltadd 7092  ax-pre-mulgt0 7093  ax-pre-mulext 7094  ax-arch 7095
This theorem depends on definitions:  df-bi 115  df-3or 920  df-3an 921  df-tru 1287  df-fal 1290  df-nf 1390  df-sb 1686  df-eu 1944  df-mo 1945  df-clab 2068  df-cleq 2074  df-clel 2077  df-nfc 2208  df-ne 2246  df-nel 2340  df-ral 2353  df-rex 2354  df-reu 2355  df-rmo 2356  df-rab 2357  df-v 2603  df-sbc 2816  df-csb 2909  df-dif 2975  df-un 2977  df-in 2979  df-ss 2986  df-pw 3384  df-sn 3404  df-pr 3405  df-op 3407  df-uni 3602  df-int 3637  df-iun 3680  df-br 3786  df-opab 3840  df-mpt 3841  df-id 4048  df-po 4051  df-iso 4052  df-xp 4369  df-rel 4370  df-cnv 4371  df-co 4372  df-dm 4373  df-rn 4374  df-res 4375  df-ima 4376  df-iota 4887  df-fun 4924  df-fn 4925  df-f 4926  df-fv 4930  df-riota 5488  df-ov 5535  df-oprab 5536  df-mpt2 5537  df-1st 5787  df-2nd 5788  df-pnf 7155  df-mnf 7156  df-xr 7157  df-ltxr 7158  df-le 7159  df-sub 7281  df-neg 7282  df-reap 7675  df-ap 7682  df-div 7761  df-inn 8040  df-2 8098  df-n0 8289  df-z 8352  df-uz 8620  df-q 8705  df-rp 8735
This theorem is referenced by:  ioo0  9268  ioom  9269  ico0  9270  ioc0  9271
  Copyright terms: Public domain W3C validator