Step | Hyp | Ref
| Expression |
1 | | phival 12167 |
. 2
⊢ (𝑁 ∈ ℕ →
(ϕ‘𝑁) =
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
2 | | phivalfi 12166 |
. . . . 5
⊢ (𝑁 ∈ ℕ → {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin) |
3 | | hashcl 10715 |
. . . . 5
⊢ ({𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈
ℕ0) |
4 | 2, 3 | syl 14 |
. . . 4
⊢ (𝑁 ∈ ℕ →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈
ℕ0) |
5 | 4 | nn0zd 9332 |
. . 3
⊢ (𝑁 ∈ ℕ →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ ℤ) |
6 | | 1z 9238 |
. . . . 5
⊢ 1 ∈
ℤ |
7 | | hashsng 10733 |
. . . . 5
⊢ (1 ∈
ℤ → (♯‘{1}) = 1) |
8 | 6, 7 | ax-mp 5 |
. . . 4
⊢
(♯‘{1}) = 1 |
9 | | eluzfz1 9987 |
. . . . . . . . 9
⊢ (𝑁 ∈
(ℤ≥‘1) → 1 ∈ (1...𝑁)) |
10 | | nnuz 9522 |
. . . . . . . . 9
⊢ ℕ =
(ℤ≥‘1) |
11 | 9, 10 | eleq2s 2265 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ → 1 ∈
(1...𝑁)) |
12 | | nnz 9231 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
13 | | 1gcd 11947 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℤ → (1 gcd
𝑁) = 1) |
14 | 12, 13 | syl 14 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ → (1 gcd
𝑁) = 1) |
15 | | oveq1 5860 |
. . . . . . . . . 10
⊢ (𝑥 = 1 → (𝑥 gcd 𝑁) = (1 gcd 𝑁)) |
16 | 15 | eqeq1d 2179 |
. . . . . . . . 9
⊢ (𝑥 = 1 → ((𝑥 gcd 𝑁) = 1 ↔ (1 gcd 𝑁) = 1)) |
17 | 16 | elrab 2886 |
. . . . . . . 8
⊢ (1 ∈
{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ↔ (1 ∈ (1...𝑁) ∧ (1 gcd 𝑁) = 1)) |
18 | 11, 14, 17 | sylanbrc 415 |
. . . . . . 7
⊢ (𝑁 ∈ ℕ → 1 ∈
{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) |
19 | 18 | snssd 3725 |
. . . . . 6
⊢ (𝑁 ∈ ℕ → {1}
⊆ {𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) |
20 | | ssdomg 6756 |
. . . . . 6
⊢ ({𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin → ({1} ⊆ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} → {1} ≼ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
21 | 2, 19, 20 | sylc 62 |
. . . . 5
⊢ (𝑁 ∈ ℕ → {1}
≼ {𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) |
22 | | 1nn 8889 |
. . . . . . 7
⊢ 1 ∈
ℕ |
23 | | snfig 6792 |
. . . . . . 7
⊢ (1 ∈
ℕ → {1} ∈ Fin) |
24 | 22, 23 | ax-mp 5 |
. . . . . 6
⊢ {1}
∈ Fin |
25 | | fihashdom 10738 |
. . . . . 6
⊢ (({1}
∈ Fin ∧ {𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin) →
((♯‘{1}) ≤ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ↔ {1} ≼ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
26 | 24, 2, 25 | sylancr 412 |
. . . . 5
⊢ (𝑁 ∈ ℕ →
((♯‘{1}) ≤ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ↔ {1} ≼ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
27 | 21, 26 | mpbird 166 |
. . . 4
⊢ (𝑁 ∈ ℕ →
(♯‘{1}) ≤ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
28 | 8, 27 | eqbrtrrid 4025 |
. . 3
⊢ (𝑁 ∈ ℕ → 1 ≤
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1})) |
29 | | 1zzd 9239 |
. . . . . . 7
⊢ (𝑁 ∈ ℕ → 1 ∈
ℤ) |
30 | 29, 12 | fzfigd 10387 |
. . . . . 6
⊢ (𝑁 ∈ ℕ →
(1...𝑁) ∈
Fin) |
31 | | ssrab2 3232 |
. . . . . 6
⊢ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ⊆ (1...𝑁) |
32 | | ssdomg 6756 |
. . . . . 6
⊢
((1...𝑁) ∈ Fin
→ ({𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ⊆ (1...𝑁) → {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ≼ (1...𝑁))) |
33 | 30, 31, 32 | mpisyl 1439 |
. . . . 5
⊢ (𝑁 ∈ ℕ → {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ≼ (1...𝑁)) |
34 | | fihashdom 10738 |
. . . . . 6
⊢ (({𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ∈ Fin ∧ (1...𝑁) ∈ Fin) →
((♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ (♯‘(1...𝑁)) ↔ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ≼ (1...𝑁))) |
35 | 2, 30, 34 | syl2anc 409 |
. . . . 5
⊢ (𝑁 ∈ ℕ →
((♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ (♯‘(1...𝑁)) ↔ {𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1} ≼ (1...𝑁))) |
36 | 33, 35 | mpbird 166 |
. . . 4
⊢ (𝑁 ∈ ℕ →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ (♯‘(1...𝑁))) |
37 | | nnnn0 9142 |
. . . . 5
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℕ0) |
38 | | hashfz1 10717 |
. . . . 5
⊢ (𝑁 ∈ ℕ0
→ (♯‘(1...𝑁)) = 𝑁) |
39 | 37, 38 | syl 14 |
. . . 4
⊢ (𝑁 ∈ ℕ →
(♯‘(1...𝑁)) =
𝑁) |
40 | 36, 39 | breqtrd 4015 |
. . 3
⊢ (𝑁 ∈ ℕ →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ 𝑁) |
41 | | elfz1 9970 |
. . . 4
⊢ ((1
∈ ℤ ∧ 𝑁
∈ ℤ) → ((♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ (1...𝑁) ↔ ((♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ ℤ ∧ 1 ≤
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∧ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ 𝑁))) |
42 | 6, 12, 41 | sylancr 412 |
. . 3
⊢ (𝑁 ∈ ℕ →
((♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ (1...𝑁) ↔ ((♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ ℤ ∧ 1 ≤
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∧ (♯‘{𝑥 ∈ (1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ≤ 𝑁))) |
43 | 5, 28, 40, 42 | mpbir3and 1175 |
. 2
⊢ (𝑁 ∈ ℕ →
(♯‘{𝑥 ∈
(1...𝑁) ∣ (𝑥 gcd 𝑁) = 1}) ∈ (1...𝑁)) |
44 | 1, 43 | eqeltrd 2247 |
1
⊢ (𝑁 ∈ ℕ →
(ϕ‘𝑁) ∈
(1...𝑁)) |