Step | Hyp | Ref
| Expression |
1 | | phival 16468 |
. 2
⊢ (𝑁 ∈ ℕ →
(ϕ‘𝑁) =
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
2 | | fzfi 13692 |
. . . . . . 7
⊢
(1...𝑁) ∈
Fin |
3 | | ssrab2 4013 |
. . . . . . 7
⊢ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ⊆ (1...𝑁) |
4 | | ssfi 8956 |
. . . . . . 7
⊢
(((1...𝑁) ∈ Fin
∧ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ⊆ (1...𝑁)) → {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin) |
5 | 2, 3, 4 | mp2an 689 |
. . . . . 6
⊢ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin |
6 | | hashcl 14071 |
. . . . . 6
⊢ ({𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈
ℕ0) |
7 | 5, 6 | ax-mp 5 |
. . . . 5
⊢
(♯‘{𝑥
∈ (1...𝑁) ∣
(𝑥 gcd 𝑁) = 1}) ∈
ℕ0 |
8 | 7 | nn0zi 12345 |
. . . 4
⊢
(♯‘{𝑥
∈ (1...𝑁) ∣
(𝑥 gcd 𝑁) = 1}) ∈ ℤ |
9 | 8 | a1i 11 |
. . 3
⊢ (𝑁 ∈ ℕ →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ ℤ) |
10 | | 1z 12350 |
. . . . 5
⊢ 1 ∈
ℤ |
11 | | hashsng 14084 |
. . . . 5
⊢ (1 ∈
ℤ → (♯‘{1}) = 1) |
12 | 10, 11 | ax-mp 5 |
. . . 4
⊢
(♯‘{1}) = 1 |
13 | | ovex 7308 |
. . . . . . 7
⊢
(1...𝑁) ∈
V |
14 | 13 | rabex 5256 |
. . . . . 6
⊢ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ V |
15 | | oveq1 7282 |
. . . . . . . . 9
⊢ (𝑥 = 1 → (𝑥 gcd 𝑁) = (1 gcd 𝑁)) |
16 | 15 | eqeq1d 2740 |
. . . . . . . 8
⊢ (𝑥 = 1 → ((𝑥 gcd 𝑁) = 1 ↔ (1 gcd 𝑁) = 1)) |
17 | | eluzfz1 13263 |
. . . . . . . . 9
⊢ (𝑁 ∈
(ℤ≥‘1) → 1 ∈ (1...𝑁)) |
18 | | nnuz 12621 |
. . . . . . . . 9
⊢ ℕ =
(ℤ≥‘1) |
19 | 17, 18 | eleq2s 2857 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ → 1 ∈
(1...𝑁)) |
20 | | nnz 12342 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
21 | | 1gcd 16241 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℤ → (1 gcd
𝑁) = 1) |
22 | 20, 21 | syl 17 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ → (1 gcd
𝑁) = 1) |
23 | 16, 19, 22 | elrabd 3626 |
. . . . . . 7
⊢ (𝑁 ∈ ℕ → 1 ∈
{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) |
24 | 23 | snssd 4742 |
. . . . . 6
⊢ (𝑁 ∈ ℕ → {1}
⊆ {𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) |
25 | | ssdomg 8786 |
. . . . . 6
⊢ ({𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ V → ({1} ⊆ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} → {1} ≼ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
26 | 14, 24, 25 | mpsyl 68 |
. . . . 5
⊢ (𝑁 ∈ ℕ → {1}
≼ {𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) |
27 | | snfi 8834 |
. . . . . 6
⊢ {1}
∈ Fin |
28 | | hashdom 14094 |
. . . . . 6
⊢ (({1}
∈ Fin ∧ {𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin) →
((♯‘{1}) ≤ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ↔ {1} ≼ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
29 | 27, 5, 28 | mp2an 689 |
. . . . 5
⊢
((♯‘{1}) ≤ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ↔ {1} ≼ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) |
30 | 26, 29 | sylibr 233 |
. . . 4
⊢ (𝑁 ∈ ℕ →
(♯‘{1}) ≤ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
31 | 12, 30 | eqbrtrrid 5110 |
. . 3
⊢ (𝑁 ∈ ℕ → 1 ≤
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
32 | | ssdomg 8786 |
. . . . . 6
⊢
((1...𝑁) ∈ V
→ ({𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ⊆ (1...𝑁) → {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ≼ (1...𝑁))) |
33 | 13, 3, 32 | mp2 9 |
. . . . 5
⊢ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ≼ (1...𝑁) |
34 | | hashdom 14094 |
. . . . . 6
⊢ (({𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin ∧ (1...𝑁) ∈ Fin) →
((♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ (♯‘(1...𝑁)) ↔ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ≼ (1...𝑁))) |
35 | 5, 2, 34 | mp2an 689 |
. . . . 5
⊢
((♯‘{𝑥
∈ (1...𝑁) ∣
(𝑥 gcd 𝑁) = 1}) ≤ (♯‘(1...𝑁)) ↔ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ≼ (1...𝑁)) |
36 | 33, 35 | mpbir 230 |
. . . 4
⊢
(♯‘{𝑥
∈ (1...𝑁) ∣
(𝑥 gcd 𝑁) = 1}) ≤ (♯‘(1...𝑁)) |
37 | | nnnn0 12240 |
. . . . 5
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℕ0) |
38 | | hashfz1 14060 |
. . . . 5
⊢ (𝑁 ∈ ℕ0
→ (♯‘(1...𝑁)) = 𝑁) |
39 | 37, 38 | syl 17 |
. . . 4
⊢ (𝑁 ∈ ℕ →
(♯‘(1...𝑁)) =
𝑁) |
40 | 36, 39 | breqtrid 5111 |
. . 3
⊢ (𝑁 ∈ ℕ →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ 𝑁) |
41 | | elfz1 13244 |
. . . 4
⊢ ((1
∈ ℤ ∧ 𝑁
∈ ℤ) → ((♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ (1...𝑁) ↔ ((♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ ℤ ∧ 1 ≤
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∧ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ 𝑁))) |
42 | 10, 20, 41 | sylancr 587 |
. . 3
⊢ (𝑁 ∈ ℕ →
((♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ (1...𝑁) ↔ ((♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ ℤ ∧ 1 ≤
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∧ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ 𝑁))) |
43 | 9, 31, 40, 42 | mpbir3and 1341 |
. 2
⊢ (𝑁 ∈ ℕ →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ (1...𝑁)) |
44 | 1, 43 | eqeltrd 2839 |
1
⊢ (𝑁 ∈ ℕ →
(ϕ‘𝑁) ∈
(1...𝑁)) |