MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  fsumconst Structured version   Visualization version   GIF version

Theorem fsumconst 15789
Description: The sum of constant terms (𝑘 is not free in 𝐵). (Contributed by NM, 24-Dec-2005.) (Revised by Mario Carneiro, 24-Apr-2014.)
Assertion
Ref Expression
fsumconst ((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) → Σ𝑘𝐴 𝐵 = ((♯‘𝐴) · 𝐵))
Distinct variable groups:   𝐴,𝑘   𝐵,𝑘

Proof of Theorem fsumconst
Dummy variables 𝑓 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 mul02 11347 . . . . 5 (𝐵 ∈ ℂ → (0 · 𝐵) = 0)
21adantl 484 . . . 4 ((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) → (0 · 𝐵) = 0)
32eqcomd 2758 . . 3 ((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) → 0 = (0 · 𝐵))
4 sumeq1 15688 . . . . 5 (𝐴 = ∅ → Σ𝑘𝐴 𝐵 = Σ𝑘 ∈ ∅ 𝐵)
5 sum0 15720 . . . . 5 Σ𝑘 ∈ ∅ 𝐵 = 0
64, 5eqtrdi 2803 . . . 4 (𝐴 = ∅ → Σ𝑘𝐴 𝐵 = 0)
7 fveq2 6852 . . . . . 6 (𝐴 = ∅ → (♯‘𝐴) = (♯‘∅))
8 hash0 14366 . . . . . 6 (♯‘∅) = 0
97, 8eqtrdi 2803 . . . . 5 (𝐴 = ∅ → (♯‘𝐴) = 0)
109oveq1d 7396 . . . 4 (𝐴 = ∅ → ((♯‘𝐴) · 𝐵) = (0 · 𝐵))
116, 10eqeq12d 2768 . . 3 (𝐴 = ∅ → (Σ𝑘𝐴 𝐵 = ((♯‘𝐴) · 𝐵) ↔ 0 = (0 · 𝐵)))
123, 11syl5ibrcom 249 . 2 ((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) → (𝐴 = ∅ → Σ𝑘𝐴 𝐵 = ((♯‘𝐴) · 𝐵)))
13 eqidd 2753 . . . . . . 7 (𝑘 = (𝑓𝑛) → 𝐵 = 𝐵)
14 simprl 778 . . . . . . 7 (((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ ((♯‘𝐴) ∈ ℕ ∧ 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)) → (♯‘𝐴) ∈ ℕ)
15 simprr 780 . . . . . . 7 (((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ ((♯‘𝐴) ∈ ℕ ∧ 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)) → 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)
16 simpllr 783 . . . . . . 7 ((((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ ((♯‘𝐴) ∈ ℕ ∧ 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)) ∧ 𝑘𝐴) → 𝐵 ∈ ℂ)
17 simplr 776 . . . . . . . 8 (((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ ((♯‘𝐴) ∈ ℕ ∧ 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)) → 𝐵 ∈ ℂ)
18 elfznn 13544 . . . . . . . 8 (𝑛 ∈ (1...(♯‘𝐴)) → 𝑛 ∈ ℕ)
19 fvconst2g 7171 . . . . . . . 8 ((𝐵 ∈ ℂ ∧ 𝑛 ∈ ℕ) → ((ℕ × {𝐵})‘𝑛) = 𝐵)
2017, 18, 19syl2an 604 . . . . . . 7 ((((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ ((♯‘𝐴) ∈ ℕ ∧ 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)) ∧ 𝑛 ∈ (1...(♯‘𝐴))) → ((ℕ × {𝐵})‘𝑛) = 𝐵)
2113, 14, 15, 16, 20fsum 15719 . . . . . 6 (((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ ((♯‘𝐴) ∈ ℕ ∧ 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)) → Σ𝑘𝐴 𝐵 = (seq1( + , (ℕ × {𝐵}))‘(♯‘𝐴)))
22 ser1const 14057 . . . . . . 7 ((𝐵 ∈ ℂ ∧ (♯‘𝐴) ∈ ℕ) → (seq1( + , (ℕ × {𝐵}))‘(♯‘𝐴)) = ((♯‘𝐴) · 𝐵))
2322ad2ant2lr 756 . . . . . 6 (((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ ((♯‘𝐴) ∈ ℕ ∧ 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)) → (seq1( + , (ℕ × {𝐵}))‘(♯‘𝐴)) = ((♯‘𝐴) · 𝐵))
2421, 23eqtrd 2787 . . . . 5 (((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ ((♯‘𝐴) ∈ ℕ ∧ 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)) → Σ𝑘𝐴 𝐵 = ((♯‘𝐴) · 𝐵))
2524expr 459 . . . 4 (((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ (♯‘𝐴) ∈ ℕ) → (𝑓:(1...(♯‘𝐴))–1-1-onto𝐴 → Σ𝑘𝐴 𝐵 = ((♯‘𝐴) · 𝐵)))
2625exlimdv 1943 . . 3 (((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) ∧ (♯‘𝐴) ∈ ℕ) → (∃𝑓 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴 → Σ𝑘𝐴 𝐵 = ((♯‘𝐴) · 𝐵)))
2726expimpd 456 . 2 ((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) → (((♯‘𝐴) ∈ ℕ ∧ ∃𝑓 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴) → Σ𝑘𝐴 𝐵 = ((♯‘𝐴) · 𝐵)))
28 fz1f1o 15709 . . 3 (𝐴 ∈ Fin → (𝐴 = ∅ ∨ ((♯‘𝐴) ∈ ℕ ∧ ∃𝑓 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)))
2928adantr 483 . 2 ((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) → (𝐴 = ∅ ∨ ((♯‘𝐴) ∈ ℕ ∧ ∃𝑓 𝑓:(1...(♯‘𝐴))–1-1-onto𝐴)))
3012, 27, 29mpjaod 869 1 ((𝐴 ∈ Fin ∧ 𝐵 ∈ ℂ) → Σ𝑘𝐴 𝐵 = ((♯‘𝐴) · 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  wo 856   = wceq 1550  wex 1789  wcel 2132  c0 4276  {csn 4572   × cxp 5634  1-1-ontowf1o 6505  cfv 6506  (class class class)co 7381  Fincfn 8912  cc 11057  0cc0 11059  1c1 11060   + caddc 11062   · cmul 11064  cn 12196  ...cfz 13498  seqcseq 14000  chash 14329  Σcsu 15685
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1805  ax-4 1819  ax-5 1920  ax-6 1977  ax-7 2018  ax-8 2134  ax-9 2142  ax-10 2165  ax-11 2181  ax-12 2202  ax-ext 2724  ax-rep 5217  ax-sep 5236  ax-nul 5246  ax-pow 5312  ax-pr 5380  ax-un 7703  ax-inf2 9582  ax-cnex 11115  ax-resscn 11116  ax-1cn 11117  ax-icn 11118  ax-addcl 11119  ax-addrcl 11120  ax-mulcl 11121  ax-mulrcl 11122  ax-mulcom 11123  ax-addass 11124  ax-mulass 11125  ax-distr 11126  ax-i2m1 11127  ax-1ne0 11128  ax-1rid 11129  ax-rnegex 11130  ax-rrecex 11131  ax-cnre 11132  ax-pre-lttri 11133  ax-pre-lttrn 11134  ax-pre-ltadd 11135  ax-pre-mulgt0 11136  ax-pre-sup 11137
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 857  df-3or 1096  df-3an 1097  df-tru 1553  df-fal 1563  df-ex 1790  df-nf 1794  df-sb 2081  df-mo 2556  df-eu 2586  df-clab 2731  df-cleq 2744  df-clel 2827  df-nfc 2901  df-ne 2948  df-nel 3052  df-ral 3067  df-rex 3077  df-rmo 3357  df-reu 3358  df-rab 3405  df-v 3446  df-sbc 3736  df-csb 3844  df-dif 3898  df-un 3900  df-in 3902  df-ss 3912  df-pss 3915  df-nul 4277  df-if 4471  df-pw 4547  df-sn 4573  df-pr 4575  df-op 4579  df-uni 4856  df-int 4896  df-iun 4941  df-br 5091  df-opab 5153  df-mpt 5172  df-tr 5198  df-id 5531  df-eprel 5536  df-po 5544  df-so 5545  df-fr 5589  df-se 5590  df-we 5591  df-xp 5642  df-rel 5643  df-cnv 5644  df-co 5645  df-dm 5646  df-rn 5647  df-res 5648  df-ima 5649  df-pred 6273  df-ord 6334  df-on 6335  df-lim 6336  df-suc 6337  df-iota 6462  df-fun 6508  df-fn 6509  df-f 6510  df-f1 6511  df-fo 6512  df-f1o 6513  df-fv 6514  df-isom 6515  df-riota 7338  df-ov 7384  df-oprab 7385  df-mpo 7386  df-om 7832  df-1st 7955  df-2nd 7956  df-frecs 8246  df-wrecs 8277  df-recs 8326  df-rdg 8365  df-1o 8421  df-er 8662  df-en 8913  df-dom 8914  df-sdom 8915  df-fin 8916  df-sup 9374  df-oi 9444  df-card 9883  df-pnf 11204  df-mnf 11205  df-xr 11206  df-ltxr 11207  df-le 11208  df-sub 11402  df-neg 11403  df-div 11831  df-nn 12197  df-2 12266  df-3 12267  df-n0 12468  df-z 12555  df-uz 12826  df-rp 12980  df-fz 13499  df-fzo 13646  df-seq 14001  df-exp 14061  df-hash 14330  df-cj 15098  df-re 15099  df-im 15100  df-sqrt 15234  df-abs 15235  df-clim 15487  df-sum 15686
This theorem is referenced by:  fsumconst1  15790  fsumdifsnconst  15791  o1fsum  15813  hashiun  15822  hash2iun1dif1  15824  climcndslem1  15851  climcndslem2  15852  harmonic  15861  mertenslem1  15886  sumhash  16904  cshwshashnsame  17111  lagsubg2  19207  sylow2a  19631  lebnumlem3  24994  uniioombllem4  25617  birthdaylem2  26983  basellem8  27118  0sgm  27174  musum  27221  chtleppi  27240  vmasum  27246  logfac2  27247  chpval2  27248  chpchtsum  27249  chpub  27250  logfaclbnd  27252  dchrsum2  27298  sumdchr2  27300  lgsquadlem1  27410  chebbnd1lem1  27499  chtppilimlem1  27503  dchrmusum2  27524  dchrisum0flblem1  27538  rpvmasum2  27542  dchrisum0lem2a  27547  mudivsum  27560  mulogsumlem  27561  selberglem2  27576  pntlemj  27633  rusgrnumwwlks  30112  fusgrhashclwwlkn  30216  fusgreghash2wsp  30475  numclwwlk6  30527  vietadeg1  33819  reprlt  34860  hashreprin  34861  reprgt  34862  hgt750lema  34898  rrndstprj2  38268  lcmineqlem17  42600  sticksstones10  42710  sticksstones12a  42712  fz1sumconst  42856  fltnltalem  43182  stoweidlem11  46523  stoweidlem26  46538  stoweidlem38  46550  dirkertrigeq  46613  fourierdlem73  46691  etransclem32  46778  rrndistlt  46802  sge0rpcpnf  46933  hoiqssbllem2  47135  nn0mulfsum  49184  amgmlemALT  50362
  Copyright terms: Public domain W3C validator