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

Theorem prmorcht 20416
Description: Relate the primorial (product of the first  n primes) to the Chebyshev function. (Contributed by Mario Carneiro, 22-Sep-2014.)
Hypothesis
Ref Expression
prmorcht.1  |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  n ,  1 ) )
Assertion
Ref Expression
prmorcht  |-  ( A  e.  NN  ->  ( exp `  ( theta `  A
) )  =  (  seq  1 (  x.  ,  F ) `  A ) )

Proof of Theorem prmorcht
Dummy variables  k  p are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nnre 9753 . . . . . . 7  |-  ( A  e.  NN  ->  A  e.  RR )
2 chtval 20348 . . . . . . 7  |-  ( A  e.  RR  ->  ( theta `  A )  = 
sum_ k  e.  ( ( 0 [,] A
)  i^i  Prime ) ( log `  k ) )
31, 2syl 15 . . . . . 6  |-  ( A  e.  NN  ->  ( theta `  A )  = 
sum_ k  e.  ( ( 0 [,] A
)  i^i  Prime ) ( log `  k ) )
4 2nn 9877 . . . . . . . . . . 11  |-  2  e.  NN
5 nnuz 10263 . . . . . . . . . . 11  |-  NN  =  ( ZZ>= `  1 )
64, 5eleqtri 2355 . . . . . . . . . 10  |-  2  e.  ( ZZ>= `  1 )
7 ppisval2 20342 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  2  e.  ( ZZ>= ` 
1 ) )  -> 
( ( 0 [,] A )  i^i  Prime )  =  ( ( 1 ... ( |_ `  A ) )  i^i 
Prime ) )
81, 6, 7sylancl 643 . . . . . . . . 9  |-  ( A  e.  NN  ->  (
( 0 [,] A
)  i^i  Prime )  =  ( ( 1 ... ( |_ `  A
) )  i^i  Prime ) )
9 nnz 10045 . . . . . . . . . . . 12  |-  ( A  e.  NN  ->  A  e.  ZZ )
10 flid 10939 . . . . . . . . . . . 12  |-  ( A  e.  ZZ  ->  ( |_ `  A )  =  A )
119, 10syl 15 . . . . . . . . . . 11  |-  ( A  e.  NN  ->  ( |_ `  A )  =  A )
1211oveq2d 5874 . . . . . . . . . 10  |-  ( A  e.  NN  ->  (
1 ... ( |_ `  A ) )  =  ( 1 ... A
) )
1312ineq1d 3369 . . . . . . . . 9  |-  ( A  e.  NN  ->  (
( 1 ... ( |_ `  A ) )  i^i  Prime )  =  ( ( 1 ... A
)  i^i  Prime ) )
148, 13eqtrd 2315 . . . . . . . 8  |-  ( A  e.  NN  ->  (
( 0 [,] A
)  i^i  Prime )  =  ( ( 1 ... A )  i^i  Prime ) )
1514sumeq1d 12174 . . . . . . 7  |-  ( A  e.  NN  ->  sum_ k  e.  ( ( 0 [,] A )  i^i  Prime ) ( log `  k
)  =  sum_ k  e.  ( ( 1 ... A )  i^i  Prime ) ( log `  k
) )
16 inss1 3389 . . . . . . . 8  |-  ( ( 1 ... A )  i^i  Prime )  C_  (
1 ... A )
1716sseli 3176 . . . . . . . . . 10  |-  ( k  e.  ( ( 1 ... A )  i^i 
Prime )  ->  k  e.  ( 1 ... A
) )
18 elfznn 10819 . . . . . . . . . . . . . 14  |-  ( k  e.  ( 1 ... A )  ->  k  e.  NN )
1918adantl 452 . . . . . . . . . . . . 13  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  k  e.  NN )
2019nnrpd 10389 . . . . . . . . . . . 12  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  k  e.  RR+ )
2120relogcld 19974 . . . . . . . . . . 11  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( log `  k
)  e.  RR )
2221recnd 8861 . . . . . . . . . 10  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( log `  k
)  e.  CC )
2317, 22sylan2 460 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  k  e.  ( (
1 ... A )  i^i 
Prime ) )  ->  ( log `  k )  e.  CC )
2423ralrimiva 2626 . . . . . . . 8  |-  ( A  e.  NN  ->  A. k  e.  ( ( 1 ... A )  i^i  Prime ) ( log `  k
)  e.  CC )
25 fzfi 11034 . . . . . . . . . 10  |-  ( 1 ... A )  e. 
Fin
2625olci 380 . . . . . . . . 9  |-  ( ( 1 ... A ) 
C_  ( ZZ>= `  1
)  \/  ( 1 ... A )  e. 
Fin )
27 sumss2 12199 . . . . . . . . 9  |-  ( ( ( ( ( 1 ... A )  i^i 
Prime )  C_  ( 1 ... A )  /\  A. k  e.  ( ( 1 ... A )  i^i  Prime ) ( log `  k )  e.  CC )  /\  ( ( 1 ... A )  C_  ( ZZ>= `  1 )  \/  ( 1 ... A
)  e.  Fin )
)  ->  sum_ k  e.  ( ( 1 ... A )  i^i  Prime ) ( log `  k
)  =  sum_ k  e.  ( 1 ... A
) if ( k  e.  ( ( 1 ... A )  i^i 
Prime ) ,  ( log `  k ) ,  0 ) )
2826, 27mpan2 652 . . . . . . . 8  |-  ( ( ( ( 1 ... A )  i^i  Prime ) 
C_  ( 1 ... A )  /\  A. k  e.  ( (
1 ... A )  i^i 
Prime ) ( log `  k
)  e.  CC )  ->  sum_ k  e.  ( ( 1 ... A
)  i^i  Prime ) ( log `  k )  =  sum_ k  e.  ( 1 ... A ) if ( k  e.  ( ( 1 ... A )  i^i  Prime ) ,  ( log `  k
) ,  0 ) )
2916, 24, 28sylancr 644 . . . . . . 7  |-  ( A  e.  NN  ->  sum_ k  e.  ( ( 1 ... A )  i^i  Prime ) ( log `  k
)  =  sum_ k  e.  ( 1 ... A
) if ( k  e.  ( ( 1 ... A )  i^i 
Prime ) ,  ( log `  k ) ,  0 ) )
3015, 29eqtrd 2315 . . . . . 6  |-  ( A  e.  NN  ->  sum_ k  e.  ( ( 0 [,] A )  i^i  Prime ) ( log `  k
)  =  sum_ k  e.  ( 1 ... A
) if ( k  e.  ( ( 1 ... A )  i^i 
Prime ) ,  ( log `  k ) ,  0 ) )
313, 30eqtrd 2315 . . . . 5  |-  ( A  e.  NN  ->  ( theta `  A )  = 
sum_ k  e.  ( 1 ... A ) if ( k  e.  ( ( 1 ... A )  i^i  Prime ) ,  ( log `  k
) ,  0 ) )
32 elin 3358 . . . . . . . 8  |-  ( k  e.  ( ( 1 ... A )  i^i 
Prime )  <->  ( k  e.  ( 1 ... A
)  /\  k  e.  Prime ) )
3332baibr 872 . . . . . . 7  |-  ( k  e.  ( 1 ... A )  ->  (
k  e.  Prime  <->  k  e.  ( ( 1 ... A )  i^i  Prime ) ) )
3433ifbid 3583 . . . . . 6  |-  ( k  e.  ( 1 ... A )  ->  if ( k  e.  Prime ,  ( log `  k
) ,  0 )  =  if ( k  e.  ( ( 1 ... A )  i^i 
Prime ) ,  ( log `  k ) ,  0 ) )
3534sumeq2i 12172 . . . . 5  |-  sum_ k  e.  ( 1 ... A
) if ( k  e.  Prime ,  ( log `  k ) ,  0 )  =  sum_ k  e.  ( 1 ... A
) if ( k  e.  ( ( 1 ... A )  i^i 
Prime ) ,  ( log `  k ) ,  0 )
3631, 35syl6eqr 2333 . . . 4  |-  ( A  e.  NN  ->  ( theta `  A )  = 
sum_ k  e.  ( 1 ... A ) if ( k  e. 
Prime ,  ( log `  k ) ,  0 ) )
37 eleq1 2343 . . . . . . . 8  |-  ( n  =  k  ->  (
n  e.  Prime  <->  k  e.  Prime ) )
38 fveq2 5525 . . . . . . . 8  |-  ( n  =  k  ->  ( log `  n )  =  ( log `  k
) )
39 eqidd 2284 . . . . . . . 8  |-  ( n  =  k  ->  0  =  0 )
4037, 38, 39ifbieq12d 3587 . . . . . . 7  |-  ( n  =  k  ->  if ( n  e.  Prime ,  ( log `  n
) ,  0 )  =  if ( k  e.  Prime ,  ( log `  k ) ,  0 ) )
41 eqid 2283 . . . . . . 7  |-  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n ) ,  0 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n ) ,  0 ) )
42 fvex 5539 . . . . . . . 8  |-  ( log `  k )  e.  _V
43 0cn 8831 . . . . . . . . 9  |-  0  e.  CC
4443elexi 2797 . . . . . . . 8  |-  0  e.  _V
4542, 44ifex 3623 . . . . . . 7  |-  if ( k  e.  Prime ,  ( log `  k ) ,  0 )  e. 
_V
4640, 41, 45fvmpt 5602 . . . . . 6  |-  ( k  e.  NN  ->  (
( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n
) ,  0 ) ) `  k )  =  if ( k  e.  Prime ,  ( log `  k ) ,  0 ) )
4719, 46syl 15 . . . . 5  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n ) ,  0 ) ) `
 k )  =  if ( k  e. 
Prime ,  ( log `  k ) ,  0 ) )
48 elnnuz 10264 . . . . . 6  |-  ( A  e.  NN  <->  A  e.  ( ZZ>= `  1 )
)
4948biimpi 186 . . . . 5  |-  ( A  e.  NN  ->  A  e.  ( ZZ>= `  1 )
)
50 ifcl 3601 . . . . . 6  |-  ( ( ( log `  k
)  e.  CC  /\  0  e.  CC )  ->  if ( k  e. 
Prime ,  ( log `  k ) ,  0 )  e.  CC )
5122, 43, 50sylancl 643 . . . . 5  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  if ( k  e.  Prime ,  ( log `  k ) ,  0 )  e.  CC )
5247, 49, 51fsumser 12203 . . . 4  |-  ( A  e.  NN  ->  sum_ k  e.  ( 1 ... A
) if ( k  e.  Prime ,  ( log `  k ) ,  0 )  =  (  seq  1 (  +  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n
) ,  0 ) ) ) `  A
) )
5336, 52eqtrd 2315 . . 3  |-  ( A  e.  NN  ->  ( theta `  A )  =  (  seq  1 (  +  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n ) ,  0 ) ) ) `  A ) )
5453fveq2d 5529 . 2  |-  ( A  e.  NN  ->  ( exp `  ( theta `  A
) )  =  ( exp `  (  seq  1 (  +  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n
) ,  0 ) ) ) `  A
) ) )
55 addcl 8819 . . . 4  |-  ( ( k  e.  CC  /\  p  e.  CC )  ->  ( k  +  p
)  e.  CC )
5655adantl 452 . . 3  |-  ( ( A  e.  NN  /\  ( k  e.  CC  /\  p  e.  CC ) )  ->  ( k  +  p )  e.  CC )
5747, 51eqeltrd 2357 . . 3  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n ) ,  0 ) ) `
 k )  e.  CC )
