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

Theorem fsumdvdsmul 20435
Description: Product of two divisor sums. (This is also the main part of the proof that " sum_ k  ||  N F ( k ) is a multiplicative function if  F is".) (Contributed by Mario Carneiro, 2-Jul-2015.)
Hypotheses
Ref Expression
dvdsmulf1o.1  |-  ( ph  ->  M  e.  NN )
dvdsmulf1o.2  |-  ( ph  ->  N  e.  NN )
dvdsmulf1o.3  |-  ( ph  ->  ( M  gcd  N
)  =  1 )
dvdsmulf1o.x  |-  X  =  { x  e.  NN  |  x  ||  M }
dvdsmulf1o.y  |-  Y  =  { x  e.  NN  |  x  ||  N }
dvdsmulf1o.z  |-  Z  =  { x  e.  NN  |  x  ||  ( M  x.  N ) }
fsumdvdsmul.4  |-  ( (
ph  /\  j  e.  X )  ->  A  e.  CC )
fsumdvdsmul.5  |-  ( (
ph  /\  k  e.  Y )  ->  B  e.  CC )
fsumdvdsmul.6  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  -> 
( A  x.  B
)  =  D )
fsumdvdsmul.7  |-  ( i  =  ( j  x.  k )  ->  C  =  D )
Assertion
Ref Expression
fsumdvdsmul  |-  ( ph  ->  ( sum_ j  e.  X  A  x.  sum_ k  e.  Y  B )  = 
sum_ i  e.  Z  C )
Distinct variable groups:    A, k    D, i    x, M    x, N    i, j, k, X    B, j    C, j, k   
i, Y, j, k   
i, Z, j    x, i, j, k    ph, i,
j, k
Allowed substitution hints:    ph( x)    A( x, i, j)    B( x, i, k)    C( x, i)    D( x, j, k)    M( i, j, k)    N( i, j, k)    X( x)    Y( x)    Z( x, k)

