Step | Hyp | Ref
| Expression |
1 | | simp2l 1198 |
. . 3
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → 𝐴 ∈
ℚ) |
2 | | elq 12690 |
. . 3
⊢ (𝐴 ∈ ℚ ↔
∃𝑥 ∈ ℤ
∃𝑦 ∈ ℕ
𝐴 = (𝑥 / 𝑦)) |
3 | 1, 2 | sylib 217 |
. 2
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℕ 𝐴 = (𝑥 / 𝑦)) |
4 | | simp3l 1200 |
. . 3
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → 𝐵 ∈
ℚ) |
5 | | elq 12690 |
. . 3
⊢ (𝐵 ∈ ℚ ↔
∃𝑧 ∈ ℤ
∃𝑤 ∈ ℕ
𝐵 = (𝑧 / 𝑤)) |
6 | 4, 5 | sylib 217 |
. 2
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → ∃𝑧 ∈ ℤ ∃𝑤 ∈ ℕ 𝐵 = (𝑧 / 𝑤)) |
7 | | reeanv 3294 |
. . 3
⊢
(∃𝑥 ∈
ℤ ∃𝑧 ∈
ℤ (∃𝑦 ∈
ℕ 𝐴 = (𝑥 / 𝑦) ∧ ∃𝑤 ∈ ℕ 𝐵 = (𝑧 / 𝑤)) ↔ (∃𝑥 ∈ ℤ ∃𝑦 ∈ ℕ 𝐴 = (𝑥 / 𝑦) ∧ ∃𝑧 ∈ ℤ ∃𝑤 ∈ ℕ 𝐵 = (𝑧 / 𝑤))) |
8 | | reeanv 3294 |
. . . . 5
⊢
(∃𝑦 ∈
ℕ ∃𝑤 ∈
ℕ (𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) ↔ (∃𝑦 ∈ ℕ 𝐴 = (𝑥 / 𝑦) ∧ ∃𝑤 ∈ ℕ 𝐵 = (𝑧 / 𝑤))) |
9 | | simp2r 1199 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → 𝐴 ≠ 0) |
10 | | simp3r 1201 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → 𝐵 ≠ 0) |
11 | 9, 10 | jca 512 |
. . . . . . . 8
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → (𝐴 ≠ 0 ∧ 𝐵 ≠ 0)) |
12 | 11 | ad2antrr 723 |
. . . . . . 7
⊢ ((((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → (𝐴 ≠ 0 ∧ 𝐵 ≠ 0)) |
13 | | simp1 1135 |
. . . . . . . 8
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → 𝑃 ∈
ℙ) |
14 | | simprl 768 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → 𝑦 ∈
ℕ) |
15 | 14 | nncnd 11989 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → 𝑦 ∈
ℂ) |
16 | 14 | nnne0d 12023 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → 𝑦 ≠ 0) |
17 | 15, 16 | div0d 11750 |
. . . . . . . . . . . 12
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → (0 /
𝑦) = 0) |
18 | | oveq1 7282 |
. . . . . . . . . . . . 13
⊢ (𝑥 = 0 → (𝑥 / 𝑦) = (0 / 𝑦)) |
19 | 18 | eqeq1d 2740 |
. . . . . . . . . . . 12
⊢ (𝑥 = 0 → ((𝑥 / 𝑦) = 0 ↔ (0 / 𝑦) = 0)) |
20 | 17, 19 | syl5ibrcom 246 |
. . . . . . . . . . 11
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → (𝑥 = 0 → (𝑥 / 𝑦) = 0)) |
21 | 20 | necon3d 2964 |
. . . . . . . . . 10
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝑥 / 𝑦) ≠ 0 → 𝑥 ≠ 0)) |
22 | | simprr 770 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → 𝑤 ∈
ℕ) |
23 | 22 | nncnd 11989 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → 𝑤 ∈
ℂ) |
24 | 22 | nnne0d 12023 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → 𝑤 ≠ 0) |
25 | 23, 24 | div0d 11750 |
. . . . . . . . . . . 12
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → (0 /
𝑤) = 0) |
26 | | oveq1 7282 |
. . . . . . . . . . . . 13
⊢ (𝑧 = 0 → (𝑧 / 𝑤) = (0 / 𝑤)) |
27 | 26 | eqeq1d 2740 |
. . . . . . . . . . . 12
⊢ (𝑧 = 0 → ((𝑧 / 𝑤) = 0 ↔ (0 / 𝑤) = 0)) |
28 | 25, 27 | syl5ibrcom 246 |
. . . . . . . . . . 11
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → (𝑧 = 0 → (𝑧 / 𝑤) = 0)) |
29 | 28 | necon3d 2964 |
. . . . . . . . . 10
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝑧 / 𝑤) ≠ 0 → 𝑧 ≠ 0)) |
30 | | simpll 764 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑃 ∈ ℙ) |
31 | | simplrl 774 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑥 ∈ ℤ) |
32 | | simplrr 775 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑧 ∈ ℤ) |
33 | 31, 32 | zmulcld 12432 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑥 · 𝑧) ∈ ℤ) |
34 | 31 | zcnd 12427 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑥 ∈ ℂ) |
35 | 32 | zcnd 12427 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑧 ∈ ℂ) |
36 | | simprrl 778 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑥 ≠ 0) |
37 | | simprrr 779 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑧 ≠ 0) |
38 | 34, 35, 36, 37 | mulne0d 11627 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑥 · 𝑧) ≠ 0) |
39 | 14 | adantrr 714 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑦 ∈ ℕ) |
40 | 22 | adantrr 714 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑤 ∈ ℕ) |
41 | 39, 40 | nnmulcld 12026 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑦 · 𝑤) ∈ ℕ) |
42 | | pcdiv 16553 |
. . . . . . . . . . . . . 14
⊢ ((𝑃 ∈ ℙ ∧ ((𝑥 · 𝑧) ∈ ℤ ∧ (𝑥 · 𝑧) ≠ 0) ∧ (𝑦 · 𝑤) ∈ ℕ) → (𝑃 pCnt ((𝑥 · 𝑧) / (𝑦 · 𝑤))) = ((𝑃 pCnt (𝑥 · 𝑧)) − (𝑃 pCnt (𝑦 · 𝑤)))) |
43 | 30, 33, 38, 41, 42 | syl121anc 1374 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt ((𝑥 · 𝑧) / (𝑦 · 𝑤))) = ((𝑃 pCnt (𝑥 · 𝑧)) − (𝑃 pCnt (𝑦 · 𝑤)))) |
44 | | pcmul 16552 |
. . . . . . . . . . . . . . 15
⊢ ((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑥 ≠ 0) ∧ (𝑧 ∈ ℤ ∧ 𝑧 ≠ 0)) → (𝑃 pCnt (𝑥 · 𝑧)) = ((𝑃 pCnt 𝑥) + (𝑃 pCnt 𝑧))) |
45 | 30, 31, 36, 32, 37, 44 | syl122anc 1378 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt (𝑥 · 𝑧)) = ((𝑃 pCnt 𝑥) + (𝑃 pCnt 𝑧))) |
46 | 39 | nnzd 12425 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑦 ∈ ℤ) |
47 | 16 | adantrr 714 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑦 ≠ 0) |
48 | 40 | nnzd 12425 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑤 ∈ ℤ) |
49 | 24 | adantrr 714 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑤 ≠ 0) |
50 | | pcmul 16552 |
. . . . . . . . . . . . . . 15
⊢ ((𝑃 ∈ ℙ ∧ (𝑦 ∈ ℤ ∧ 𝑦 ≠ 0) ∧ (𝑤 ∈ ℤ ∧ 𝑤 ≠ 0)) → (𝑃 pCnt (𝑦 · 𝑤)) = ((𝑃 pCnt 𝑦) + (𝑃 pCnt 𝑤))) |
51 | 30, 46, 47, 48, 49, 50 | syl122anc 1378 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt (𝑦 · 𝑤)) = ((𝑃 pCnt 𝑦) + (𝑃 pCnt 𝑤))) |
52 | 45, 51 | oveq12d 7293 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → ((𝑃 pCnt (𝑥 · 𝑧)) − (𝑃 pCnt (𝑦 · 𝑤))) = (((𝑃 pCnt 𝑥) + (𝑃 pCnt 𝑧)) − ((𝑃 pCnt 𝑦) + (𝑃 pCnt 𝑤)))) |
53 | | pczcl 16549 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑥 ≠ 0)) → (𝑃 pCnt 𝑥) ∈
ℕ0) |
54 | 30, 31, 36, 53 | syl12anc 834 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt 𝑥) ∈
ℕ0) |
55 | 54 | nn0cnd 12295 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt 𝑥) ∈ ℂ) |
56 | | pczcl 16549 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑃 ∈ ℙ ∧ (𝑧 ∈ ℤ ∧ 𝑧 ≠ 0)) → (𝑃 pCnt 𝑧) ∈
ℕ0) |
57 | 30, 32, 37, 56 | syl12anc 834 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt 𝑧) ∈
ℕ0) |
58 | 57 | nn0cnd 12295 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt 𝑧) ∈ ℂ) |
59 | 30, 39 | pccld 16551 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt 𝑦) ∈
ℕ0) |
60 | 59 | nn0cnd 12295 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt 𝑦) ∈ ℂ) |
61 | 30, 40 | pccld 16551 |
. . . . . . . . . . . . . . 15
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt 𝑤) ∈
ℕ0) |
62 | 61 | nn0cnd 12295 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt 𝑤) ∈ ℂ) |
63 | 55, 58, 60, 62 | addsub4d 11379 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (((𝑃 pCnt 𝑥) + (𝑃 pCnt 𝑧)) − ((𝑃 pCnt 𝑦) + (𝑃 pCnt 𝑤))) = (((𝑃 pCnt 𝑥) − (𝑃 pCnt 𝑦)) + ((𝑃 pCnt 𝑧) − (𝑃 pCnt 𝑤)))) |
64 | 43, 52, 63 | 3eqtrd 2782 |
. . . . . . . . . . . 12
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt ((𝑥 · 𝑧) / (𝑦 · 𝑤))) = (((𝑃 pCnt 𝑥) − (𝑃 pCnt 𝑦)) + ((𝑃 pCnt 𝑧) − (𝑃 pCnt 𝑤)))) |
65 | 15 | adantrr 714 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑦 ∈ ℂ) |
66 | 23 | adantrr 714 |
. . . . . . . . . . . . . 14
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → 𝑤 ∈ ℂ) |
67 | 34, 65, 35, 66, 47, 49 | divmuldivd 11792 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → ((𝑥 / 𝑦) · (𝑧 / 𝑤)) = ((𝑥 · 𝑧) / (𝑦 · 𝑤))) |
68 | 67 | oveq2d 7291 |
. . . . . . . . . . . 12
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt ((𝑥 / 𝑦) · (𝑧 / 𝑤))) = (𝑃 pCnt ((𝑥 · 𝑧) / (𝑦 · 𝑤)))) |
69 | | pcdiv 16553 |
. . . . . . . . . . . . . 14
⊢ ((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑥 ≠ 0) ∧ 𝑦 ∈ ℕ) → (𝑃 pCnt (𝑥 / 𝑦)) = ((𝑃 pCnt 𝑥) − (𝑃 pCnt 𝑦))) |
70 | 30, 31, 36, 39, 69 | syl121anc 1374 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt (𝑥 / 𝑦)) = ((𝑃 pCnt 𝑥) − (𝑃 pCnt 𝑦))) |
71 | | pcdiv 16553 |
. . . . . . . . . . . . . 14
⊢ ((𝑃 ∈ ℙ ∧ (𝑧 ∈ ℤ ∧ 𝑧 ≠ 0) ∧ 𝑤 ∈ ℕ) → (𝑃 pCnt (𝑧 / 𝑤)) = ((𝑃 pCnt 𝑧) − (𝑃 pCnt 𝑤))) |
72 | 30, 32, 37, 40, 71 | syl121anc 1374 |
. . . . . . . . . . . . 13
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt (𝑧 / 𝑤)) = ((𝑃 pCnt 𝑧) − (𝑃 pCnt 𝑤))) |
73 | 70, 72 | oveq12d 7293 |
. . . . . . . . . . . 12
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → ((𝑃 pCnt (𝑥 / 𝑦)) + (𝑃 pCnt (𝑧 / 𝑤))) = (((𝑃 pCnt 𝑥) − (𝑃 pCnt 𝑦)) + ((𝑃 pCnt 𝑧) − (𝑃 pCnt 𝑤)))) |
74 | 64, 68, 73 | 3eqtr4d 2788 |
. . . . . . . . . . 11
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ ((𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ) ∧ (𝑥 ≠ 0 ∧ 𝑧 ≠ 0))) → (𝑃 pCnt ((𝑥 / 𝑦) · (𝑧 / 𝑤))) = ((𝑃 pCnt (𝑥 / 𝑦)) + (𝑃 pCnt (𝑧 / 𝑤)))) |
75 | 74 | expr 457 |
. . . . . . . . . 10
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝑥 ≠ 0 ∧ 𝑧 ≠ 0) → (𝑃 pCnt ((𝑥 / 𝑦) · (𝑧 / 𝑤))) = ((𝑃 pCnt (𝑥 / 𝑦)) + (𝑃 pCnt (𝑧 / 𝑤))))) |
76 | 21, 29, 75 | syl2and 608 |
. . . . . . . . 9
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) →
(((𝑥 / 𝑦) ≠ 0 ∧ (𝑧 / 𝑤) ≠ 0) → (𝑃 pCnt ((𝑥 / 𝑦) · (𝑧 / 𝑤))) = ((𝑃 pCnt (𝑥 / 𝑦)) + (𝑃 pCnt (𝑧 / 𝑤))))) |
77 | | neeq1 3006 |
. . . . . . . . . . 11
⊢ (𝐴 = (𝑥 / 𝑦) → (𝐴 ≠ 0 ↔ (𝑥 / 𝑦) ≠ 0)) |
78 | | neeq1 3006 |
. . . . . . . . . . 11
⊢ (𝐵 = (𝑧 / 𝑤) → (𝐵 ≠ 0 ↔ (𝑧 / 𝑤) ≠ 0)) |
79 | 77, 78 | bi2anan9 636 |
. . . . . . . . . 10
⊢ ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → ((𝐴 ≠ 0 ∧ 𝐵 ≠ 0) ↔ ((𝑥 / 𝑦) ≠ 0 ∧ (𝑧 / 𝑤) ≠ 0))) |
80 | | oveq12 7284 |
. . . . . . . . . . . 12
⊢ ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → (𝐴 · 𝐵) = ((𝑥 / 𝑦) · (𝑧 / 𝑤))) |
81 | 80 | oveq2d 7291 |
. . . . . . . . . . 11
⊢ ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → (𝑃 pCnt (𝐴 · 𝐵)) = (𝑃 pCnt ((𝑥 / 𝑦) · (𝑧 / 𝑤)))) |
82 | | oveq2 7283 |
. . . . . . . . . . . 12
⊢ (𝐴 = (𝑥 / 𝑦) → (𝑃 pCnt 𝐴) = (𝑃 pCnt (𝑥 / 𝑦))) |
83 | | oveq2 7283 |
. . . . . . . . . . . 12
⊢ (𝐵 = (𝑧 / 𝑤) → (𝑃 pCnt 𝐵) = (𝑃 pCnt (𝑧 / 𝑤))) |
84 | 82, 83 | oveqan12d 7294 |
. . . . . . . . . . 11
⊢ ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵)) = ((𝑃 pCnt (𝑥 / 𝑦)) + (𝑃 pCnt (𝑧 / 𝑤)))) |
85 | 81, 84 | eqeq12d 2754 |
. . . . . . . . . 10
⊢ ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → ((𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵)) ↔ (𝑃 pCnt ((𝑥 / 𝑦) · (𝑧 / 𝑤))) = ((𝑃 pCnt (𝑥 / 𝑦)) + (𝑃 pCnt (𝑧 / 𝑤))))) |
86 | 79, 85 | imbi12d 345 |
. . . . . . . . 9
⊢ ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → (((𝐴 ≠ 0 ∧ 𝐵 ≠ 0) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵))) ↔ (((𝑥 / 𝑦) ≠ 0 ∧ (𝑧 / 𝑤) ≠ 0) → (𝑃 pCnt ((𝑥 / 𝑦) · (𝑧 / 𝑤))) = ((𝑃 pCnt (𝑥 / 𝑦)) + (𝑃 pCnt (𝑧 / 𝑤)))))) |
87 | 76, 86 | syl5ibrcom 246 |
. . . . . . . 8
⊢ (((𝑃 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → ((𝐴 ≠ 0 ∧ 𝐵 ≠ 0) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵))))) |
88 | 13, 87 | sylanl1 677 |
. . . . . . 7
⊢ ((((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → ((𝐴 ≠ 0 ∧ 𝐵 ≠ 0) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵))))) |
89 | 12, 88 | mpid 44 |
. . . . . 6
⊢ ((((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) ∧ (𝑦 ∈ ℕ ∧ 𝑤 ∈ ℕ)) → ((𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵)))) |
90 | 89 | rexlimdvva 3223 |
. . . . 5
⊢ (((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) →
(∃𝑦 ∈ ℕ
∃𝑤 ∈ ℕ
(𝐴 = (𝑥 / 𝑦) ∧ 𝐵 = (𝑧 / 𝑤)) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵)))) |
91 | 8, 90 | syl5bir 242 |
. . . 4
⊢ (((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) ∧ (𝑥 ∈ ℤ ∧ 𝑧 ∈ ℤ)) →
((∃𝑦 ∈ ℕ
𝐴 = (𝑥 / 𝑦) ∧ ∃𝑤 ∈ ℕ 𝐵 = (𝑧 / 𝑤)) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵)))) |
92 | 91 | rexlimdvva 3223 |
. . 3
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → (∃𝑥 ∈ ℤ ∃𝑧 ∈ ℤ (∃𝑦 ∈ ℕ 𝐴 = (𝑥 / 𝑦) ∧ ∃𝑤 ∈ ℕ 𝐵 = (𝑧 / 𝑤)) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵)))) |
93 | 7, 92 | syl5bir 242 |
. 2
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → ((∃𝑥 ∈ ℤ ∃𝑦 ∈ ℕ 𝐴 = (𝑥 / 𝑦) ∧ ∃𝑧 ∈ ℤ ∃𝑤 ∈ ℕ 𝐵 = (𝑧 / 𝑤)) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵)))) |
94 | 3, 6, 93 | mp2and 696 |
1
⊢ ((𝑃 ∈ ℙ ∧ (𝐴 ∈ ℚ ∧ 𝐴 ≠ 0) ∧ (𝐵 ∈ ℚ ∧ 𝐵 ≠ 0)) → (𝑃 pCnt (𝐴 · 𝐵)) = ((𝑃 pCnt 𝐴) + (𝑃 pCnt 𝐵))) |