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

Theorem fsumconst 13359
Description: The sum of constant terms ( k is not free in  A). (Contributed by NM, 24-Dec-2005.) (Revised by Mario Carneiro, 24-Apr-2014.)
Assertion
Ref Expression
fsumconst  |-  ( ( A  e.  Fin  /\  B  e.  CC )  -> 
sum_ k  e.  A  B  =  ( ( # `
 A )  x.  B ) )
Distinct variable groups:    A, k    B, k

Proof of Theorem fsumconst
Dummy variables  f  n are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 mul02 9648 . . . . 5  |-  ( B  e.  CC  ->  (
0  x.  B )  =  0 )
21adantl 466 . . . 4  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  ( 0  x.  B
)  =  0 )
32eqcomd 2459 . . 3  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  0  =  ( 0  x.  B ) )
4 sumeq1 13268 . . . . 5  |-  ( A  =  (/)  ->  sum_ k  e.  A  B  =  sum_ k  e.  (/)  B )
5 sum0 13300 . . . . 5  |-  sum_ k  e.  (/)  B  =  0
64, 5syl6eq 2508 . . . 4  |-  ( A  =  (/)  ->  sum_ k  e.  A  B  = 
0 )
7 fveq2 5789 . . . . . 6  |-  ( A  =  (/)  ->  ( # `  A )  =  (
# `  (/) ) )
8 hash0 12236 . . . . . 6  |-  ( # `  (/) )  =  0
97, 8syl6eq 2508 . . . . 5  |-  ( A  =  (/)  ->  ( # `  A )  =  0 )
109oveq1d 6205 . . . 4  |-  ( A  =  (/)  ->  ( (
# `  A )  x.  B )  =  ( 0  x.  B ) )
116, 10eqeq12d 2473 . . 3  |-  ( A  =  (/)  ->  ( sum_ k  e.  A  B  =  ( ( # `  A )  x.  B
)  <->  0  =  ( 0  x.  B ) ) )
123, 11syl5ibrcom 222 . 2  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  ( A  =  (/)  -> 
sum_ k  e.  A  B  =  ( ( # `
 A )  x.  B ) ) )
13 eqidd 2452 . . . . . . 7  |-  ( k  =  ( f `  n )  ->  B  =  B )
14 simprl 755 . . . . . . 7  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( ( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  -> 
( # `  A )  e.  NN )
15 simprr 756 . . . . . . 7  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( ( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  -> 
f : ( 1 ... ( # `  A
) ) -1-1-onto-> A )
16 simpllr 758 . . . . . . 7  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  CC )  /\  (
( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  /\  k  e.  A )  ->  B  e.  CC )
17 simplr 754 . . . . . . . 8  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( ( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  ->  B  e.  CC )
18 elfznn 11579 . . . . . . . 8  |-  ( n  e.  ( 1 ... ( # `  A
) )  ->  n  e.  NN )
19 fvconst2g 6030 . . . . . . . 8  |-  ( ( B  e.  CC  /\  n  e.  NN )  ->  ( ( NN  X.  { B } ) `  n )  =  B )
2017, 18, 19syl2an 477 . . . . . . 7  |-  ( ( ( ( A  e. 
Fin  /\  B  e.  CC )  /\  (
( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  /\  n  e.  ( 1 ... ( # `  A
) ) )  -> 
( ( NN  X.  { B } ) `  n )  =  B )
2113, 14, 15, 16, 20fsum 13299 . . . . . 6  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( ( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  ->  sum_ k  e.  A  B  =  (  seq 1
(  +  ,  ( NN  X.  { B } ) ) `  ( # `  A ) ) )
22 ser1const 11963 . . . . . . 7  |-  ( ( B  e.  CC  /\  ( # `  A )  e.  NN )  -> 
(  seq 1 (  +  ,  ( NN  X.  { B } ) ) `
 ( # `  A
) )  =  ( ( # `  A
)  x.  B ) )
2322ad2ant2lr 747 . . . . . 6  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( ( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  -> 
(  seq 1 (  +  ,  ( NN  X.  { B } ) ) `
 ( # `  A
) )  =  ( ( # `  A
)  x.  B ) )
2421, 23eqtrd 2492 . . . . 5  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( ( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  ->  sum_ k  e.  A  B  =  ( ( # `  A )  x.  B
) )
2524expr 615 . . . 4  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( # `  A
)  e.  NN )  ->  ( f : ( 1 ... ( # `
 A ) ) -1-1-onto-> A  ->  sum_ k  e.  A  B  =  ( ( # `
 A )  x.  B ) ) )
2625exlimdv 1691 . . 3  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( # `  A
)  e.  NN )  ->  ( E. f 
f : ( 1 ... ( # `  A
) ) -1-1-onto-> A  ->  sum_ k  e.  A  B  =  ( ( # `  A
)  x.  B ) ) )
2726expimpd 603 . 2  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  ( ( ( # `  A )  e.  NN  /\ 
E. f  f : ( 1 ... ( # `
 A ) ) -1-1-onto-> A )  ->  sum_ k  e.  A  B  =  ( ( # `  A
)  x.  B ) ) )
28 fz1f1o 13289 . . 3  |-  ( A  e.  Fin  ->  ( A  =  (/)  \/  (
( # `  A )  e.  NN  /\  E. f  f : ( 1 ... ( # `  A ) ) -1-1-onto-> A ) ) )
2928adantr 465 . 2  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  ( A  =  (/)  \/  ( ( # `  A
)  e.  NN  /\  E. f  f : ( 1 ... ( # `  A ) ) -1-1-onto-> A ) ) )
3012, 27, 29mpjaod 381 1  |-  ( ( A  e.  Fin  /\  B  e.  CC )  -> 
sum_ k  e.  A  B  =  ( ( # `
 A )  x.  B ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    \/ wo 368    /\ wa 369    = wceq 1370   E.wex 1587    e. wcel 1758   (/)c0 3735   {csn 3975    X. cxp 4936   -1-1-onto->wf1o 5515   ` cfv 5516  (class class class)co 6190   Fincfn 7410   CCcc 9381   0cc0 9383   1c1 9384    + caddc 9386    x. cmul 9388   NNcn 10423   ...cfz 11538    seqcseq 11907   #chash 12204   sum_csu 13265
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1952  ax-ext 2430  ax-rep 4501  ax-sep 4511  ax-nul 4519  ax-pow 4568  ax-pr 4629  ax-un 6472  ax-inf2 7948  ax-cnex 9439  ax-resscn 9440  ax-1cn 9441  ax-icn 9442  ax-addcl 9443  ax-addrcl 9444  ax-mulcl 9445  ax-mulrcl 9446  ax-mulcom 9447  ax-addass 9448  ax-mulass 9449  ax-distr 9450  ax-i2m1 9451  ax-1ne0 9452  ax-1rid 9453  ax-rnegex 9454  ax-rrecex 9455  ax-cnre 9456  ax-pre-lttri 9457  ax-pre-lttrn 9458  ax-pre-ltadd 9459  ax-pre-mulgt0 9460  ax-pre-sup 9461
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2264  df-mo 2265  df-clab 2437  df-cleq 2443  df-clel 2446  df-nfc 2601  df-ne 2646  df-nel 2647  df-ral 2800  df-rex 2801  df-reu 2802  df-rmo 2803  df-rab 2804  df-v 3070  df-sbc 3285  df-csb 3387  df-dif 3429  df-un 3431  df-in 3433  df-ss 3440  df-pss 3442  df-nul 3736  df-if 3890  df-pw 3960  df-sn 3976  df-pr 3978  df-tp 3980  df-op 3982  df-uni 4190  df-int 4227  df-iun 4271  df-br 4391  df-opab 4449  df-mpt 4450  df-tr 4484  df-eprel 4730  df-id 4734  df-po 4739  df-so 4740  df-fr 4777  df-se 4778  df-we 4779  df-ord 4820  df-on 4821  df-lim 4822  df-suc 4823  df-xp 4944  df-rel 4945  df-cnv 4946  df-co 4947  df-dm 4948  df-rn 4949  df-res 4950  df-ima 4951  df-iota 5479  df-fun 5518  df-fn 5519  df-f 5520  df-f1 5521  df-fo 5522  df-f1o 5523  df-fv 5524  df-isom 5525  df-riota 6151  df-ov 6193  df-oprab 6194  df-mpt2 6195  df-om 6577  df-1st 6677  df-2nd 6678  df-recs 6932  df-rdg 6966  df-1o 7020  df-oadd 7024  df-er 7201  df-en 7411  df-dom 7412  df-sdom 7413  df-fin 7414  df-sup 7792  df-oi 7825  df-card 8210  df-pnf 9521  df-mnf 9522  df-xr 9523  df-ltxr 9524  df-le 9525  df-sub 9698  df-neg 9699  df-div 10095  df-nn 10424  df-2 10481  df-3 10482  df-n0 10681  df-z 10748  df-uz 10963  df-rp 11093  df-fz 11539  df-fzo 11650  df-seq 11908  df-exp 11967  df-hash 12205  df-cj 12690  df-re 12691  df-im 12692  df-sqr 12826  df-abs 12827  df-clim 13068  df-sum 13266
This theorem is referenced by:  o1fsum  13378  hashiun  13387  climcndslem1  13414  climcndslem2  13415  harmonic  13423  mertenslem1  13446  sumhash  14060  cshwshashnsame  14232  lagsubg2  15844  sylow2a  16222  lebnumlem3  20651  uniioombllem4  21182  birthdaylem2  22462  basellem8  22541  0sgm  22598  musum  22647  chtleppi  22665  vmasum  22671  logfac2  22672  chpval2  22673  chpchtsum  22674  chpub  22675  logfaclbnd  22677  dchrsum2  22723  sumdchr2  22725  lgsquadlem1  22809  chebbnd1lem1  22834  chtppilimlem1  22838  dchrmusum2  22859  dchrisum0flblem1  22873  rpvmasum2  22877  dchrisum0lem2a  22882  mudivsum  22895  mulogsumlem  22896  selberglem2  22911  pntlemj  22968  rrndstprj2  28868  stoweidlem11  29944  stoweidlem26  29959  stoweidlem38  29971  hashclwwlkn  30648  rusgranumwlks  30712  frghash2spot  30794  usgreghash2spotv  30797  usgreghash2spot  30800  numclwwlk6  30844
  Copyright terms: Public domain W3C validator