Users' Mathboxes Mathbox for Steve Rodriguez < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bcc0 Structured version   Visualization version   GIF version

Theorem bcc0 43089
Description: The generalized binomial coefficient 𝐶 choose 𝐾 is zero iff 𝐶 is an integer between zero and (𝐾 − 1) inclusive. (Contributed by Steve Rodriguez, 22-Apr-2020.)
Hypotheses
Ref Expression
bccval.c (𝜑𝐶 ∈ ℂ)
bccval.k (𝜑𝐾 ∈ ℕ0)
Assertion
Ref Expression
bcc0 (𝜑 → ((𝐶C𝑐𝐾) = 0 ↔ 𝐶 ∈ (0...(𝐾 − 1))))

Proof of Theorem bcc0
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 bccval.c . . . 4 (𝜑𝐶 ∈ ℂ)
2 bccval.k . . . 4 (𝜑𝐾 ∈ ℕ0)
31, 2bccval 43087 . . 3 (𝜑 → (𝐶C𝑐𝐾) = ((𝐶 FallFac 𝐾) / (!‘𝐾)))
43eqeq1d 2734 . 2 (𝜑 → ((𝐶C𝑐𝐾) = 0 ↔ ((𝐶 FallFac 𝐾) / (!‘𝐾)) = 0))
5 fallfaccl 15959 . . . 4 ((𝐶 ∈ ℂ ∧ 𝐾 ∈ ℕ0) → (𝐶 FallFac 𝐾) ∈ ℂ)
61, 2, 5syl2anc 584 . . 3 (𝜑 → (𝐶 FallFac 𝐾) ∈ ℂ)
7 faccl 14242 . . . . 5 (𝐾 ∈ ℕ0 → (!‘𝐾) ∈ ℕ)
82, 7syl 17 . . . 4 (𝜑 → (!‘𝐾) ∈ ℕ)
98nncnd 12227 . . 3 (𝜑 → (!‘𝐾) ∈ ℂ)
10 facne0 14245 . . . 4 (𝐾 ∈ ℕ0 → (!‘𝐾) ≠ 0)
112, 10syl 17 . . 3 (𝜑 → (!‘𝐾) ≠ 0)
126, 9, 11diveq0ad 11999 . 2 (𝜑 → (((𝐶 FallFac 𝐾) / (!‘𝐾)) = 0 ↔ (𝐶 FallFac 𝐾) = 0))
13 fallfacval 15952 . . . . 5 ((𝐶 ∈ ℂ ∧ 𝐾 ∈ ℕ0) → (𝐶 FallFac 𝐾) = ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘))
141, 2, 13syl2anc 584 . . . 4 (𝜑 → (𝐶 FallFac 𝐾) = ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘))
1514eqeq1d 2734 . . 3 (𝜑 → ((𝐶 FallFac 𝐾) = 0 ↔ ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘) = 0))
16 elfzuz3 13497 . . . . . . 7 (𝐶 ∈ (0...(𝐾 − 1)) → (𝐾 − 1) ∈ (ℤ𝐶))
1716adantl 482 . . . . . 6 ((𝜑𝐶 ∈ (0...(𝐾 − 1))) → (𝐾 − 1) ∈ (ℤ𝐶))
18 nn0uz 12863 . . . . . . 7 0 = (ℤ‘0)
19 elfznn0 13593 . . . . . . . 8 (𝐶 ∈ (0...(𝐾 − 1)) → 𝐶 ∈ ℕ0)
2019adantl 482 . . . . . . 7 ((𝜑𝐶 ∈ (0...(𝐾 − 1))) → 𝐶 ∈ ℕ0)
211ad2antrr 724 . . . . . . . 8 (((𝜑𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 ∈ ℕ0) → 𝐶 ∈ ℂ)
22 nn0cn 12481 . . . . . . . . 9 (𝑘 ∈ ℕ0𝑘 ∈ ℂ)
2322adantl 482 . . . . . . . 8 (((𝜑𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 ∈ ℕ0) → 𝑘 ∈ ℂ)
2421, 23subcld 11570 . . . . . . 7 (((𝜑𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 ∈ ℕ0) → (𝐶𝑘) ∈ ℂ)
251ad2antrr 724 . . . . . . . 8 (((𝜑𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 = 𝐶) → 𝐶 ∈ ℂ)
26 eqcom 2739 . . . . . . . . . 10 (𝑘 = 𝐶𝐶 = 𝑘)
2726biimpi 215 . . . . . . . . 9 (𝑘 = 𝐶𝐶 = 𝑘)
2827adantl 482 . . . . . . . 8 (((𝜑𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 = 𝐶) → 𝐶 = 𝑘)
2925, 28subeq0bd 11639 . . . . . . 7 (((𝜑𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 = 𝐶) → (𝐶𝑘) = 0)
3018, 20, 24, 29fprodeq0 15918 . . . . . 6 (((𝜑𝐶 ∈ (0...(𝐾 − 1))) ∧ (𝐾 − 1) ∈ (ℤ𝐶)) → ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘) = 0)
3117, 30mpdan 685 . . . . 5 ((𝜑𝐶 ∈ (0...(𝐾 − 1))) → ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘) = 0)
3231ex 413 . . . 4 (𝜑 → (𝐶 ∈ (0...(𝐾 − 1)) → ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘) = 0))
33 fzfid 13937 . . . . . . 7 ((𝜑 ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) → (0...(𝐾 − 1)) ∈ Fin)
341ad2antrr 724 . . . . . . . 8 (((𝜑 ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → 𝐶 ∈ ℂ)
35 elfznn0 13593 . . . . . . . . . 10 (𝑘 ∈ (0...(𝐾 − 1)) → 𝑘 ∈ ℕ0)
3635nn0cnd 12533 . . . . . . . . 9 (𝑘 ∈ (0...(𝐾 − 1)) → 𝑘 ∈ ℂ)
3736adantl 482 . . . . . . . 8 (((𝜑 ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → 𝑘 ∈ ℂ)
3834, 37subcld 11570 . . . . . . 7 (((𝜑 ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → (𝐶𝑘) ∈ ℂ)
39 nelne2 3040 . . . . . . . . . . 11 ((𝑘 ∈ (0...(𝐾 − 1)) ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) → 𝑘𝐶)
4039necomd 2996 . . . . . . . . . 10 ((𝑘 ∈ (0...(𝐾 − 1)) ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) → 𝐶𝑘)
4140ancoms 459 . . . . . . . . 9 ((¬ 𝐶 ∈ (0...(𝐾 − 1)) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → 𝐶𝑘)
4241adantll 712 . . . . . . . 8 (((𝜑 ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → 𝐶𝑘)
4334, 37, 42subne0d 11579 . . . . . . 7 (((𝜑 ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) ∧ 𝑘 ∈ (0...(𝐾 − 1))) → (𝐶𝑘) ≠ 0)
4433, 38, 43fprodn0 15922 . . . . . 6 ((𝜑 ∧ ¬ 𝐶 ∈ (0...(𝐾 − 1))) → ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘) ≠ 0)
4544ex 413 . . . . 5 (𝜑 → (¬ 𝐶 ∈ (0...(𝐾 − 1)) → ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘) ≠ 0))
4645necon4bd 2960 . . . 4 (𝜑 → (∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘) = 0 → 𝐶 ∈ (0...(𝐾 − 1))))
4732, 46impbid 211 . . 3 (𝜑 → (𝐶 ∈ (0...(𝐾 − 1)) ↔ ∏𝑘 ∈ (0...(𝐾 − 1))(𝐶𝑘) = 0))
4815, 47bitr4d 281 . 2 (𝜑 → ((𝐶 FallFac 𝐾) = 0 ↔ 𝐶 ∈ (0...(𝐾 − 1))))
494, 12, 483bitrd 304 1 (𝜑 → ((𝐶C𝑐𝐾) = 0 ↔ 𝐶 ∈ (0...(𝐾 − 1))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396   = wceq 1541  wcel 2106  wne 2940  cfv 6543  (class class class)co 7408  cc 11107  0cc0 11109  1c1 11110  cmin 11443   / cdiv 11870  cn 12211  0cn0 12471  cuz 12821  ...cfz 13483  !cfa 14232  cprod 15848   FallFac cfallfac 15947  C𝑐cbcc 43085
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2703  ax-rep 5285  ax-sep 5299  ax-nul 5306  ax-pow 5363  ax-pr 5427  ax-un 7724  ax-inf2 9635  ax-cnex 11165  ax-resscn 11166  ax-1cn 11167  ax-icn 11168  ax-addcl 11169  ax-addrcl 11170  ax-mulcl 11171  ax-mulrcl 11172  ax-mulcom 11173  ax-addass 11174  ax-mulass 11175  ax-distr 11176  ax-i2m1 11177  ax-1ne0 11178  ax-1rid 11179  ax-rnegex 11180  ax-rrecex 11181  ax-cnre 11182  ax-pre-lttri 11183  ax-pre-lttrn 11184  ax-pre-ltadd 11185  ax-pre-mulgt0 11186  ax-pre-sup 11187
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3or 1088  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2534  df-eu 2563  df-clab 2710  df-cleq 2724  df-clel 2810  df-nfc 2885  df-ne 2941  df-nel 3047  df-ral 3062  df-rex 3071  df-rmo 3376  df-reu 3377  df-rab 3433  df-v 3476  df-sbc 3778  df-csb 3894  df-dif 3951  df-un 3953  df-in 3955  df-ss 3965  df-pss 3967  df-nul 4323  df-if 4529  df-pw 4604  df-sn 4629  df-pr 4631  df-op 4635  df-uni 4909  df-int 4951  df-iun 4999  df-br 5149  df-opab 5211  df-mpt 5232  df-tr 5266  df-id 5574  df-eprel 5580  df-po 5588  df-so 5589  df-fr 5631  df-se 5632  df-we 5633  df-xp 5682  df-rel 5683  df-cnv 5684  df-co 5685  df-dm 5686  df-rn 5687  df-res 5688  df-ima 5689  df-pred 6300  df-ord 6367  df-on 6368  df-lim 6369  df-suc 6370  df-iota 6495  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-isom 6552  df-riota 7364  df-ov 7411  df-oprab 7412  df-mpo 7413  df-om 7855  df-1st 7974  df-2nd 7975  df-frecs 8265  df-wrecs 8296  df-recs 8370  df-rdg 8409  df-1o 8465  df-er 8702  df-en 8939  df-dom 8940  df-sdom 8941  df-fin 8942  df-sup 9436  df-oi 9504  df-card 9933  df-pnf 11249  df-mnf 11250  df-xr 11251  df-ltxr 11252  df-le 11253  df-sub 11445  df-neg 11446  df-div 11871  df-nn 12212  df-2 12274  df-3 12275  df-n0 12472  df-z 12558  df-uz 12822  df-rp 12974  df-fz 13484  df-fzo 13627  df-seq 13966  df-exp 14027  df-fac 14233  df-hash 14290  df-cj 15045  df-re 15046  df-im 15047  df-sqrt 15181  df-abs 15182  df-clim 15431  df-prod 15849  df-fallfac 15950  df-bcc 43086
This theorem is referenced by:  bccbc  43094  binomcxplemnn0  43098  binomcxplemfrat  43100  binomcxplemradcnv  43101
  Copyright terms: Public domain W3C validator