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

Theorem muval 27492
Description: The value of the Möbius function. (Contributed by Mario Carneiro, 22-Sep-2014.)
Assertion
Ref Expression
muval (𝐴 ∈ ℕ → (μ‘𝐴) = if(∃𝑝 ∈ ℙ (𝑝↑2) ∥ 𝐴, 0, ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝐴}))))
Distinct variable group:   𝐴,𝑝

Proof of Theorem muval
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 breq2 5110 . . . 4 (𝑥 = 𝐴 → ((𝑝↑2) ∥ 𝑥 ↔ (𝑝↑2) ∥ 𝐴))
21rexbidv 3190 . . 3 (𝑥 = 𝐴 → (∃𝑝 ∈ ℙ (𝑝↑2) ∥ 𝑥 ↔ ∃𝑝 ∈ ℙ (𝑝↑2) ∥ 𝐴))
3 breq2 5110 . . . . . 6 (𝑥 = 𝐴 → (𝑝 ∥ 𝑥 ↔ 𝑝 ∥ 𝐴))
43rabbidv 3423 . . . . 5 (𝑥 = 𝐴 → {𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝑥} = {𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝐴})
54fveq2d 6915 . . . 4 (𝑥 = 𝐴 → (♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝑥}) = (♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝐴}))
65oveq2d 7462 . . 3 (𝑥 = 𝐴 → ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝑥})) = ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝐴})))
72, 6ifbieq2d 4512 . 2 (𝑥 = 𝐴 → if(∃𝑝 ∈ ℙ (𝑝↑2) ∥ 𝑥, 0, ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝑥}))) = if(∃𝑝 ∈ ℙ (𝑝↑2) ∥ 𝐴, 0, ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝐴}))))
8 df-mu 27461 . 2 μ = (𝑥 ∈ ℕ ↦ if(∃𝑝 ∈ ℙ (𝑝↑2) ∥ 𝑥, 0, ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝑥}))))
9 c0ex 11330 . . 3 0 ∈ V
10 ovex 7479 . . 3 ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝐴})) ∈ V
119, 10ifex 4536 . 2 if(∃𝑝 ∈ ℙ (𝑝↑2) ∥ 𝐴, 0, ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝐴}))) ∈ V
127, 8, 11fvmpt 7019 1 (𝐴 ∈ ℕ → (μ‘𝐴) = if(∃𝑝 ∈ ℙ (𝑝↑2) ∥ 𝐴, 0, ( -1↑(♯‘{𝑝 ∈ ℙ ∣ 𝑝 ∥ 𝐴}))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1570   ∈ wcel 2147  ∃wrex 3090  {crab 3416  ifcif 4485   class class class wbr 5106  ‘cfv 6561  (class class class)co 7446  0cc0 11230  1c1 11231   -cneg 11572  ℕcn 12365  2c2 12427  ↑cexp 14234  ♯chash 14504   ∥ cdvds 16454  ℙcprime 16878  μcmu 27455
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5253  ax-nul 5264  ax-pr 5396  ax-1cn 11288  ax-icn 11289  ax-addcl 11290  ax-mulcl 11292  ax-i2m1 11298
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-mpt 5191  df-id 5551  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-iota 6515  df-fun 6563  df-fv 6569  df-ov 7449  df-mu 27461
This theorem is used by:  muval1  27493  muval2  27494  isnsqf  27495  mule1  27508
  Copyright terms: Public domain W3C validator