Step | Hyp | Ref
| Expression |
1 | | 1nprm 12046 |
. . . . 5
⊢ ¬ 1
∈ ℙ |
2 | | eleq1 2229 |
. . . . . 6
⊢ (𝑃 = 1 → (𝑃 ∈ ℙ ↔ 1 ∈
ℙ)) |
3 | 2 | biimpcd 158 |
. . . . 5
⊢ (𝑃 ∈ ℙ → (𝑃 = 1 → 1 ∈
ℙ)) |
4 | 1, 3 | mtoi 654 |
. . . 4
⊢ (𝑃 ∈ ℙ → ¬
𝑃 = 1) |
5 | 4 | neqned 2343 |
. . 3
⊢ (𝑃 ∈ ℙ → 𝑃 ≠ 1) |
6 | 5 | pm4.71i 389 |
. 2
⊢ (𝑃 ∈ ℙ ↔ (𝑃 ∈ ℙ ∧ 𝑃 ≠ 1)) |
7 | | isprm 12041 |
. . . 4
⊢ (𝑃 ∈ ℙ ↔ (𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o)) |
8 | | isprm2lem 12048 |
. . . . . . 7
⊢ ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o ↔ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃})) |
9 | | eqss 3157 |
. . . . . . . . . . 11
⊢ ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃} ↔ ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃} ∧ {1, 𝑃} ⊆ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃})) |
10 | 9 | imbi2i 225 |
. . . . . . . . . 10
⊢ ((𝑃 ∈ ℕ → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃}) ↔ (𝑃 ∈ ℕ → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃} ∧ {1, 𝑃} ⊆ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃}))) |
11 | | 1idssfct 12047 |
. . . . . . . . . . 11
⊢ (𝑃 ∈ ℕ → {1, 𝑃} ⊆ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃}) |
12 | | jcab 593 |
. . . . . . . . . . 11
⊢ ((𝑃 ∈ ℕ → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃} ∧ {1, 𝑃} ⊆ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃})) ↔ ((𝑃 ∈ ℕ → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}) ∧ (𝑃 ∈ ℕ → {1, 𝑃} ⊆ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃}))) |
13 | 11, 12 | mpbiran2 931 |
. . . . . . . . . 10
⊢ ((𝑃 ∈ ℕ → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃} ∧ {1, 𝑃} ⊆ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃})) ↔ (𝑃 ∈ ℕ → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃})) |
14 | 10, 13 | bitri 183 |
. . . . . . . . 9
⊢ ((𝑃 ∈ ℕ → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃}) ↔ (𝑃 ∈ ℕ → {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃})) |
15 | 14 | pm5.74ri 180 |
. . . . . . . 8
⊢ (𝑃 ∈ ℕ → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃} ↔ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃})) |
16 | 15 | adantr 274 |
. . . . . . 7
⊢ ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} = {1, 𝑃} ↔ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃})) |
17 | 8, 16 | bitrd 187 |
. . . . . 6
⊢ ((𝑃 ∈ ℕ ∧ 𝑃 ≠ 1) → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o ↔ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃})) |
18 | 17 | expcom 115 |
. . . . 5
⊢ (𝑃 ≠ 1 → (𝑃 ∈ ℕ → ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o ↔ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}))) |
19 | 18 | pm5.32d 446 |
. . . 4
⊢ (𝑃 ≠ 1 → ((𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ≈ 2o) ↔ (𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}))) |
20 | 7, 19 | syl5bb 191 |
. . 3
⊢ (𝑃 ≠ 1 → (𝑃 ∈ ℙ ↔ (𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}))) |
21 | 20 | pm5.32ri 451 |
. 2
⊢ ((𝑃 ∈ ℙ ∧ 𝑃 ≠ 1) ↔ ((𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}) ∧ 𝑃 ≠ 1)) |
22 | | ancom 264 |
. . . 4
⊢ (((𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}) ∧ 𝑃 ≠ 1) ↔ (𝑃 ≠ 1 ∧ (𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}))) |
23 | | anass 399 |
. . . 4
⊢ (((𝑃 ≠ 1 ∧ 𝑃 ∈ ℕ) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}) ↔ (𝑃 ≠ 1 ∧ (𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}))) |
24 | 22, 23 | bitr4i 186 |
. . 3
⊢ (((𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}) ∧ 𝑃 ≠ 1) ↔ ((𝑃 ≠ 1 ∧ 𝑃 ∈ ℕ) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃})) |
25 | | ancom 264 |
. . . . 5
⊢ ((𝑃 ≠ 1 ∧ 𝑃 ∈ ℕ) ↔ (𝑃 ∈ ℕ ∧ 𝑃 ≠ 1)) |
26 | | eluz2b3 9542 |
. . . . 5
⊢ (𝑃 ∈
(ℤ≥‘2) ↔ (𝑃 ∈ ℕ ∧ 𝑃 ≠ 1)) |
27 | 25, 26 | bitr4i 186 |
. . . 4
⊢ ((𝑃 ≠ 1 ∧ 𝑃 ∈ ℕ) ↔ 𝑃 ∈
(ℤ≥‘2)) |
28 | 27 | anbi1i 454 |
. . 3
⊢ (((𝑃 ≠ 1 ∧ 𝑃 ∈ ℕ) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}) ↔ (𝑃 ∈ (ℤ≥‘2)
∧ {𝑛 ∈ ℕ
∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃})) |
29 | | dfss2 3131 |
. . . . 5
⊢ ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃} ↔ ∀𝑧(𝑧 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} → 𝑧 ∈ {1, 𝑃})) |
30 | | breq1 3985 |
. . . . . . . . . 10
⊢ (𝑛 = 𝑧 → (𝑛 ∥ 𝑃 ↔ 𝑧 ∥ 𝑃)) |
31 | 30 | elrab 2882 |
. . . . . . . . 9
⊢ (𝑧 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ↔ (𝑧 ∈ ℕ ∧ 𝑧 ∥ 𝑃)) |
32 | | vex 2729 |
. . . . . . . . . 10
⊢ 𝑧 ∈ V |
33 | 32 | elpr 3597 |
. . . . . . . . 9
⊢ (𝑧 ∈ {1, 𝑃} ↔ (𝑧 = 1 ∨ 𝑧 = 𝑃)) |
34 | 31, 33 | imbi12i 238 |
. . . . . . . 8
⊢ ((𝑧 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} → 𝑧 ∈ {1, 𝑃}) ↔ ((𝑧 ∈ ℕ ∧ 𝑧 ∥ 𝑃) → (𝑧 = 1 ∨ 𝑧 = 𝑃))) |
35 | | impexp 261 |
. . . . . . . 8
⊢ (((𝑧 ∈ ℕ ∧ 𝑧 ∥ 𝑃) → (𝑧 = 1 ∨ 𝑧 = 𝑃)) ↔ (𝑧 ∈ ℕ → (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃)))) |
36 | 34, 35 | bitri 183 |
. . . . . . 7
⊢ ((𝑧 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} → 𝑧 ∈ {1, 𝑃}) ↔ (𝑧 ∈ ℕ → (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃)))) |
37 | 36 | albii 1458 |
. . . . . 6
⊢
(∀𝑧(𝑧 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} → 𝑧 ∈ {1, 𝑃}) ↔ ∀𝑧(𝑧 ∈ ℕ → (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃)))) |
38 | | df-ral 2449 |
. . . . . 6
⊢
(∀𝑧 ∈
ℕ (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃)) ↔ ∀𝑧(𝑧 ∈ ℕ → (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃)))) |
39 | 37, 38 | bitr4i 186 |
. . . . 5
⊢
(∀𝑧(𝑧 ∈ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} → 𝑧 ∈ {1, 𝑃}) ↔ ∀𝑧 ∈ ℕ (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃))) |
40 | 29, 39 | bitri 183 |
. . . 4
⊢ ({𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃} ↔ ∀𝑧 ∈ ℕ (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃))) |
41 | 40 | anbi2i 453 |
. . 3
⊢ ((𝑃 ∈
(ℤ≥‘2) ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}) ↔ (𝑃 ∈ (ℤ≥‘2)
∧ ∀𝑧 ∈
ℕ (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃)))) |
42 | 24, 28, 41 | 3bitri 205 |
. 2
⊢ (((𝑃 ∈ ℕ ∧ {𝑛 ∈ ℕ ∣ 𝑛 ∥ 𝑃} ⊆ {1, 𝑃}) ∧ 𝑃 ≠ 1) ↔ (𝑃 ∈ (ℤ≥‘2)
∧ ∀𝑧 ∈
ℕ (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃)))) |
43 | 6, 21, 42 | 3bitri 205 |
1
⊢ (𝑃 ∈ ℙ ↔ (𝑃 ∈
(ℤ≥‘2) ∧ ∀𝑧 ∈ ℕ (𝑧 ∥ 𝑃 → (𝑧 = 1 ∨ 𝑧 = 𝑃)))) |