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

Theorem chpub 20864
Description: An upper bound on the second Chebyshev function. (Contributed by Mario Carneiro, 8-Apr-2016.)
Assertion
Ref Expression
chpub  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
(ψ `  A )  <_  ( ( theta `  A
)  +  ( ( sqr `  A )  x.  ( log `  A
) ) ) )

Proof of Theorem chpub
Dummy variable  p is distinct from all other variables.
StepHypRef Expression
1 chpcl 20767 . . . . 5  |-  ( A  e.  RR  ->  (ψ `  A )  e.  RR )
21adantr 452 . . . 4  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
(ψ `  A )  e.  RR )
3 chtcl 20752 . . . . 5  |-  ( A  e.  RR  ->  ( theta `  A )  e.  RR )
43adantr 452 . . . 4  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( theta `  A )  e.  RR )
52, 4resubcld 9390 . . 3  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( (ψ `  A
)  -  ( theta `  A ) )  e.  RR )
6 simpl 444 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  A  e.  RR )
7 0re 9017 . . . . . . . . . 10  |-  0  e.  RR
87a1i 11 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
0  e.  RR )
9 1re 9016 . . . . . . . . . 10  |-  1  e.  RR
109a1i 11 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
1  e.  RR )
11 0lt1 9475 . . . . . . . . . 10  |-  0  <  1
1211a1i 11 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
0  <  1 )
13 simpr 448 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
1  <_  A )
148, 10, 6, 12, 13ltletrd 9155 . . . . . . . 8  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
0  <  A )
156, 14elrpd 10571 . . . . . . 7  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  A  e.  RR+ )
1615rpge0d 10577 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
0  <_  A )
176, 16resqrcld 12140 . . . . 5  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( sqr `  A
)  e.  RR )
18 ppifi 20748 . . . . 5  |-  ( ( sqr `  A )  e.  RR  ->  (
( 0 [,] ( sqr `  A ) )  i^i  Prime )  e.  Fin )
1917, 18syl 16 . . . 4  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( 0 [,] ( sqr `  A
) )  i^i  Prime )  e.  Fin )
2015adantr 452 . . . . 5  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  ->  A  e.  RR+ )
2120relogcld 20378 . . . 4  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( log `  A
)  e.  RR )
2219, 21fsumrecl 12448 . . 3  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  sum_ p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) ( log `  A
)  e.  RR )
2315relogcld 20378 . . . 4  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( log `  A
)  e.  RR )
2417, 23remulcld 9042 . . 3  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( sqr `  A
)  x.  ( log `  A ) )  e.  RR )
25 ppifi 20748 . . . . . . 7  |-  ( A  e.  RR  ->  (
( 0 [,] A
)  i^i  Prime )  e. 
Fin )
2625adantr 452 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( 0 [,] A )  i^i  Prime )  e.  Fin )
27 inss2 3498 . . . . . . . . . . . 12  |-  ( ( 0 [,] A )  i^i  Prime )  C_  Prime
28 simpr 448 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  p  e.  ( ( 0 [,] A
)  i^i  Prime ) )
2927, 28sseldi 3282 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  p  e.  Prime )
30 prmnn 13002 . . . . . . . . . . 11  |-  ( p  e.  Prime  ->  p  e.  NN )
3129, 30syl 16 . . . . . . . . . 10  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  p  e.  NN )
3231nnrpd 10572 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  p  e.  RR+ )
3332relogcld 20378 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( log `  p
)  e.  RR )
3423adantr 452 . . . . . . . . . 10  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( log `  A
)  e.  RR )
3531nnred 9940 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  p  e.  RR )
36 prmuz2 13017 . . . . . . . . . . . . 13  |-  ( p  e.  Prime  ->  p  e.  ( ZZ>= `  2 )
)
3729, 36syl 16 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  p  e.  (
ZZ>= `  2 ) )
38 eluz2b2 10473 . . . . . . . . . . . . 13  |-  ( p  e.  ( ZZ>= `  2
)  <->  ( p  e.  NN  /\  1  < 
p ) )
3938simprbi 451 . . . . . . . . . . . 12  |-  ( p  e.  ( ZZ>= `  2
)  ->  1  <  p )
4037, 39syl 16 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  1  <  p
)
4135, 40rplogcld 20384 . . . . . . . . . 10  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( log `  p
)  e.  RR+ )
4234, 41rerpdivcld 10600 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( ( log `  A )  /  ( log `  p ) )  e.  RR )
43 reflcl 11125 . . . . . . . . 9  |-  ( ( ( log `  A
)  /  ( log `  p ) )  e.  RR  ->  ( |_ `  ( ( log `  A
)  /  ( log `  p ) ) )  e.  RR )
4442, 43syl 16 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( |_ `  ( ( log `  A
)  /  ( log `  p ) ) )  e.  RR )
4533, 44remulcld 9042 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) )  e.  RR )
4645recnd 9040 . . . . . 6  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) )  e.  CC )
4733recnd 9040 . . . . . 6  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( log `  p
)  e.  CC )
4826, 46, 47fsumsub 12491 . . . . 5  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  sum_ p  e.  ( ( 0 [,] A )  i^i  Prime ) ( ( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) )  =  ( sum_ p  e.  ( ( 0 [,] A )  i^i  Prime ) ( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  -  sum_ p  e.  ( ( 0 [,] A )  i^i 
Prime ) ( log `  p
) ) )
49 0le0 10006 . . . . . . . . 9  |-  0  <_  0
5049a1i 11 . . . . . . . 8  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
0  <_  0 )
5110, 6, 6, 16, 13lemul2ad 9876 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( A  x.  1 )  <_  ( A  x.  A ) )
526recnd 9040 . . . . . . . . . . . 12  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  A  e.  CC )
5352sqsqrd 12161 . . . . . . . . . . 11  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( sqr `  A
) ^ 2 )  =  A )
5452mulid1d 9031 . . . . . . . . . . 11  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( A  x.  1 )  =  A )
5553, 54eqtr4d 2415 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( sqr `  A
) ^ 2 )  =  ( A  x.  1 ) )
5652sqvald 11440 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( A ^ 2 )  =  ( A  x.  A ) )
5751, 55, 563brtr4d 4176 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( sqr `  A
) ^ 2 )  <_  ( A ^
2 ) )
586, 16sqrge0d 12143 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
0  <_  ( sqr `  A ) )
5917, 6, 58, 16le2sqd 11478 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( sqr `  A
)  <_  A  <->  ( ( sqr `  A ) ^
2 )  <_  ( A ^ 2 ) ) )
6057, 59mpbird 224 . . . . . . . 8  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( sqr `  A
)  <_  A )
61 iccss 10903 . . . . . . . 8  |-  ( ( ( 0  e.  RR  /\  A  e.  RR )  /\  ( 0  <_ 
0  /\  ( sqr `  A )  <_  A
) )  ->  (
0 [,] ( sqr `  A ) )  C_  ( 0 [,] A
) )
628, 6, 50, 60, 61syl22anc 1185 . . . . . . 7  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( 0 [,] ( sqr `  A ) ) 
C_  ( 0 [,] A ) )
63 ssrin 3502 . . . . . . 7  |-  ( ( 0 [,] ( sqr `  A ) )  C_  ( 0 [,] A
)  ->  ( (
0 [,] ( sqr `  A ) )  i^i 
Prime )  C_  ( ( 0 [,] A )  i^i  Prime ) )
6462, 63syl 16 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) 
C_  ( ( 0 [,] A )  i^i 
Prime ) )
6564sselda 3284 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  ->  p  e.  ( (
0 [,] A )  i^i  Prime ) )
6645, 33resubcld 9390 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( ( ( log `  p )  x.  ( |_ `  ( ( log `  A
)  /  ( log `  p ) ) ) )  -  ( log `  p ) )  e.  RR )
6766recnd 9040 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( ( ( log `  p )  x.  ( |_ `  ( ( log `  A
)  /  ( log `  p ) ) ) )  -  ( log `  p ) )  e.  CC )
6865, 67syldan 457 . . . . . 6  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) )  e.  CC )
69 eldifi 3405 . . . . . . . . . . . . . . 15  |-  ( p  e.  ( ( ( 0 [,] A )  i^i  Prime )  \  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  ->  p  e.  ( (
0 [,] A )  i^i  Prime ) )
7069, 47sylan2 461 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( log `  p )  e.  CC )
7170mulid2d 9032 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
1  x.  ( log `  p ) )  =  ( log `  p
) )
72 inss1 3497 . . . . . . . . . . . . . . . . . 18  |-  ( ( 0 [,] A )  i^i  Prime )  C_  (
0 [,] A )
7372, 28sseldi 3282 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  p  e.  ( 0 [,] A ) )
746adantr 452 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  A  e.  RR )
75 elicc2 10900 . . . . . . . . . . . . . . . . . 18  |-  ( ( 0  e.  RR  /\  A  e.  RR )  ->  ( p  e.  ( 0 [,] A )  <-> 
( p  e.  RR  /\  0  <_  p  /\  p  <_  A ) ) )
767, 74, 75sylancr 645 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( p  e.  ( 0 [,] A
)  <->  ( p  e.  RR  /\  0  <_  p  /\  p  <_  A
) ) )
7773, 76mpbid 202 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  ( p  e.  RR  /\  0  <_  p  /\  p  <_  A
) )
7877simp3d 971 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] A
)  i^i  Prime ) )  ->  p  <_  A
)
7969, 78sylan2 461 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  p  <_  A )
8069, 32sylan2 461 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  p  e.  RR+ )
8115adantr 452 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  A  e.  RR+ )
8280, 81logled 20382 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
p  <_  A  <->  ( log `  p )  <_  ( log `  A ) ) )
8379, 82mpbid 202 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( log `  p )  <_ 
( log `  A
) )
8471, 83eqbrtrd 4166 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
1  x.  ( log `  p ) )  <_ 
( log `  A
) )
859a1i 11 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  1  e.  RR )
8623adantr 452 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( log `  A )  e.  RR )
8769, 41sylan2 461 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( log `  p )  e.  RR+ )
8885, 86, 87lemuldivd 10618 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( 1  x.  ( log `  p ) )  <_  ( log `  A
)  <->  1  <_  (
( log `  A
)  /  ( log `  p ) ) ) )
8984, 88mpbid 202 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  1  <_  ( ( log `  A
)  /  ( log `  p ) ) )
906adantr 452 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  A  e.  RR )
9190recnd 9040 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  A  e.  CC )
9291sqsqrd 12161 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( sqr `  A
) ^ 2 )  =  A )
93 eldifn 3406 . . . . . . . . . . . . . . . . . . . 20  |-  ( p  e.  ( ( ( 0 [,] A )  i^i  Prime )  \  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  ->  -.  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )
9493adantl 453 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  -.  p  e.  ( (
0 [,] ( sqr `  A ) )  i^i 
Prime ) )
9569, 29sylan2 461 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  p  e.  Prime )
96 elin 3466 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( p  e.  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime )  <-> 
( p  e.  ( 0 [,] ( sqr `  A ) )  /\  p  e.  Prime ) )
9796rbaib 874 . . . . . . . . . . . . . . . . . . . . 21  |-  ( p  e.  Prime  ->  ( p  e.  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime )  <-> 
p  e.  ( 0 [,] ( sqr `  A
) ) ) )
9895, 97syl 16 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime )  <->  p  e.  (
0 [,] ( sqr `  A ) ) ) )
997a1i 11 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  0  e.  RR )
10017adantr 452 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( sqr `  A )  e.  RR )
10169, 31sylan2 461 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  p  e.  NN )
102101nnred 9940 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  p  e.  RR )
10380rpge0d 10577 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  0  <_  p )
104 elicc2 10900 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( 0  e.  RR  /\  ( sqr `  A )  e.  RR )  -> 
( p  e.  ( 0 [,] ( sqr `  A ) )  <->  ( p  e.  RR  /\  0  <_  p  /\  p  <_  ( sqr `  A ) ) ) )
105 df-3an 938 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( p  e.  RR  /\  0  <_  p  /\  p  <_  ( sqr `  A
) )  <->  ( (
p  e.  RR  /\  0  <_  p )  /\  p  <_  ( sqr `  A
) ) )
106104, 105syl6bb 253 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( 0  e.  RR  /\  ( sqr `  A )  e.  RR )  -> 
( p  e.  ( 0 [,] ( sqr `  A ) )  <->  ( (
p  e.  RR  /\  0  <_  p )  /\  p  <_  ( sqr `  A
) ) ) )
107106baibd 876 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( ( 0  e.  RR  /\  ( sqr `  A
)  e.  RR )  /\  ( p  e.  RR  /\  0  <_  p ) )  -> 
( p  e.  ( 0 [,] ( sqr `  A ) )  <->  p  <_  ( sqr `  A ) ) )
10899, 100, 102, 103, 107syl22anc 1185 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
p  e.  ( 0 [,] ( sqr `  A
) )  <->  p  <_  ( sqr `  A ) ) )
10998, 108bitrd 245 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime )  <->  p  <_  ( sqr `  A ) ) )
11094, 109mtbid 292 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  -.  p  <_  ( sqr `  A
) )
111100, 102ltnled 9145 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( sqr `  A
)  <  p  <->  -.  p  <_  ( sqr `  A
) ) )
112110, 111mpbird 224 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( sqr `  A )  < 
p )
11358adantr 452 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  0  <_  ( sqr `  A
) )
114100, 102, 113, 103lt2sqd 11477 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( sqr `  A
)  <  p  <->  ( ( sqr `  A ) ^
2 )  <  (
p ^ 2 ) ) )
115112, 114mpbid 202 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( sqr `  A
) ^ 2 )  <  ( p ^
2 ) )
11692, 115eqbrtrrd 4168 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  A  <  ( p ^ 2 ) )
117101nnsqcld 11463 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
p ^ 2 )  e.  NN )
118117nnrpd 10572 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
p ^ 2 )  e.  RR+ )
119 logltb 20354 . . . . . . . . . . . . . . . 16  |-  ( ( A  e.  RR+  /\  (
p ^ 2 )  e.  RR+ )  ->  ( A  <  ( p ^
2 )  <->  ( log `  A )  <  ( log `  ( p ^
2 ) ) ) )
12081, 118, 119syl2anc 643 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( A  <  ( p ^
2 )  <->  ( log `  A )  <  ( log `  ( p ^
2 ) ) ) )
121116, 120mpbid 202 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( log `  A )  < 
( log `  (
p ^ 2 ) ) )
122 2z 10237 . . . . . . . . . . . . . . 15  |-  2  e.  ZZ
123 relogexp 20350 . . . . . . . . . . . . . . 15  |-  ( ( p  e.  RR+  /\  2  e.  ZZ )  ->  ( log `  ( p ^
2 ) )  =  ( 2  x.  ( log `  p ) ) )
12480, 122, 123sylancl 644 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( log `  ( p ^
2 ) )  =  ( 2  x.  ( log `  p ) ) )
125121, 124breqtrd 4170 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( log `  A )  < 
( 2  x.  ( log `  p ) ) )
126 2re 9994 . . . . . . . . . . . . . . 15  |-  2  e.  RR
127126a1i 11 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  2  e.  RR )
12886, 127, 87ltdivmul2d 10621 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( ( log `  A
)  /  ( log `  p ) )  <  2  <->  ( log `  A
)  <  ( 2  x.  ( log `  p
) ) ) )
129125, 128mpbird 224 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( log `  A
)  /  ( log `  p ) )  <  2 )
130 df-2 9983 . . . . . . . . . . . 12  |-  2  =  ( 1  +  1 )
131129, 130syl6breq 4185 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( log `  A
)  /  ( log `  p ) )  < 
( 1  +  1 ) )
13269, 42sylan2 461 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( log `  A
)  /  ( log `  p ) )  e.  RR )
133 1z 10236 . . . . . . . . . . . 12  |-  1  e.  ZZ
134 flbi 11143 . . . . . . . . . . . 12  |-  ( ( ( ( log `  A
)  /  ( log `  p ) )  e.  RR  /\  1  e.  ZZ )  ->  (
( |_ `  (
( log `  A
)  /  ( log `  p ) ) )  =  1  <->  ( 1  <_  ( ( log `  A )  /  ( log `  p ) )  /\  ( ( log `  A )  /  ( log `  p ) )  <  ( 1  +  1 ) ) ) )
135132, 133, 134sylancl 644 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( |_ `  (
( log `  A
)  /  ( log `  p ) ) )  =  1  <->  ( 1  <_  ( ( log `  A )  /  ( log `  p ) )  /\  ( ( log `  A )  /  ( log `  p ) )  <  ( 1  +  1 ) ) ) )
13689, 131, 135mpbir2and 889 . . . . . . . . . 10  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) )  =  1 )
137136oveq2d 6029 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  =  ( ( log `  p
)  x.  1 ) )
13870mulid1d 9031 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( log `  p
)  x.  1 )  =  ( log `  p
) )
139137, 138eqtrd 2412 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  =  ( log `  p ) )
140139oveq1d 6028 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) )  =  ( ( log `  p )  -  ( log `  p ) ) )
14170subidd 9324 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( log `  p
)  -  ( log `  p ) )  =  0 )
142140, 141eqtrd 2412 . . . . . 6  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( ( 0 [,] A )  i^i  Prime ) 
\  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ) )  ->  (
( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) )  =  0 )
14364, 68, 142, 26fsumss 12439 . . . . 5  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  sum_ p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) ( ( ( log `  p )  x.  ( |_ `  ( ( log `  A
)  /  ( log `  p ) ) ) )  -  ( log `  p ) )  = 
sum_ p  e.  (
( 0 [,] A
)  i^i  Prime ) ( ( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) ) )
144 chpval2 20862 . . . . . . 7  |-  ( A  e.  RR  ->  (ψ `  A )  =  sum_ p  e.  ( ( 0 [,] A )  i^i 
Prime ) ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) ) )
145144adantr 452 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
(ψ `  A )  =  sum_ p  e.  ( ( 0 [,] A
)  i^i  Prime ) ( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) ) )
146 chtval 20753 . . . . . . 7  |-  ( A  e.  RR  ->  ( theta `  A )  = 
sum_ p  e.  (
( 0 [,] A
)  i^i  Prime ) ( log `  p ) )
147146adantr 452 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( theta `  A )  =  sum_ p  e.  ( ( 0 [,] A
)  i^i  Prime ) ( log `  p ) )
148145, 147oveq12d 6031 . . . . 5  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( (ψ `  A
)  -  ( theta `  A ) )  =  ( sum_ p  e.  ( ( 0 [,] A
)  i^i  Prime ) ( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  -  sum_ p  e.  ( ( 0 [,] A )  i^i 
Prime ) ( log `  p
) ) )
14948, 143, 1483eqtr4rd 2423 . . . 4  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( (ψ `  A
)  -  ( theta `  A ) )  = 
sum_ p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) ( ( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) ) )
15065, 66syldan 457 . . . . 5  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) )  e.  RR )
15165, 45syldan 457 . . . . . 6  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  e.  RR )
15265, 41syldan 457 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( log `  p
)  e.  RR+ )
153152rpge0d 10577 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
0  <_  ( log `  p ) )
154 inss2 3498 . . . . . . . . . . . 12  |-  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime )  C_  Prime
155 simpr 448 . . . . . . . . . . . 12  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  ->  p  e.  ( (
0 [,] ( sqr `  A ) )  i^i 
Prime ) )
156154, 155sseldi 3282 . . . . . . . . . . 11  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  ->  p  e.  Prime )
157156, 30syl 16 . . . . . . . . . 10  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  ->  p  e.  NN )
158157nnrpd 10572 . . . . . . . . 9  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  ->  p  e.  RR+ )
159158relogcld 20378 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( log `  p
)  e.  RR )
160151, 159subge02d 9543 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( 0  <_  ( log `  p )  <->  ( (
( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) )  <_  ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) ) ) )
161153, 160mpbid 202 . . . . . 6  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) )  <_  ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) ) )
16265, 42syldan 457 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( ( log `  A
)  /  ( log `  p ) )  e.  RR )
163 flle 11128 . . . . . . . 8  |-  ( ( ( log `  A
)  /  ( log `  p ) )  e.  RR  ->  ( |_ `  ( ( log `  A
)  /  ( log `  p ) ) )  <_  ( ( log `  A )  /  ( log `  p ) ) )
164162, 163syl 16 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( |_ `  (
( log `  A
)  /  ( log `  p ) ) )  <_  ( ( log `  A )  /  ( log `  p ) ) )
16565, 44syldan 457 . . . . . . . 8  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( |_ `  (
( log `  A
)  /  ( log `  p ) ) )  e.  RR )
166165, 21, 152lemuldiv2d 10619 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) )  <_  ( log `  A )  <->  ( |_ `  ( ( log `  A
)  /  ( log `  p ) ) )  <_  ( ( log `  A )  /  ( log `  p ) ) ) )
167164, 166mpbird 224 . . . . . 6  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( ( log `  p
)  x.  ( |_
`  ( ( log `  A )  /  ( log `  p ) ) ) )  <_  ( log `  A ) )
168150, 151, 21, 161, 167letrd 9152 . . . . 5  |-  ( ( ( A  e.  RR  /\  1  <_  A )  /\  p  e.  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  -> 
( ( ( log `  p )  x.  ( |_ `  ( ( log `  A )  /  ( log `  p ) ) ) )  -  ( log `  p ) )  <_  ( log `  A
) )
16919, 150, 21, 168fsumle 12498 . . . 4  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  sum_ p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) ( ( ( log `  p )  x.  ( |_ `  ( ( log `  A
)  /  ( log `  p ) ) ) )  -  ( log `  p ) )  <_  sum_ p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) ( log `  A
) )
170149, 169eqbrtrd 4166 . . 3  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( (ψ `  A
)  -  ( theta `  A ) )  <_  sum_ p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) ( log `  A
) )
17123recnd 9040 . . . . 5  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( log `  A
)  e.  CC )
172 fsumconst 12493 . . . . 5  |-  ( ( ( ( 0 [,] ( sqr `  A
) )  i^i  Prime )  e.  Fin  /\  ( log `  A )  e.  CC )  ->  sum_ p  e.  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) ( log `  A
)  =  ( (
# `  ( (
0 [,] ( sqr `  A ) )  i^i 
Prime ) )  x.  ( log `  A ) ) )
17319, 171, 172syl2anc 643 . . . 4  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  sum_ p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) ( log `  A
)  =  ( (
# `  ( (
0 [,] ( sqr `  A ) )  i^i 
Prime ) )  x.  ( log `  A ) ) )
174 hashcl 11559 . . . . . . 7  |-  ( ( ( 0 [,] ( sqr `  A ) )  i^i  Prime )  e.  Fin  ->  ( # `  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  e. 
NN0 )
17519, 174syl 16 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( # `  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) )  e.  NN0 )
176175nn0red 10200 . . . . 5  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( # `  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) )  e.  RR )
177 logge0 20360 . . . . 5  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
0  <_  ( log `  A ) )
178 reflcl 11125 . . . . . . 7  |-  ( ( sqr `  A )  e.  RR  ->  ( |_ `  ( sqr `  A
) )  e.  RR )
17917, 178syl 16 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( |_ `  ( sqr `  A ) )  e.  RR )
180 fzfid 11232 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( 1 ... ( |_ `  ( sqr `  A
) ) )  e. 
Fin )
181 ppisval 20746 . . . . . . . . . . 11  |-  ( ( sqr `  A )  e.  RR  ->  (
( 0 [,] ( sqr `  A ) )  i^i  Prime )  =  ( ( 2 ... ( |_ `  ( sqr `  A
) ) )  i^i 
Prime ) )
18217, 181syl 16 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( 0 [,] ( sqr `  A
) )  i^i  Prime )  =  ( ( 2 ... ( |_ `  ( sqr `  A ) ) )  i^i  Prime ) )
183 inss1 3497 . . . . . . . . . . 11  |-  ( ( 2 ... ( |_
`  ( sqr `  A
) ) )  i^i 
Prime )  C_  ( 2 ... ( |_ `  ( sqr `  A ) ) )
184 2nn 10058 . . . . . . . . . . . . 13  |-  2  e.  NN
185 nnuz 10446 . . . . . . . . . . . . 13  |-  NN  =  ( ZZ>= `  1 )
186184, 185eleqtri 2452 . . . . . . . . . . . 12  |-  2  e.  ( ZZ>= `  1 )
187 fzss1 11016 . . . . . . . . . . . 12  |-  ( 2  e.  ( ZZ>= `  1
)  ->  ( 2 ... ( |_ `  ( sqr `  A ) ) )  C_  (
1 ... ( |_ `  ( sqr `  A ) ) ) )
188186, 187mp1i 12 . . . . . . . . . . 11  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( 2 ... ( |_ `  ( sqr `  A
) ) )  C_  ( 1 ... ( |_ `  ( sqr `  A
) ) ) )
189183, 188syl5ss 3295 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( 2 ... ( |_ `  ( sqr `  A ) ) )  i^i  Prime )  C_  ( 1 ... ( |_ `  ( sqr `  A
) ) ) )
190182, 189eqsstrd 3318 . . . . . . . . 9  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) 
C_  ( 1 ... ( |_ `  ( sqr `  A ) ) ) )
191 ssdomg 7082 . . . . . . . . 9  |-  ( ( 1 ... ( |_
`  ( sqr `  A
) ) )  e. 
Fin  ->  ( ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime )  C_  ( 1 ... ( |_ `  ( sqr `  A ) ) )  ->  (
( 0 [,] ( sqr `  A ) )  i^i  Prime )  ~<_  ( 1 ... ( |_ `  ( sqr `  A ) ) ) ) )
192180, 190, 191sylc 58 . . . . . . . 8  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( 0 [,] ( sqr `  A
) )  i^i  Prime )  ~<_  ( 1 ... ( |_ `  ( sqr `  A
) ) ) )
193 hashdom 11573 . . . . . . . . 9  |-  ( ( ( ( 0 [,] ( sqr `  A
) )  i^i  Prime )  e.  Fin  /\  (
1 ... ( |_ `  ( sqr `  A ) ) )  e.  Fin )  ->  ( ( # `  ( ( 0 [,] ( sqr `  A
) )  i^i  Prime ) )  <_  ( # `  (
1 ... ( |_ `  ( sqr `  A ) ) ) )  <->  ( (
0 [,] ( sqr `  A ) )  i^i 
Prime )  ~<_  ( 1 ... ( |_ `  ( sqr `  A ) ) ) ) )
19419, 180, 193syl2anc 643 . . . . . . . 8  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( # `  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  <_ 
( # `  ( 1 ... ( |_ `  ( sqr `  A ) ) ) )  <->  ( (
0 [,] ( sqr `  A ) )  i^i 
Prime )  ~<_  ( 1 ... ( |_ `  ( sqr `  A ) ) ) ) )
195192, 194mpbird 224 . . . . . . 7  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( # `  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) )  <_  ( # `
 ( 1 ... ( |_ `  ( sqr `  A ) ) ) ) )
196 flge0nn0 11145 . . . . . . . . 9  |-  ( ( ( sqr `  A
)  e.  RR  /\  0  <_  ( sqr `  A
) )  ->  ( |_ `  ( sqr `  A
) )  e.  NN0 )
19717, 58, 196syl2anc 643 . . . . . . . 8  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( |_ `  ( sqr `  A ) )  e.  NN0 )
198 hashfz1 11550 . . . . . . . 8  |-  ( ( |_ `  ( sqr `  A ) )  e. 
NN0  ->  ( # `  (
1 ... ( |_ `  ( sqr `  A ) ) ) )  =  ( |_ `  ( sqr `  A ) ) )
199197, 198syl 16 . . . . . . 7  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( # `  ( 1 ... ( |_ `  ( sqr `  A ) ) ) )  =  ( |_ `  ( sqr `  A ) ) )
200195, 199breqtrd 4170 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( # `  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) )  <_  ( |_ `  ( sqr `  A
) ) )
201 flle 11128 . . . . . . 7  |-  ( ( sqr `  A )  e.  RR  ->  ( |_ `  ( sqr `  A
) )  <_  ( sqr `  A ) )
20217, 201syl 16 . . . . . 6  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( |_ `  ( sqr `  A ) )  <_  ( sqr `  A
) )
203176, 179, 17, 200, 202letrd 9152 . . . . 5  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( # `  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) )  <_  ( sqr `  A ) )
204176, 17, 23, 177, 203lemul1ad 9875 . . . 4  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( # `  (
( 0 [,] ( sqr `  A ) )  i^i  Prime ) )  x.  ( log `  A
) )  <_  (
( sqr `  A
)  x.  ( log `  A ) ) )
205173, 204eqbrtrd 4166 . . 3  |-  ( ( A  e.  RR  /\  1  <_  A )  ->  sum_ p  e.  ( ( 0 [,] ( sqr `  A ) )  i^i 
Prime ) ( log `  A
)  <_  ( ( sqr `  A )  x.  ( log `  A
) ) )
2065, 22, 24, 170, 205letrd 9152 . 2  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( (ψ `  A
)  -  ( theta `  A ) )  <_ 
( ( sqr `  A
)  x.  ( log `  A ) ) )
2072, 4, 24lesubadd2d 9550 . 2  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
( ( (ψ `  A )  -  ( theta `  A ) )  <_  ( ( sqr `  A )  x.  ( log `  A ) )  <-> 
(ψ `  A )  <_  ( ( theta `  A
)  +  ( ( sqr `  A )  x.  ( log `  A
) ) ) ) )
208206, 207mpbid 202 1  |-  ( ( A  e.  RR  /\  1  <_  A )  -> 
(ψ `  A )  <_  ( ( theta `  A
)  +  ( ( sqr `  A )  x.  ( log `  A
) ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 177    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717    \ cdif 3253    i^i cin 3255    C_ wss 3256   class class class wbr 4146   ` cfv 5387  (class class class)co 6013    ~<_ cdom 7036   Fincfn 7038   CCcc 8914   RRcr 8915   0cc0 8916   1c1 8917    + caddc 8919    x. cmul 8921    < clt 9046    <_ cle 9047    - cmin 9216    / cdiv 9602   NNcn 9925   2c2 9974   NN0cn0 10146   ZZcz 10207   ZZ>=cuz 10413   RR+crp 10537   [,]cicc 10844   ...cfz 10968   |_cfl 11121   ^cexp 11302   #chash 11538   sqrcsqr 11958   sum_csu 12399   Primecprime 12999   logclog 20312   thetaccht 20733  ψcchp 20735
This theorem is referenced by:  chpchtlim  21033
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2361  ax-rep 4254  ax-sep 4264  ax-nul 4272  ax-pow 4311  ax-pr 4337  ax-un 4634  ax-inf2 7522  ax-cnex 8972  ax-resscn 8973  ax-1cn 8974  ax-icn 8975  ax-addcl 8976  ax-addrcl 8977  ax-mulcl 8978  ax-mulrcl 8979  ax-mulcom 8980  ax-addass 8981  ax-mulass 8982  ax-distr 8983  ax-i2m1 8984  ax-1ne0 8985  ax-1rid 8986  ax-rnegex 8987  ax-rrecex 8988  ax-cnre 8989  ax-pre-lttri 8990  ax-pre-lttrn 8991  ax-pre-ltadd 8992  ax-pre-mulgt0 8993  ax-pre-sup 8994  ax-addf 8995  ax-mulf 8996
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2235  df-mo 2236  df-clab 2367  df-cleq 2373  df-clel 2376  df-nfc 2505  df-ne 2545  df-nel 2546  df-ral 2647  df-rex 2648  df-reu 2649  df-rmo 2650  df-rab 2651  df-v 2894  df-sbc 3098  df-csb 3188  df-dif 3259  df-un 3261  df-in 3263  df-ss 3270  df-pss 3272  df-nul 3565  df-if 3676  df-pw 3737  df-sn 3756  df-pr 3757  df-tp 3758  df-op 3759  df-uni 3951  df-int 3986  df-iun 4030  df-iin 4031  df-br 4147  df-opab 4201  df-mpt 4202  df-tr 4237  df-eprel 4428  df-id 4432  df-po 4437  df-so 4438  df-fr 4475  df-se 4476  df-we 4477  df-ord 4518  df-on 4519  df-lim 4520  df-suc 4521  df-om 4779  df-xp 4817  df-rel 4818  df-cnv 4819  df-co 4820  df-dm 4821  df-rn 4822  df-res 4823  df-ima 4824  df-iota 5351  df-fun 5389  df-fn 5390  df-f 5391  df-f1 5392  df-fo 5393  df-f1o 5394  df-fv 5395  df-isom 5396  df-ov 6016  df-oprab 6017  df-mpt2 6018  df-of 6237  df-1st 6281  df-2nd 6282  df-riota 6478  df-recs 6562  df-rdg 6597  df-1o 6653  df-2o 6654  df-oadd 6657  df-er 6834  df-map 6949  df-pm 6950  df-ixp 6993  df-en 7039  df-dom 7040  df-sdom 7041  df-fin 7042  df-fi 7344  df-sup 7374  df-oi 7405  df-card 7752  df-cda 7974  df-pnf 9048  df-mnf 9049  df-xr 9050  df-ltxr 9051  df-le 9052  df-sub 9218  df-neg 9219  df-div 9603  df-nn 9926  df-2 9983  df-3 9984  df-4 9985  df-5 9986  df-6 9987  df-7 9988  df-8 9989  df-9 9990  df-10 9991  df-n0 10147  df-z 10208  df-dec 10308  df-uz 10414  df-q 10500  df-rp 10538  df-xneg 10635  df-xadd 10636  df-xmul 10637  df-ioo 10845  df-ioc 10846  df-ico 10847  df-icc 10848  df-fz 10969  df-fzo 11059  df-fl 11122  df-mod 11171  df-seq 11244  df-exp 11303  df-fac 11487  df-bc 11514  df-hash 11539  df-shft 11802  df-cj 11824  df-re 11825  df-im 11826  df-sqr 11960  df-abs 11961  df-limsup 12185  df-clim 12202  df-rlim 12203  df-sum 12400  df-ef 12590  df-sin 12592  df-cos 12593  df-pi 12595  df-dvds 12773  df-gcd 12927  df-prm 13000  df-pc 13131  df-struct 13391  df-ndx 13392  df-slot 13393  df-base 13394  df-sets 13395  df-ress 13396  df-plusg 13462  df-mulr 13463  df-starv 13464  df-sca 13465  df-vsca 13466  df-tset 13468  df-ple 13469  df-ds 13471  df-unif 13472  df-hom 13473  df-cco 13474  df-rest 13570  df-topn 13571  df-topgen 13587  df-pt 13588  df-prds 13591  df-xrs 13646  df-0g 13647  df-gsum 13648  df-qtop 13653  df-imas 13654  df-xps 13656  df-mre 13731  df-mrc 13732  df-acs 13734  df-mnd 14610  df-submnd 14659  df-mulg 14735  df-cntz 15036  df-cmn 15334  df-xmet 16612  df-met 16613  df-bl 16614  df-mopn 16615  df-fbas 16616  df-fg 16617  df-cnfld 16620  df-top 16879  df-bases 16881  df-topon 16882  df-topsp 16883  df-cld 16999  df-ntr 17000  df-cls 17001  df-nei 17078  df-lp 17116  df-perf 17117  df-cn 17206  df-cnp 17207  df-haus 17294  df-tx 17508  df-hmeo 17701  df-fil 17792  df-fm 17884  df-flim 17885  df-flf 17886  df-xms 18252  df-ms 18253  df-tms 18254  df-cncf 18772  df-limc 19613  df-dv 19614  df-log 20314  df-cht 20739  df-vma 20740  df-chp 20741
  Copyright terms: Public domain W3C validator