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

Theorem prmoval 16215
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 6978 . . 3 (𝑛 = 𝑁 → (1...𝑛) = (1...𝑁))
21prodeq1d 15125 . 2 (𝑛 = 𝑁 → ∏𝑘 ∈ (1...𝑛)if(𝑘 ∈ ℙ, 𝑘, 1) = ∏𝑘 ∈ (1...𝑁)if(𝑘 ∈ ℙ, 𝑘, 1))
3 df-prmo 16214 . 2 #p = (𝑛 ∈ ℕ0 ↦ ∏𝑘 ∈ (1...𝑛)if(𝑘 ∈ ℙ, 𝑘, 1))
4 prodex 15111 . 2 𝑘 ∈ (1...𝑁)if(𝑘 ∈ ℙ, 𝑘, 1) ∈ V
52, 3, 4fvmpt 6589 1 (𝑁 ∈ ℕ0 → (#p𝑁) = ∏𝑘 ∈ (1...𝑁)if(𝑘 ∈ ℙ, 𝑘, 1))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1507  wcel 2048  ifcif 4344  cfv 6182  (class class class)co 6970  1c1 10328  0cn0 11700  ...cfz 12701  cprod 15109  cprime 15861  #pcprmo 16213
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1758  ax-4 1772  ax-5 1869  ax-6 1928  ax-7 1964  ax-8 2050  ax-9 2057  ax-10 2077  ax-11 2091  ax-12 2104  ax-13 2299  ax-ext 2745  ax-sep 5054  ax-nul 5061  ax-pr 5180
This theorem depends on definitions:  df-bi 199  df-an 388  df-or 834  df-3an 1070  df-tru 1510  df-ex 1743  df-nf 1747  df-sb 2014  df-mo 2544  df-eu 2580  df-clab 2754  df-cleq 2765  df-clel 2840  df-nfc 2912  df-ral 3087  df-rex 3088  df-rab 3091  df-v 3411  df-sbc 3678  df-dif 3828  df-un 3830  df-in 3832  df-ss 3839  df-nul 4174  df-if 4345  df-sn 4436  df-pr 4438  df-op 4442  df-uni 4707  df-br 4924  df-opab 4986  df-mpt 5003  df-id 5305  df-xp 5406  df-rel 5407  df-cnv 5408  df-co 5409  df-dm 5410  df-rn 5411  df-res 5412  df-ima 5413  df-pred 5980  df-iota 6146  df-fun 6184  df-f 6186  df-f1 6187  df-fo 6188  df-f1o 6189  df-fv 6190  df-ov 6973  df-oprab 6974  df-mpo 6975  df-wrecs 7743  df-recs 7805  df-rdg 7843  df-seq 13178  df-prod 15110  df-prmo 16214
This theorem is referenced by:  prmocl  16216  prmo0  16218  prmo1  16219  prmop1  16220  prmdvdsprmo  16224  prmolefac  16228  prmodvdslcmf  16229  prmgapprmo  16244
  Copyright terms: Public domain W3C validator