Proof of Theorem isprm2lem
Step | Hyp | Ref
| Expression |
1 | | simplr 520 |
. . . . 5
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → 𝑃 ≠ 1) |
2 | 1 | necomd 2422 |
. . . 4
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → 1 ≠ 𝑃) |
3 | | simpr 109 |
. . . . 5
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) |
4 | | nnz 9210 |
. . . . . . . 8
⊢ (𝑃 ∈ ℕ → 𝑃 ∈
ℤ) |
5 | | 1dvds 11745 |
. . . . . . . 8
⊢ (𝑃 ∈ ℤ → 1 ∥
𝑃) |
6 | 4, 5 | syl 14 |
. . . . . . 7
⊢ (𝑃 ∈ ℕ → 1 ∥
𝑃) |
7 | 6 | ad2antrr 480 |
. . . . . 6
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → 1 ∥
𝑃) |
8 | | 1nn 8868 |
. . . . . . 7
⊢ 1 ∈
ℕ |
9 | | breq1 3985 |
. . . . . . . 8
⊢ (𝑛 = 1 → (𝑛 ∥ 𝑃 ↔ 1 ∥ 𝑃)) |
10 | 9 | elrab3 2883 |
. . . . . . 7
⊢ (1 ∈
ℕ → (1 ∈ {𝑛
∈ ℕ ∣ 𝑛
∥ 𝑃} ↔ 1 ∥
𝑃)) |
11 | 8, 10 | ax-mp 5 |
. . . . . 6
⊢ (1 ∈
{𝑛 ∈ ℕ ∣
𝑛 ∥ 𝑃} ↔ 1 ∥ 𝑃) |
12 | 7, 11 | sylibr 133 |
. . . . 5
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → 1 ∈
{𝑛 ∈ ℕ ∣
𝑛 ∥ 𝑃}) |
13 | | iddvds 11744 |
. . . . . . . 8
⊢ (𝑃 ∈ ℤ → 𝑃 ∥ 𝑃) |
14 | 4, 13 | syl 14 |
. . . . . . 7
⊢ (𝑃 ∈ ℕ → 𝑃 ∥ 𝑃) |
15 | 14 | ad2antrr 480 |
. . . . . 6
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → 𝑃 ∥ 𝑃) |
16 | | breq1 3985 |
. . . . . . . 8
⊢ (𝑛 = 𝑃 → (𝑛 ∥ 𝑃 ↔ 𝑃 ∥ 𝑃)) |
17 | 16 | elrab3 2883 |
. . . . . . 7
⊢ (𝑃 ∈ ℕ → (𝑃 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ↔ 𝑃 ∥ 𝑃)) |
18 | 17 | ad2antrr 480 |
. . . . . 6
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → (𝑃 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ↔ 𝑃 ∥ 𝑃)) |
19 | 15, 18 | mpbird 166 |
. . . . 5
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → 𝑃 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃}) |
20 | | en2eqpr 6873 |
. . . . 5
⊢ (({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o ∧ 1 ∈
{𝑛 ∈ ℕ ∣
𝑛 ∥ 𝑃} ∧ 𝑃 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃}) → (1 ≠ 𝑃 → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃})) |
21 | 3, 12, 19, 20 | syl3anc 1228 |
. . . 4
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → (1 ≠
𝑃 → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃})) |
22 | 2, 21 | mpd 13 |
. . 3
⊢ (((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃}) |
23 | 22 | ex 114 |
. 2
⊢ ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃})) |
24 | | necom 2420 |
. . . 4
⊢ (1 ≠
𝑃 ↔ 𝑃 ≠ 1) |
25 | | pr2ne 7148 |
. . . . . 6
⊢ ((1
∈ ℕ ∧ 𝑃
∈ ℕ) → ({1, 𝑃} ≈ 2o ↔ 1 ≠ 𝑃)) |
26 | 8, 25 | mpan 421 |
. . . . 5
⊢ (𝑃 ∈ ℕ → ({1,
𝑃} ≈ 2o
↔ 1 ≠ 𝑃)) |
27 | 26 | biimpar 295 |
. . . 4
⊢ ((𝑃 ∈ ℕ ∧ 1 ≠
𝑃) → {1, 𝑃} ≈
2o) |
28 | 24, 27 | sylan2br 286 |
. . 3
⊢ ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → {1, 𝑃} ≈
2o) |
29 | | breq1 3985 |
. . 3
⊢ ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃} → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o ↔ {1, 𝑃} ≈
2o)) |
30 | 28, 29 | syl5ibrcom 156 |
. 2
⊢ ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃} → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o)) |
31 | 23, 30 | impbid 128 |
1
⊢ ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o ↔ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃})) |