Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > pcprod | Structured version Visualization version GIF version |
Description: The product of the primes taken to their respective powers reconstructs the original number. (Contributed by Mario Carneiro, 12-Mar-2014.) |
Ref | Expression |
---|---|
pcprod.1 | ⊢ 𝐹 = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (𝑛↑(𝑛 pCnt 𝑁)), 1)) |
Ref | Expression |
---|---|
pcprod | ⊢ (𝑁 ∈ ℕ → (seq1( · , 𝐹)‘𝑁) = 𝑁) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | pcprod.1 | . . . . . 6 ⊢ 𝐹 = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (𝑛↑(𝑛 pCnt 𝑁)), 1)) | |
2 | pccl 16254 | . . . . . . . . 9 ⊢ ((𝑛 ∈ ℙ ∧ 𝑁 ∈ ℕ) → (𝑛 pCnt 𝑁) ∈ ℕ0) | |
3 | 2 | ancoms 462 | . . . . . . . 8 ⊢ ((𝑁 ∈ ℕ ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑁) ∈ ℕ0) |
4 | 3 | ralrimiva 3113 | . . . . . . 7 ⊢ (𝑁 ∈ ℕ → ∀𝑛 ∈ ℙ (𝑛 pCnt 𝑁) ∈ ℕ0) |
5 | 4 | adantl 485 | . . . . . 6 ⊢ ((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) → ∀𝑛 ∈ ℙ (𝑛 pCnt 𝑁) ∈ ℕ0) |
6 | simpr 488 | . . . . . 6 ⊢ ((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) → 𝑁 ∈ ℕ) | |
7 | simpl 486 | . . . . . 6 ⊢ ((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) → 𝑝 ∈ ℙ) | |
8 | oveq1 7163 | . . . . . 6 ⊢ (𝑛 = 𝑝 → (𝑛 pCnt 𝑁) = (𝑝 pCnt 𝑁)) | |
9 | 1, 5, 6, 7, 8 | pcmpt 16296 | . . . . 5 ⊢ ((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) → (𝑝 pCnt (seq1( · , 𝐹)‘𝑁)) = if(𝑝 ≤ 𝑁, (𝑝 pCnt 𝑁), 0)) |
10 | iftrue 4429 | . . . . . . 7 ⊢ (𝑝 ≤ 𝑁 → if(𝑝 ≤ 𝑁, (𝑝 pCnt 𝑁), 0) = (𝑝 pCnt 𝑁)) | |
11 | 10 | adantl 485 | . . . . . 6 ⊢ (((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) ∧ 𝑝 ≤ 𝑁) → if(𝑝 ≤ 𝑁, (𝑝 pCnt 𝑁), 0) = (𝑝 pCnt 𝑁)) |
12 | iffalse 4432 | . . . . . . . 8 ⊢ (¬ 𝑝 ≤ 𝑁 → if(𝑝 ≤ 𝑁, (𝑝 pCnt 𝑁), 0) = 0) | |
13 | 12 | adantl 485 | . . . . . . 7 ⊢ (((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑝 ≤ 𝑁) → if(𝑝 ≤ 𝑁, (𝑝 pCnt 𝑁), 0) = 0) |
14 | prmz 16084 | . . . . . . . . . 10 ⊢ (𝑝 ∈ ℙ → 𝑝 ∈ ℤ) | |
15 | dvdsle 15724 | . . . . . . . . . 10 ⊢ ((𝑝 ∈ ℤ ∧ 𝑁 ∈ ℕ) → (𝑝 ∥ 𝑁 → 𝑝 ≤ 𝑁)) | |
16 | 14, 15 | sylan 583 | . . . . . . . . 9 ⊢ ((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) → (𝑝 ∥ 𝑁 → 𝑝 ≤ 𝑁)) |
17 | 16 | con3dimp 412 | . . . . . . . 8 ⊢ (((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑝 ≤ 𝑁) → ¬ 𝑝 ∥ 𝑁) |
18 | pceq0 16275 | . . . . . . . . 9 ⊢ ((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) → ((𝑝 pCnt 𝑁) = 0 ↔ ¬ 𝑝 ∥ 𝑁)) | |
19 | 18 | adantr 484 | . . . . . . . 8 ⊢ (((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑝 ≤ 𝑁) → ((𝑝 pCnt 𝑁) = 0 ↔ ¬ 𝑝 ∥ 𝑁)) |
20 | 17, 19 | mpbird 260 | . . . . . . 7 ⊢ (((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑝 ≤ 𝑁) → (𝑝 pCnt 𝑁) = 0) |
21 | 13, 20 | eqtr4d 2796 | . . . . . 6 ⊢ (((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) ∧ ¬ 𝑝 ≤ 𝑁) → if(𝑝 ≤ 𝑁, (𝑝 pCnt 𝑁), 0) = (𝑝 pCnt 𝑁)) |
22 | 11, 21 | pm2.61dan 812 | . . . . 5 ⊢ ((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) → if(𝑝 ≤ 𝑁, (𝑝 pCnt 𝑁), 0) = (𝑝 pCnt 𝑁)) |
23 | 9, 22 | eqtrd 2793 | . . . 4 ⊢ ((𝑝 ∈ ℙ ∧ 𝑁 ∈ ℕ) → (𝑝 pCnt (seq1( · , 𝐹)‘𝑁)) = (𝑝 pCnt 𝑁)) |
24 | 23 | ancoms 462 | . . 3 ⊢ ((𝑁 ∈ ℕ ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt (seq1( · , 𝐹)‘𝑁)) = (𝑝 pCnt 𝑁)) |
25 | 24 | ralrimiva 3113 | . 2 ⊢ (𝑁 ∈ ℕ → ∀𝑝 ∈ ℙ (𝑝 pCnt (seq1( · , 𝐹)‘𝑁)) = (𝑝 pCnt 𝑁)) |
26 | 1, 4 | pcmptcl 16295 | . . . . . 6 ⊢ (𝑁 ∈ ℕ → (𝐹:ℕ⟶ℕ ∧ seq1( · , 𝐹):ℕ⟶ℕ)) |
27 | 26 | simprd 499 | . . . . 5 ⊢ (𝑁 ∈ ℕ → seq1( · , 𝐹):ℕ⟶ℕ) |
28 | ffvelrn 6846 | . . . . 5 ⊢ ((seq1( · , 𝐹):ℕ⟶ℕ ∧ 𝑁 ∈ ℕ) → (seq1( · , 𝐹)‘𝑁) ∈ ℕ) | |
29 | 27, 28 | mpancom 687 | . . . 4 ⊢ (𝑁 ∈ ℕ → (seq1( · , 𝐹)‘𝑁) ∈ ℕ) |
30 | 29 | nnnn0d 12007 | . . 3 ⊢ (𝑁 ∈ ℕ → (seq1( · , 𝐹)‘𝑁) ∈ ℕ0) |
31 | nnnn0 11954 | . . 3 ⊢ (𝑁 ∈ ℕ → 𝑁 ∈ ℕ0) | |
32 | pc11 16284 | . . 3 ⊢ (((seq1( · , 𝐹)‘𝑁) ∈ ℕ0 ∧ 𝑁 ∈ ℕ0) → ((seq1( · , 𝐹)‘𝑁) = 𝑁 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt (seq1( · , 𝐹)‘𝑁)) = (𝑝 pCnt 𝑁))) | |
33 | 30, 31, 32 | syl2anc 587 | . 2 ⊢ (𝑁 ∈ ℕ → ((seq1( · , 𝐹)‘𝑁) = 𝑁 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt (seq1( · , 𝐹)‘𝑁)) = (𝑝 pCnt 𝑁))) |
34 | 25, 33 | mpbird 260 | 1 ⊢ (𝑁 ∈ ℕ → (seq1( · , 𝐹)‘𝑁) = 𝑁) |
Colors of variables: wff setvar class |
Syntax hints: ¬ wn 3 → wi 4 ↔ wb 209 ∧ wa 399 = wceq 1538 ∈ wcel 2111 ∀wral 3070 ifcif 4423 class class class wbr 5036 ↦ cmpt 5116 ⟶wf 6336 ‘cfv 6340 (class class class)co 7156 0cc0 10588 1c1 10589 · cmul 10593 ≤ cle 10727 ℕcn 11687 ℕ0cn0 11947 ℤcz 12033 seqcseq 13431 ↑cexp 13492 ∥ cdvds 15668 ℙcprime 16080 pCnt cpc 16241 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1797 ax-4 1811 ax-5 1911 ax-6 1970 ax-7 2015 ax-8 2113 ax-9 2121 ax-10 2142 ax-11 2158 ax-12 2175 ax-ext 2729 ax-sep 5173 ax-nul 5180 ax-pow 5238 ax-pr 5302 ax-un 7465 ax-cnex 10644 ax-resscn 10645 ax-1cn 10646 ax-icn 10647 ax-addcl 10648 ax-addrcl 10649 ax-mulcl 10650 ax-mulrcl 10651 ax-mulcom 10652 ax-addass 10653 ax-mulass 10654 ax-distr 10655 ax-i2m1 10656 ax-1ne0 10657 ax-1rid 10658 ax-rnegex 10659 ax-rrecex 10660 ax-cnre 10661 ax-pre-lttri 10662 ax-pre-lttrn 10663 ax-pre-ltadd 10664 ax-pre-mulgt0 10665 ax-pre-sup 10666 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 845 df-3or 1085 df-3an 1086 df-tru 1541 df-fal 1551 df-ex 1782 df-nf 1786 df-sb 2070 df-mo 2557 df-eu 2588 df-clab 2736 df-cleq 2750 df-clel 2830 df-nfc 2901 df-ne 2952 df-nel 3056 df-ral 3075 df-rex 3076 df-reu 3077 df-rmo 3078 df-rab 3079 df-v 3411 df-sbc 3699 df-csb 3808 df-dif 3863 df-un 3865 df-in 3867 df-ss 3877 df-pss 3879 df-nul 4228 df-if 4424 df-pw 4499 df-sn 4526 df-pr 4528 df-tp 4530 df-op 4532 df-uni 4802 df-iun 4888 df-br 5037 df-opab 5099 df-mpt 5117 df-tr 5143 df-id 5434 df-eprel 5439 df-po 5447 df-so 5448 df-fr 5487 df-we 5489 df-xp 5534 df-rel 5535 df-cnv 5536 df-co 5537 df-dm 5538 df-rn 5539 df-res 5540 df-ima 5541 df-pred 6131 df-ord 6177 df-on 6178 df-lim 6179 df-suc 6180 df-iota 6299 df-fun 6342 df-fn 6343 df-f 6344 df-f1 6345 df-fo 6346 df-f1o 6347 df-fv 6348 df-riota 7114 df-ov 7159 df-oprab 7160 df-mpo 7161 df-om 7586 df-1st 7699 df-2nd 7700 df-wrecs 7963 df-recs 8024 df-rdg 8062 df-1o 8118 df-2o 8119 df-er 8305 df-en 8541 df-dom 8542 df-sdom 8543 df-fin 8544 df-sup 8952 df-inf 8953 df-pnf 10728 df-mnf 10729 df-xr 10730 df-ltxr 10731 df-le 10732 df-sub 10923 df-neg 10924 df-div 11349 df-nn 11688 df-2 11750 df-3 11751 df-n0 11948 df-z 12034 df-uz 12296 df-q 12402 df-rp 12444 df-fz 12953 df-fl 13224 df-mod 13300 df-seq 13432 df-exp 13493 df-cj 14519 df-re 14520 df-im 14521 df-sqrt 14655 df-abs 14656 df-dvds 15669 df-gcd 15907 df-prm 16081 df-pc 16242 |
This theorem is referenced by: pclogsum 25911 |
Copyright terms: Public domain | W3C validator |