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

Theorem vmaval 24584
Description: Value of the von Mangoldt function. (Contributed by Mario Carneiro, 7-Apr-2016.)
Hypothesis
Ref Expression
vmaval.1 𝑆 = {𝑝 ∈ ℙ ∣ 𝑝𝐴}
Assertion
Ref Expression
vmaval (𝐴 ∈ ℕ → (Λ‘𝐴) = if((#‘𝑆) = 1, (log‘ 𝑆), 0))
Distinct variable group:   𝐴,𝑝
Allowed substitution hint:   𝑆(𝑝)

Proof of Theorem vmaval
Dummy variables 𝑠 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nnex 10876 . . . . . 6 ℕ ∈ V
2 prmnn 15175 . . . . . . 7 (𝑝 ∈ ℙ → 𝑝 ∈ ℕ)
32ssriv 3571 . . . . . 6 ℙ ⊆ ℕ
41, 3ssexi 4726 . . . . 5 ℙ ∈ V
54rabex 4735 . . . 4 {𝑝 ∈ ℙ ∣ 𝑝𝑥} ∈ V
65a1i 11 . . 3 (𝑥 = 𝐴 → {𝑝 ∈ ℙ ∣ 𝑝𝑥} ∈ V)
7 id 22 . . . . . . 7 (𝑠 = {𝑝 ∈ ℙ ∣ 𝑝𝑥} → 𝑠 = {𝑝 ∈ ℙ ∣ 𝑝𝑥})
8 breq2 4581 . . . . . . . . 9 (𝑥 = 𝐴 → (𝑝𝑥𝑝𝐴))
98rabbidv 3163 . . . . . . . 8 (𝑥 = 𝐴 → {𝑝 ∈ ℙ ∣ 𝑝𝑥} = {𝑝 ∈ ℙ ∣ 𝑝𝐴})
10 vmaval.1 . . . . . . . 8 𝑆 = {𝑝 ∈ ℙ ∣ 𝑝𝐴}
119, 10syl6eqr 2661 . . . . . . 7 (𝑥 = 𝐴 → {𝑝 ∈ ℙ ∣ 𝑝𝑥} = 𝑆)
127, 11sylan9eqr 2665 . . . . . 6 ((𝑥 = 𝐴𝑠 = {𝑝 ∈ ℙ ∣ 𝑝𝑥}) → 𝑠 = 𝑆)
1312fveq2d 6092 . . . . 5 ((𝑥 = 𝐴𝑠 = {𝑝 ∈ ℙ ∣ 𝑝𝑥}) → (#‘𝑠) = (#‘𝑆))
1413eqeq1d 2611 . . . 4 ((𝑥 = 𝐴𝑠 = {𝑝 ∈ ℙ ∣ 𝑝𝑥}) → ((#‘𝑠) = 1 ↔ (#‘𝑆) = 1))
1512unieqd 4376 . . . . 5 ((𝑥 = 𝐴𝑠 = {𝑝 ∈ ℙ ∣ 𝑝𝑥}) → 𝑠 = 𝑆)
1615fveq2d 6092 . . . 4 ((𝑥 = 𝐴𝑠 = {𝑝 ∈ ℙ ∣ 𝑝𝑥}) → (log‘ 𝑠) = (log‘ 𝑆))
1714, 16ifbieq1d 4058 . . 3 ((𝑥 = 𝐴𝑠 = {𝑝 ∈ ℙ ∣ 𝑝𝑥}) → if((#‘𝑠) = 1, (log‘ 𝑠), 0) = if((#‘𝑆) = 1, (log‘ 𝑆), 0))
186, 17csbied 3525 . 2 (𝑥 = 𝐴{𝑝 ∈ ℙ ∣ 𝑝𝑥} / 𝑠if((#‘𝑠) = 1, (log‘ 𝑠), 0) = if((#‘𝑆) = 1, (log‘ 𝑆), 0))
19 df-vma 24569 . 2 Λ = (𝑥 ∈ ℕ ↦ {𝑝 ∈ ℙ ∣ 𝑝𝑥} / 𝑠if((#‘𝑠) = 1, (log‘ 𝑠), 0))
20 fvex 6098 . . 3 (log‘ 𝑆) ∈ V
21 c0ex 9891 . . 3 0 ∈ V
2220, 21ifex 4105 . 2 if((#‘𝑆) = 1, (log‘ 𝑆), 0) ∈ V
2318, 19, 22fvmpt 6176 1 (𝐴 ∈ ℕ → (Λ‘𝐴) = if((#‘𝑆) = 1, (log‘ 𝑆), 0))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 382   = wceq 1474  wcel 1976  {crab 2899  Vcvv 3172  csb 3498  ifcif 4035   cuni 4366   class class class wbr 4577  cfv 5790  0cc0 9793  1c1 9794  cn 10870  #chash 12937  cdvds 14770  cprime 15172  logclog 24050  Λcvma 24563
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1712  ax-4 1727  ax-5 1826  ax-6 1874  ax-7 1921  ax-8 1978  ax-9 1985  ax-10 2005  ax-11 2020  ax-12 2033  ax-13 2233  ax-ext 2589  ax-sep 4703  ax-nul 4712  ax-pow 4764  ax-pr 4828  ax-un 6825  ax-cnex 9849  ax-resscn 9850  ax-1cn 9851  ax-icn 9852  ax-addcl 9853  ax-addrcl 9854  ax-mulcl 9855  ax-mulrcl 9856  ax-i2m1 9861  ax-1ne0 9862  ax-rrecex 9865  ax-cnre 9866
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1700  df-sb 1867  df-eu 2461  df-mo 2462  df-clab 2596  df-cleq 2602  df-clel 2605  df-nfc 2739  df-ne 2781  df-ral 2900  df-rex 2901  df-reu 2902  df-rab 2904  df-v 3174  df-sbc 3402  df-csb 3499  df-dif 3542  df-un 3544  df-in 3546  df-ss 3553  df-pss 3555  df-nul 3874  df-if 4036  df-pw 4109  df-sn 4125  df-pr 4127  df-tp 4129  df-op 4131  df-uni 4367  df-iun 4451  df-br 4578  df-opab 4638  df-mpt 4639  df-tr 4675  df-eprel 4939  df-id 4943  df-po 4949  df-so 4950  df-fr 4987  df-we 4989  df-xp 5034  df-rel 5035  df-cnv 5036  df-co 5037  df-dm 5038  df-rn 5039  df-res 5040  df-ima 5041  df-pred 5583  df-ord 5629  df-on 5630  df-lim 5631  df-suc 5632  df-iota 5754  df-fun 5792  df-fn 5793  df-f 5794  df-f1 5795  df-fo 5796  df-f1o 5797  df-fv 5798  df-ov 6530  df-om 6936  df-wrecs 7272  df-recs 7333  df-rdg 7371  df-nn 10871  df-prm 15173  df-vma 24569
This theorem is referenced by:  isppw  24585  vmappw  24587
  Copyright terms: Public domain W3C validator