Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  irrapxlem3 Unicode version

Theorem irrapxlem3 27012
Description: Lemma for irrapx1 27016. By subtraction, there is a multiple very close to an integer. (Contributed by Stefan O'Rear, 13-Sep-2014.)
Assertion
Ref Expression
irrapxlem3  |-  ( ( A  e.  RR+  /\  B  e.  NN )  ->  E. x  e.  ( 1 ... B
) E. y  e. 
NN0  ( abs `  (
( A  x.  x
)  -  y ) )  <  ( 1  /  B ) )
Distinct variable groups:    x, A, y    x, B, y

Proof of Theorem irrapxlem3
Dummy variables  a 
b are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 irrapxlem2 27011 . 2  |-  ( ( A  e.  RR+  /\  B  e.  NN )  ->  E. a  e.  ( 0 ... B
) E. b  e.  ( 0 ... B
) ( a  < 
b  /\  ( abs `  ( ( ( A  x.  a )  mod  1 )  -  (
( A  x.  b
)  mod  1 ) ) )  <  (
1  /  B ) ) )
2 1m1e0 9830 . . . . . . . . 9  |-  ( 1  -  1 )  =  0
3 elfzelz 10814 . . . . . . . . . . . . 13  |-  ( a  e.  ( 0 ... B )  ->  a  e.  ZZ )
43ad2antrl 708 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  -> 
a  e.  ZZ )
54zred 10133 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  -> 
a  e.  RR )
6 elfzelz 10814 . . . . . . . . . . . . 13  |-  ( b  e.  ( 0 ... B )  ->  b  e.  ZZ )
76ad2antll 709 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  -> 
b  e.  ZZ )
87zred 10133 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  -> 
b  e.  RR )
95, 8posdifd 9375 . . . . . . . . . 10  |-  ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  -> 
( a  <  b  <->  0  <  ( b  -  a ) ) )
109biimpa 470 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
0  <  ( b  -  a ) )
112, 10syl5eqbr 4072 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( 1  -  1 )  <  ( b  -  a ) )
12 1z 10069 . . . . . . . . 9  |-  1  e.  ZZ
13 simplrr 737 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
b  e.  ( 0 ... B ) )
1413, 6syl 15 . . . . . . . . . 10  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
b  e.  ZZ )
15 simplrl 736 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
a  e.  ( 0 ... B ) )
1615, 3syl 15 . . . . . . . . . 10  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
a  e.  ZZ )
1714, 16zsubcld 10138 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( b  -  a
)  e.  ZZ )
18 zlem1lt 10085 . . . . . . . . 9  |-  ( ( 1  e.  ZZ  /\  ( b  -  a
)  e.  ZZ )  ->  ( 1  <_ 
( b  -  a
)  <->  ( 1  -  1 )  <  (
b  -  a ) ) )
1912, 17, 18sylancr 644 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( 1  <_  (
b  -  a )  <-> 
( 1  -  1 )  <  ( b  -  a ) ) )
2011, 19mpbird 223 . . . . . . 7  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
1  <_  ( b  -  a ) )
2114zred 10133 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
b  e.  RR )
2216zred 10133 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
a  e.  RR )
2321, 22resubcld 9227 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( b  -  a
)  e.  RR )
24 0re 8854 . . . . . . . . . 10  |-  0  e.  RR
2524a1i 10 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
0  e.  RR )
2621, 25resubcld 9227 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( b  -  0 )  e.  RR )
27 simpllr 735 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  ->  B  e.  NN )
2827nnred 9777 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  ->  B  e.  RR )
29 elfzle1 10815 . . . . . . . . . 10  |-  ( a  e.  ( 0 ... B )  ->  0  <_  a )
3015, 29syl 15 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
0  <_  a )
3125, 22, 21, 30lesub2dd 9405 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( b  -  a
)  <_  ( b  -  0 ) )
3221recnd 8877 . . . . . . . . . 10  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
b  e.  CC )
3332subid1d 9162 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( b  -  0 )  =  b )
34 elfzle2 10816 . . . . . . . . . 10  |-  ( b  e.  ( 0 ... B )  ->  b  <_  B )
3513, 34syl 15 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
b  <_  B )
3633, 35eqbrtrd 4059 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( b  -  0 )  <_  B )
3723, 26, 28, 31, 36letrd 8989 . . . . . . 7  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( b  -  a
)  <_  B )
3812a1i 10 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
1  e.  ZZ )
3927nnzd 10132 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  ->  B  e.  ZZ )
40 elfz 10804 . . . . . . . 8  |-  ( ( ( b  -  a
)  e.  ZZ  /\  1  e.  ZZ  /\  B  e.  ZZ )  ->  (
( b  -  a
)  e.  ( 1 ... B )  <->  ( 1  <_  ( b  -  a )  /\  (
b  -  a )  <_  B ) ) )
4117, 38, 39, 40syl3anc 1182 . . . . . . 7  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( b  -  a )  e.  ( 1 ... B )  <-> 
( 1  <_  (
b  -  a )  /\  ( b  -  a )  <_  B
) ) )
4220, 37, 41mpbir2and 888 . . . . . 6  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( b  -  a
)  e.  ( 1 ... B ) )
4342adantrr 697 . . . . 5  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  ( a  <  b  /\  ( abs `  (
( ( A  x.  a )  mod  1
)  -  ( ( A  x.  b )  mod  1 ) ) )  <  ( 1  /  B ) ) )  ->  ( b  -  a )  e.  ( 1 ... B
) )
44 rpre 10376 . . . . . . . . . 10  |-  ( A  e.  RR+  ->  A  e.  RR )
4544ad3antrrr 710 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  ->  A  e.  RR )
4645, 22remulcld 8879 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( A  x.  a
)  e.  RR )
4745, 21remulcld 8879 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( A  x.  b
)  e.  RR )
48 simpr 447 . . . . . . . . . 10  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
a  <  b )
4922, 21, 48ltled 8983 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
a  <_  b )
50 rpgt0 10381 . . . . . . . . . . 11  |-  ( A  e.  RR+  ->  0  < 
A )
5150ad3antrrr 710 . . . . . . . . . 10  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
0  <  A )
52 lemul2 9625 . . . . . . . . . 10  |-  ( ( a  e.  RR  /\  b  e.  RR  /\  ( A  e.  RR  /\  0  <  A ) )  -> 
( a  <_  b  <->  ( A  x.  a )  <_  ( A  x.  b ) ) )
5322, 21, 45, 51, 52syl112anc 1186 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( a  <_  b  <->  ( A  x.  a )  <_  ( A  x.  b ) ) )
5449, 53mpbid 201 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( A  x.  a
)  <_  ( A  x.  b ) )
55 flword2 10959 . . . . . . . 8  |-  ( ( ( A  x.  a
)  e.  RR  /\  ( A  x.  b
)  e.  RR  /\  ( A  x.  a
)  <_  ( A  x.  b ) )  -> 
( |_ `  ( A  x.  b )
)  e.  ( ZZ>= `  ( |_ `  ( A  x.  a ) ) ) )
5646, 47, 54, 55syl3anc 1182 . . . . . . 7  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( |_ `  ( A  x.  b )
)  e.  ( ZZ>= `  ( |_ `  ( A  x.  a ) ) ) )
57 uznn0sub 10275 . . . . . . 7  |-  ( ( |_ `  ( A  x.  b ) )  e.  ( ZZ>= `  ( |_ `  ( A  x.  a ) ) )  ->  ( ( |_
`  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a ) ) )  e.  NN0 )
5856, 57syl 15 . . . . . 6  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( |_ `  ( A  x.  b
) )  -  ( |_ `  ( A  x.  a ) ) )  e.  NN0 )
5958adantrr 697 . . . . 5  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  ( a  <  b  /\  ( abs `  (
( ( A  x.  a )  mod  1
)  -  ( ( A  x.  b )  mod  1 ) ) )  <  ( 1  /  B ) ) )  ->  ( ( |_ `  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a ) ) )  e.  NN0 )
6045recnd 8877 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  ->  A  e.  CC )
6122recnd 8877 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
a  e.  CC )
6260, 32, 61subdid 9251 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( A  x.  (
b  -  a ) )  =  ( ( A  x.  b )  -  ( A  x.  a ) ) )
6362oveq1d 5889 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  ( b  -  a
) )  -  (
( |_ `  ( A  x.  b )
)  -  ( |_
`  ( A  x.  a ) ) ) )  =  ( ( ( A  x.  b
)  -  ( A  x.  a ) )  -  ( ( |_
`  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a ) ) ) ) )
6447recnd 8877 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( A  x.  b
)  e.  CC )
6546recnd 8877 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( A  x.  a
)  e.  CC )
6647flcld 10946 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( |_ `  ( A  x.  b )
)  e.  ZZ )
6766zcnd 10134 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( |_ `  ( A  x.  b )
)  e.  CC )
6846flcld 10946 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( |_ `  ( A  x.  a )
)  e.  ZZ )
6968zcnd 10134 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( |_ `  ( A  x.  a )
)  e.  CC )
7064, 65, 67, 69sub4d 9222 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( ( A  x.  b )  -  ( A  x.  a
) )  -  (
( |_ `  ( A  x.  b )
)  -  ( |_
`  ( A  x.  a ) ) ) )  =  ( ( ( A  x.  b
)  -  ( |_
`  ( A  x.  b ) ) )  -  ( ( A  x.  a )  -  ( |_ `  ( A  x.  a ) ) ) ) )
71 modfrac 11000 . . . . . . . . . . . . . 14  |-  ( ( A  x.  b )  e.  RR  ->  (
( A  x.  b
)  mod  1 )  =  ( ( A  x.  b )  -  ( |_ `  ( A  x.  b ) ) ) )
7247, 71syl 15 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  b )  mod  1
)  =  ( ( A  x.  b )  -  ( |_ `  ( A  x.  b
) ) ) )
7372eqcomd 2301 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  b )  -  ( |_ `  ( A  x.  b ) ) )  =  ( ( A  x.  b )  mod  1 ) )
74 modfrac 11000 . . . . . . . . . . . . . 14  |-  ( ( A  x.  a )  e.  RR  ->  (
( A  x.  a
)  mod  1 )  =  ( ( A  x.  a )  -  ( |_ `  ( A  x.  a ) ) ) )
7546, 74syl 15 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  a )  mod  1
)  =  ( ( A  x.  a )  -  ( |_ `  ( A  x.  a
) ) ) )
7675eqcomd 2301 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  a )  -  ( |_ `  ( A  x.  a ) ) )  =  ( ( A  x.  a )  mod  1 ) )
7773, 76oveq12d 5892 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( ( A  x.  b )  -  ( |_ `  ( A  x.  b ) ) )  -  ( ( A  x.  a )  -  ( |_ `  ( A  x.  a
) ) ) )  =  ( ( ( A  x.  b )  mod  1 )  -  ( ( A  x.  a )  mod  1
) ) )
7863, 70, 773eqtrd 2332 . . . . . . . . . 10  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  ( b  -  a
) )  -  (
( |_ `  ( A  x.  b )
)  -  ( |_
`  ( A  x.  a ) ) ) )  =  ( ( ( A  x.  b
)  mod  1 )  -  ( ( A  x.  a )  mod  1 ) ) )
7978fveq2d 5545 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( abs `  (
( A  x.  (
b  -  a ) )  -  ( ( |_ `  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a
) ) ) ) )  =  ( abs `  ( ( ( A  x.  b )  mod  1 )  -  (
( A  x.  a
)  mod  1 ) ) ) )
80 1rp 10374 . . . . . . . . . . . . 13  |-  1  e.  RR+
8180a1i 10 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
1  e.  RR+ )
8247, 81modcld 10993 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  b )  mod  1
)  e.  RR )
8382recnd 8877 . . . . . . . . . 10  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  b )  mod  1
)  e.  CC )
8446, 81modcld 10993 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  a )  mod  1
)  e.  RR )
8584recnd 8877 . . . . . . . . . 10  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( A  x.  a )  mod  1
)  e.  CC )
8683, 85abssubd 11951 . . . . . . . . 9  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( abs `  (
( ( A  x.  b )  mod  1
)  -  ( ( A  x.  a )  mod  1 ) ) )  =  ( abs `  ( ( ( A  x.  a )  mod  1 )  -  (
( A  x.  b
)  mod  1 ) ) ) )
8779, 86eqtr2d 2329 . . . . . . . 8  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( abs `  (
( ( A  x.  a )  mod  1
)  -  ( ( A  x.  b )  mod  1 ) ) )  =  ( abs `  ( ( A  x.  ( b  -  a
) )  -  (
( |_ `  ( A  x.  b )
)  -  ( |_
`  ( A  x.  a ) ) ) ) ) )
8887breq1d 4049 . . . . . . 7  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( abs `  (
( ( A  x.  a )  mod  1
)  -  ( ( A  x.  b )  mod  1 ) ) )  <  ( 1  /  B )  <->  ( abs `  ( ( A  x.  ( b  -  a
) )  -  (
( |_ `  ( A  x.  b )
)  -  ( |_
`  ( A  x.  a ) ) ) ) )  <  (
1  /  B ) ) )
8988biimpd 198 . . . . . 6  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  a  <  b )  -> 
( ( abs `  (
( ( A  x.  a )  mod  1
)  -  ( ( A  x.  b )  mod  1 ) ) )  <  ( 1  /  B )  -> 
( abs `  (
( A  x.  (
b  -  a ) )  -  ( ( |_ `  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a
) ) ) ) )  <  ( 1  /  B ) ) )
9089impr 602 . . . . 5  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  ( a  <  b  /\  ( abs `  (
( ( A  x.  a )  mod  1
)  -  ( ( A  x.  b )  mod  1 ) ) )  <  ( 1  /  B ) ) )  ->  ( abs `  ( ( A  x.  ( b  -  a
) )  -  (
( |_ `  ( A  x.  b )
)  -  ( |_
`  ( A  x.  a ) ) ) ) )  <  (
1  /  B ) )
91 oveq2 5882 . . . . . . . . 9  |-  ( x  =  ( b  -  a )  ->  ( A  x.  x )  =  ( A  x.  ( b  -  a
) ) )
9291oveq1d 5889 . . . . . . . 8  |-  ( x  =  ( b  -  a )  ->  (
( A  x.  x
)  -  y )  =  ( ( A  x.  ( b  -  a ) )  -  y ) )
9392fveq2d 5545 . . . . . . 7  |-  ( x  =  ( b  -  a )  ->  ( abs `  ( ( A  x.  x )  -  y ) )  =  ( abs `  (
( A  x.  (
b  -  a ) )  -  y ) ) )
9493breq1d 4049 . . . . . 6  |-  ( x  =  ( b  -  a )  ->  (
( abs `  (
( A  x.  x
)  -  y ) )  <  ( 1  /  B )  <->  ( abs `  ( ( A  x.  ( b  -  a
) )  -  y
) )  <  (
1  /  B ) ) )
95 oveq2 5882 . . . . . . . 8  |-  ( y  =  ( ( |_
`  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a ) ) )  ->  ( ( A  x.  ( b  -  a ) )  -  y )  =  ( ( A  x.  ( b  -  a
) )  -  (
( |_ `  ( A  x.  b )
)  -  ( |_
`  ( A  x.  a ) ) ) ) )
9695fveq2d 5545 . . . . . . 7  |-  ( y  =  ( ( |_
`  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a ) ) )  ->  ( abs `  ( ( A  x.  ( b  -  a
) )  -  y
) )  =  ( abs `  ( ( A  x.  ( b  -  a ) )  -  ( ( |_
`  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a ) ) ) ) ) )
9796breq1d 4049 . . . . . 6  |-  ( y  =  ( ( |_
`  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a ) ) )  ->  ( ( abs `  ( ( A  x.  ( b  -  a ) )  -  y ) )  < 
( 1  /  B
)  <->  ( abs `  (
( A  x.  (
b  -  a ) )  -  ( ( |_ `  ( A  x.  b ) )  -  ( |_ `  ( A  x.  a
) ) ) ) )  <  ( 1  /  B ) ) )
9894, 97rspc2ev 2905 . . . . 5  |-  ( ( ( b  -  a
)  e.  ( 1 ... B )  /\  ( ( |_ `  ( A  x.  b
) )  -  ( |_ `  ( A  x.  a ) ) )  e.  NN0  /\  ( abs `  ( ( A  x.  ( b  -  a ) )  -  ( ( |_ `  ( A  x.  b
) )  -  ( |_ `  ( A  x.  a ) ) ) ) )  <  (
1  /  B ) )  ->  E. x  e.  ( 1 ... B
) E. y  e. 
NN0  ( abs `  (
( A  x.  x
)  -  y ) )  <  ( 1  /  B ) )
9943, 59, 90, 98syl3anc 1182 . . . 4  |-  ( ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  /\  ( a  <  b  /\  ( abs `  (
( ( A  x.  a )  mod  1
)  -  ( ( A  x.  b )  mod  1 ) ) )  <  ( 1  /  B ) ) )  ->  E. x  e.  ( 1 ... B
) E. y  e. 
NN0  ( abs `  (
( A  x.  x
)  -  y ) )  <  ( 1  /  B ) )
10099ex 423 . . 3  |-  ( ( ( A  e.  RR+  /\  B  e.  NN )  /\  ( a  e.  ( 0 ... B
)  /\  b  e.  ( 0 ... B
) ) )  -> 
( ( a  < 
b  /\  ( abs `  ( ( ( A  x.  a )  mod  1 )  -  (
( A  x.  b
)  mod  1 ) ) )  <  (
1  /  B ) )  ->  E. x  e.  ( 1 ... B
) E. y  e. 
NN0  ( abs `  (
( A  x.  x
)  -  y ) )  <  ( 1  /  B ) ) )
101100rexlimdvva 2687 . 2  |-  ( ( A  e.  RR+  /\  B  e.  NN )  ->  ( E. a  e.  (
0 ... B ) E. b  e.  ( 0 ... B ) ( a  <  b  /\  ( abs `  ( ( ( A  x.  a
)  mod  1 )  -  ( ( A  x.  b )  mod  1 ) ) )  <  ( 1  /  B ) )  ->  E. x  e.  (
1 ... B ) E. y  e.  NN0  ( abs `  ( ( A  x.  x )  -  y ) )  < 
( 1  /  B
) ) )
1021, 101mpd 14 1  |-  ( ( A  e.  RR+  /\  B  e.  NN )  ->  E. x  e.  ( 1 ... B
) E. y  e. 
NN0  ( abs `  (
( A  x.  x
)  -  y ) )  <  ( 1  /  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1632    e. wcel 1696   E.wrex 2557   class class class wbr 4039   ` cfv 5271  (class class class)co 5874   RRcr 8752   0cc0 8753   1c1 8754    x. cmul 8758    < clt 8883    <_ cle 8884    - cmin 9053    / cdiv 9439   NNcn 9762   NN0cn0 9981   ZZcz 10040   ZZ>=cuz 10246   RR+crp 10370   ...cfz 10798   |_cfl 10940    mod cmo 10989   abscabs 11735
This theorem is referenced by:  irrapxlem4  27013
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-rep 4147  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830  ax-pre-sup 8831
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 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-int 3879  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139  df-riota 6320  df-recs 6404  df-rdg 6439  df-1o 6495  df-oadd 6499  df-er 6676  df-en 6880  df-dom 6881  df-sdom 6882  df-fin 6883  df-sup 7210  df-card 7588  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-div 9440  df-nn 9763  df-2 9820  df-3 9821  df-n0 9982  df-z 10041  df-uz 10247  df-rp 10371  df-ico 10678  df-fz 10799  df-fl 10941  df-mod 10990  df-seq 11063  df-exp 11121  df-hash 11354  df-cj 11600  df-re 11601  df-im 11602  df-sqr 11736  df-abs 11737
  Copyright terms: Public domain W3C validator