58 efadd 12375 . . . 4  |-  ( ( k  e.  CC  /\  p  e.  CC )  ->  ( exp `  (
k  +  p ) )  =  ( ( exp `  k )  x.  ( exp `  p
) ) )
5958adantl 452 . . 3  |-  ( ( A  e.  NN  /\  ( k  e.  CC  /\  p  e.  CC ) )  ->  ( exp `  ( k  +  p
) )  =  ( ( exp `  k
)  x.  ( exp `  p ) ) )
60 1nn 9757 . . . . . . 7  |-  1  e.  NN
61 ifcl 3601 . . . . . . 7  |-  ( ( k  e.  NN  /\  1  e.  NN )  ->  if ( k  e. 
Prime ,  k , 
1 )  e.  NN )
6219, 60, 61sylancl 643 . . . . . 6  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  if ( k  e.  Prime ,  k ,  1 )  e.  NN )
6362nnrpd 10389 . . . . 5  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  if ( k  e.  Prime ,  k ,  1 )  e.  RR+ )
6463reeflogd 19975 . . . 4  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( exp `  ( log `  if ( k  e.  Prime ,  k ,  1 ) ) )  =  if ( k  e.  Prime ,  k ,  1 ) )
65 fvif 5540 . . . . . . 7  |-  ( log `  if ( k  e. 
Prime ,  k , 
1 ) )  =  if ( k  e. 
Prime ,  ( log `  k ) ,  ( log `  1 ) )
66 log1 19939 . . . . . . . 8  |-  ( log `  1 )  =  0
67 ifeq2 3570 . . . . . . . 8  |-  ( ( log `  1 )  =  0  ->  if ( k  e.  Prime ,  ( log `  k
) ,  ( log `  1 ) )  =  if ( k  e.  Prime ,  ( log `  k ) ,  0 ) )
6866, 67ax-mp 8 . . . . . . 7  |-  if ( k  e.  Prime ,  ( log `  k ) ,  ( log `  1
) )  =  if ( k  e.  Prime ,  ( log `  k
) ,  0 )
6965, 68eqtri 2303 . . . . . 6  |-  ( log `  if ( k  e. 
Prime ,  k , 
1 ) )  =  if ( k  e. 
Prime ,  ( log `  k ) ,  0 )
7047, 69syl6eqr 2333 . . . . 5  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n ) ,  0 ) ) `
 k )  =  ( log `  if ( k  e.  Prime ,  k ,  1 ) ) )
7170fveq2d 5529 . . . 4  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( exp `  (
( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n
) ,  0 ) ) `  k ) )  =  ( exp `  ( log `  if ( k  e.  Prime ,  k ,  1 ) ) ) )
72 id 19 . . . . . . 7  |-  ( n  =  k  ->  n  =  k )
73 eqidd 2284 . . . . . . 7  |-  ( n  =  k  ->  1  =  1 )
7437, 72, 73ifbieq12d 3587 . . . . . 6  |-  ( n  =  k  ->  if ( n  e.  Prime ,  n ,  1 )  =  if ( k  e.  Prime ,  k ,  1 ) )
75 prmorcht.1 . . . . . 6  |-  F  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  n ,  1 ) )
76 vex 2791 . . . . . . 7  |-  k  e. 
_V
7760elexi 2797 . . . . . . 7  |-  1  e.  _V
7876, 77ifex 3623 . . . . . 6  |-  if ( k  e.  Prime ,  k ,  1 )  e. 
_V
7974, 75, 78fvmpt 5602 . . . . 5  |-  ( k  e.  NN  ->  ( F `  k )  =  if ( k  e. 
Prime ,  k , 
1 ) )
8019, 79syl 15 . . . 4  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( F `  k )  =  if ( k  e.  Prime ,  k ,  1 ) )
8164, 71, 803eqtr4d 2325 . . 3  |-  ( ( A  e.  NN  /\  k  e.  ( 1 ... A ) )  ->  ( exp `  (
( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n
) ,  0 ) ) `  k ) )  =  ( F `
 k ) )
