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

Theorem dvdsflsumcom 20651
Description: A sum commutation from  sum_ n  <_  A ,  sum_ d  ||  n ,  B (
n ,  d ) to  sum_ d  <_  A ,  sum_ m  <_  A  /  d ,  B
( n ,  d m ). (Contributed by Mario Carneiro, 4-May-2016.)
Hypotheses
Ref Expression
dvdsflsumcom.1  |-  ( n  =  ( d  x.  m )  ->  B  =  C )
dvdsflsumcom.2  |-  ( ph  ->  A  e.  RR )
dvdsflsumcom.3  |-  ( (
ph  /\  ( n  e.  ( 1 ... ( |_ `  A ) )  /\  d  e.  {
x  e.  NN  |  x  ||  n } ) )  ->  B  e.  CC )
Assertion
Ref Expression
dvdsflsumcom  |-  ( ph  -> 
sum_ n  e.  (
1 ... ( |_ `  A ) ) sum_ d  e.  { x  e.  NN  |  x  ||  n } B  =  sum_ d  e.  ( 1 ... ( |_ `  A ) ) sum_ m  e.  ( 1 ... ( |_ `  ( A  /  d ) ) ) C )
Distinct variable groups:    m, d, n, x, A    B, m    C, n    ph, d, m, n
Allowed substitution hints:    ph( x)    B( x, n, d)    C( x, m, d)

Proof of Theorem dvdsflsumcom
Dummy variable  y is distinct from all other variables.
StepHypRef Expression
1 fzfid 11199 . . 3  |-  ( ph  ->  ( 1 ... ( |_ `  A ) )  e.  Fin )
2 fzfid 11199 . . . 4  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( 1 ... n )  e. 
Fin )
3 elfznn 10972 . . . . . 6  |-  ( n  e.  ( 1 ... ( |_ `  A
) )  ->  n  e.  NN )
43adantl 452 . . . . 5  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  n  e.  NN )
5 sgmss 20567 . . . . 5  |-  ( n  e.  NN  ->  { x  e.  NN  |  x  ||  n }  C_  ( 1 ... n ) )
64, 5syl 15 . . . 4  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  { x  e.  NN  |  x  ||  n }  C_  ( 1 ... n ) )
7 ssfi 7226 . . . 4  |-  ( ( ( 1 ... n
)  e.  Fin  /\  { x  e.  NN  |  x  ||  n }  C_  ( 1 ... n
) )  ->  { x  e.  NN  |  x  ||  n }  e.  Fin )
82, 6, 7syl2anc 642 . . 3  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  { x  e.  NN  |  x  ||  n }  e.  Fin )
9 nnre 9900 . . . . . . . . . . . 12  |-  ( d  e.  NN  ->  d  e.  RR )
109ad2antrl 708 . . . . . . . . . . 11  |-  ( ( ( ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  -> 
d  e.  RR )
114adantr 451 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  ->  n  e.  NN )
1211nnred 9908 . . . . . . . . . . 11  |-  ( ( ( ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  ->  n  e.  RR )
13 dvdsflsumcom.2 . . . . . . . . . . . 12  |-  ( ph  ->  A  e.  RR )
1413ad2antrr 706 . . . . . . . . . . 11  |-  ( ( ( ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  ->  A  e.  RR )
15 nnz 10196 . . . . . . . . . . . . 13  |-  ( d  e.  NN  ->  d  e.  ZZ )
16 dvdsle 12782 . . . . . . . . . . . . 13  |-  ( ( d  e.  ZZ  /\  n  e.  NN )  ->  ( d  ||  n  ->  d  <_  n )
)
1715, 4, 16syl2anr 464 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  /\  d  e.  NN )  ->  (
d  ||  n  ->  d  <_  n ) )
1817impr 602 . . . . . . . . . . 11  |-  ( ( ( ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  -> 
d  <_  n )
19 fznnfl 11130 . . . . . . . . . . . . . 14  |-  ( A  e.  RR  ->  (
n  e.  ( 1 ... ( |_ `  A ) )  <->  ( n  e.  NN  /\  n  <_  A ) ) )
2013, 19syl 15 . . . . . . . . . . . . 13  |-  ( ph  ->  ( n  e.  ( 1 ... ( |_
`  A ) )  <-> 
( n  e.  NN  /\  n  <_  A )
) )
2120simplbda 607 . . . . . . . . . . . 12  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  n  <_  A )
2221adantr 451 . . . . . . . . . . 11  |-  ( ( ( ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  ->  n  <_  A )
2310, 12, 14, 18, 22letrd 9120 . . . . . . . . . 10  |-  ( ( ( ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  -> 
d  <_  A )
2423ex 423 . . . . . . . . 9  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( (
d  e.  NN  /\  d  ||  n )  -> 
d  <_  A )
)
2524pm4.71rd 616 . . . . . . . 8  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( (
d  e.  NN  /\  d  ||  n )  <->  ( d  <_  A  /\  ( d  e.  NN  /\  d  ||  n ) ) ) )
26 ancom 437 . . . . . . . . 9  |-  ( ( d  <_  A  /\  ( d  e.  NN  /\  d  ||  n ) )  <->  ( ( d  e.  NN  /\  d  ||  n )  /\  d  <_  A ) )
27 an32 773 . . . . . . . . 9  |-  ( ( ( d  e.  NN  /\  d  ||  n )  /\  d  <_  A
)  <->  ( ( d  e.  NN  /\  d  <_  A )  /\  d  ||  n ) )
2826, 27bitri 240 . . . . . . . 8  |-  ( ( d  <_  A  /\  ( d  e.  NN  /\  d  ||  n ) )  <->  ( ( d  e.  NN  /\  d  <_  A )  /\  d  ||  n ) )
2925, 28syl6bb 252 . . . . . . 7  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( (
d  e.  NN  /\  d  ||  n )  <->  ( (
d  e.  NN  /\  d  <_  A )  /\  d  ||  n ) ) )
30 fznnfl 11130 . . . . . . . . . 10  |-  ( A  e.  RR  ->  (
d  e.  ( 1 ... ( |_ `  A ) )  <->  ( d  e.  NN  /\  d  <_  A ) ) )
3113, 30syl 15 . . . . . . . . 9  |-  ( ph  ->  ( d  e.  ( 1 ... ( |_
`  A ) )  <-> 
( d  e.  NN  /\  d  <_  A )
) )
3231adantr 451 . . . . . . . 8  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( d  e.  ( 1 ... ( |_ `  A ) )  <-> 
( d  e.  NN  /\  d  <_  A )
) )
3332anbi1d 685 . . . . . . 7  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( (
d  e.  ( 1 ... ( |_ `  A ) )  /\  d  ||  n )  <->  ( (
d  e.  NN  /\  d  <_  A )  /\  d  ||  n ) ) )
3429, 33bitr4d 247 . . . . . 6  |-  ( (
ph  /\  n  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( (
d  e.  NN  /\  d  ||  n )  <->  ( d  e.  ( 1 ... ( |_ `  A ) )  /\  d  ||  n
) ) )
3534pm5.32da 622 . . . . 5  |-  ( ph  ->  ( ( n  e.  ( 1 ... ( |_ `  A ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  <->  ( n  e.  ( 1 ... ( |_ `  A ) )  /\  ( d  e.  ( 1 ... ( |_ `  A ) )  /\  d  ||  n
) ) ) )
36 an12 772 . . . . 5  |-  ( ( n  e.  ( 1 ... ( |_ `  A ) )  /\  ( d  e.  ( 1 ... ( |_
`  A ) )  /\  d  ||  n
) )  <->  ( d  e.  ( 1 ... ( |_ `  A ) )  /\  ( n  e.  ( 1 ... ( |_ `  A ) )  /\  d  ||  n
) ) )
3735, 36syl6bb 252 . . . 4  |-  ( ph  ->  ( ( n  e.  ( 1 ... ( |_ `  A ) )  /\  ( d  e.  NN  /\  d  ||  n ) )  <->  ( d  e.  ( 1 ... ( |_ `  A ) )  /\  ( n  e.  ( 1 ... ( |_ `  A ) )  /\  d  ||  n
) ) ) )
38 breq1 4128 . . . . . 6  |-  ( x  =  d  ->  (
x  ||  n  <->  d  ||  n ) )
3938elrab 3009 . . . . 5  |-  ( d  e.  { x  e.  NN  |  x  ||  n }  <->  ( d  e.  NN  /\  d  ||  n ) )
4039anbi2i 675 . . . 4  |-  ( ( n  e.  ( 1 ... ( |_ `  A ) )  /\  d  e.  { x  e.  NN  |  x  ||  n } )  <->  ( n  e.  ( 1 ... ( |_ `  A ) )  /\  ( d  e.  NN  /\  d  ||  n ) ) )
41 breq2 4129 . . . . . 6  |-  ( x  =  n  ->  (
d  ||  x  <->  d  ||  n ) )
4241elrab 3009 . . . . 5  |-  ( n  e.  { x  e.  ( 1 ... ( |_ `  A ) )  |  d  ||  x } 
<->  ( n  e.  ( 1 ... ( |_
`  A ) )  /\  d  ||  n
) )
4342anbi2i 675 . . . 4  |-  ( ( d  e.  ( 1 ... ( |_ `  A ) )  /\  n  e.  { x  e.  ( 1 ... ( |_ `  A ) )  |  d  ||  x } )  <->  ( d  e.  ( 1 ... ( |_ `  A ) )  /\  ( n  e.  ( 1 ... ( |_ `  A ) )  /\  d  ||  n
) ) )
4437, 40, 433bitr4g 279 . . 3  |-  ( ph  ->  ( ( n  e.  ( 1 ... ( |_ `  A ) )  /\  d  e.  {
x  e.  NN  |  x  ||  n } )  <-> 
( d  e.  ( 1 ... ( |_
`  A ) )  /\  n  e.  {
x  e.  ( 1 ... ( |_ `  A ) )  |  d  ||  x }
) ) )
45 dvdsflsumcom.3 . . 3  |-  ( (
ph  /\  ( n  e.  ( 1 ... ( |_ `  A ) )  /\  d  e.  {
x  e.  NN  |  x  ||  n } ) )  ->  B  e.  CC )
461, 1, 8, 44, 45fsumcom2 12445 . 2  |-  ( ph  -> 
sum_ n  e.  (
1 ... ( |_ `  A ) ) sum_ d  e.  { x  e.  NN  |  x  ||  n } B  =  sum_ d  e.  ( 1 ... ( |_ `  A ) ) sum_ n  e.  { x  e.  ( 1 ... ( |_ `  A ) )  |  d  ||  x } B )
47 dvdsflsumcom.1 . . . 4  |-  ( n  =  ( d  x.  m )  ->  B  =  C )
48 fzfid 11199 . . . 4  |-  ( (
ph  /\  d  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( 1 ... ( |_ `  ( A  /  d
) ) )  e. 
Fin )
4913adantr 451 . . . . 5  |-  ( (
ph  /\  d  e.  ( 1 ... ( |_ `  A ) ) )  ->  A  e.  RR )
5031simprbda 606 . . . . 5  |-  ( (
ph  /\  d  e.  ( 1 ... ( |_ `  A ) ) )  ->  d  e.  NN )
51 eqid 2366 . . . . 5  |-  ( y  e.  ( 1 ... ( |_ `  ( A  /  d ) ) )  |->  ( d  x.  y ) )  =  ( y  e.  ( 1 ... ( |_
`  ( A  / 
d ) ) ) 
|->  ( d  x.  y
) )
5249, 50, 51dvdsflf1o 20650 . . . 4  |-  ( (
ph  /\  d  e.  ( 1 ... ( |_ `  A ) ) )  ->  ( y  e.  ( 1 ... ( |_ `  ( A  / 
d ) ) ) 
|->  ( d  x.  y
) ) : ( 1 ... ( |_
`  ( A  / 
d ) ) ) -1-1-onto-> { x  e.  ( 1 ... ( |_ `  A ) )  |  d  ||  x }
)
53 oveq2 5989 . . . . . 6  |-  ( y  =  m  ->  (
d  x.  y )  =  ( d  x.  m ) )
54 ovex 6006 . . . . . 6  |-  ( d  x.  m )  e. 
_V
5553, 51, 54fvmpt 5709 . . . . 5  |-  ( m  e.  ( 1 ... ( |_ `  ( A  /  d ) ) )  ->  ( (
y  e.  ( 1 ... ( |_ `  ( A  /  d
) ) )  |->  ( d  x.  y ) ) `  m )  =  ( d  x.  m ) )
5655adantl 452 . . . 4  |-  ( ( ( ph  /\  d  e.  ( 1 ... ( |_ `  A ) ) )  /\  m  e.  ( 1 ... ( |_ `  ( A  / 
d ) ) ) )  ->  ( (
y  e.  ( 1 ... ( |_ `  ( A  /  d
) ) )  |->  ( d  x.  y ) ) `  m )  =  ( d  x.  m ) )
5744biimpar 471 . . . . . 6  |-  ( (
ph  /\  ( d  e.  ( 1 ... ( |_ `  A ) )  /\  n  e.  {
x  e.  ( 1 ... ( |_ `  A ) )  |  d  ||  x }
) )  ->  (
n  e.  ( 1 ... ( |_ `  A ) )  /\  d  e.  { x  e.  NN  |  x  ||  n } ) )
5857, 45syldan 456 . . . . 5  |-  ( (
ph  /\  ( d  e.  ( 1 ... ( |_ `  A ) )  /\  n  e.  {
x  e.  ( 1 ... ( |_ `  A ) )  |  d  ||  x }
) )  ->  B  e.  CC )
5958anassrs 629 . . . 4  |-  ( ( ( ph  /\  d  e.  ( 1 ... ( |_ `  A ) ) )  /\  n  e. 
{ x  e.  ( 1 ... ( |_
`  A ) )  |  d  ||  x } )  ->  B  e.  CC )
6047, 48, 52, 56, 59fsumf1o 12404 . . 3  |-  ( (
ph  /\  d  e.  ( 1 ... ( |_ `  A ) ) )  ->  sum_ n  e. 
{ x  e.  ( 1 ... ( |_
`  A ) )  |  d  ||  x } B  =  sum_ m  e.  ( 1 ... ( |_ `  ( A  /  d ) ) ) C )
6160sumeq2dv 12384 . 2  |-  ( ph  -> 
sum_ d  e.  ( 1 ... ( |_
`  A ) )
sum_ n  e.  { x  e.  ( 1 ... ( |_ `  A ) )  |  d  ||  x } B  =  sum_ d  e.  ( 1 ... ( |_ `  A ) ) sum_ m  e.  ( 1 ... ( |_ `  ( A  /  d ) ) ) C )
6246, 61eqtrd 2398 1  |-  ( ph  -> 
sum_ n  e.  (
1 ... ( |_ `  A ) ) sum_ d  e.  { x  e.  NN  |  x  ||  n } B  =  sum_ d  e.  ( 1 ... ( |_ `  A ) ) sum_ m  e.  ( 1 ... ( |_ `  ( A  /  d ) ) ) C )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1647    e. wcel 1715   {crab 2632    C_ wss 3238   class class class wbr 4125    e. cmpt 4179   ` cfv 5358  (class class class)co 5981   Fincfn 7006   CCcc 8882   RRcr 8883   1c1 8885    x. cmul 8889    <_ cle 9015    / cdiv 9570   NNcn 9893   ZZcz 10175   ...cfz 10935   |_cfl 11088   sum_csu 12366    || cdivides 12739
This theorem is referenced by:  dchrmusum2  20866  dchrvmasumlem1  20867  dchrvmasum2lem  20868  dchrisum0  20892  mudivsum  20902  mulogsum  20904  mulog2sumlem2  20907  vmalogdivsum2  20910  selberglem3  20919  selberg  20920  selberg34r  20943  pntsval2  20948
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1551  ax-5 1562  ax-17 1621  ax-9 1659  ax-8 1680  ax-13 1717  ax-14 1719  ax-6 1734  ax-7 1739  ax-11 1751  ax-12 1937  ax-ext 2347  ax-rep 4233  ax-sep 4243  ax-nul 4251  ax-pow 4290  ax-pr 4316  ax-un 4615  ax-inf2 7489  ax-cnex 8940  ax-resscn 8941  ax-1cn 8942  ax-icn 8943  ax-addcl 8944  ax-addrcl 8945  ax-mulcl 8946  ax-mulrcl 8947  ax-mulcom 8948  ax-addass 8949  ax-mulass 8950  ax-distr 8951  ax-i2m1 8952  ax-1ne0 8953  ax-1rid 8954  ax-rnegex 8955  ax-rrecex 8956  ax-cnre 8957  ax-pre-lttri 8958  ax-pre-lttrn 8959  ax-pre-ltadd 8960  ax-pre-mulgt0 8961  ax-pre-sup 8962
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 936  df-3an 937  df-tru 1324  df-ex 1547  df-nf 1550  df-sb 1654  df-eu 2221  df-mo 2222  df-clab 2353  df-cleq 2359  df-clel 2362  df-nfc 2491  df-ne 2531  df-nel 2532  df-ral 2633  df-rex 2634  df-reu 2635  df-rmo 2636  df-rab 2637  df-v 2875  df-sbc 3078  df-csb 3168  df-dif 3241  df-un 3243  df-in 3245  df-ss 3252  df-pss 3254  df-nul 3544  df-if 3655  df-pw 3716  df-sn 3735  df-pr 3736  df-tp 3737  df-op 3738  df-uni 3930  df-int 3965  df-iun 4009  df-br 4126  df-opab 4180  df-mpt 4181  df-tr 4216  df-eprel 4408  df-id 4412  df-po 4417  df-so 4418  df-fr 4455  df-se 4456  df-we 4457  df-ord 4498  df-on 4499  df-lim 4500  df-suc 4501  df-om 4760  df-xp 4798  df-rel 4799  df-cnv 4800  df-co 4801  df-dm 4802  df-rn 4803  df-res 4804  df-ima 4805  df-iota 5322  df-fun 5360  df-fn 5361  df-f 5362  df-f1 5363  df-fo 5364  df-f1o 5365  df-fv 5366  df-isom 5367  df-ov 5984  df-oprab 5985  df-mpt2 5986  df-1st 6249  df-2nd 6250  df-riota 6446  df-recs 6530  df-rdg 6565  df-1o 6621  df-oadd 6625  df-er 6802  df-en 7007  df-dom 7008  df-sdom 7009  df-fin 7010  df-sup 7341  df-oi 7372  df-card 7719  df-pnf 9016  df-mnf 9017  df-xr 9018  df-ltxr 9019  df-le 9020  df-sub 9186  df-neg 9187  df-div 9571  df-nn 9894  df-2 9951  df-3 9952  df-n0 10115  df-z 10176  df-uz 10382  df-rp 10506  df-fz 10936  df-fzo 11026  df-fl 11089  df-seq 11211  df-exp 11270  df-hash 11506  df-cj 11791  df-re 11792  df-im 11793  df-sqr 11927  df-abs 11928  df-clim 12169  df-sum 12367  df-dvds 12740
  Copyright terms: Public domain W3C validator