Proof of Theorem eulerpartlemv
Step | Hyp | Ref
| Expression |
1 | | eulerpart.p |
. . 3
⊢ 𝑃 = {𝑓 ∈ (ℕ0
↑m ℕ) ∣ ((◡𝑓 “ ℕ) ∈ Fin ∧
Σ𝑘 ∈ ℕ
((𝑓‘𝑘) · 𝑘) = 𝑁)} |
2 | 1 | eulerpartleme 32330 |
. 2
⊢ (𝐴 ∈ 𝑃 ↔ (𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin ∧
Σ𝑘 ∈ ℕ
((𝐴‘𝑘) · 𝑘) = 𝑁)) |
3 | | cnvimass 5989 |
. . . . . . . . 9
⊢ (◡𝐴 “ ℕ) ⊆ dom 𝐴 |
4 | | fdm 6609 |
. . . . . . . . 9
⊢ (𝐴:ℕ⟶ℕ0 →
dom 𝐴 =
ℕ) |
5 | 3, 4 | sseqtrid 3973 |
. . . . . . . 8
⊢ (𝐴:ℕ⟶ℕ0 →
(◡𝐴 “ ℕ) ⊆
ℕ) |
6 | | simpl 483 |
. . . . . . . . . . 11
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (◡𝐴 “ ℕ)) → 𝐴:ℕ⟶ℕ0) |
7 | 5 | sselda 3921 |
. . . . . . . . . . 11
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (◡𝐴 “ ℕ)) → 𝑘 ∈ ℕ) |
8 | 6, 7 | ffvelrnd 6962 |
. . . . . . . . . 10
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (◡𝐴 “ ℕ)) → (𝐴‘𝑘) ∈
ℕ0) |
9 | 7 | nnnn0d 12293 |
. . . . . . . . . 10
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (◡𝐴 “ ℕ)) → 𝑘 ∈ ℕ0) |
10 | 8, 9 | nn0mulcld 12298 |
. . . . . . . . 9
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (◡𝐴 “ ℕ)) → ((𝐴‘𝑘) · 𝑘) ∈
ℕ0) |
11 | 10 | nn0cnd 12295 |
. . . . . . . 8
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (◡𝐴 “ ℕ)) → ((𝐴‘𝑘) · 𝑘) ∈ ℂ) |
12 | | simpr 485 |
. . . . . . . . . . . . 13
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → 𝑘 ∈ (ℕ ∖ (◡𝐴 “ ℕ))) |
13 | 12 | eldifad 3899 |
. . . . . . . . . . . 12
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → 𝑘 ∈
ℕ) |
14 | 12 | eldifbd 3900 |
. . . . . . . . . . . . . 14
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → ¬ 𝑘 ∈ (◡𝐴 “ ℕ)) |
15 | | simpl 483 |
. . . . . . . . . . . . . . 15
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → 𝐴:ℕ⟶ℕ0) |
16 | | ffn 6600 |
. . . . . . . . . . . . . . 15
⊢ (𝐴:ℕ⟶ℕ0 →
𝐴 Fn
ℕ) |
17 | | elpreima 6935 |
. . . . . . . . . . . . . . 15
⊢ (𝐴 Fn ℕ → (𝑘 ∈ (◡𝐴 “ ℕ) ↔ (𝑘 ∈ ℕ ∧ (𝐴‘𝑘) ∈ ℕ))) |
18 | 15, 16, 17 | 3syl 18 |
. . . . . . . . . . . . . 14
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → (𝑘 ∈ (◡𝐴 “ ℕ) ↔ (𝑘 ∈ ℕ ∧ (𝐴‘𝑘) ∈ ℕ))) |
19 | 14, 18 | mtbid 324 |
. . . . . . . . . . . . 13
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → ¬ (𝑘 ∈ ℕ ∧ (𝐴‘𝑘) ∈ ℕ)) |
20 | | imnan 400 |
. . . . . . . . . . . . 13
⊢ ((𝑘 ∈ ℕ → ¬
(𝐴‘𝑘) ∈ ℕ) ↔ ¬ (𝑘 ∈ ℕ ∧ (𝐴‘𝑘) ∈ ℕ)) |
21 | 19, 20 | sylibr 233 |
. . . . . . . . . . . 12
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → (𝑘 ∈ ℕ → ¬
(𝐴‘𝑘) ∈ ℕ)) |
22 | 13, 21 | mpd 15 |
. . . . . . . . . . 11
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → ¬ (𝐴‘𝑘) ∈ ℕ) |
23 | 15, 13 | ffvelrnd 6962 |
. . . . . . . . . . . 12
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → (𝐴‘𝑘) ∈
ℕ0) |
24 | | elnn0 12235 |
. . . . . . . . . . . 12
⊢ ((𝐴‘𝑘) ∈ ℕ0 ↔ ((𝐴‘𝑘) ∈ ℕ ∨ (𝐴‘𝑘) = 0)) |
25 | 23, 24 | sylib 217 |
. . . . . . . . . . 11
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → ((𝐴‘𝑘) ∈ ℕ ∨ (𝐴‘𝑘) = 0)) |
26 | | orel1 886 |
. . . . . . . . . . 11
⊢ (¬
(𝐴‘𝑘) ∈ ℕ → (((𝐴‘𝑘) ∈ ℕ ∨ (𝐴‘𝑘) = 0) → (𝐴‘𝑘) = 0)) |
27 | 22, 25, 26 | sylc 65 |
. . . . . . . . . 10
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → (𝐴‘𝑘) = 0) |
28 | 27 | oveq1d 7290 |
. . . . . . . . 9
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → ((𝐴‘𝑘) · 𝑘) = (0 · 𝑘)) |
29 | 13 | nncnd 11989 |
. . . . . . . . . 10
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → 𝑘 ∈
ℂ) |
30 | 29 | mul02d 11173 |
. . . . . . . . 9
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → (0 · 𝑘) = 0) |
31 | 28, 30 | eqtrd 2778 |
. . . . . . . 8
⊢ ((𝐴:ℕ⟶ℕ0 ∧
𝑘 ∈ (ℕ ∖
(◡𝐴 “ ℕ))) → ((𝐴‘𝑘) · 𝑘) = 0) |
32 | | nnuz 12621 |
. . . . . . . . . 10
⊢ ℕ =
(ℤ≥‘1) |
33 | 32 | eqimssi 3979 |
. . . . . . . . 9
⊢ ℕ
⊆ (ℤ≥‘1) |
34 | 33 | a1i 11 |
. . . . . . . 8
⊢ (𝐴:ℕ⟶ℕ0 →
ℕ ⊆ (ℤ≥‘1)) |
35 | 5, 11, 31, 34 | sumss 15436 |
. . . . . . 7
⊢ (𝐴:ℕ⟶ℕ0 →
Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘) = Σ𝑘 ∈ ℕ ((𝐴‘𝑘) · 𝑘)) |
36 | 35 | eqcomd 2744 |
. . . . . 6
⊢ (𝐴:ℕ⟶ℕ0 →
Σ𝑘 ∈ ℕ
((𝐴‘𝑘) · 𝑘) = Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘)) |
37 | 36 | adantr 481 |
. . . . 5
⊢ ((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin) →
Σ𝑘 ∈ ℕ
((𝐴‘𝑘) · 𝑘) = Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘)) |
38 | 37 | eqeq1d 2740 |
. . . 4
⊢ ((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin) →
(Σ𝑘 ∈ ℕ
((𝐴‘𝑘) · 𝑘) = 𝑁 ↔ Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘) = 𝑁)) |
39 | 38 | pm5.32i 575 |
. . 3
⊢ (((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin) ∧
Σ𝑘 ∈ ℕ
((𝐴‘𝑘) · 𝑘) = 𝑁) ↔ ((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin) ∧
Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘) = 𝑁)) |
40 | | df-3an 1088 |
. . 3
⊢ ((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin ∧
Σ𝑘 ∈ ℕ
((𝐴‘𝑘) · 𝑘) = 𝑁) ↔ ((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin) ∧
Σ𝑘 ∈ ℕ
((𝐴‘𝑘) · 𝑘) = 𝑁)) |
41 | | df-3an 1088 |
. . 3
⊢ ((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin ∧
Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘) = 𝑁) ↔ ((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin) ∧
Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘) = 𝑁)) |
42 | 39, 40, 41 | 3bitr4i 303 |
. 2
⊢ ((𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin ∧
Σ𝑘 ∈ ℕ
((𝐴‘𝑘) · 𝑘) = 𝑁) ↔ (𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin ∧
Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘) = 𝑁)) |
43 | 2, 42 | bitri 274 |
1
⊢ (𝐴 ∈ 𝑃 ↔ (𝐴:ℕ⟶ℕ0 ∧
(◡𝐴 “ ℕ) ∈ Fin ∧
Σ𝑘 ∈ (◡𝐴 “ ℕ)((𝐴‘𝑘) · 𝑘) = 𝑁)) |