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

Theorem rebtwn2z 9211
Description: A real number can be bounded by integers above and below which are two apart.

The proof starts by finding two integers which are less than and greater than the given real number. Then this range can be shrunk by choosing an integer in between the endpoints of the range and then deciding which half of the range to keep based on weak linearity, and iterating until the range consists of integers which are two apart. (Contributed by Jim Kingdon, 13-Oct-2021.)

Assertion
Ref Expression
rebtwn2z  |-  ( A  e.  RR  ->  E. x  e.  ZZ  ( x  < 
A  /\  A  <  ( x  +  2 ) ) )
Distinct variable group:    x, A

Proof of Theorem rebtwn2z
Dummy variables  m  n  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 btwnz 8416 . . 3  |-  ( A  e.  RR  ->  ( E. m  e.  ZZ  m  <  A  /\  E. n  e.  ZZ  A  <  n ) )
2 reeanv 2496 . . 3  |-  ( E. m  e.  ZZ  E. n  e.  ZZ  (
m  <  A  /\  A  <  n )  <->  ( E. m  e.  ZZ  m  <  A  /\  E. n  e.  ZZ  A  <  n
) )
31, 2sylibr 141 . 2  |-  ( A  e.  RR  ->  E. m  e.  ZZ  E. n  e.  ZZ  ( m  < 
A  /\  A  <  n ) )
4 simpll 489 . . . . 5  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  A  e.  RR )
5 simplrl 495 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  m  e.  ZZ )
65zred 8419 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  m  e.  RR )
7 simplrr 496 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  n  e.  ZZ )
87zred 8419 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  n  e.  RR )
9 simprl 491 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  m  <  A )
10 simprr 492 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  A  <  n )
116, 4, 8, 9, 10lttrd 7201 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  m  <  n )
12 znnsub 8353 . . . . . . . 8  |-  ( ( m  e.  ZZ  /\  n  e.  ZZ )  ->  ( m  <  n  <->  ( n  -  m )  e.  NN ) )
1312ad2antlr 466 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( m  <  n  <->  ( n  -  m )  e.  NN ) )
1411, 13mpbid 139 . . . . . 6  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( n  -  m
)  e.  NN )
15 elnnuz 8605 . . . . . . . 8  |-  ( ( n  -  m )  e.  NN  <->  ( n  -  m )  e.  (
ZZ>= `  1 ) )
16 eluzp1p1 8594 . . . . . . . 8  |-  ( ( n  -  m )  e.  ( ZZ>= `  1
)  ->  ( (
n  -  m )  +  1 )  e.  ( ZZ>= `  ( 1  +  1 ) ) )
1715, 16sylbi 118 . . . . . . 7  |-  ( ( n  -  m )  e.  NN  ->  (
( n  -  m
)  +  1 )  e.  ( ZZ>= `  (
1  +  1 ) ) )
18 df-2 8049 . . . . . . . 8  |-  2  =  ( 1  +  1 )
1918fveq2i 5209 . . . . . . 7  |-  ( ZZ>= ` 
2 )  =  (
ZZ>= `  ( 1  +  1 ) )
2017, 19syl6eleqr 2147 . . . . . 6  |-  ( ( n  -  m )  e.  NN  ->  (
( n  -  m
)  +  1 )  e.  ( ZZ>= `  2
) )
2114, 20syl 14 . . . . 5  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( ( n  -  m )  +  1 )  e.  ( ZZ>= ` 
2 ) )
225zcnd 8420 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  m  e.  CC )
237zcnd 8420 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  n  e.  CC )
2422, 23pncan3d 7388 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( m  +  ( n  -  m ) )  =  n )
2524, 8eqeltrd 2130 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( m  +  ( n  -  m ) )  e.  RR )
268, 6resubcld 7451 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( n  -  m
)  e.  RR )
27 1red 7100 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
1  e.  RR )
2826, 27readdcld 7114 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( ( n  -  m )  +  1 )  e.  RR )
296, 28readdcld 7114 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( m  +  ( ( n  -  m
)  +  1 ) )  e.  RR )
3010, 24breqtrrd 3818 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  A  <  ( m  +  ( n  -  m
) ) )
3126ltp1d 7971 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( n  -  m
)  <  ( (
n  -  m )  +  1 ) )
3226, 28, 6, 31ltadd2dd 7491 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  -> 
( m  +  ( n  -  m ) )  <  ( m  +  ( ( n  -  m )  +  1 ) ) )
334, 25, 29, 30, 32lttrd 7201 . . . . . 6  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  A  <  ( m  +  ( ( n  -  m )  +  1 ) ) )
34 breq1 3795 . . . . . . . 8  |-  ( y  =  m  ->  (
y  <  A  <->  m  <  A ) )
35 oveq1 5547 . . . . . . . . 9  |-  ( y  =  m  ->  (
y  +  ( ( n  -  m )  +  1 ) )  =  ( m  +  ( ( n  -  m )  +  1 ) ) )
3635breq2d 3804 . . . . . . . 8  |-  ( y  =  m  ->  ( A  <  ( y  +  ( ( n  -  m )  +  1 ) )  <->  A  <  ( m  +  ( ( n  -  m )  +  1 ) ) ) )
3734, 36anbi12d 450 . . . . . . 7  |-  ( y  =  m  ->  (
( y  <  A  /\  A  <  ( y  +  ( ( n  -  m )  +  1 ) ) )  <-> 
( m  <  A  /\  A  <  ( m  +  ( ( n  -  m )  +  1 ) ) ) ) )
3837rspcev 2673 . . . . . 6  |-  ( ( m  e.  ZZ  /\  ( m  <  A  /\  A  <  ( m  +  ( ( n  -  m )  +  1 ) ) ) )  ->  E. y  e.  ZZ  ( y  <  A  /\  A  <  ( y  +  ( ( n  -  m )  +  1 ) ) ) )
395, 9, 33, 38syl12anc 1144 . . . . 5  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  E. y  e.  ZZ  ( y  <  A  /\  A  <  ( y  +  ( ( n  -  m )  +  1 ) ) ) )
40 rebtwn2zlemshrink 9210 . . . . 5  |-  ( ( A  e.  RR  /\  ( ( n  -  m )  +  1 )  e.  ( ZZ>= ` 
2 )  /\  E. y  e.  ZZ  (
y  <  A  /\  A  <  ( y  +  ( ( n  -  m )  +  1 ) ) ) )  ->  E. x  e.  ZZ  ( x  <  A  /\  A  <  ( x  + 
2 ) ) )
414, 21, 39, 40syl3anc 1146 . . . 4  |-  ( ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  /\  ( m  <  A  /\  A  <  n ) )  ->  E. x  e.  ZZ  ( x  <  A  /\  A  <  ( x  + 
2 ) ) )
4241ex 112 . . 3  |-  ( ( A  e.  RR  /\  ( m  e.  ZZ  /\  n  e.  ZZ ) )  ->  ( (
m  <  A  /\  A  <  n )  ->  E. x  e.  ZZ  ( x  <  A  /\  A  <  ( x  + 
2 ) ) ) )
4342rexlimdvva 2457 . 2  |-  ( A  e.  RR  ->  ( E. m  e.  ZZ  E. n  e.  ZZ  (
m  <  A  /\  A  <  n )  ->  E. x  e.  ZZ  ( x  <  A  /\  A  <  ( x  + 
2 ) ) ) )
443, 43mpd 13 1  |-  ( A  e.  RR  ->  E. x  e.  ZZ  ( x  < 
A  /\  A  <  ( x  +  2 ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 101    <-> wb 102    e. wcel 1409   E.wrex 2324   class class class wbr 3792   ` cfv 4930  (class class class)co 5540   RRcr 6946   1c1 6948    + caddc 6950    < clt 7119    - cmin 7245   NNcn 7990   2c2 8040   ZZcz 8302   ZZ>=cuz 8569
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 103  ax-ia2 104  ax-ia3 105  ax-in1 554  ax-in2 555  ax-io 640  ax-5 1352  ax-7 1353  ax-gen 1354  ax-ie1 1398  ax-ie2 1399  ax-8 1411  ax-10 1412  ax-11 1413  ax-i12 1414  ax-bndl 1415  ax-4 1416  ax-13 1420  ax-14 1421  ax-17 1435  ax-i9 1439  ax-ial 1443  ax-i5r 1444  ax-ext 2038  ax-coll 3900  ax-sep 3903  ax-nul 3911  ax-pow 3955  ax-pr 3972  ax-un 4198  ax-setind 4290  ax-iinf 4339  ax-cnex 7033  ax-resscn 7034  ax-1cn 7035  ax-1re 7036  ax-icn 7037  ax-addcl 7038  ax-addrcl 7039  ax-mulcl 7040  ax-addcom 7042  ax-addass 7044  ax-distr 7046  ax-i2m1 7047  ax-0id 7050  ax-rnegex 7051  ax-cnre 7053  ax-pre-ltirr 7054  ax-pre-ltwlin 7055  ax-pre-lttrn 7056  ax-pre-ltadd 7058  ax-arch 7061
This theorem depends on definitions:  df-bi 114  df-dc 754  df-3or 897  df-3an 898  df-tru 1262  df-fal 1265  df-nf 1366  df-sb 1662  df-eu 1919  df-mo 1920  df-clab 2043  df-cleq 2049  df-clel 2052  df-nfc 2183  df-ne 2221  df-nel 2315  df-ral 2328  df-rex 2329  df-reu 2330  df-rab 2332  df-v 2576  df-sbc 2788  df-csb 2881  df-dif 2948  df-un 2950  df-in 2952  df-ss 2959  df-nul 3253  df-pw 3389  df-sn 3409  df-pr 3410  df-op 3412  df-uni 3609  df-int 3644  df-iun 3687  df-br 3793  df-opab 3847  df-mpt 3848  df-tr 3883  df-eprel 4054  df-id 4058  df-po 4061  df-iso 4062  df-iord 4131  df-on 4133  df-suc 4136  df-iom 4342  df-xp 4379  df-rel 4380  df-cnv 4381  df-co 4382  df-dm 4383  df-rn 4384  df-res 4385  df-ima 4386  df-iota 4895  df-fun 4932  df-fn 4933  df-f 4934  df-f1 4935  df-fo 4936  df-f1o 4937  df-fv 4938  df-riota 5496  df-ov 5543  df-oprab 5544  df-mpt2 5545  df-1st 5795  df-2nd 5796  df-recs 5951  df-irdg 5988  df-1o 6032  df-2o 6033  df-oadd 6036  df-omul 6037  df-er 6137  df-ec 6139  df-qs 6143  df-ni 6460  df-pli 6461  df-mi 6462  df-lti 6463  df-plpq 6500  df-mpq 6501  df-enq 6503  df-nqqs 6504  df-plqqs 6505  df-mqqs 6506  df-1nqqs 6507  df-rq 6508  df-ltnqqs 6509  df-enq0 6580  df-nq0 6581  df-0nq0 6582  df-plq0 6583  df-mq0 6584  df-inp 6622  df-i1p 6623  df-iplp 6624  df-iltp 6626  df-enr 6869  df-nr 6870  df-ltr 6873  df-0r 6874  df-1r 6875  df-0 6954  df-1 6955  df-r 6957  df-lt 6960  df-pnf 7121  df-mnf 7122  df-xr 7123  df-ltxr 7124  df-le 7125  df-sub 7247  df-neg 7248  df-inn 7991  df-2 8049  df-n0 8240  df-z 8303  df-uz 8570
This theorem is referenced by:  qbtwnre  9213
  Copyright terms: Public domain W3C validator