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

Theorem fsumdvdsmul 20848
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 11240 . . . 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 20757 . . . . . 6  |-  ( M  e.  NN  ->  { x  e.  NN  |  x  ||  M }  C_  ( 1 ... M ) )
53, 4syl 16 . . . . 5  |-  ( ph  ->  { x  e.  NN  |  x  ||  M }  C_  ( 1 ... M
) )
62, 5syl5eqss 3336 . . . 4  |-  ( ph  ->  X  C_  ( 1 ... M ) )
7 ssfi 7266 . . . 4  |-  ( ( ( 1 ... M
)  e.  Fin  /\  X  C_  ( 1 ... M ) )  ->  X  e.  Fin )
81, 6, 7syl2anc 643 . . 3  |-  ( ph  ->  X  e.  Fin )
9 fzfid 11240 . . . . 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 20757 . . . . . . 7  |-  ( N  e.  NN  ->  { x  e.  NN  |  x  ||  N }  C_  ( 1 ... N ) )
1311, 12syl 16 . . . . . 6  |-  ( ph  ->  { x  e.  NN  |  x  ||  N }  C_  ( 1 ... N
) )
1410, 13syl5eqss 3336 . . . . 5  |-  ( ph  ->  Y  C_  ( 1 ... N ) )
15 ssfi 7266 . . . . 5  |-  ( ( ( 1 ... N
)  e.  Fin  /\  Y  C_  ( 1 ... N ) )  ->  Y  e.  Fin )
169, 14, 15syl2anc 643 . . . 4  |-  ( ph  ->  Y  e.  Fin )
17 fsumdvdsmul.5 . . . 4  |-  ( (
ph  /\  k  e.  Y )  ->  B  e.  CC )
1816, 17fsumcl 12455 . . 3  |-  ( ph  -> 
sum_ k  e.  Y  B  e.  CC )
19 fsumdvdsmul.4 . . 3  |-  ( (
ph  /\  j  e.  X )  ->  A  e.  CC )
208, 18, 19fsummulc1 12496 . 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 452 . . . . 5  |-  ( (
ph  /\  j  e.  X )  ->  Y  e.  Fin )
2217adantlr 696 . . . . 5  |-  ( ( ( ph  /\  j  e.  X )  /\  k  e.  Y )  ->  B  e.  CC )
2321, 19, 22fsummulc2 12495 . . . 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 630 . . . . 5  |-  ( ( ( ph  /\  j  e.  X )  /\  k  e.  Y )  ->  ( A  x.  B )  =  D )
2625sumeq2dv 12425 . . . 4  |-  ( (
ph  /\  j  e.  X )  ->  sum_ k  e.  Y  ( A  x.  B )  =  sum_ k  e.  Y  D
)
2723, 26eqtrd 2420 . . 3  |-  ( (
ph  /\  j  e.  X )  ->  ( A  x.  sum_ k  e.  Y  B )  = 
sum_ k  e.  Y  D )
2827sumeq2dv 12425 . 2  |-  ( ph  -> 
sum_ j  e.  X  ( A  x.  sum_ k  e.  Y  B )  =  sum_ j  e.  X  sum_ k  e.  Y  D
)
29 fveq2 5669 . . . . . . 7  |-  ( z  =  <. j ,  k
>.  ->  (  x.  `  z )  =  (  x.  `  <. j ,  k >. )
)
30 df-ov 6024 . . . . . . 7  |-  ( j  x.  k )  =  (  x.  `  <. j ,  k >. )
3129, 30syl6eqr 2438 . . . . . 6  |-  ( z  =  <. j ,  k
>.  ->  (  x.  `  z )  =  ( j  x.  k ) )
3231csbeq1d 3201 . . . . 5  |-  ( z  =  <. j ,  k
>.  ->  [_ (  x.  `  z )  /  i ]_ C  =  [_ (
j  x.  k )  /  i ]_ C
)
33 ovex 6046 . . . . . 6  |-  ( j  x.  k )  e. 
_V
34 nfcv 2524 . . . . . 6  |-  F/_ i D
35 fsumdvdsmul.7 . . . . . 6  |-  ( i  =  ( j  x.  k )  ->  C  =  D )
3633, 34, 35csbief 3236 . . . . 5  |-  [_ (
j  x.  k )  /  i ]_ C  =  D
3732, 36syl6eq 2436 . . . 4  |-  ( z  =  <. j ,  k
>.  ->  [_ (  x.  `  z )  /  i ]_ C  =  D
)
3819adantrr 698 . . . . . 6  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  ->  A  e.  CC )
3917adantrl 697 . . . . . 6  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  ->  B  e.  CC )
4038, 39mulcld 9042 . . . . 5  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  -> 
( A  x.  B
)  e.  CC )
4124, 40eqeltrrd 2463 . . . 4  |-  ( (
ph  /\  ( j  e.  X  /\  k  e.  Y ) )  ->  D  e.  CC )
4237, 8, 16, 41fsumxp 12484 . . 3  |-  ( ph  -> 
sum_ j  e.  X  sum_ k  e.  Y  D  =  sum_ z  e.  ( X  X.  Y )
[_ (  x.  `  z )  /  i ]_ C )
43 nfcv 2524 . . . . 5  |-  F/_ w C
44 nfcsb1v 3227 . . . . 5  |-  F/_ i [_ w  /  i ]_ C
45 csbeq1a 3203 . . . . 5  |-  ( i  =  w  ->  C  =  [_ w  /  i ]_ C )
4643, 44, 45cbvsumi 12419 . . . 4  |-  sum_ i  e.  Z  C  =  sum_ w  e.  Z  [_ w  /  i ]_ C
47 csbeq1 3198 . . . . 5  |-  ( w  =  (  x.  `  z )  ->  [_ w  /  i ]_ C  =  [_ (  x.  `  z )  /  i ]_ C )
48 xpfi 7315 . . . . . 6  |-  ( ( X  e.  Fin  /\  Y  e.  Fin )  ->  ( X  X.  Y
)  e.  Fin )
498, 16, 48syl2anc 643 . . . . 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 20847 . . . . 5  |-  ( ph  ->  (  x.  |`  ( X  X.  Y ) ) : ( X  X.  Y ) -1-1-onto-> Z )
53 fvres 5686 . . . . . 6  |-  ( z  e.  ( X  X.  Y )  ->  (
(  x.  |`  ( X  X.  Y ) ) `
 z )  =  (  x.  `  z
) )
5453adantl 453 . . . . 5  |-  ( (
ph  /\  z  e.  ( X  X.  Y
) )  ->  (
(  x.  |`  ( X  X.  Y ) ) `
 z )  =  (  x.  `  z
) )
5541ralrimivva 2742 . . . . . . . 8  |-  ( ph  ->  A. j  e.  X  A. k  e.  Y  D  e.  CC )
5637eleq1d 2454 . . . . . . . . 9  |-  ( z  =  <. j ,  k
>.  ->  ( [_ (  x.  `  z )  / 
i ]_ C  e.  CC  <->  D  e.  CC ) )
5756ralxp 4957 . . . . . . . 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 204 . . . . . . 7  |-  ( ph  ->  A. z  e.  ( X  X.  Y )
[_ (  x.  `  z )  /  i ]_ C  e.  CC )
59 ax-mulf 9004 . . . . . . . . . 10  |-  x.  :
( CC  X.  CC )
--> CC
60 ffn 5532 . . . . . . . . . 10  |-  (  x.  : ( CC  X.  CC ) --> CC  ->  x.  Fn  ( CC  X.  CC ) )
6159, 60ax-mp 8 . . . . . . . . 9  |-  x.  Fn  ( CC  X.  CC )
62 ssrab2 3372 . . . . . . . . . . . 12  |-  { x  e.  NN  |  x  ||  M }  C_  NN
632, 62eqsstri 3322 . . . . . . . . . . 11  |-  X  C_  NN
64 nnsscn 9938 . . . . . . . . . . 11  |-  NN  C_  CC
6563, 64sstri 3301 . . . . . . . . . 10  |-  X  C_  CC
66 ssrab2 3372 . . . . . . . . . . . 12  |-  { x  e.  NN  |  x  ||  N }  C_  NN
6710, 66eqsstri 3322 . . . . . . . . . . 11  |-  Y  C_  NN
6867, 64sstri 3301 . . . . . . . . . 10  |-  Y  C_  CC
69 xpss12 4922 . . . . . . . . . 10  |-  ( ( X  C_  CC  /\  Y  C_  CC )  ->  ( X  X.  Y )  C_  ( CC  X.  CC ) )
7065, 68, 69mp2an 654 . . . . . . . . 9  |-  ( X  X.  Y )  C_  ( CC  X.  CC )
7147eleq1d 2454 . . . . . . . . . 10  |-  ( w  =  (  x.  `  z )  ->  ( [_ w  /  i ]_ C  e.  CC  <->  [_ (  x.  `  z
)  /  i ]_ C  e.  CC )
)
7271ralima 5918 . . . . . . . . 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 654 . . . . . . . 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 4832 . . . . . . . . . 10  |-  (  x.  " ( X  X.  Y ) )  =  ran  (  x.  |`  ( X  X.  Y ) )
75 f1ofo 5622 . . . . . . . . . . 11  |-  ( (  x.  |`  ( X  X.  Y ) ) : ( X  X.  Y
)
-1-1-onto-> Z  ->  (  x.  |`  ( X  X.  Y ) ) : ( X  X.  Y ) -onto-> Z )
76 forn 5597 . . . . . . . . . . 11  |-  ( (  x.  |`  ( X  X.  Y ) ) : ( X  X.  Y
) -onto-> Z  ->  ran  (  x.  |`  ( X  X.  Y ) )  =  Z )
7752, 75, 763syl 19 . . . . . . . . . 10  |-  ( ph  ->  ran  (  x.  |`  ( X  X.  Y ) )  =  Z )
7874, 77syl5eq 2432 . . . . . . . . 9  |-  ( ph  ->  (  x.  " ( X  X.  Y ) )  =  Z )
7978raleqdv 2854 . . . . . . . 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 251 . . . . . . 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 202 . . . . . 6  |-  ( ph  ->  A. w  e.  Z  [_ w  /  i ]_ C  e.  CC )
8281r19.21bi 2748 . . . . 5  |-  ( (
ph  /\  w  e.  Z )  ->  [_ w  /  i ]_ C  e.  CC )
8347, 49, 52, 54, 82fsumf1o 12445 . . . 4  |-  ( ph  -> 
sum_ w  e.  Z  [_ w  /  i ]_ C  =  sum_ z  e.  ( X  X.  Y
) [_ (  x.  `  z )  /  i ]_ C )
8446, 83syl5eq 2432 . . 3  |-  ( ph  -> 
sum_ i  e.  Z  C  =  sum_ z  e.  ( X  X.  Y
) [_ (  x.  `  z )  /  i ]_ C )
8542, 84eqtr4d 2423 . 2  |-  ( ph  -> 
sum_ j  e.  X  sum_ k  e.  Y  D  =  sum_ i  e.  Z  C )
8620, 28, 853eqtrd 2424 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 177    /\ wa 359    = wceq 1649    e. wcel 1717   A.wral 2650   {crab 2654   [_csb 3195    C_ wss 3264   <.cop 3761   class class class wbr 4154    X. cxp 4817   ran crn 4820    |` cres 4821   "cima 4822    Fn wfn 5390   -->wf 5391   -onto->wfo 5393   -1-1-onto->wf1o 5394   ` cfv 5395  (class class class)co 6021   Fincfn 7046   CCcc 8922   1c1 8925    x. cmul 8929   NNcn 9933   ...cfz 10976   sum_csu 12407    || cdivides 12780    gcd cgcd 12934
This theorem is referenced by:  sgmmul  20853  dchrisum0fmul  21068
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2369  ax-rep 4262  ax-sep 4272  ax-nul 4280  ax-pow 4319  ax-pr 4345  ax-un 4642  ax-inf2 7530  ax-cnex 8980  ax-resscn 8981  ax-1cn 8982  ax-icn 8983  ax-addcl 8984  ax-addrcl 8985  ax-mulcl 8986  ax-mulrcl 8987  ax-mulcom 8988  ax-addass 8989  ax-mulass 8990  ax-distr 8991  ax-i2m1 8992  ax-1ne0 8993  ax-1rid 8994  ax-rnegex 8995  ax-rrecex 8996  ax-cnre 8997  ax-pre-lttri 8998  ax-pre-lttrn 8999  ax-pre-ltadd 9000  ax-pre-mulgt0 9001  ax-pre-sup 9002  ax-mulf 9004
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2243  df-mo 2244  df-clab 2375  df-cleq 2381  df-clel 2384  df-nfc 2513  df-ne 2553  df-nel 2554  df-ral 2655  df-rex 2656  df-reu 2657  df-rmo 2658  df-rab 2659  df-v 2902  df-sbc 3106  df-csb 3196  df-dif 3267  df-un 3269  df-in 3271  df-ss 3278  df-pss 3280  df-nul 3573  df-if 3684  df-pw 3745  df-sn 3764  df-pr 3765  df-tp 3766  df-op 3767  df-uni 3959  df-int 3994  df-iun 4038  df-br 4155  df-opab 4209  df-mpt 4210  df-tr 4245  df-eprel 4436  df-id 4440  df-po 4445  df-so 4446  df-fr 4483  df-se 4484  df-we 4485  df-ord 4526  df-on 4527  df-lim 4528  df-suc 4529  df-om 4787  df-xp 4825  df-rel 4826  df-cnv 4827  df-co 4828  df-dm 4829  df-rn 4830  df-res 4831  df-ima 4832  df-iota 5359  df-fun 5397  df-fn 5398  df-f 5399  df-f1 5400  df-fo 5401  df-f1o 5402  df-fv 5403  df-isom 5404  df-ov 6024  df-oprab 6025  df-mpt2 6026  df-1st 6289  df-2nd 6290  df-riota 6486  df-recs 6570  df-rdg 6605  df-1o 6661  df-oadd 6665  df-er 6842  df-en 7047  df-dom 7048  df-sdom 7049  df-fin 7050  df-sup 7382  df-oi 7413  df-card 7760  df-pnf 9056  df-mnf 9057  df-xr 9058  df-ltxr 9059  df-le 9060  df-sub 9226  df-neg 9227  df-div 9611  df-nn 9934  df-2 9991  df-3 9992  df-n0 10155  df-z 10216  df-uz 10422  df-rp 10546  df-fz 10977  df-fzo 11067  df-fl 11130  df-mod 11179  df-seq 11252  df-exp 11311  df-hash 11547  df-cj 11832  df-re 11833  df-im 11834  df-sqr 11968  df-abs 11969  df-clim 12210  df-sum 12408  df-dvds 12781  df-gcd 12935
  Copyright terms: Public domain W3C validator