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

Theorem prmorcht 24617
Description: Relate the primorial (product of the first 𝑛 primes) to the Chebyshev function. (Contributed by Mario Carneiro, 22-Sep-2014.)
Hypothesis
Ref Expression
prmorcht.1 𝐹 = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, 𝑛, 1))
Assertion
Ref Expression
prmorcht (𝐴 ∈ ℕ → (exp‘(θ‘𝐴)) = (seq1( · , 𝐹)‘𝐴))

Proof of Theorem prmorcht
Dummy variables 𝑘 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nnre 10870 . . . . . . 7 (𝐴 ∈ ℕ → 𝐴 ∈ ℝ)
2 chtval 24549 . . . . . . 7 (𝐴 ∈ ℝ → (θ‘𝐴) = Σ𝑘 ∈ ((0[,]𝐴) ∩ ℙ)(log‘𝑘))
31, 2syl 17 . . . . . 6 (𝐴 ∈ ℕ → (θ‘𝐴) = Σ𝑘 ∈ ((0[,]𝐴) ∩ ℙ)(log‘𝑘))
4 2eluzge1 11562 . . . . . . . . . 10 2 ∈ (ℤ‘1)
5 ppisval2 24544 . . . . . . . . . 10 ((𝐴 ∈ ℝ ∧ 2 ∈ (ℤ‘1)) → ((0[,]𝐴) ∩ ℙ) = ((1...(⌊‘𝐴)) ∩ ℙ))
61, 4, 5sylancl 692 . . . . . . . . 9 (𝐴 ∈ ℕ → ((0[,]𝐴) ∩ ℙ) = ((1...(⌊‘𝐴)) ∩ ℙ))
7 nnz 11228 . . . . . . . . . . . 12 (𝐴 ∈ ℕ → 𝐴 ∈ ℤ)
8 flid 12422 . . . . . . . . . . . 12 (𝐴 ∈ ℤ → (⌊‘𝐴) = 𝐴)
97, 8syl 17 . . . . . . . . . . 11 (𝐴 ∈ ℕ → (⌊‘𝐴) = 𝐴)
109oveq2d 6539 . . . . . . . . . 10 (𝐴 ∈ ℕ → (1...(⌊‘𝐴)) = (1...𝐴))
1110ineq1d 3770 . . . . . . . . 9 (𝐴 ∈ ℕ → ((1...(⌊‘𝐴)) ∩ ℙ) = ((1...𝐴) ∩ ℙ))
126, 11eqtrd 2639 . . . . . . . 8 (𝐴 ∈ ℕ → ((0[,]𝐴) ∩ ℙ) = ((1...𝐴) ∩ ℙ))
1312sumeq1d 14221 . . . . . . 7 (𝐴 ∈ ℕ → Σ𝑘 ∈ ((0[,]𝐴) ∩ ℙ)(log‘𝑘) = Σ𝑘 ∈ ((1...𝐴) ∩ ℙ)(log‘𝑘))
14 inss1 3790 . . . . . . . 8 ((1...𝐴) ∩ ℙ) ⊆ (1...𝐴)
1514sseli 3559 . . . . . . . . . 10 (𝑘 ∈ ((1...𝐴) ∩ ℙ) → 𝑘 ∈ (1...𝐴))
16 elfznn 12192 . . . . . . . . . . . . . 14 (𝑘 ∈ (1...𝐴) → 𝑘 ∈ ℕ)
1716adantl 480 . . . . . . . . . . . . 13 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → 𝑘 ∈ ℕ)
1817nnrpd 11698 . . . . . . . . . . . 12 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → 𝑘 ∈ ℝ+)
1918relogcld 24086 . . . . . . . . . . 11 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → (log‘𝑘) ∈ ℝ)
2019recnd 9920 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → (log‘𝑘) ∈ ℂ)
2115, 20sylan2 489 . . . . . . . . 9 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ ((1...𝐴) ∩ ℙ)) → (log‘𝑘) ∈ ℂ)
2221ralrimiva 2944 . . . . . . . 8 (𝐴 ∈ ℕ → ∀𝑘 ∈ ((1...𝐴) ∩ ℙ)(log‘𝑘) ∈ ℂ)
23 fzfi 12584 . . . . . . . . . 10 (1...𝐴) ∈ Fin
2423olci 404 . . . . . . . . 9 ((1...𝐴) ⊆ (ℤ‘1) ∨ (1...𝐴) ∈ Fin)
25 sumss2 14246 . . . . . . . . 9 (((((1...𝐴) ∩ ℙ) ⊆ (1...𝐴) ∧ ∀𝑘 ∈ ((1...𝐴) ∩ ℙ)(log‘𝑘) ∈ ℂ) ∧ ((1...𝐴) ⊆ (ℤ‘1) ∨ (1...𝐴) ∈ Fin)) → Σ𝑘 ∈ ((1...𝐴) ∩ ℙ)(log‘𝑘) = Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ((1...𝐴) ∩ ℙ), (log‘𝑘), 0))
2624, 25mpan2 702 . . . . . . . 8 ((((1...𝐴) ∩ ℙ) ⊆ (1...𝐴) ∧ ∀𝑘 ∈ ((1...𝐴) ∩ ℙ)(log‘𝑘) ∈ ℂ) → Σ𝑘 ∈ ((1...𝐴) ∩ ℙ)(log‘𝑘) = Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ((1...𝐴) ∩ ℙ), (log‘𝑘), 0))
2714, 22, 26sylancr 693 . . . . . . 7 (𝐴 ∈ ℕ → Σ𝑘 ∈ ((1...𝐴) ∩ ℙ)(log‘𝑘) = Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ((1...𝐴) ∩ ℙ), (log‘𝑘), 0))
2813, 27eqtrd 2639 . . . . . 6 (𝐴 ∈ ℕ → Σ𝑘 ∈ ((0[,]𝐴) ∩ ℙ)(log‘𝑘) = Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ((1...𝐴) ∩ ℙ), (log‘𝑘), 0))
293, 28eqtrd 2639 . . . . 5 (𝐴 ∈ ℕ → (θ‘𝐴) = Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ((1...𝐴) ∩ ℙ), (log‘𝑘), 0))
30 elin 3753 . . . . . . . 8 (𝑘 ∈ ((1...𝐴) ∩ ℙ) ↔ (𝑘 ∈ (1...𝐴) ∧ 𝑘 ∈ ℙ))
3130baibr 942 . . . . . . 7 (𝑘 ∈ (1...𝐴) → (𝑘 ∈ ℙ ↔ 𝑘 ∈ ((1...𝐴) ∩ ℙ)))
3231ifbid 4053 . . . . . 6 (𝑘 ∈ (1...𝐴) → if(𝑘 ∈ ℙ, (log‘𝑘), 0) = if(𝑘 ∈ ((1...𝐴) ∩ ℙ), (log‘𝑘), 0))
3332sumeq2i 14219 . . . . 5 Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ℙ, (log‘𝑘), 0) = Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ((1...𝐴) ∩ ℙ), (log‘𝑘), 0)
3429, 33syl6eqr 2657 . . . 4 (𝐴 ∈ ℕ → (θ‘𝐴) = Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ℙ, (log‘𝑘), 0))
35 eleq1 2671 . . . . . . . 8 (𝑛 = 𝑘 → (𝑛 ∈ ℙ ↔ 𝑘 ∈ ℙ))
36 fveq2 6084 . . . . . . . 8 (𝑛 = 𝑘 → (log‘𝑛) = (log‘𝑘))
3735, 36ifbieq1d 4054 . . . . . . 7 (𝑛 = 𝑘 → if(𝑛 ∈ ℙ, (log‘𝑛), 0) = if(𝑘 ∈ ℙ, (log‘𝑘), 0))
38 eqid 2605 . . . . . . 7 (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0)) = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0))
39 fvex 6094 . . . . . . . 8 (log‘𝑘) ∈ V
40 0cn 9884 . . . . . . . . 9 0 ∈ ℂ
4140elexi 3181 . . . . . . . 8 0 ∈ V
4239, 41ifex 4101 . . . . . . 7 if(𝑘 ∈ ℙ, (log‘𝑘), 0) ∈ V
4337, 38, 42fvmpt 6172 . . . . . 6 (𝑘 ∈ ℕ → ((𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0))‘𝑘) = if(𝑘 ∈ ℙ, (log‘𝑘), 0))
4417, 43syl 17 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → ((𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0))‘𝑘) = if(𝑘 ∈ ℙ, (log‘𝑘), 0))
45 elnnuz 11552 . . . . . 6 (𝐴 ∈ ℕ ↔ 𝐴 ∈ (ℤ‘1))
4645biimpi 204 . . . . 5 (𝐴 ∈ ℕ → 𝐴 ∈ (ℤ‘1))
47 ifcl 4075 . . . . . 6 (((log‘𝑘) ∈ ℂ ∧ 0 ∈ ℂ) → if(𝑘 ∈ ℙ, (log‘𝑘), 0) ∈ ℂ)
4820, 40, 47sylancl 692 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → if(𝑘 ∈ ℙ, (log‘𝑘), 0) ∈ ℂ)
4944, 46, 48fsumser 14250 . . . 4 (𝐴 ∈ ℕ → Σ𝑘 ∈ (1...𝐴)if(𝑘 ∈ ℙ, (log‘𝑘), 0) = (seq1( + , (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0)))‘𝐴))
5034, 49eqtrd 2639 . . 3 (𝐴 ∈ ℕ → (θ‘𝐴) = (seq1( + , (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0)))‘𝐴))
5150fveq2d 6088 . 2 (𝐴 ∈ ℕ → (exp‘(θ‘𝐴)) = (exp‘(seq1( + , (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0)))‘𝐴)))
52 addcl 9870 . . . 4 ((𝑘 ∈ ℂ ∧ 𝑝 ∈ ℂ) → (𝑘 + 𝑝) ∈ ℂ)
5352adantl 480 . . 3 ((𝐴 ∈ ℕ ∧ (𝑘 ∈ ℂ ∧ 𝑝 ∈ ℂ)) → (𝑘 + 𝑝) ∈ ℂ)
5444, 48eqeltrd 2683 . . 3 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → ((𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0))‘𝑘) ∈ ℂ)
55 efadd 14605 . . . 4 ((𝑘 ∈ ℂ ∧ 𝑝 ∈ ℂ) → (exp‘(𝑘 + 𝑝)) = ((exp‘𝑘) · (exp‘𝑝)))
5655adantl 480 . . 3 ((𝐴 ∈ ℕ ∧ (𝑘 ∈ ℂ ∧ 𝑝 ∈ ℂ)) → (exp‘(𝑘 + 𝑝)) = ((exp‘𝑘) · (exp‘𝑝)))
57 1nn 10874 . . . . . . 7 1 ∈ ℕ
58 ifcl 4075 . . . . . . 7 ((𝑘 ∈ ℕ ∧ 1 ∈ ℕ) → if(𝑘 ∈ ℙ, 𝑘, 1) ∈ ℕ)
5917, 57, 58sylancl 692 . . . . . 6 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → if(𝑘 ∈ ℙ, 𝑘, 1) ∈ ℕ)
6059nnrpd 11698 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → if(𝑘 ∈ ℙ, 𝑘, 1) ∈ ℝ+)
6160reeflogd 24087 . . . 4 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → (exp‘(log‘if(𝑘 ∈ ℙ, 𝑘, 1))) = if(𝑘 ∈ ℙ, 𝑘, 1))
62 fvif 6095 . . . . . . 7 (log‘if(𝑘 ∈ ℙ, 𝑘, 1)) = if(𝑘 ∈ ℙ, (log‘𝑘), (log‘1))
63 log1 24049 . . . . . . . 8 (log‘1) = 0
64 ifeq2 4036 . . . . . . . 8 ((log‘1) = 0 → if(𝑘 ∈ ℙ, (log‘𝑘), (log‘1)) = if(𝑘 ∈ ℙ, (log‘𝑘), 0))
6563, 64ax-mp 5 . . . . . . 7 if(𝑘 ∈ ℙ, (log‘𝑘), (log‘1)) = if(𝑘 ∈ ℙ, (log‘𝑘), 0)
6662, 65eqtri 2627 . . . . . 6 (log‘if(𝑘 ∈ ℙ, 𝑘, 1)) = if(𝑘 ∈ ℙ, (log‘𝑘), 0)
6744, 66syl6eqr 2657 . . . . 5 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → ((𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0))‘𝑘) = (log‘if(𝑘 ∈ ℙ, 𝑘, 1)))
6867fveq2d 6088 . . . 4 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → (exp‘((𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0))‘𝑘)) = (exp‘(log‘if(𝑘 ∈ ℙ, 𝑘, 1))))
69 id 22 . . . . . . 7 (𝑛 = 𝑘𝑛 = 𝑘)
7035, 69ifbieq1d 4054 . . . . . 6 (𝑛 = 𝑘 → if(𝑛 ∈ ℙ, 𝑛, 1) = if(𝑘 ∈ ℙ, 𝑘, 1))
71 prmorcht.1 . . . . . 6 𝐹 = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, 𝑛, 1))
72 vex 3171 . . . . . . 7 𝑘 ∈ V
7357elexi 3181 . . . . . . 7 1 ∈ V
7472, 73ifex 4101 . . . . . 6 if(𝑘 ∈ ℙ, 𝑘, 1) ∈ V
7570, 71, 74fvmpt 6172 . . . . 5 (𝑘 ∈ ℕ → (𝐹𝑘) = if(𝑘 ∈ ℙ, 𝑘, 1))
7617, 75syl 17 . . . 4 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → (𝐹𝑘) = if(𝑘 ∈ ℙ, 𝑘, 1))
7761, 68, 763eqtr4d 2649 . . 3 ((𝐴 ∈ ℕ ∧ 𝑘 ∈ (1...𝐴)) → (exp‘((𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0))‘𝑘)) = (𝐹𝑘))
7853, 54, 46, 56, 77seqhomo 12661 . 2 (𝐴 ∈ ℕ → (exp‘(seq1( + , (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (log‘𝑛), 0)))‘𝐴)) = (seq1( · , 𝐹)‘𝐴))
7951, 78eqtrd 2639 1 (𝐴 ∈ ℕ → (exp‘(θ‘𝐴)) = (seq1( · , 𝐹)‘𝐴))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wo 381  wa 382   = wceq 1474  wcel 1975  wral 2891  cin 3534  wss 3535  ifcif 4031  cmpt 4633  cfv 5786  (class class class)co 6523  Fincfn 7814  cc 9786  cr 9787  0cc0 9788  1c1 9789   + caddc 9791   · cmul 9793  cn 10863  2c2 10913  cz 11206  cuz 11515  [,]cicc 12001  ...cfz 12148  cfl 12404  seqcseq 12614  Σcsu 14206  expce 14573  cprime 15165  logclog 24018  θccht 24530
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1711  ax-4 1726  ax-5 1825  ax-6 1873  ax-7 1920  ax-8 1977  ax-9 1984  ax-10 2004  ax-11 2019  ax-12 2031  ax-13 2228  ax-ext 2585  ax-rep 4689  ax-sep 4699  ax-nul 4708  ax-pow 4760  ax-pr 4824  ax-un 6820  ax-inf2 8394  ax-cnex 9844  ax-resscn 9845  ax-1cn 9846  ax-icn 9847  ax-addcl 9848  ax-addrcl 9849  ax-mulcl 9850  ax-mulrcl 9851  ax-mulcom 9852  ax-addass 9853  ax-mulass 9854  ax-distr 9855  ax-i2m1 9856  ax-1ne0 9857  ax-1rid 9858  ax-rnegex 9859  ax-rrecex 9860  ax-cnre 9861  ax-pre-lttri 9862  ax-pre-lttrn 9863  ax-pre-ltadd 9864  ax-pre-mulgt0 9865  ax-pre-sup 9866  ax-addf 9867  ax-mulf 9868
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-fal 1480  df-ex 1695  df-nf 1700  df-sb 1866  df-eu 2457  df-mo 2458  df-clab 2592  df-cleq 2598  df-clel 2601  df-nfc 2735  df-ne 2777  df-nel 2778  df-ral 2896  df-rex 2897  df-reu 2898  df-rmo 2899  df-rab 2900  df-v 3170  df-sbc 3398  df-csb 3495  df-dif 3538  df-un 3540  df-in 3542  df-ss 3549  df-pss 3551  df-nul 3870  df-if 4032  df-pw 4105  df-sn 4121  df-pr 4123  df-tp 4125  df-op 4127  df-uni 4363  df-int 4401  df-iun 4447  df-iin 4448  df-br 4574  df-opab 4634  df-mpt 4635  df-tr 4671  df-eprel 4935  df-id 4939  df-po 4945  df-so 4946  df-fr 4983  df-se 4984  df-we 4985  df-xp 5030  df-rel 5031  df-cnv 5032  df-co 5033  df-dm 5034  df-rn 5035  df-res 5036  df-ima 5037  df-pred 5579  df-ord 5625  df-on 5626  df-lim 5627  df-suc 5628  df-iota 5750  df-fun 5788  df-fn 5789  df-f 5790  df-f1 5791  df-fo 5792  df-f1o 5793  df-fv 5794  df-isom 5795  df-riota 6485  df-ov 6526  df-oprab 6527  df-mpt2 6528  df-of 6768  df-om 6931  df-1st 7032  df-2nd 7033  df-supp 7156  df-wrecs 7267  df-recs 7328  df-rdg 7366  df-1o 7420  df-2o 7421  df-oadd 7424  df-er 7602  df-map 7719  df-pm 7720  df-ixp 7768  df-en 7815  df-dom 7816  df-sdom 7817  df-fin 7818  df-fsupp 8132  df-fi 8173  df-sup 8204  df-inf 8205  df-oi 8271  df-card 8621  df-cda 8846  df-pnf 9928  df-mnf 9929  df-xr 9930  df-ltxr 9931  df-le 9932  df-sub 10115  df-neg 10116  df-div 10530  df-nn 10864  df-2 10922  df-3 10923  df-4 10924  df-5 10925  df-6 10926  df-7 10927  df-8 10928  df-9 10929  df-n0 11136  df-z 11207  df-dec 11322  df-uz 11516  df-q 11617  df-rp 11661  df-xneg 11774  df-xadd 11775  df-xmul 11776  df-ioo 12002  df-ioc 12003  df-ico 12004  df-icc 12005  df-fz 12149  df-fzo 12286  df-fl 12406  df-mod 12482  df-seq 12615  df-exp 12674  df-fac 12874  df-bc 12903  df-hash 12931  df-shft 13597  df-cj 13629  df-re 13630  df-im 13631  df-sqrt 13765  df-abs 13766  df-limsup 13992  df-clim 14009  df-rlim 14010  df-sum 14207  df-ef 14579  df-sin 14581  df-cos 14582  df-pi 14584  df-dvds 14764  df-prm 15166  df-struct 15639  df-ndx 15640  df-slot 15641  df-base 15642  df-sets 15643  df-ress 15644  df-plusg 15723  df-mulr 15724  df-starv 15725  df-sca 15726  df-vsca 15727  df-ip 15728  df-tset 15729  df-ple 15730  df-ds 15733  df-unif 15734  df-hom 15735  df-cco 15736  df-rest 15848  df-topn 15849  df-0g 15867  df-gsum 15868  df-topgen 15869  df-pt 15870  df-prds 15873  df-xrs 15927  df-qtop 15932  df-imas 15933  df-xps 15935  df-mre 16011  df-mrc 16012  df-acs 16014  df-mgm 17007  df-sgrp 17049  df-mnd 17060  df-submnd 17101  df-mulg 17306  df-cntz 17515  df-cmn 17960  df-psmet 19501  df-xmet 19502  df-met 19503  df-bl 19504  df-mopn 19505  df-fbas 19506  df-fg 19507  df-cnfld 19510  df-top 20459  df-bases 20460  df-topon 20461  df-topsp 20462  df-cld 20571  df-ntr 20572  df-cls 20573  df-nei 20650  df-lp 20688  df-perf 20689  df-cn 20779  df-cnp 20780  df-haus 20867  df-tx 21113  df-hmeo 21306  df-fil 21398  df-fm 21490  df-flim 21491  df-flf 21492  df-xms 21872  df-ms 21873  df-tms 21874  df-cncf 22416  df-limc 23349  df-dv 23350  df-log 24020  df-cht 24536
This theorem is referenced by:  chtublem  24649  bposlem6  24727
  Copyright terms: Public domain W3C validator