8256, 57, 49, 59, 81seqhomo 11093 . 2  |-  ( A  e.  NN  ->  ( exp `  (  seq  1
(  +  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( log `  n
) ,  0 ) ) ) `  A
) )  =  (  seq  1 (  x.  ,  F ) `  A ) )
8354, 82eqtrd 2315 1  |-  ( A  e.  NN  ->  ( exp `  ( theta `  A
) )  =  (  seq  1 (  x.  ,  F ) `  A ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    \/ wo 357    /\ wa 358    = wceq 1623    e. wcel 1684   A.wral 2543    i^i cin 3151    C_ wss 3152   ifcif 3565    e. cmpt 4077   ` cfv 5255  (class class class)co 5858   Fincfn 6863   CCcc 8735   RRcr 8736   0cc0 8737   1c1 8738    + caddc 8740    x. cmul 8742   NNcn 9746   2c2 9795   ZZcz 10024   ZZ>=cuz 10230   [,]cicc 10659   ...cfz 10782   |_cfl 10924    seq cseq 11046   sum_csu 12158   expce 12343   Primecprime 12758   logclog 19912   thetaccht 20328
This theorem is referenced by:  chtublem  20450  bposlem6  20528
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-inf2 7342  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814  ax-pre-sup 8815  ax-addf 8816  ax-mulf 8817
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 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-int 3863  df-iun 3907  df-iin 3908  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-se 4353  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-isom 5264  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-of 6078  df-1st 6122  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-1o 6479  df-2o 6480  df-oadd 6483  df-er 6660  df-map 6774  df-pm 6775  df-ixp 6818  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-fi 7165  df-sup 7194  df-oi 7225  df-card 7572  df-cda 7794  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-nn 9747  df-2 9804  df-3 9805  df-4 9806  df-5 9807  df-6 9808  df-7 9809  df-8 9810  df-9 9811  df-10 9812  df-n0 9966  df-z 10025  df-dec 10125  df-uz 10231  df-q 10317  df-rp 10355  df-xneg 10452  df-xadd 10453  df-xmul 10454  df-ioo 10660  df-ioc 10661  df-ico 10662  df-icc 10663  df-fz 10783  df-fzo 10871  df-fl 10925  df-mod 10974  df-seq 11047  df-exp 11105  df-fac 11289  df-bc 11316  df-hash 11338  df-shft 11562  df-cj 11584  df-re 11585  df-im 11586  df-sqr 11720  df-abs 11721  df-limsup 11945  df-clim 11962  df-rlim 11963  df-sum 12159  df-ef 12349  df-sin 12351  df-cos 12352  df-pi 12354  df-dvds 12532  df-prm 12759  df-struct 13150  df-ndx 13151  df-slot 13152  df-base 13153  df-sets 13154  df-ress 13155  df-plusg 13221  df-mulr 13222  df-starv 13223  df-sca 13224  df-vsca 13225  df-tset 13227  df-ple 13228  df-ds 13230  df-hom 13232  df-cco 13233  df-rest 13327  df-topn 13328  df-topgen 13344  df-pt 13345  df-prds 13348  df-xrs 13403  df-0g 13404  df-gsum 13405  df-qtop 13410  df-imas 13411  df-xps 13413  df-mre 13488  df-mrc 13489  df-acs 13491  df-mnd 14367  df-submnd 14416  df-mulg 14492  df-cntz 14793  df-cmn 15091  df-xmet 16373  df-met 16374  df-bl 16375  df-mopn 16376  df-cnfld 16378  df-top 16636  df-bases 16638  df-topon 16639  df-topsp 16640  df-cld 16756  df-ntr 16757  df-cls 16758  df-nei 16835  df-lp 16868  df-perf 16869  df-cn 16957  df-cnp 16958  df-haus 17043  df-tx 17257  df-hmeo 17446  df-fbas 17520  df-fg 17521  df-fil 17541  df-fm 17633  df-flim 17634  df-flf 17635  df-xms 17885  df-ms 17886  df-tms 17887  df-cncf 18382  df-limc 19216  df-dv 19217  df-log 19914  df-cht 20334
  Copyright terms: Public domain W3C validator