Proof of Theorem fsumdvdsmul
Dummy variables  z  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fzfid 11035 . . . 4  |-  ( ph  ->  ( 1 ... M
)  e.  Fin )
2 dvdsmulf1o.x . . . . 5  |-  X  =  { x  e.  NN  |  x  ||  M }
3 dvdsmulf1o.1 . . . . . 6  |-  ( ph  ->  M  e.  NN )
4 sgmss 20344 . . . . . 6  |-  ( M  e.  NN  ->  { x  e.  NN  |  x  ||  M }  C_  ( 1 ... M ) )
53, 4syl 15 . . . . 5  |-  ( ph  ->  { x  e.  NN  |  x  ||  M }  C_  ( 1 ... M
) )
62, 5syl5eqss 3222 . . . 4  |-  ( ph  ->  X  C_  ( 1 ... M ) )
7 ssfi 7083 . . . 4  |-  ( ( ( 1 ... M
)  e.  Fin  /\  X  C_  ( 1 ... M ) )  ->  X  e.  Fin )
81, 6, 7syl2anc 642 . . 3  |-  ( ph  ->  X  e.  Fin )
9 fzfid 11035 . . . . 5  |-  ( ph  ->  ( 1 ... N
)  e.  Fin )
10 dvdsmulf1o.y . . . . . 6  |-  Y  =  { x  e.  NN  |  x  ||  N }
11 dvdsmulf1o.2 . . . . . . 7  |-  ( ph  ->  N  e.  NN )
12 sgmss 20344 . . . . . . 7  |-  ( N  e.  NN  ->  { x  e.  NN  |  x  ||  N }  C_  ( 1 ... N ) )
1311, 12syl 15 . . . . . 6  |-  ( ph  ->  { x  e.  NN  |  x  ||  N }  C_  ( 1 ... N
) )
1410, 13syl5eqss 3222 . . . . 5  |-  ( ph  ->  Y  C_  ( 1 ... N ) )
15 ssfi 7083 . . . . 5  |-  ( ( ( 1 ... N
)  e.  Fin  /\  Y  C_  ( 1 ... N ) )  ->  Y  e.  Fin )
169, 14, 15syl2anc 642 . . . 4  |-  ( ph  ->  Y  e.  Fin )
17 fsumdvdsmul.5 . . . 4  |-  ( (
ph  /\  k  e.  Y )  ->  B  e.  CC )
1816, 17fsumcl 12206 . . 3  |-  ( ph  -> 
sum_ k  e.  Y  B  e.  CC )
19 fsumdvdsmul.4 . . 3  |-  ( (
ph  /\  j  e.  X )  ->  A  e.  CC )
208, 18, 19fsummulc1 12247 . 2  |-  ( ph  ->  ( sum_ j  e.  X  A  x.  sum_ k  e.  Y  B )  = 
sum_ j  e.  X  ( A  x.  sum_ k  e.  Y  B )
)
2116adantr 451 . . . . 5  |-  ( (
ph  /\  j  e.  X )  ->  Y  e.  Fin )
2217adantlr 695 . . . . 5  |-  ( ( ( ph  /\  j  e.  X )  /\  k  e.  Y )  ->  B  e.  CC )
2321, 19, 22fsummulc2 12246 . . . 4  |-  ( (
ph  /\  j  e.  X )  ->  ( A  x.  sum_ k  e.  Y  B )  = 
sum_ k  e.  Y  ( A  x.  B
) )
24 fsumdvdsmul.6 . . . . . 6  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  -> 
( A  x.  B
)  =  D )
2524anassrs 629 . . . . 5  |-  ( ( ( ph  /\  j  e.  X )  /\  k  e.  Y )  ->  ( A  x.  B )  =  D )
2625sumeq2dv 12176 . . . 4  |-  ( (
ph  /\  j  e.  X )  ->  sum_ k  e.  Y  ( A  x.  B )  =  sum_ k  e.  Y  D
)
2723, 26eqtrd 2315 . . 3  |-  ( (
ph  /\  j  e.  X )  ->  ( A  x.  sum_ k  e.  Y  B )  = 
sum_ k  e.  Y  D )
2827sumeq2dv 12176 . 2  |-  ( ph  -> 
sum_ j  e.  X  ( A  x.  sum_ k  e.  Y  B )  =  sum_ j  e.  X  sum_ k  e.  Y  D
)
29 fveq2 5525 . . . . . . 7  |-  ( z  =  <. j ,  k
>.  ->  (  x.  `  z )  =  (  x.  `  <. j ,  k >. )
)
30 df-ov 5861 . . . . . . 7  |-  ( j  x.  k )  =  (  x.  `  <. j ,  k >. )
3129, 30syl6eqr 2333 . . . . . 6  |-  ( z  =  <. j ,  k
>.  ->  (  x.  `  z )  =  ( j  x.  k ) )
3231csbeq1d 3087 . . . . 5  |-  ( z  =  <. j ,  k
>.  ->  [_ (  x.  `  z )  /  i ]_ C  =  [_ (
j  x.  k )  /  i ]_ C
)
33 ovex 5883 . . . . . 6  |-  ( j  x.  k )  e. 
_V
34 nfcv 2419 . . . . . 6  |-  F/_ i D
35 fsumdvdsmul.7 . . . . . 6  |-  ( i  =  ( j  x.  k )  ->  C  =  D )
3633, 34, 35csbief 3122 . . . . 5  |-  [_ (
j  x.  k )  /  i ]_ C  =  D
3732, 36syl6eq 2331 . . . 4  |-  ( z  =  <. j ,  k
>.  ->  [_ (  x.  `  z )  /  i ]_ C  =  D
)
3819adantrr 697 . . . . . 6  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  ->  A  e.  CC )
3917adantrl 696 . . . . . 6  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  ->  B  e.  CC )
4038, 39mulcld 8855 . . . . 5  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  -> 
( A  x.  B
)  e.  CC )
4124, 40eqeltrrd 2358 . . . 4  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  ->  D  e.  CC )
4237, 8, 16, 41fsumxp 12235 . . 3  |-  ( ph  -> 
sum_ j  e.  X  sum_ k  e.  Y  D  =  sum_ z  e.  ( X  X.  Y )
[_ (  x.  `  z )  /  i ]_ C )
43 nfcv 2419 . . . . 5  |-  F/_ w C
44 nfcsb1v 3113 . . . . 5  |-  F/_ i [_ w  /  i ]_ C
45 csbeq1a 3089 . . . . 5  |-  ( i  =  w  ->  C  =  [_ w  /  i ]_ C )
4643, 44, 45cbvsumi 12170 . . . 4  |-  sum_ i  e.  Z  C  =  sum_ w  e.  Z  [_ w  /  i ]_ C
47 csbeq1 3084 . . . . 5  |-  ( w  =  (  x.  `  z )  ->  [_ w  /  i ]_ C  =  [_ (  x.  `  z )  /  i ]_ C )
48 xpfi 7128 . . . . . 6  |-  ( ( X  e.  Fin  /\  Y  e.  Fin )  ->  ( X  X.  Y
)  e.  Fin )
498, 16, 48syl2anc 642 . . . . 5  |-  ( ph  ->  ( X  X.  Y
)  e.  Fin )
50 dvdsmulf1o.3 . . . . . 6  |-  ( ph  ->  ( M  gcd  N
)  =  1 )
51 dvdsmulf1o.z . . . . . 6  |-  Z  =  { x  e.  NN  |  x  ||  ( M  x.  N ) }
523, 11, 50, 2, 10, 51dvdsmulf1o 20434 . . . . 5  |-  ( ph  ->  (  x.  |`  ( X  X.  Y ) ) : ( X  X.  Y ) -1-1-onto-> Z )
53 fvres 5542 . . . . . 6  |-  ( z  e.  ( X  X.  Y )  ->  (
(  x.  |`  ( X  X.  Y ) ) `
 z )  =  (  x.  `  z
) )
5453adantl 452 . . . . 5  |-  ( (
ph  /\  z  e.  ( X  X.  Y
) )  ->  (
(  x.  |`  ( X  X.  Y ) ) `
 z )  =  (  x.  `  z
) )
5541ralrimivva 2635 . . . . . . . 8  |-  ( ph  ->  A. j  e.  X  A. k  e.  Y  D  e.  CC )
5637eleq1d 2349 . . . . . . . . 9  |-  ( z  =  <. j ,  k
>.  ->  ( [_ (  x.  `  z )  / 
i ]_ C  e.  CC  <->  D  e.  CC ) )
5756ralxp 4827 . . . . . . . 8  |-  ( A. z  e.  ( X  X.  Y ) [_ (  x.  `  z )  / 
i ]_ C  e.  CC  <->  A. j  e.  X  A. k  e.  Y  D  e.  CC )
5855, 57sylibr 203 . . . . . . 7  |-  ( ph  ->  A. z  e.  ( X  X.  Y )
[_ (  x.  `  z )  /  i ]_ C  e.  CC )
59 ax-mulf 8817 . . . . . . . . . 10  |-  x.  :
( CC  X.  CC )
--> CC
60 ffn 5389 . . . . . . . . . 10  |-  (  x.  : ( CC  X.  CC ) --> CC  ->  x.  Fn  ( CC  X.  CC ) )
6159, 60ax-mp 8 . . . . . . . . 9  |-  x.  Fn  ( CC  X.  CC )
62 ssrab2 3258 . . . . . . . . . . . 12  |-  { x  e.  NN  |  x  ||  M }  C_  NN
632, 62eqsstri 3208 . . . . . . . . . . 11  |-  X  C_  NN
64 nnsscn 9751 . . . . . . . . . . 11  |-  NN  C_  CC
6563, 64sstri 3188 . . . . . . . . . 10  |-  X  C_  CC
66 ssrab2 3258 . . . . . . . . . . . 12  |-  { x  e.  NN  |  x  ||  N }  C_  NN
6710, 66eqsstri 3208 . . . . . . . . . . 11  |-  Y  C_  NN
6867, 64sstri 3188 . . . . . . . . . 10  |-  Y  C_  CC
69 xpss12 4792 . . . . . . . . . 10  |-  ( ( X  C_  CC  /\  Y  C_  CC )  ->  ( X  X.  Y )  C_  ( CC  X.  CC ) )
7065, 68, 69mp2an 653 . . . . . . . . 9  |-  ( X  X.  Y )  C_  ( CC  X.  CC )
7147eleq1d 2349 . . . . . . . . . 10  |-  ( w  =  (  x.  `  z )  ->  ( [_ w  /  i ]_ C  e.  CC  <->  [_ (  x.  `  z
)  /  i ]_ C  e.  CC )
)
7271ralima 5758 . . . . . . . . 9  |-  ( (  x.  Fn  ( CC 
X.  CC )  /\  ( X  X.  Y
)  C_  ( CC  X.  CC ) )  -> 
( A. w  e.  (  x.  " ( X  X.  Y ) )
[_ w  /  i ]_ C  e.  CC  <->  A. z  e.  ( X  X.  Y ) [_ (  x.  `  z )  /  i ]_ C  e.  CC ) )
7361, 70, 72mp2an 653 . . . . . . . 8  |-  ( A. w  e.  (  x.  " ( X  X.  Y
) ) [_ w  /  i ]_ C  e.  CC  <->  A. z  e.  ( X  X.  Y )
[_ (  x.  `  z )  /  i ]_ C  e.  CC )
74 df-ima 4702 . . . . . . . . . 10  |-  (  x.  " ( X  X.  Y ) )  =  ran  (  x.  |`  ( X  X.  Y ) )
75 f1ofo 5479 . . . . . . . . . . 11  |-  ( (  x.  |`  ( X  X.  Y ) ) : ( X  X.  Y
)
-1-1-onto-> Z  ->  (  x.  |`  ( X  X.  Y ) ) : ( X  X.  Y ) -onto-> Z )
76 forn 5454 . . . . . . . . . . 11  |-  ( (  x.  |`  ( X  X.  Y ) ) : ( X  X.  Y
) -onto-> Z  ->  ran  (  x.  |`  ( X  X.  Y ) )  =  Z )
7752, 75, 763syl 18 . . . . . . . . . 10  |-  ( ph  ->  ran  (  x.  |`  ( X  X.  Y ) )  =  Z )
7874, 77syl5eq 2327 . . . . . . . . 9  |-  ( ph  ->  (  x.  " ( X  X.  Y ) )  =  Z )
7978raleqdv 2742 . . . . . . . 8  |-  ( ph  ->  ( A. w  e.  (  x.  " ( X  X.  Y ) )
[_ w  /  i ]_ C  e.  CC  <->  A. w  e.  Z  [_ w  /  i ]_ C  e.  CC ) )
8073, 79syl5bbr 250 . . . . . . 7  |-  ( ph  ->  ( A. z  e.  ( X  X.  Y
) [_ (  x.  `  z )  /  i ]_ C  e.  CC  <->  A. w  e.  Z  [_ w  /  i ]_ C  e.  CC ) )
8158, 80mpbid 201 . . . . . 6  |-  ( ph  ->  A. w  e.  Z  [_ w  /  i ]_ C  e.  CC )
8281r19.21bi 2641 . . . . 5  |-  ( (
ph  /\  w  e.  Z )  ->  [_ w  /  i ]_ C  e.  CC )
8347, 49, 52, 54, 82fsumf1o 12196 . . . 4  |-  ( ph  -> 
sum_ w  e.  Z  [_ w  /  i ]_ C  =  sum_ z  e.  ( X  X.  Y
) [_ (  x.  `  z )  /  i ]_ C )
8446, 83syl5eq 2327 . . 3  |-  ( ph  -> 
sum_ i  e.  Z  C  =  sum_ z  e.  ( X  X.  Y
) [_ (  x.  `  z )  /  i ]_ C )
8542, 84eqtr4d 2318 . 2  |-  ( ph  -> 
sum_ j  e.  X  sum_ k  e.  Y  D  =  sum_ i  e.  Z  C )
8620, 28, 853eqtrd 2319 1  |-  ( ph  ->  ( sum_ j  e.  X  A  x.  sum_ k  e.  Y  B )  = 
sum_ i  e.  Z  C )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1623    e. wcel 1684   A.wral 2543   {crab 2547   [_csb 3081    C_ wss 3152   <.cop 3643   class class class wbr 4023    X. cxp 4687   ran crn 4690    |` cres 4691   "cima 4692    Fn wfn 5250   -->wf 5251   -onto->wfo 5253   -1-1-onto->wf1o 5254   ` cfv 5255  (class class class)co 5858   Fincfn 6863   CCcc 8735   1c1 8738    x. cmul 8742   NNcn 9746   ...cfz 10782   sum_csu 12158    || cdivides 12531    gcd cgcd 12685
This theorem is referenced by:  sgmmul  20440  dchrisum0fmul  20655
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 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-inf2 7342  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814  ax-pre-sup 8815  ax-mulf 8817
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 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-int 3863  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-se 4353  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-isom 5264  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-1o 6479  df-oadd 6483  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-sup 7194  df-oi 7225  df-card 7572  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-nn 9747  df-2 9804  df-3 9805  df-n0 9966  df-z 10025  df-uz 10231  df-rp 10355  df-fz 10783  df-fzo 10871  df-fl 10925  df-mod 10974  df-seq 11047  df-exp 11105  df-hash 11338  df-cj 11584  df-re 11585  df-im 11586  df-sqr 11720  df-abs 11721  df-clim 11962  df-sum 12159  df-dvds 12532  df-gcd 12686
  Copyright terms: Public domain W3C validator