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

Theorem fsumconst 12248
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 8986 . . . . 5  |-  ( B  e.  CC  ->  (
0  x.  B )  =  0 )
21adantl 452 . . . 4  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  ( 0  x.  B
)  =  0 )
32eqcomd 2289 . . 3  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  0  =  ( 0  x.  B ) )
4 sumeq1 12158 . . . . 5  |-  ( A  =  (/)  ->  sum_ k  e.  A  B  =  sum_ k  e.  (/)  B )
5 sum0 12190 . . . . 5  |-  sum_ k  e.  (/)  B  =  0
64, 5syl6eq 2332 . . . 4  |-  ( A  =  (/)  ->  sum_ k  e.  A  B  = 
0 )
7 fveq2 5486 . . . . . 6  |-  ( A  =  (/)  ->  ( # `  A )  =  (
# `  (/) ) )
8 hash0 11351 . . . . . 6  |-  ( # `  (/) )  =  0
97, 8syl6eq 2332 . . . . 5  |-  ( A  =  (/)  ->  ( # `  A )  =  0 )
109oveq1d 5835 . . . 4  |-  ( A  =  (/)  ->  ( (
# `  A )  x.  B )  =  ( 0  x.  B ) )
116, 10eqeq12d 2298 . . 3  |-  ( A  =  (/)  ->  ( sum_ k  e.  A  B  =  ( ( # `  A )  x.  B
)  <->  0  =  ( 0  x.  B ) ) )
123, 11syl5ibrcom 213 . 2  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  ( A  =  (/)  -> 
sum_ k  e.  A  B  =  ( ( # `
 A )  x.  B ) ) )
13 eqidd 2285 . . . . . . 7  |-  ( k  =  ( f `  n )  ->  B  =  B )
14 simprl 732 . . . . . . 7  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( ( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  -> 
( # `  A )  e.  NN )
15 simprr 733 . . . . . . 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 735 . . . . . . 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 731 . . . . . . . 8  |-  ( ( ( A  e.  Fin  /\  B  e.  CC )  /\  ( ( # `  A )  e.  NN  /\  f : ( 1 ... ( # `  A
) ) -1-1-onto-> A ) )  ->  B  e.  CC )
18 elfznn 10815 . . . . . . . 8  |-  ( n  e.  ( 1 ... ( # `  A
) )  ->  n  e.  NN )
19 fvconst2g 5689 . . . . . . . 8  |-  ( ( B  e.  CC  /\  n  e.  NN )  ->  ( ( NN  X.  { B } ) `  n )  =  B )
2017, 18, 19syl2an 463 . . . . . . 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 12189 . . . . . 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 11098 . . . . . . 7  |-  ( ( B  e.  CC  /\  ( # `  A )  e.  NN )  -> 
(  seq  1 (  +  ,  ( NN 
X.  { B }
) ) `  ( # `
 A ) )  =  ( ( # `  A )  x.  B
) )
2322ad2ant2lr 728 . . . . . 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 2316 . . . . 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 598 . . . 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 1665 . . 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 586 . 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 12179 . . 3  |-  ( A  e.  Fin  ->  ( A  =  (/)  \/  (
( # `  A )  e.  NN  /\  E. f  f : ( 1 ... ( # `  A ) ) -1-1-onto-> A ) ) )
2928adantr 451 . 2  |-  ( ( A  e.  Fin  /\  B  e.  CC )  ->  ( A  =  (/)  \/  ( ( # `  A
)  e.  NN  /\  E. f  f : ( 1 ... ( # `  A ) ) -1-1-onto-> A ) ) )
3012, 27, 29mpjaod 370 1  |-  ( ( A  e.  Fin  /\  B  e.  CC )  -> 
sum_ k  e.  A  B  =  ( ( # `
 A )  x.  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    \/ wo 357    /\ wa 358   E.wex 1528    = wceq 1623    e. wcel 1685   (/)c0 3456   {csn 3641    X. cxp 4686   -1-1-onto->wf1o 5220   ` cfv 5221  (class class class)co 5820   Fincfn 6859   CCcc 8731   0cc0 8733   1c1 8734    + caddc 8736    x. cmul 8738   NNcn 9742   ...cfz 10778    seq cseq 11042   #chash 11333   sum_csu 12154
This theorem is referenced by:  o1fsum  12267  hashiun  12276  climcndslem1  12304  climcndslem2  12305  harmonic  12313  mertenslem1  12336  sumhash  12940  lagsubg2  14674  sylow2a  14926  lebnumlem3  18457  uniioombllem4  18937  birthdaylem2  20243  basellem8  20321  0sgm  20378  musum  20427  chtleppi  20445  vmasum  20451  logfac2  20452  chpval2  20453  chpchtsum  20454  chpub  20455  logfaclbnd  20457  dchrsum2  20503  sumdchr2  20505  lgsquadlem1  20589  chebbnd1lem1  20614  chtppilimlem1  20618  dchrmusum2  20639  dchrisum0flblem1  20653  rpvmasum2  20657  dchrisum0lem2a  20662  mudivsum  20675  mulogsumlem  20676  selberglem2  20691  pntlemj  20748  rrndstprj2  25966  stoweidlem11  27171  stoweidlem26  27186  stoweidlem38  27198  stoweidlem44  27204
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1636  ax-8 1644  ax-13 1687  ax-14 1689  ax-6 1704  ax-7 1709  ax-11 1716  ax-12 1868  ax-ext 2265  ax-rep 4132  ax-sep 4142  ax-nul 4150  ax-pow 4187  ax-pr 4213  ax-un 4511  ax-inf2 7338  ax-cnex 8789  ax-resscn 8790  ax-1cn 8791  ax-icn 8792  ax-addcl 8793  ax-addrcl 8794  ax-mulcl 8795  ax-mulrcl 8796  ax-mulcom 8797  ax-addass 8798  ax-mulass 8799  ax-distr 8800  ax-i2m1 8801  ax-1ne0 8802  ax-1rid 8803  ax-rnegex 8804  ax-rrecex 8805  ax-cnre 8806  ax-pre-lttri 8807  ax-pre-lttrn 8808  ax-pre-ltadd 8809  ax-pre-mulgt0 8810  ax-pre-sup 8811
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1631  df-eu 2148  df-mo 2149  df-clab 2271  df-cleq 2277  df-clel 2280  df-nfc 2409  df-ne 2449  df-nel 2450  df-ral 2549  df-rex 2550  df-reu 2551  df-rmo 2552  df-rab 2553  df-v 2791  df-sbc 2993  df-csb 3083  df-dif 3156  df-un 3158  df-in 3160  df-ss 3167  df-pss 3169  df-nul 3457  df-if 3567  df-pw 3628  df-sn 3647  df-pr 3648  df-tp 3649  df-op 3650  df-uni 3829  df-int 3864  df-iun 3908  df-br 4025  df-opab 4079  df-mpt 4080  df-tr 4115  df-eprel 4304  df-id 4308  df-po 4313  df-so 4314  df-fr 4351  df-se 4352  df-we 4353  df-ord 4394  df-on 4395  df-lim 4396  df-suc 4397  df-om 4656  df-xp 4694  df-rel 4695  df-cnv 4696  df-co 4697  df-dm 4698  df-rn 4699  df-res 4700  df-ima 4701  df-fun 5223  df-fn 5224  df-f 5225  df-f1 5226  df-fo 5227  df-f1o 5228  df-fv 5229  df-isom 5230  df-ov 5823  df-oprab 5824  df-mpt2 5825  df-1st 6084  df-2nd 6085  df-iota 6253  df-riota 6300  df-recs 6384  df-rdg 6419  df-1o 6475  df-oadd 6479  df-er 6656  df-en 6860  df-dom 6861  df-sdom 6862  df-fin 6863  df-sup 7190  df-oi 7221  df-card 7568  df-pnf 8865  df-mnf 8866  df-xr 8867  df-ltxr 8868  df-le 8869  df-sub 9035  df-neg 9036  df-div 9420  df-nn 9743  df-2 9800  df-3 9801  df-n0 9962  df-z 10021  df-uz 10227  df-rp 10351  df-fz 10779  df-fzo 10867  df-seq 11043  df-exp 11101  df-hash 11334  df-cj 11580  df-re 11581  df-im 11582  df-sqr 11716  df-abs 11717  df-clim 11958  df-sum 12155
  Copyright terms: Public domain W3C validator