ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  bcval5 GIF version

Theorem bcval5 10521
Description: Write out the top and bottom parts of the binomial coefficient (𝑁C𝐾) = (𝑁 · (𝑁 − 1) · ... · ((𝑁𝐾) + 1)) / 𝐾! explicitly. In this form, it is valid even for 𝑁 < 𝐾, although it is no longer valid for nonpositive 𝐾. (Contributed by Mario Carneiro, 22-May-2014.) (Revised by Jim Kingdon, 23-Apr-2023.)
Assertion
Ref Expression
bcval5 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → (𝑁C𝐾) = ((seq((𝑁𝐾) + 1)( · , I )‘𝑁) / (!‘𝐾)))

Proof of Theorem bcval5
Dummy variables 𝑥 𝑘 𝑦 𝑓 𝑔 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 bcval2 10508 . . . 4 (𝐾 ∈ (0...𝑁) → (𝑁C𝐾) = ((!‘𝑁) / ((!‘(𝑁𝐾)) · (!‘𝐾))))
21adantl 275 . . 3 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (𝑁C𝐾) = ((!‘𝑁) / ((!‘(𝑁𝐾)) · (!‘𝐾))))
3 simprl 520 . . . . . . . . 9 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ (𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ)) → 𝑘 ∈ ℂ)
4 simprr 521 . . . . . . . . 9 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ (𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ)) → 𝑥 ∈ ℂ)
53, 4mulcld 7798 . . . . . . . 8 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ (𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ)) → (𝑘 · 𝑥) ∈ ℂ)
6 simpr1 987 . . . . . . . . 9 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ (𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ)) → 𝑘 ∈ ℂ)
7 simpr2 988 . . . . . . . . 9 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ (𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ)) → 𝑥 ∈ ℂ)
8 simpr3 989 . . . . . . . . 9 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ (𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ)) → 𝑦 ∈ ℂ)
96, 7, 8mulassd 7801 . . . . . . . 8 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ (𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ)) → ((𝑘 · 𝑥) · 𝑦) = (𝑘 · (𝑥 · 𝑦)))
10 simpll 518 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℕ0)
1110nn0zd 9183 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℤ)
12 simplr 519 . . . . . . . . . . . . 13 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℕ)
1312nnzd 9184 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℤ)
1411, 13zsubcld 9190 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (𝑁𝐾) ∈ ℤ)
1514peano2zd 9188 . . . . . . . . . 10 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) + 1) ∈ ℤ)
16 1red 7793 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 1 ∈ ℝ)
1712nnred 8745 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℝ)
1810nn0red 9043 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℝ)
1912nnge1d 8775 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 1 ≤ 𝐾)
2016, 17, 18, 19lesub2dd 8336 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (𝑁𝐾) ≤ (𝑁 − 1))
2114zred 9185 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (𝑁𝐾) ∈ ℝ)
22 leaddsub 8212 . . . . . . . . . . . 12 (((𝑁𝐾) ∈ ℝ ∧ 1 ∈ ℝ ∧ 𝑁 ∈ ℝ) → (((𝑁𝐾) + 1) ≤ 𝑁 ↔ (𝑁𝐾) ≤ (𝑁 − 1)))
2321, 16, 18, 22syl3anc 1216 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (((𝑁𝐾) + 1) ≤ 𝑁 ↔ (𝑁𝐾) ≤ (𝑁 − 1)))
2420, 23mpbird 166 . . . . . . . . . 10 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) + 1) ≤ 𝑁)
25 eluz2 9344 . . . . . . . . . 10 (𝑁 ∈ (ℤ‘((𝑁𝐾) + 1)) ↔ (((𝑁𝐾) + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ ((𝑁𝐾) + 1) ≤ 𝑁))
2615, 11, 24, 25syl3anbrc 1165 . . . . . . . . 9 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ (ℤ‘((𝑁𝐾) + 1)))
2726adantrr 470 . . . . . . . 8 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → 𝑁 ∈ (ℤ‘((𝑁𝐾) + 1)))
28 simprr 521 . . . . . . . . 9 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → (𝑁𝐾) ∈ ℕ)
29 nnuz 9373 . . . . . . . . 9 ℕ = (ℤ‘1)
3028, 29eleqtrdi 2232 . . . . . . . 8 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → (𝑁𝐾) ∈ (ℤ‘1))
31 fvi 5478 . . . . . . . . . 10 (𝑘 ∈ V → ( I ‘𝑘) = 𝑘)
3231elv 2690 . . . . . . . . 9 ( I ‘𝑘) = 𝑘
33 eluzelcn 9349 . . . . . . . . . 10 (𝑘 ∈ (ℤ‘1) → 𝑘 ∈ ℂ)
3433adantl 275 . . . . . . . . 9 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ 𝑘 ∈ (ℤ‘1)) → 𝑘 ∈ ℂ)
3532, 34eqeltrid 2226 . . . . . . . 8 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) ∧ 𝑘 ∈ (ℤ‘1)) → ( I ‘𝑘) ∈ ℂ)
365, 9, 27, 30, 35seq3split 10264 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → (seq1( · , I )‘𝑁) = ((seq1( · , I )‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)))
37 elfzuz3 9815 . . . . . . . . . . 11 (𝐾 ∈ (0...𝑁) → 𝑁 ∈ (ℤ𝐾))
3837adantl 275 . . . . . . . . . 10 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ (ℤ𝐾))
39 eluznn 9406 . . . . . . . . . 10 ((𝐾 ∈ ℕ ∧ 𝑁 ∈ (ℤ𝐾)) → 𝑁 ∈ ℕ)
4012, 38, 39syl2anc 408 . . . . . . . . 9 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℕ)
4140adantrr 470 . . . . . . . 8 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → 𝑁 ∈ ℕ)
42 facnn 10485 . . . . . . . 8 (𝑁 ∈ ℕ → (!‘𝑁) = (seq1( · , I )‘𝑁))
4341, 42syl 14 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → (!‘𝑁) = (seq1( · , I )‘𝑁))
44 facnn 10485 . . . . . . . . 9 ((𝑁𝐾) ∈ ℕ → (!‘(𝑁𝐾)) = (seq1( · , I )‘(𝑁𝐾)))
4528, 44syl 14 . . . . . . . 8 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → (!‘(𝑁𝐾)) = (seq1( · , I )‘(𝑁𝐾)))
4645oveq1d 5789 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → ((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)) = ((seq1( · , I )‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)))
4736, 43, 463eqtr4d 2182 . . . . . 6 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ (𝐾 ∈ (0...𝑁) ∧ (𝑁𝐾) ∈ ℕ)) → (!‘𝑁) = ((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)))
4847expr 372 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) ∈ ℕ → (!‘𝑁) = ((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁))))
4910faccld 10494 . . . . . . . . 9 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) ∈ ℕ)
5049nncnd 8746 . . . . . . . 8 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) ∈ ℂ)
5150mulid2d 7796 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (1 · (!‘𝑁)) = (!‘𝑁))
5240, 42syl 14 . . . . . . . 8 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) = (seq1( · , I )‘𝑁))
5352oveq2d 5790 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (1 · (!‘𝑁)) = (1 · (seq1( · , I )‘𝑁)))
5451, 53eqtr3d 2174 . . . . . 6 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) = (1 · (seq1( · , I )‘𝑁)))
55 fveq2 5421 . . . . . . . . 9 ((𝑁𝐾) = 0 → (!‘(𝑁𝐾)) = (!‘0))
56 fac0 10486 . . . . . . . . 9 (!‘0) = 1
5755, 56syl6eq 2188 . . . . . . . 8 ((𝑁𝐾) = 0 → (!‘(𝑁𝐾)) = 1)
58 oveq1 5781 . . . . . . . . . . 11 ((𝑁𝐾) = 0 → ((𝑁𝐾) + 1) = (0 + 1))
59 0p1e1 8846 . . . . . . . . . . 11 (0 + 1) = 1
6058, 59syl6eq 2188 . . . . . . . . . 10 ((𝑁𝐾) = 0 → ((𝑁𝐾) + 1) = 1)
6160seqeq1d 10236 . . . . . . . . 9 ((𝑁𝐾) = 0 → seq((𝑁𝐾) + 1)( · , I ) = seq1( · , I ))
6261fveq1d 5423 . . . . . . . 8 ((𝑁𝐾) = 0 → (seq((𝑁𝐾) + 1)( · , I )‘𝑁) = (seq1( · , I )‘𝑁))
6357, 62oveq12d 5792 . . . . . . 7 ((𝑁𝐾) = 0 → ((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)) = (1 · (seq1( · , I )‘𝑁)))
6463eqeq2d 2151 . . . . . 6 ((𝑁𝐾) = 0 → ((!‘𝑁) = ((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)) ↔ (!‘𝑁) = (1 · (seq1( · , I )‘𝑁))))
6554, 64syl5ibrcom 156 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) = 0 → (!‘𝑁) = ((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁))))
66 fznn0sub 9849 . . . . . . 7 (𝐾 ∈ (0...𝑁) → (𝑁𝐾) ∈ ℕ0)
6766adantl 275 . . . . . 6 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (𝑁𝐾) ∈ ℕ0)
68 elnn0 8991 . . . . . 6 ((𝑁𝐾) ∈ ℕ0 ↔ ((𝑁𝐾) ∈ ℕ ∨ (𝑁𝐾) = 0))
6967, 68sylib 121 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) ∈ ℕ ∨ (𝑁𝐾) = 0))
7048, 65, 69mpjaod 707 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝑁) = ((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)))
7170oveq1d 5789 . . 3 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → ((!‘𝑁) / ((!‘(𝑁𝐾)) · (!‘𝐾))) = (((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)) / ((!‘(𝑁𝐾)) · (!‘𝐾))))
72 eqid 2139 . . . . . 6 (ℤ‘((𝑁𝐾) + 1)) = (ℤ‘((𝑁𝐾) + 1))
73 fvi 5478 . . . . . . . 8 (𝑓 ∈ V → ( I ‘𝑓) = 𝑓)
7473elv 2690 . . . . . . 7 ( I ‘𝑓) = 𝑓
75 eluzelcn 9349 . . . . . . . 8 (𝑓 ∈ (ℤ‘((𝑁𝐾) + 1)) → 𝑓 ∈ ℂ)
7675adantl 275 . . . . . . 7 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑓 ∈ (ℤ‘((𝑁𝐾) + 1))) → 𝑓 ∈ ℂ)
7774, 76eqeltrid 2226 . . . . . 6 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) ∧ 𝑓 ∈ (ℤ‘((𝑁𝐾) + 1))) → ( I ‘𝑓) ∈ ℂ)
78 mulcl 7759 . . . . . . 7 ((𝑓 ∈ ℂ ∧ 𝑔 ∈ ℂ) → (𝑓 · 𝑔) ∈ ℂ)
7978adantl 275 . . . . . 6 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) ∧ (𝑓 ∈ ℂ ∧ 𝑔 ∈ ℂ)) → (𝑓 · 𝑔) ∈ ℂ)
8072, 15, 77, 79seqf 10246 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → seq((𝑁𝐾) + 1)( · , I ):(ℤ‘((𝑁𝐾) + 1))⟶ℂ)
8180, 26ffvelrnd 5556 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (seq((𝑁𝐾) + 1)( · , I )‘𝑁) ∈ ℂ)
8212nnnn0d 9042 . . . . . 6 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℕ0)
8382faccld 10494 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) ∈ ℕ)
8483nncnd 8746 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) ∈ ℂ)
8567faccld 10494 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘(𝑁𝐾)) ∈ ℕ)
8685nncnd 8746 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘(𝑁𝐾)) ∈ ℂ)
8783nnap0d 8778 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) # 0)
8885nnap0d 8778 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (!‘(𝑁𝐾)) # 0)
8981, 84, 86, 87, 88divcanap5d 8589 . . 3 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (((!‘(𝑁𝐾)) · (seq((𝑁𝐾) + 1)( · , I )‘𝑁)) / ((!‘(𝑁𝐾)) · (!‘𝐾))) = ((seq((𝑁𝐾) + 1)( · , I )‘𝑁) / (!‘𝐾)))
902, 71, 893eqtrd 2176 . 2 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ 𝐾 ∈ (0...𝑁)) → (𝑁C𝐾) = ((seq((𝑁𝐾) + 1)( · , I )‘𝑁) / (!‘𝐾)))
91 simplr 519 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℕ)
9291nnnn0d 9042 . . . . . 6 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℕ0)
9392faccld 10494 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) ∈ ℕ)
9493nncnd 8746 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) ∈ ℂ)
9593nnap0d 8778 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (!‘𝐾) # 0)
9694, 95div0apd 8559 . . 3 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (0 / (!‘𝐾)) = 0)
97 mulcl 7759 . . . . . 6 ((𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ) → (𝑘 · 𝑥) ∈ ℂ)
9897adantl 275 . . . . 5 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) ∧ (𝑘 ∈ ℂ ∧ 𝑥 ∈ ℂ)) → (𝑘 · 𝑥) ∈ ℂ)
99 eluzelcn 9349 . . . . . . 7 (𝑘 ∈ (ℤ‘((𝑁𝐾) + 1)) → 𝑘 ∈ ℂ)
10099adantl 275 . . . . . 6 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (ℤ‘((𝑁𝐾) + 1))) → 𝑘 ∈ ℂ)
10132, 100eqeltrid 2226 . . . . 5 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ (ℤ‘((𝑁𝐾) + 1))) → ( I ‘𝑘) ∈ ℂ)
102 simpr 109 . . . . . 6 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ ℂ) → 𝑘 ∈ ℂ)
103102mul02d 8166 . . . . 5 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ ℂ) → (0 · 𝑘) = 0)
104102mul01d 8167 . . . . 5 ((((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) ∧ 𝑘 ∈ ℂ) → (𝑘 · 0) = 0)
105 simpr 109 . . . . . . . . 9 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → ¬ 𝐾 ∈ (0...𝑁))
106 nn0uz 9372 . . . . . . . . . . . 12 0 = (ℤ‘0)
10792, 106eleqtrdi 2232 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ (ℤ‘0))
108 simpll 518 . . . . . . . . . . . 12 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℕ0)
109108nn0zd 9183 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℤ)
110 elfz5 9810 . . . . . . . . . . 11 ((𝐾 ∈ (ℤ‘0) ∧ 𝑁 ∈ ℤ) → (𝐾 ∈ (0...𝑁) ↔ 𝐾𝑁))
111107, 109, 110syl2anc 408 . . . . . . . . . 10 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (𝐾 ∈ (0...𝑁) ↔ 𝐾𝑁))
112 nn0re 8998 . . . . . . . . . . . 12 (𝑁 ∈ ℕ0𝑁 ∈ ℝ)
113112ad2antrr 479 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 𝑁 ∈ ℝ)
114 nnre 8739 . . . . . . . . . . . 12 (𝐾 ∈ ℕ → 𝐾 ∈ ℝ)
115114ad2antlr 480 . . . . . . . . . . 11 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 𝐾 ∈ ℝ)
116113, 115subge0d 8309 . . . . . . . . . 10 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (0 ≤ (𝑁𝐾) ↔ 𝐾𝑁))
117111, 116bitr4d 190 . . . . . . . . 9 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (𝐾 ∈ (0...𝑁) ↔ 0 ≤ (𝑁𝐾)))
118105, 117mtbid 661 . . . . . . . 8 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → ¬ 0 ≤ (𝑁𝐾))
119 simpl 108 . . . . . . . . . . . 12 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → 𝑁 ∈ ℕ0)
120119nn0zd 9183 . . . . . . . . . . 11 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → 𝑁 ∈ ℤ)
121 simpr 109 . . . . . . . . . . . 12 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → 𝐾 ∈ ℕ)
122121nnzd 9184 . . . . . . . . . . 11 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → 𝐾 ∈ ℤ)
123120, 122zsubcld 9190 . . . . . . . . . 10 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → (𝑁𝐾) ∈ ℤ)
124123adantr 274 . . . . . . . . 9 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (𝑁𝐾) ∈ ℤ)
125 0z 9077 . . . . . . . . 9 0 ∈ ℤ
126 zltnle 9112 . . . . . . . . 9 (((𝑁𝐾) ∈ ℤ ∧ 0 ∈ ℤ) → ((𝑁𝐾) < 0 ↔ ¬ 0 ≤ (𝑁𝐾)))
127124, 125, 126sylancl 409 . . . . . . . 8 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) < 0 ↔ ¬ 0 ≤ (𝑁𝐾)))
128118, 127mpbird 166 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (𝑁𝐾) < 0)
129 zltp1le 9120 . . . . . . . 8 (((𝑁𝐾) ∈ ℤ ∧ 0 ∈ ℤ) → ((𝑁𝐾) < 0 ↔ ((𝑁𝐾) + 1) ≤ 0))
130124, 125, 129sylancl 409 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) < 0 ↔ ((𝑁𝐾) + 1) ≤ 0))
131128, 130mpbid 146 . . . . . 6 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) + 1) ≤ 0)
132 nn0ge0 9014 . . . . . . 7 (𝑁 ∈ ℕ0 → 0 ≤ 𝑁)
133132ad2antrr 479 . . . . . 6 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 0 ≤ 𝑁)
134 0zd 9078 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 0 ∈ ℤ)
135124peano2zd 9188 . . . . . . 7 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → ((𝑁𝐾) + 1) ∈ ℤ)
136 elfz 9808 . . . . . . 7 ((0 ∈ ℤ ∧ ((𝑁𝐾) + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ) → (0 ∈ (((𝑁𝐾) + 1)...𝑁) ↔ (((𝑁𝐾) + 1) ≤ 0 ∧ 0 ≤ 𝑁)))
137134, 135, 109, 136syl3anc 1216 . . . . . 6 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (0 ∈ (((𝑁𝐾) + 1)...𝑁) ↔ (((𝑁𝐾) + 1) ≤ 0 ∧ 0 ≤ 𝑁)))
138131, 133, 137mpbir2and 928 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → 0 ∈ (((𝑁𝐾) + 1)...𝑁))
139 0cn 7770 . . . . . 6 0 ∈ ℂ
140 fvi 5478 . . . . . 6 (0 ∈ ℂ → ( I ‘0) = 0)
141139, 140mp1i 10 . . . . 5 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → ( I ‘0) = 0)
14298, 101, 103, 104, 138, 141seq3z 10296 . . . 4 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (seq((𝑁𝐾) + 1)( · , I )‘𝑁) = 0)
143142oveq1d 5789 . . 3 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → ((seq((𝑁𝐾) + 1)( · , I )‘𝑁) / (!‘𝐾)) = (0 / (!‘𝐾)))
144 nnz 9085 . . . . 5 (𝐾 ∈ ℕ → 𝐾 ∈ ℤ)
145 bcval3 10509 . . . . 5 ((𝑁 ∈ ℕ0𝐾 ∈ ℤ ∧ ¬ 𝐾 ∈ (0...𝑁)) → (𝑁C𝐾) = 0)
146144, 145syl3an2 1250 . . . 4 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ ∧ ¬ 𝐾 ∈ (0...𝑁)) → (𝑁C𝐾) = 0)
1471463expa 1181 . . 3 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (𝑁C𝐾) = 0)
14896, 143, 1473eqtr4rd 2183 . 2 (((𝑁 ∈ ℕ0𝐾 ∈ ℕ) ∧ ¬ 𝐾 ∈ (0...𝑁)) → (𝑁C𝐾) = ((seq((𝑁𝐾) + 1)( · , I )‘𝑁) / (!‘𝐾)))
149 0zd 9078 . . . 4 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → 0 ∈ ℤ)
150 fzdcel 9832 . . . 4 ((𝐾 ∈ ℤ ∧ 0 ∈ ℤ ∧ 𝑁 ∈ ℤ) → DECID 𝐾 ∈ (0...𝑁))
151122, 149, 120, 150syl3anc 1216 . . 3 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → DECID 𝐾 ∈ (0...𝑁))
152 exmiddc 821 . . 3 (DECID 𝐾 ∈ (0...𝑁) → (𝐾 ∈ (0...𝑁) ∨ ¬ 𝐾 ∈ (0...𝑁)))
153151, 152syl 14 . 2 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → (𝐾 ∈ (0...𝑁) ∨ ¬ 𝐾 ∈ (0...𝑁)))
15490, 148, 153mpjaodan 787 1 ((𝑁 ∈ ℕ0𝐾 ∈ ℕ) → (𝑁C𝐾) = ((seq((𝑁𝐾) + 1)( · , I )‘𝑁) / (!‘𝐾)))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  wo 697  DECID wdc 819  w3a 962   = wceq 1331  wcel 1480  Vcvv 2686   class class class wbr 3929   I cid 4210  cfv 5123  (class class class)co 5774  cc 7630  cr 7631  0cc0 7632  1c1 7633   + caddc 7635   · cmul 7637   < clt 7812  cle 7813  cmin 7945   / cdiv 8444  cn 8732  0cn0 8989  cz 9066  cuz 9338  ...cfz 9802  seqcseq 10230  !cfa 10483  Ccbc 10505
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-coll 4043  ax-sep 4046  ax-nul 4054  ax-pow 4098  ax-pr 4131  ax-un 4355  ax-setind 4452  ax-iinf 4502  ax-cnex 7723  ax-resscn 7724  ax-1cn 7725  ax-1re 7726  ax-icn 7727  ax-addcl 7728  ax-addrcl 7729  ax-mulcl 7730  ax-mulrcl 7731  ax-addcom 7732  ax-mulcom 7733  ax-addass 7734  ax-mulass 7735  ax-distr 7736  ax-i2m1 7737  ax-0lt1 7738  ax-1rid 7739  ax-0id 7740  ax-rnegex 7741  ax-precex 7742  ax-cnre 7743  ax-pre-ltirr 7744  ax-pre-ltwlin 7745  ax-pre-lttrn 7746  ax-pre-apti 7747  ax-pre-ltadd 7748  ax-pre-mulgt0 7749  ax-pre-mulext 7750
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2002  df-mo 2003  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-nel 2404  df-ral 2421  df-rex 2422  df-reu 2423  df-rmo 2424  df-rab 2425  df-v 2688  df-sbc 2910  df-csb 3004  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-nul 3364  df-if 3475  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-int 3772  df-iun 3815  df-br 3930  df-opab 3990  df-mpt 3991  df-tr 4027  df-id 4215  df-po 4218  df-iso 4219  df-iord 4288  df-on 4290  df-ilim 4291  df-suc 4293  df-iom 4505  df-xp 4545  df-rel 4546  df-cnv 4547  df-co 4548  df-dm 4549  df-rn 4550  df-res 4551  df-ima 4552  df-iota 5088  df-fun 5125  df-fn 5126  df-f 5127  df-f1 5128  df-fo 5129  df-f1o 5130  df-fv 5131  df-riota 5730  df-ov 5777  df-oprab 5778  df-mpo 5779  df-1st 6038  df-2nd 6039  df-recs 6202  df-frec 6288  df-pnf 7814  df-mnf 7815  df-xr 7816  df-ltxr 7817  df-le 7818  df-sub 7947  df-neg 7948  df-reap 8349  df-ap 8356  df-div 8445  df-inn 8733  df-n0 8990  df-z 9067  df-uz 9339  df-q 9424  df-fz 9803  df-seqfrec 10231  df-fac 10484  df-bc 10506
This theorem is referenced by:  bcn2  10522
  Copyright terms: Public domain W3C validator