Step | Hyp | Ref
| Expression |
1 | | pcge0 16563 |
. . . 4
⊢ ((𝑝 ∈ ℙ ∧ 𝐴 ∈ ℤ) → 0 ≤
(𝑝 pCnt 𝐴)) |
2 | 1 | ancoms 459 |
. . 3
⊢ ((𝐴 ∈ ℤ ∧ 𝑝 ∈ ℙ) → 0 ≤
(𝑝 pCnt 𝐴)) |
3 | 2 | ralrimiva 3103 |
. 2
⊢ (𝐴 ∈ ℤ →
∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt 𝐴)) |
4 | | elq 12690 |
. . 3
⊢ (𝐴 ∈ ℚ ↔
∃𝑥 ∈ ℤ
∃𝑦 ∈ ℕ
𝐴 = (𝑥 / 𝑦)) |
5 | | nnz 12342 |
. . . . . . . . . . 11
⊢ (𝑦 ∈ ℕ → 𝑦 ∈
ℤ) |
6 | | dvds0 15981 |
. . . . . . . . . . 11
⊢ (𝑦 ∈ ℤ → 𝑦 ∥ 0) |
7 | 5, 6 | syl 17 |
. . . . . . . . . 10
⊢ (𝑦 ∈ ℕ → 𝑦 ∥ 0) |
8 | 7 | ad2antlr 724 |
. . . . . . . . 9
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 = 0) → 𝑦 ∥ 0) |
9 | | simpr 485 |
. . . . . . . . 9
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 = 0) → 𝑥 = 0) |
10 | 8, 9 | breqtrrd 5102 |
. . . . . . . 8
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 = 0) → 𝑦 ∥ 𝑥) |
11 | 10 | a1d 25 |
. . . . . . 7
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 = 0) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)) → 𝑦 ∥ 𝑥)) |
12 | | simpr 485 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → 𝑝 ∈
ℙ) |
13 | | simplll 772 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → 𝑥 ∈
ℤ) |
14 | | simplr 766 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → 𝑥 ≠ 0) |
15 | | simpllr 773 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → 𝑦 ∈
ℕ) |
16 | | pcdiv 16553 |
. . . . . . . . . . . . 13
⊢ ((𝑝 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑥 ≠ 0) ∧ 𝑦 ∈ ℕ) → (𝑝 pCnt (𝑥 / 𝑦)) = ((𝑝 pCnt 𝑥) − (𝑝 pCnt 𝑦))) |
17 | 12, 13, 14, 15, 16 | syl121anc 1374 |
. . . . . . . . . . . 12
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt (𝑥 / 𝑦)) = ((𝑝 pCnt 𝑥) − (𝑝 pCnt 𝑦))) |
18 | 17 | breq2d 5086 |
. . . . . . . . . . 11
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (0 ≤
(𝑝 pCnt (𝑥 / 𝑦)) ↔ 0 ≤ ((𝑝 pCnt 𝑥) − (𝑝 pCnt 𝑦)))) |
19 | | pczcl 16549 |
. . . . . . . . . . . . . 14
⊢ ((𝑝 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑥 ≠ 0)) → (𝑝 pCnt 𝑥) ∈
ℕ0) |
20 | 12, 13, 14, 19 | syl12anc 834 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt 𝑥) ∈
ℕ0) |
21 | 20 | nn0red 12294 |
. . . . . . . . . . . 12
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt 𝑥) ∈ ℝ) |
22 | 12, 15 | pccld 16551 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt 𝑦) ∈
ℕ0) |
23 | 22 | nn0red 12294 |
. . . . . . . . . . . 12
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt 𝑦) ∈ ℝ) |
24 | 21, 23 | subge0d 11565 |
. . . . . . . . . . 11
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (0 ≤
((𝑝 pCnt 𝑥) − (𝑝 pCnt 𝑦)) ↔ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
25 | 18, 24 | bitrd 278 |
. . . . . . . . . 10
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (0 ≤
(𝑝 pCnt (𝑥 / 𝑦)) ↔ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
26 | 25 | ralbidva 3111 |
. . . . . . . . 9
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)) ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
27 | | id 22 |
. . . . . . . . . . 11
⊢ (𝑥 ∈ ℤ → 𝑥 ∈
ℤ) |
28 | | pc2dvds 16580 |
. . . . . . . . . . 11
⊢ ((𝑦 ∈ ℤ ∧ 𝑥 ∈ ℤ) → (𝑦 ∥ 𝑥 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
29 | 5, 27, 28 | syl2anr 597 |
. . . . . . . . . 10
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) → (𝑦 ∥ 𝑥 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
30 | 29 | adantr 481 |
. . . . . . . . 9
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) → (𝑦 ∥ 𝑥 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
31 | 26, 30 | bitr4d 281 |
. . . . . . . 8
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)) ↔ 𝑦 ∥ 𝑥)) |
32 | 31 | biimpd 228 |
. . . . . . 7
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)) → 𝑦 ∥ 𝑥)) |
33 | 11, 32 | pm2.61dane 3032 |
. . . . . 6
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) →
(∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt (𝑥 / 𝑦)) → 𝑦 ∥ 𝑥)) |
34 | | nnne0 12007 |
. . . . . . 7
⊢ (𝑦 ∈ ℕ → 𝑦 ≠ 0) |
35 | | simpl 483 |
. . . . . . 7
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) → 𝑥 ∈
ℤ) |
36 | | dvdsval2 15966 |
. . . . . . 7
⊢ ((𝑦 ∈ ℤ ∧ 𝑦 ≠ 0 ∧ 𝑥 ∈ ℤ) → (𝑦 ∥ 𝑥 ↔ (𝑥 / 𝑦) ∈ ℤ)) |
37 | 5, 34, 35, 36 | syl2an23an 1422 |
. . . . . 6
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) → (𝑦 ∥ 𝑥 ↔ (𝑥 / 𝑦) ∈ ℤ)) |
38 | 33, 37 | sylibd 238 |
. . . . 5
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) →
(∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt (𝑥 / 𝑦)) → (𝑥 / 𝑦) ∈ ℤ)) |
39 | | oveq2 7283 |
. . . . . . . 8
⊢ (𝐴 = (𝑥 / 𝑦) → (𝑝 pCnt 𝐴) = (𝑝 pCnt (𝑥 / 𝑦))) |
40 | 39 | breq2d 5086 |
. . . . . . 7
⊢ (𝐴 = (𝑥 / 𝑦) → (0 ≤ (𝑝 pCnt 𝐴) ↔ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)))) |
41 | 40 | ralbidv 3112 |
. . . . . 6
⊢ (𝐴 = (𝑥 / 𝑦) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt 𝐴) ↔ ∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)))) |
42 | | eleq1 2826 |
. . . . . 6
⊢ (𝐴 = (𝑥 / 𝑦) → (𝐴 ∈ ℤ ↔ (𝑥 / 𝑦) ∈ ℤ)) |
43 | 41, 42 | imbi12d 345 |
. . . . 5
⊢ (𝐴 = (𝑥 / 𝑦) → ((∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt 𝐴) → 𝐴 ∈ ℤ) ↔ (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)) → (𝑥 / 𝑦) ∈ ℤ))) |
44 | 38, 43 | syl5ibrcom 246 |
. . . 4
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) → (𝐴 = (𝑥 / 𝑦) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt 𝐴) → 𝐴 ∈ ℤ))) |
45 | 44 | rexlimivv 3221 |
. . 3
⊢
(∃𝑥 ∈
ℤ ∃𝑦 ∈
ℕ 𝐴 = (𝑥 / 𝑦) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt 𝐴) → 𝐴 ∈ ℤ)) |
46 | 4, 45 | sylbi 216 |
. 2
⊢ (𝐴 ∈ ℚ →
(∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt 𝐴) → 𝐴 ∈ ℤ)) |
47 | 3, 46 | impbid2 225 |
1
⊢ (𝐴 ∈ ℚ → (𝐴 ∈ ℤ ↔
∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt 𝐴))) |