Step | Hyp | Ref
| Expression |
1 | | birthday.t |
. . . . . . 7
⊢ 𝑇 = {𝑓 ∣ 𝑓:(1...𝐾)–1-1→(1...𝑁)} |
2 | 1 | fveq2i 6777 |
. . . . . 6
⊢
(♯‘𝑇) =
(♯‘{𝑓 ∣
𝑓:(1...𝐾)–1-1→(1...𝑁)}) |
3 | | fzfi 13692 |
. . . . . . 7
⊢
(1...𝐾) ∈
Fin |
4 | | fzfi 13692 |
. . . . . . 7
⊢
(1...𝑁) ∈
Fin |
5 | | hashf1 14171 |
. . . . . . 7
⊢
(((1...𝐾) ∈ Fin
∧ (1...𝑁) ∈ Fin)
→ (♯‘{𝑓
∣ 𝑓:(1...𝐾)–1-1→(1...𝑁)}) = ((!‘(♯‘(1...𝐾))) ·
((♯‘(1...𝑁))C(♯‘(1...𝐾))))) |
6 | 3, 4, 5 | mp2an 689 |
. . . . . 6
⊢
(♯‘{𝑓
∣ 𝑓:(1...𝐾)–1-1→(1...𝑁)}) = ((!‘(♯‘(1...𝐾))) ·
((♯‘(1...𝑁))C(♯‘(1...𝐾)))) |
7 | 2, 6 | eqtri 2766 |
. . . . 5
⊢
(♯‘𝑇) =
((!‘(♯‘(1...𝐾))) · ((♯‘(1...𝑁))C(♯‘(1...𝐾)))) |
8 | | elfznn0 13349 |
. . . . . . . . 9
⊢ (𝐾 ∈ (0...𝑁) → 𝐾 ∈
ℕ0) |
9 | 8 | adantl 482 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈
ℕ0) |
10 | | hashfz1 14060 |
. . . . . . . 8
⊢ (𝐾 ∈ ℕ0
→ (♯‘(1...𝐾)) = 𝐾) |
11 | 9, 10 | syl 17 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (♯‘(1...𝐾)) = 𝐾) |
12 | 11 | fveq2d 6778 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘(♯‘(1...𝐾))) = (!‘𝐾)) |
13 | | nnnn0 12240 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℕ0) |
14 | | hashfz1 14060 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ0
→ (♯‘(1...𝑁)) = 𝑁) |
15 | 13, 14 | syl 17 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ →
(♯‘(1...𝑁)) =
𝑁) |
16 | 15 | adantr 481 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (♯‘(1...𝑁)) = 𝑁) |
17 | 16, 11 | oveq12d 7293 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((♯‘(1...𝑁))C(♯‘(1...𝐾))) = (𝑁C𝐾)) |
18 | 12, 17 | oveq12d 7293 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) →
((!‘(♯‘(1...𝐾))) · ((♯‘(1...𝑁))C(♯‘(1...𝐾)))) = ((!‘𝐾) · (𝑁C𝐾))) |
19 | 7, 18 | eqtrid 2790 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (♯‘𝑇) = ((!‘𝐾) · (𝑁C𝐾))) |
20 | 13 | adantr 481 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈
ℕ0) |
21 | 20 | faccld 13998 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) ∈ ℕ) |
22 | 21 | nncnd 11989 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) ∈ ℂ) |
23 | | fznn0sub 13288 |
. . . . . . . . . 10
⊢ (𝐾 ∈ (0...𝑁) → (𝑁 − 𝐾) ∈
ℕ0) |
24 | 23 | adantl 482 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝐾) ∈
ℕ0) |
25 | 24 | faccld 13998 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘(𝑁 − 𝐾)) ∈ ℕ) |
26 | 25 | nncnd 11989 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘(𝑁 − 𝐾)) ∈ ℂ) |
27 | 25 | nnne0d 12023 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘(𝑁 − 𝐾)) ≠ 0) |
28 | 22, 26, 27 | divcld 11751 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((!‘𝑁) / (!‘(𝑁 − 𝐾))) ∈ ℂ) |
29 | 9 | faccld 13998 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) ∈ ℕ) |
30 | 29 | nncnd 11989 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) ∈ ℂ) |
31 | 29 | nnne0d 12023 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) ≠ 0) |
32 | 28, 30, 31 | divcan2d 11753 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((!‘𝐾) · (((!‘𝑁) / (!‘(𝑁 − 𝐾))) / (!‘𝐾))) = ((!‘𝑁) / (!‘(𝑁 − 𝐾)))) |
33 | | bcval2 14019 |
. . . . . . . 8
⊢ (𝐾 ∈ (0...𝑁) → (𝑁C𝐾) = ((!‘𝑁) / ((!‘(𝑁 − 𝐾)) · (!‘𝐾)))) |
34 | 33 | adantl 482 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁C𝐾) = ((!‘𝑁) / ((!‘(𝑁 − 𝐾)) · (!‘𝐾)))) |
35 | 22, 26, 30, 27, 31 | divdiv1d 11782 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (((!‘𝑁) / (!‘(𝑁 − 𝐾))) / (!‘𝐾)) = ((!‘𝑁) / ((!‘(𝑁 − 𝐾)) · (!‘𝐾)))) |
36 | 34, 35 | eqtr4d 2781 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁C𝐾) = (((!‘𝑁) / (!‘(𝑁 − 𝐾))) / (!‘𝐾))) |
37 | 36 | oveq2d 7291 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((!‘𝐾) · (𝑁C𝐾)) = ((!‘𝐾) · (((!‘𝑁) / (!‘(𝑁 − 𝐾))) / (!‘𝐾)))) |
38 | | fzfid 13693 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (1...𝑁) ∈ Fin) |
39 | | elfznn 13285 |
. . . . . . . . . 10
⊢ (𝑛 ∈ (1...𝑁) → 𝑛 ∈ ℕ) |
40 | 39 | adantl 482 |
. . . . . . . . 9
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (1...𝑁)) → 𝑛 ∈ ℕ) |
41 | | nnrp 12741 |
. . . . . . . . . . 11
⊢ (𝑛 ∈ ℕ → 𝑛 ∈
ℝ+) |
42 | 41 | relogcld 25778 |
. . . . . . . . . 10
⊢ (𝑛 ∈ ℕ →
(log‘𝑛) ∈
ℝ) |
43 | 42 | recnd 11003 |
. . . . . . . . 9
⊢ (𝑛 ∈ ℕ →
(log‘𝑛) ∈
ℂ) |
44 | 40, 43 | syl 17 |
. . . . . . . 8
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (1...𝑁)) → (log‘𝑛) ∈ ℂ) |
45 | 38, 44 | fsumcl 15445 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (1...𝑁)(log‘𝑛) ∈ ℂ) |
46 | | fzfid 13693 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (1...(𝑁 − 𝐾)) ∈ Fin) |
47 | | elfznn 13285 |
. . . . . . . . . 10
⊢ (𝑛 ∈ (1...(𝑁 − 𝐾)) → 𝑛 ∈ ℕ) |
48 | 47 | adantl 482 |
. . . . . . . . 9
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (1...(𝑁 − 𝐾))) → 𝑛 ∈ ℕ) |
49 | 48, 43 | syl 17 |
. . . . . . . 8
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (1...(𝑁 − 𝐾))) → (log‘𝑛) ∈ ℂ) |
50 | 46, 49 | fsumcl 15445 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛) ∈ ℂ) |
51 | | efsub 15809 |
. . . . . . 7
⊢
((Σ𝑛 ∈
(1...𝑁)(log‘𝑛) ∈ ℂ ∧
Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛) ∈ ℂ) →
(exp‘(Σ𝑛 ∈
(1...𝑁)(log‘𝑛) − Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛))) = ((exp‘Σ𝑛 ∈ (1...𝑁)(log‘𝑛)) / (exp‘Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛)))) |
52 | 45, 50, 51 | syl2anc 584 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (exp‘(Σ𝑛 ∈ (1...𝑁)(log‘𝑛) − Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛))) = ((exp‘Σ𝑛 ∈ (1...𝑁)(log‘𝑛)) / (exp‘Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛)))) |
53 | 24 | nn0red 12294 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝐾) ∈ ℝ) |
54 | 53 | ltp1d 11905 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝐾) < ((𝑁 − 𝐾) + 1)) |
55 | | fzdisj 13283 |
. . . . . . . . . . 11
⊢ ((𝑁 − 𝐾) < ((𝑁 − 𝐾) + 1) → ((1...(𝑁 − 𝐾)) ∩ (((𝑁 − 𝐾) + 1)...𝑁)) = ∅) |
56 | 54, 55 | syl 17 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((1...(𝑁 − 𝐾)) ∩ (((𝑁 − 𝐾) + 1)...𝑁)) = ∅) |
57 | | fznn0sub2 13363 |
. . . . . . . . . . . . . . . 16
⊢ (𝐾 ∈ (0...𝑁) → (𝑁 − 𝐾) ∈ (0...𝑁)) |
58 | 57 | adantl 482 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝐾) ∈ (0...𝑁)) |
59 | | elfzle2 13260 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 − 𝐾) ∈ (0...𝑁) → (𝑁 − 𝐾) ≤ 𝑁) |
60 | 58, 59 | syl 17 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝐾) ≤ 𝑁) |
61 | 60 | adantr 481 |
. . . . . . . . . . . . 13
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) ∈ ℕ) → (𝑁 − 𝐾) ≤ 𝑁) |
62 | | simpr 485 |
. . . . . . . . . . . . . . 15
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) ∈ ℕ) → (𝑁 − 𝐾) ∈ ℕ) |
63 | | nnuz 12621 |
. . . . . . . . . . . . . . 15
⊢ ℕ =
(ℤ≥‘1) |
64 | 62, 63 | eleqtrdi 2849 |
. . . . . . . . . . . . . 14
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) ∈ ℕ) → (𝑁 − 𝐾) ∈
(ℤ≥‘1)) |
65 | | nnz 12342 |
. . . . . . . . . . . . . . 15
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
66 | 65 | ad2antrr 723 |
. . . . . . . . . . . . . 14
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) ∈ ℕ) → 𝑁 ∈ ℤ) |
67 | | elfz5 13248 |
. . . . . . . . . . . . . 14
⊢ (((𝑁 − 𝐾) ∈ (ℤ≥‘1)
∧ 𝑁 ∈ ℤ)
→ ((𝑁 − 𝐾) ∈ (1...𝑁) ↔ (𝑁 − 𝐾) ≤ 𝑁)) |
68 | 64, 66, 67 | syl2anc 584 |
. . . . . . . . . . . . 13
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) ∈ ℕ) → ((𝑁 − 𝐾) ∈ (1...𝑁) ↔ (𝑁 − 𝐾) ≤ 𝑁)) |
69 | 61, 68 | mpbird 256 |
. . . . . . . . . . . 12
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) ∈ ℕ) → (𝑁 − 𝐾) ∈ (1...𝑁)) |
70 | | fzsplit 13282 |
. . . . . . . . . . . 12
⊢ ((𝑁 − 𝐾) ∈ (1...𝑁) → (1...𝑁) = ((1...(𝑁 − 𝐾)) ∪ (((𝑁 − 𝐾) + 1)...𝑁))) |
71 | 69, 70 | syl 17 |
. . . . . . . . . . 11
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) ∈ ℕ) → (1...𝑁) = ((1...(𝑁 − 𝐾)) ∪ (((𝑁 − 𝐾) + 1)...𝑁))) |
72 | | simpr 485 |
. . . . . . . . . . . . . . 15
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → (𝑁 − 𝐾) = 0) |
73 | 72 | oveq2d 7291 |
. . . . . . . . . . . . . 14
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → (1...(𝑁 − 𝐾)) = (1...0)) |
74 | | fz10 13277 |
. . . . . . . . . . . . . 14
⊢ (1...0) =
∅ |
75 | 73, 74 | eqtrdi 2794 |
. . . . . . . . . . . . 13
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → (1...(𝑁 − 𝐾)) = ∅) |
76 | 75 | uneq1d 4096 |
. . . . . . . . . . . 12
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → ((1...(𝑁 − 𝐾)) ∪ (((𝑁 − 𝐾) + 1)...𝑁)) = (∅ ∪ (((𝑁 − 𝐾) + 1)...𝑁))) |
77 | | uncom 4087 |
. . . . . . . . . . . . . 14
⊢ (∅
∪ (((𝑁 − 𝐾) + 1)...𝑁)) = ((((𝑁 − 𝐾) + 1)...𝑁) ∪ ∅) |
78 | | un0 4324 |
. . . . . . . . . . . . . 14
⊢ ((((𝑁 − 𝐾) + 1)...𝑁) ∪ ∅) = (((𝑁 − 𝐾) + 1)...𝑁) |
79 | 77, 78 | eqtri 2766 |
. . . . . . . . . . . . 13
⊢ (∅
∪ (((𝑁 − 𝐾) + 1)...𝑁)) = (((𝑁 − 𝐾) + 1)...𝑁) |
80 | 72 | oveq1d 7290 |
. . . . . . . . . . . . . . 15
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → ((𝑁 − 𝐾) + 1) = (0 + 1)) |
81 | | 1e0p1 12479 |
. . . . . . . . . . . . . . 15
⊢ 1 = (0 +
1) |
82 | 80, 81 | eqtr4di 2796 |
. . . . . . . . . . . . . 14
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → ((𝑁 − 𝐾) + 1) = 1) |
83 | 82 | oveq1d 7290 |
. . . . . . . . . . . . 13
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → (((𝑁 − 𝐾) + 1)...𝑁) = (1...𝑁)) |
84 | 79, 83 | eqtrid 2790 |
. . . . . . . . . . . 12
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → (∅ ∪ (((𝑁 − 𝐾) + 1)...𝑁)) = (1...𝑁)) |
85 | 76, 84 | eqtr2d 2779 |
. . . . . . . . . . 11
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑁 − 𝐾) = 0) → (1...𝑁) = ((1...(𝑁 − 𝐾)) ∪ (((𝑁 − 𝐾) + 1)...𝑁))) |
86 | | elnn0 12235 |
. . . . . . . . . . . 12
⊢ ((𝑁 − 𝐾) ∈ ℕ0 ↔ ((𝑁 − 𝐾) ∈ ℕ ∨ (𝑁 − 𝐾) = 0)) |
87 | 24, 86 | sylib 217 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁 − 𝐾) ∈ ℕ ∨ (𝑁 − 𝐾) = 0)) |
88 | 71, 85, 87 | mpjaodan 956 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (1...𝑁) = ((1...(𝑁 − 𝐾)) ∪ (((𝑁 − 𝐾) + 1)...𝑁))) |
89 | 56, 88, 38, 44 | fsumsplit 15453 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (1...𝑁)(log‘𝑛) = (Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛) + Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛))) |
90 | 89 | oveq1d 7290 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (Σ𝑛 ∈ (1...𝑁)(log‘𝑛) − Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛)) = ((Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛) + Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛)) − Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛))) |
91 | | fzfid 13693 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (((𝑁 − 𝐾) + 1)...𝑁) ∈ Fin) |
92 | | nn0p1nn 12272 |
. . . . . . . . . . . . 13
⊢ ((𝑁 − 𝐾) ∈ ℕ0 → ((𝑁 − 𝐾) + 1) ∈ ℕ) |
93 | 24, 92 | syl 17 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁 − 𝐾) + 1) ∈ ℕ) |
94 | | elfzuz 13252 |
. . . . . . . . . . . 12
⊢ (𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁) → 𝑛 ∈ (ℤ≥‘((𝑁 − 𝐾) + 1))) |
95 | | eluznn 12658 |
. . . . . . . . . . . 12
⊢ ((((𝑁 − 𝐾) + 1) ∈ ℕ ∧ 𝑛 ∈
(ℤ≥‘((𝑁 − 𝐾) + 1))) → 𝑛 ∈ ℕ) |
96 | 93, 94, 95 | syl2an 596 |
. . . . . . . . . . 11
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → 𝑛 ∈ ℕ) |
97 | 96, 43 | syl 17 |
. . . . . . . . . 10
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → (log‘𝑛) ∈ ℂ) |
98 | 91, 97 | fsumcl 15445 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) ∈ ℂ) |
99 | 50, 98 | pncan2d 11334 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛) + Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛)) − Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛)) = Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛)) |
100 | 90, 99 | eqtr2d 2779 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) = (Σ𝑛 ∈ (1...𝑁)(log‘𝑛) − Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛))) |
101 | 100 | fveq2d 6778 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (exp‘Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛)) = (exp‘(Σ𝑛 ∈ (1...𝑁)(log‘𝑛) − Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛)))) |
102 | 21 | nnne0d 12023 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) ≠ 0) |
103 | | eflog 25732 |
. . . . . . . . 9
⊢
(((!‘𝑁) ∈
ℂ ∧ (!‘𝑁)
≠ 0) → (exp‘(log‘(!‘𝑁))) = (!‘𝑁)) |
104 | 22, 102, 103 | syl2anc 584 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) →
(exp‘(log‘(!‘𝑁))) = (!‘𝑁)) |
105 | | logfac 25756 |
. . . . . . . . . 10
⊢ (𝑁 ∈ ℕ0
→ (log‘(!‘𝑁)) = Σ𝑛 ∈ (1...𝑁)(log‘𝑛)) |
106 | 20, 105 | syl 17 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (log‘(!‘𝑁)) = Σ𝑛 ∈ (1...𝑁)(log‘𝑛)) |
107 | 106 | fveq2d 6778 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) →
(exp‘(log‘(!‘𝑁))) = (exp‘Σ𝑛 ∈ (1...𝑁)(log‘𝑛))) |
108 | 104, 107 | eqtr3d 2780 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) = (exp‘Σ𝑛 ∈ (1...𝑁)(log‘𝑛))) |
109 | | eflog 25732 |
. . . . . . . . 9
⊢
(((!‘(𝑁
− 𝐾)) ∈ ℂ
∧ (!‘(𝑁 −
𝐾)) ≠ 0) →
(exp‘(log‘(!‘(𝑁 − 𝐾)))) = (!‘(𝑁 − 𝐾))) |
110 | 26, 27, 109 | syl2anc 584 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) →
(exp‘(log‘(!‘(𝑁 − 𝐾)))) = (!‘(𝑁 − 𝐾))) |
111 | | logfac 25756 |
. . . . . . . . . 10
⊢ ((𝑁 − 𝐾) ∈ ℕ0 →
(log‘(!‘(𝑁
− 𝐾))) = Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛)) |
112 | 24, 111 | syl 17 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (log‘(!‘(𝑁 − 𝐾))) = Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛)) |
113 | 112 | fveq2d 6778 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) →
(exp‘(log‘(!‘(𝑁 − 𝐾)))) = (exp‘Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛))) |
114 | 110, 113 | eqtr3d 2780 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (!‘(𝑁 − 𝐾)) = (exp‘Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛))) |
115 | 108, 114 | oveq12d 7293 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((!‘𝑁) / (!‘(𝑁 − 𝐾))) = ((exp‘Σ𝑛 ∈ (1...𝑁)(log‘𝑛)) / (exp‘Σ𝑛 ∈ (1...(𝑁 − 𝐾))(log‘𝑛)))) |
116 | 52, 101, 115 | 3eqtr4d 2788 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (exp‘Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛)) = ((!‘𝑁) / (!‘(𝑁 − 𝐾)))) |
117 | 32, 37, 116 | 3eqtr4d 2788 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((!‘𝐾) · (𝑁C𝐾)) = (exp‘Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛))) |
118 | 19, 117 | eqtrd 2778 |
. . 3
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (♯‘𝑇) = (exp‘Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛))) |
119 | | birthday.s |
. . . . . . . 8
⊢ 𝑆 = {𝑓 ∣ 𝑓:(1...𝐾)⟶(1...𝑁)} |
120 | | mapvalg 8625 |
. . . . . . . . 9
⊢
(((1...𝑁) ∈ Fin
∧ (1...𝐾) ∈ Fin)
→ ((1...𝑁)
↑m (1...𝐾))
= {𝑓 ∣ 𝑓:(1...𝐾)⟶(1...𝑁)}) |
121 | 4, 3, 120 | mp2an 689 |
. . . . . . . 8
⊢
((1...𝑁)
↑m (1...𝐾))
= {𝑓 ∣ 𝑓:(1...𝐾)⟶(1...𝑁)} |
122 | 119, 121 | eqtr4i 2769 |
. . . . . . 7
⊢ 𝑆 = ((1...𝑁) ↑m (1...𝐾)) |
123 | 122 | fveq2i 6777 |
. . . . . 6
⊢
(♯‘𝑆) =
(♯‘((1...𝑁)
↑m (1...𝐾))) |
124 | | hashmap 14150 |
. . . . . . 7
⊢
(((1...𝑁) ∈ Fin
∧ (1...𝐾) ∈ Fin)
→ (♯‘((1...𝑁) ↑m (1...𝐾))) = ((♯‘(1...𝑁))↑(♯‘(1...𝐾)))) |
125 | 4, 3, 124 | mp2an 689 |
. . . . . 6
⊢
(♯‘((1...𝑁) ↑m (1...𝐾))) = ((♯‘(1...𝑁))↑(♯‘(1...𝐾))) |
126 | 123, 125 | eqtri 2766 |
. . . . 5
⊢
(♯‘𝑆) =
((♯‘(1...𝑁))↑(♯‘(1...𝐾))) |
127 | 16, 11 | oveq12d 7293 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((♯‘(1...𝑁))↑(♯‘(1...𝐾))) = (𝑁↑𝐾)) |
128 | 126, 127 | eqtrid 2790 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (♯‘𝑆) = (𝑁↑𝐾)) |
129 | | nncn 11981 |
. . . . . 6
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℂ) |
130 | 129 | adantr 481 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℂ) |
131 | | nnne0 12007 |
. . . . . 6
⊢ (𝑁 ∈ ℕ → 𝑁 ≠ 0) |
132 | 131 | adantr 481 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ≠ 0) |
133 | | elfzelz 13256 |
. . . . . 6
⊢ (𝐾 ∈ (0...𝑁) → 𝐾 ∈ ℤ) |
134 | 133 | adantl 482 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℤ) |
135 | | explog 25749 |
. . . . 5
⊢ ((𝑁 ∈ ℂ ∧ 𝑁 ≠ 0 ∧ 𝐾 ∈ ℤ) → (𝑁↑𝐾) = (exp‘(𝐾 · (log‘𝑁)))) |
136 | 130, 132,
134, 135 | syl3anc 1370 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁↑𝐾) = (exp‘(𝐾 · (log‘𝑁)))) |
137 | 128, 136 | eqtrd 2778 |
. . 3
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (♯‘𝑆) = (exp‘(𝐾 · (log‘𝑁)))) |
138 | 118, 137 | oveq12d 7293 |
. 2
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((♯‘𝑇) / (♯‘𝑆)) = ((exp‘Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛)) / (exp‘(𝐾 · (log‘𝑁))))) |
139 | 9 | nn0cnd 12295 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℂ) |
140 | | nnrp 12741 |
. . . . . . 7
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℝ+) |
141 | 140 | adantr 481 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈
ℝ+) |
142 | 141 | relogcld 25778 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (log‘𝑁) ∈ ℝ) |
143 | 142 | recnd 11003 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (log‘𝑁) ∈ ℂ) |
144 | 139, 143 | mulcld 10995 |
. . 3
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝐾 · (log‘𝑁)) ∈ ℂ) |
145 | | efsub 15809 |
. . 3
⊢
((Σ𝑛 ∈
(((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) ∈ ℂ ∧ (𝐾 · (log‘𝑁)) ∈ ℂ) →
(exp‘(Σ𝑛 ∈
(((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) − (𝐾 · (log‘𝑁)))) = ((exp‘Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛)) / (exp‘(𝐾 · (log‘𝑁))))) |
146 | 98, 144, 145 | syl2anc 584 |
. 2
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (exp‘(Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) − (𝐾 · (log‘𝑁)))) = ((exp‘Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛)) / (exp‘(𝐾 · (log‘𝑁))))) |
147 | | relogdiv 25748 |
. . . . . . 7
⊢ ((𝑛 ∈ ℝ+
∧ 𝑁 ∈
ℝ+) → (log‘(𝑛 / 𝑁)) = ((log‘𝑛) − (log‘𝑁))) |
148 | 41, 141, 147 | syl2anr 597 |
. . . . . 6
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ ℕ) → (log‘(𝑛 / 𝑁)) = ((log‘𝑛) − (log‘𝑁))) |
149 | 96, 148 | syldan 591 |
. . . . 5
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → (log‘(𝑛 / 𝑁)) = ((log‘𝑛) − (log‘𝑁))) |
150 | 149 | sumeq2dv 15415 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘(𝑛 / 𝑁)) = Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)((log‘𝑛) − (log‘𝑁))) |
151 | 65 | adantr 481 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℤ) |
152 | 24 | nn0zd 12424 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝐾) ∈ ℤ) |
153 | 152 | peano2zd 12429 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁 − 𝐾) + 1) ∈ ℤ) |
154 | 96 | nnrpd 12770 |
. . . . . . . . 9
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → 𝑛 ∈ ℝ+) |
155 | 141 | adantr 481 |
. . . . . . . . 9
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → 𝑁 ∈
ℝ+) |
156 | 154, 155 | rpdivcld 12789 |
. . . . . . . 8
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → (𝑛 / 𝑁) ∈
ℝ+) |
157 | 156 | relogcld 25778 |
. . . . . . 7
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → (log‘(𝑛 / 𝑁)) ∈ ℝ) |
158 | 157 | recnd 11003 |
. . . . . 6
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → (log‘(𝑛 / 𝑁)) ∈ ℂ) |
159 | | fvoveq1 7298 |
. . . . . 6
⊢ (𝑛 = (𝑁 − 𝑘) → (log‘(𝑛 / 𝑁)) = (log‘((𝑁 − 𝑘) / 𝑁))) |
160 | 151, 153,
151, 158, 159 | fsumrev 15491 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘(𝑛 / 𝑁)) = Σ𝑘 ∈ ((𝑁 − 𝑁)...(𝑁 − ((𝑁 − 𝐾) + 1)))(log‘((𝑁 − 𝑘) / 𝑁))) |
161 | 130 | subidd 11320 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝑁) = 0) |
162 | | 1cnd 10970 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 1 ∈ ℂ) |
163 | 130, 139,
162 | subsubd 11360 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − (𝐾 − 1)) = ((𝑁 − 𝐾) + 1)) |
164 | 163 | oveq2d 7291 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − (𝑁 − (𝐾 − 1))) = (𝑁 − ((𝑁 − 𝐾) + 1))) |
165 | | ax-1cn 10929 |
. . . . . . . . . 10
⊢ 1 ∈
ℂ |
166 | | subcl 11220 |
. . . . . . . . . 10
⊢ ((𝐾 ∈ ℂ ∧ 1 ∈
ℂ) → (𝐾 −
1) ∈ ℂ) |
167 | 139, 165,
166 | sylancl 586 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝐾 − 1) ∈ ℂ) |
168 | 130, 167 | nncand 11337 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − (𝑁 − (𝐾 − 1))) = (𝐾 − 1)) |
169 | 164, 168 | eqtr3d 2780 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − ((𝑁 − 𝐾) + 1)) = (𝐾 − 1)) |
170 | 161, 169 | oveq12d 7293 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁 − 𝑁)...(𝑁 − ((𝑁 − 𝐾) + 1))) = (0...(𝐾 − 1))) |
171 | 130 | adantr 481 |
. . . . . . . . 9
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → 𝑁 ∈ ℂ) |
172 | | elfznn0 13349 |
. . . . . . . . . . 11
⊢ (𝑘 ∈ (0...(𝐾 − 1)) → 𝑘 ∈ ℕ0) |
173 | 172 | adantl 482 |
. . . . . . . . . 10
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → 𝑘 ∈ ℕ0) |
174 | 173 | nn0cnd 12295 |
. . . . . . . . 9
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → 𝑘 ∈ ℂ) |
175 | 132 | adantr 481 |
. . . . . . . . 9
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → 𝑁 ≠ 0) |
176 | 171, 174,
171, 175 | divsubdird 11790 |
. . . . . . . 8
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → ((𝑁 − 𝑘) / 𝑁) = ((𝑁 / 𝑁) − (𝑘 / 𝑁))) |
177 | 171, 175 | dividd 11749 |
. . . . . . . . 9
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → (𝑁 / 𝑁) = 1) |
178 | 177 | oveq1d 7290 |
. . . . . . . 8
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → ((𝑁 / 𝑁) − (𝑘 / 𝑁)) = (1 − (𝑘 / 𝑁))) |
179 | 176, 178 | eqtrd 2778 |
. . . . . . 7
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → ((𝑁 − 𝑘) / 𝑁) = (1 − (𝑘 / 𝑁))) |
180 | 179 | fveq2d 6778 |
. . . . . 6
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → (log‘((𝑁 − 𝑘) / 𝑁)) = (log‘(1 − (𝑘 / 𝑁)))) |
181 | 170, 180 | sumeq12rdv 15419 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑘 ∈ ((𝑁 − 𝑁)...(𝑁 − ((𝑁 − 𝐾) + 1)))(log‘((𝑁 − 𝑘) / 𝑁)) = Σ𝑘 ∈ (0...(𝐾 − 1))(log‘(1 − (𝑘 / 𝑁)))) |
182 | 160, 181 | eqtrd 2778 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘(𝑛 / 𝑁)) = Σ𝑘 ∈ (0...(𝐾 − 1))(log‘(1 − (𝑘 / 𝑁)))) |
183 | 143 | adantr 481 |
. . . . . 6
⊢ (((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)) → (log‘𝑁) ∈ ℂ) |
184 | 91, 97, 183 | fsumsub 15500 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)((log‘𝑛) − (log‘𝑁)) = (Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) − Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑁))) |
185 | | fsumconst 15502 |
. . . . . . . 8
⊢
(((((𝑁 − 𝐾) + 1)...𝑁) ∈ Fin ∧ (log‘𝑁) ∈ ℂ) →
Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑁) = ((♯‘(((𝑁 − 𝐾) + 1)...𝑁)) · (log‘𝑁))) |
186 | 91, 143, 185 | syl2anc 584 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑁) = ((♯‘(((𝑁 − 𝐾) + 1)...𝑁)) · (log‘𝑁))) |
187 | | 1zzd 12351 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → 1 ∈ ℤ) |
188 | | fzen 13273 |
. . . . . . . . . . . 12
⊢ ((1
∈ ℤ ∧ 𝐾
∈ ℤ ∧ (𝑁
− 𝐾) ∈ ℤ)
→ (1...𝐾) ≈ ((1
+ (𝑁 − 𝐾))...(𝐾 + (𝑁 − 𝐾)))) |
189 | 187, 134,
152, 188 | syl3anc 1370 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (1...𝐾) ≈ ((1 + (𝑁 − 𝐾))...(𝐾 + (𝑁 − 𝐾)))) |
190 | 24 | nn0cnd 12295 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝑁 − 𝐾) ∈ ℂ) |
191 | | addcom 11161 |
. . . . . . . . . . . . 13
⊢ ((1
∈ ℂ ∧ (𝑁
− 𝐾) ∈ ℂ)
→ (1 + (𝑁 −
𝐾)) = ((𝑁 − 𝐾) + 1)) |
192 | 165, 190,
191 | sylancr 587 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (1 + (𝑁 − 𝐾)) = ((𝑁 − 𝐾) + 1)) |
193 | 139, 130 | pncan3d 11335 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (𝐾 + (𝑁 − 𝐾)) = 𝑁) |
194 | 192, 193 | oveq12d 7293 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((1 + (𝑁 − 𝐾))...(𝐾 + (𝑁 − 𝐾))) = (((𝑁 − 𝐾) + 1)...𝑁)) |
195 | 189, 194 | breqtrd 5100 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (1...𝐾) ≈ (((𝑁 − 𝐾) + 1)...𝑁)) |
196 | | hasheni 14062 |
. . . . . . . . . 10
⊢
((1...𝐾) ≈
(((𝑁 − 𝐾) + 1)...𝑁) → (♯‘(1...𝐾)) = (♯‘(((𝑁 − 𝐾) + 1)...𝑁))) |
197 | 195, 196 | syl 17 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (♯‘(1...𝐾)) = (♯‘(((𝑁 − 𝐾) + 1)...𝑁))) |
198 | 197, 11 | eqtr3d 2780 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (♯‘(((𝑁 − 𝐾) + 1)...𝑁)) = 𝐾) |
199 | 198 | oveq1d 7290 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((♯‘(((𝑁 − 𝐾) + 1)...𝑁)) · (log‘𝑁)) = (𝐾 · (log‘𝑁))) |
200 | 186, 199 | eqtrd 2778 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑁) = (𝐾 · (log‘𝑁))) |
201 | 200 | oveq2d 7291 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) − Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑁)) = (Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) − (𝐾 · (log‘𝑁)))) |
202 | 184, 201 | eqtrd 2778 |
. . . 4
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)((log‘𝑛) − (log‘𝑁)) = (Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) − (𝐾 · (log‘𝑁)))) |
203 | 150, 182,
202 | 3eqtr3rd 2787 |
. . 3
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) − (𝐾 · (log‘𝑁))) = Σ𝑘 ∈ (0...(𝐾 − 1))(log‘(1 − (𝑘 / 𝑁)))) |
204 | 203 | fveq2d 6778 |
. 2
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → (exp‘(Σ𝑛 ∈ (((𝑁 − 𝐾) + 1)...𝑁)(log‘𝑛) − (𝐾 · (log‘𝑁)))) = (exp‘Σ𝑘 ∈ (0...(𝐾 − 1))(log‘(1 − (𝑘 / 𝑁))))) |
205 | 138, 146,
204 | 3eqtr2d 2784 |
1
⊢ ((𝑁 ∈ ℕ ∧ 𝐾 ∈ (0...𝑁)) → ((♯‘𝑇) / (♯‘𝑆)) = (exp‘Σ𝑘 ∈ (0...(𝐾 − 1))(log‘(1 − (𝑘 / 𝑁))))) |