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

Theorem prmoval 16363
Description: Value of the primorial function for nonnegative integers. (Contributed by AV, 28-Aug-2020.)
Assertion
Ref Expression
prmoval (𝑁 ∈ ℕ0 → (#p𝑁) = ∏𝑘 ∈ (1...𝑁)if(𝑘 ∈ ℙ, 𝑘, 1))
Distinct variable group:   𝑘,𝑁

Proof of Theorem prmoval
Dummy variable 𝑛 is distinct from all other variables.
StepHypRef Expression
1 oveq2 7158 . . 3 (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁))
21prodeq1d 15269 . 2 (𝑛 = 𝑁 → ∏𝑘 ∈ (1...𝑛)if(𝑘 ∈ ℙ, 𝑘, 1) = ∏𝑘 ∈ (1...𝑁)if(𝑘 ∈ ℙ, 𝑘, 1))
3 df-prmo 16362 . 2 #p = (𝑛 ∈ ℕ0 ↦ ∏𝑘 ∈ (1...𝑛)if(𝑘 ∈ ℙ, 𝑘, 1))
4 prodex 15255 . 2 𝑘 ∈ (1...𝑁)if(𝑘 ∈ ℙ, 𝑘, 1) ∈ V
52, 3, 4fvmpt 6762 1 (𝑁 ∈ ℕ0 → (#p𝑁) = ∏𝑘 ∈ (1...𝑁)if(𝑘 ∈ ℙ, 𝑘, 1))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1533  wcel 2110  ifcif 4466  cfv 6349  (class class class)co 7150  1c1 10532  0cn0 11891  ...cfz 12886  cprod 15253  cprime 16009  #pcprmo 16361
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pr 5321
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-mpt 5139  df-id 5454  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-res 5561  df-ima 5562  df-pred 6142  df-iota 6308  df-fun 6351  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-ov 7153  df-oprab 7154  df-mpo 7155  df-wrecs 7941  df-recs 8002  df-rdg 8040  df-seq 13364  df-prod 15254  df-prmo 16362
This theorem is referenced by:  prmocl  16364  prmo0  16366  prmo1  16367  prmop1  16368  prmdvdsprmo  16372  prmolefac  16376  prmodvdslcmf  16377  prmgapprmo  16392
  Copyright terms: Public domain W3C validator