Step | Hyp | Ref
| Expression |
1 | | pcge0 16491 |
. . . 4
⊢ ((𝑝 ∈ ℙ ∧ 𝐴 ∈ ℤ) → 0 ≤
(𝑝 pCnt 𝐴)) |
2 | 1 | ancoms 458 |
. . 3
⊢ ((𝐴 ∈ ℤ ∧ 𝑝 ∈ ℙ) → 0 ≤
(𝑝 pCnt 𝐴)) |
3 | 2 | ralrimiva 3107 |
. 2
⊢ (𝐴 ∈ ℤ →
∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt 𝐴)) |
4 | | elq 12619 |
. . 3
⊢ (𝐴 ∈ ℚ ↔
∃𝑥 ∈ ℤ
∃𝑦 ∈ ℕ
𝐴 = (𝑥 / 𝑦)) |
5 | | nnz 12272 |
. . . . . . . . . . 11
⊢ (𝑦 ∈ ℕ → 𝑦 ∈
ℤ) |
6 | | dvds0 15909 |
. . . . . . . . . . 11
⊢ (𝑦 ∈ ℤ → 𝑦 ∥ 0) |
7 | 5, 6 | syl 17 |
. . . . . . . . . 10
⊢ (𝑦 ∈ ℕ → 𝑦 ∥ 0) |
8 | 7 | ad2antlr 723 |
. . . . . . . . 9
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 = 0) → 𝑦 ∥ 0) |
9 | | simpr 484 |
. . . . . . . . 9
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 = 0) → 𝑥 = 0) |
10 | 8, 9 | breqtrrd 5098 |
. . . . . . . 8
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 = 0) → 𝑦 ∥ 𝑥) |
11 | 10 | a1d 25 |
. . . . . . 7
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 = 0) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)) → 𝑦 ∥ 𝑥)) |
12 | | simpr 484 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → 𝑝 ∈
ℙ) |
13 | | simplll 771 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → 𝑥 ∈
ℤ) |
14 | | simplr 765 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → 𝑥 ≠ 0) |
15 | | simpllr 772 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → 𝑦 ∈
ℕ) |
16 | | pcdiv 16481 |
. . . . . . . . . . . . 13
⊢ ((𝑝 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑥 ≠ 0) ∧ 𝑦 ∈ ℕ) → (𝑝 pCnt (𝑥 / 𝑦)) = ((𝑝 pCnt 𝑥) − (𝑝 pCnt 𝑦))) |
17 | 12, 13, 14, 15, 16 | syl121anc 1373 |
. . . . . . . . . . . 12
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt (𝑥 / 𝑦)) = ((𝑝 pCnt 𝑥) − (𝑝 pCnt 𝑦))) |
18 | 17 | breq2d 5082 |
. . . . . . . . . . 11
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (0 ≤
(𝑝 pCnt (𝑥 / 𝑦)) ↔ 0 ≤ ((𝑝 pCnt 𝑥) − (𝑝 pCnt 𝑦)))) |
19 | | pczcl 16477 |
. . . . . . . . . . . . . 14
⊢ ((𝑝 ∈ ℙ ∧ (𝑥 ∈ ℤ ∧ 𝑥 ≠ 0)) → (𝑝 pCnt 𝑥) ∈
ℕ0) |
20 | 12, 13, 14, 19 | syl12anc 833 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt 𝑥) ∈
ℕ0) |
21 | 20 | nn0red 12224 |
. . . . . . . . . . . 12
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt 𝑥) ∈ ℝ) |
22 | 12, 15 | pccld 16479 |
. . . . . . . . . . . . 13
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt 𝑦) ∈
ℕ0) |
23 | 22 | nn0red 12224 |
. . . . . . . . . . . 12
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (𝑝 pCnt 𝑦) ∈ ℝ) |
24 | 21, 23 | subge0d 11495 |
. . . . . . . . . . 11
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (0 ≤
((𝑝 pCnt 𝑥) − (𝑝 pCnt 𝑦)) ↔ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
25 | 18, 24 | bitrd 278 |
. . . . . . . . . 10
⊢ ((((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) ∧ 𝑝 ∈ ℙ) → (0 ≤
(𝑝 pCnt (𝑥 / 𝑦)) ↔ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
26 | 25 | ralbidva 3119 |
. . . . . . . . 9
⊢ (((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) ∧ 𝑥 ≠ 0) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)) ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
27 | | id 22 |
. . . . . . . . . . 11
⊢ (𝑥 ∈ ℤ → 𝑥 ∈
ℤ) |
28 | | pc2dvds 16508 |
. . . . . . . . . . 11
⊢ ((𝑦 ∈ ℤ ∧ 𝑥 ∈ ℤ) → (𝑦 ∥ 𝑥 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
29 | 5, 27, 28 | syl2anr 596 |
. . . . . . . . . 10
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) → (𝑦 ∥ 𝑥 ↔ ∀𝑝 ∈ ℙ (𝑝 pCnt 𝑦) ≤ (𝑝 pCnt 𝑥))) |
30 | 29 | adantr 480 |
. . . . . . . . 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 3031 |
. . . . . 6
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) →
(∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt (𝑥 / 𝑦)) → 𝑦 ∥ 𝑥)) |
34 | | nnne0 11937 |
. . . . . . 7
⊢ (𝑦 ∈ ℕ → 𝑦 ≠ 0) |
35 | | simpl 482 |
. . . . . . 7
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) → 𝑥 ∈
ℤ) |
36 | | dvdsval2 15894 |
. . . . . . 7
⊢ ((𝑦 ∈ ℤ ∧ 𝑦 ≠ 0 ∧ 𝑥 ∈ ℤ) → (𝑦 ∥ 𝑥 ↔ (𝑥 / 𝑦) ∈ ℤ)) |
37 | 5, 34, 35, 36 | syl2an23an 1421 |
. . . . . 6
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) → (𝑦 ∥ 𝑥 ↔ (𝑥 / 𝑦) ∈ ℤ)) |
38 | 33, 37 | sylibd 238 |
. . . . 5
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) →
(∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt (𝑥 / 𝑦)) → (𝑥 / 𝑦) ∈ ℤ)) |
39 | | oveq2 7263 |
. . . . . . . 8
⊢ (𝐴 = (𝑥 / 𝑦) → (𝑝 pCnt 𝐴) = (𝑝 pCnt (𝑥 / 𝑦))) |
40 | 39 | breq2d 5082 |
. . . . . . 7
⊢ (𝐴 = (𝑥 / 𝑦) → (0 ≤ (𝑝 pCnt 𝐴) ↔ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)))) |
41 | 40 | ralbidv 3120 |
. . . . . 6
⊢ (𝐴 = (𝑥 / 𝑦) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt 𝐴) ↔ ∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)))) |
42 | | eleq1 2826 |
. . . . . 6
⊢ (𝐴 = (𝑥 / 𝑦) → (𝐴 ∈ ℤ ↔ (𝑥 / 𝑦) ∈ ℤ)) |
43 | 41, 42 | imbi12d 344 |
. . . . 5
⊢ (𝐴 = (𝑥 / 𝑦) → ((∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt 𝐴) → 𝐴 ∈ ℤ) ↔ (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt (𝑥 / 𝑦)) → (𝑥 / 𝑦) ∈ ℤ))) |
44 | 38, 43 | syl5ibrcom 246 |
. . . 4
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℕ) → (𝐴 = (𝑥 / 𝑦) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt 𝐴) → 𝐴 ∈ ℤ))) |
45 | 44 | rexlimivv 3220 |
. . 3
⊢
(∃𝑥 ∈
ℤ ∃𝑦 ∈
ℕ 𝐴 = (𝑥 / 𝑦) → (∀𝑝 ∈ ℙ 0 ≤ (𝑝 pCnt 𝐴) → 𝐴 ∈ ℤ)) |
46 | 4, 45 | sylbi 216 |
. 2
⊢ (𝐴 ∈ ℚ →
(∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt 𝐴) → 𝐴 ∈ ℤ)) |
47 | 3, 46 | impbid2 225 |
1
⊢ (𝐴 ∈ ℚ → (𝐴 ∈ ℤ ↔
∀𝑝 ∈ ℙ 0
≤ (𝑝 pCnt 𝐴))) |