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

Theorem cbvsum 13285
Description: Change bound variable in a sum. (Contributed by NM, 11-Dec-2005.) (Revised by Mario Carneiro, 13-Jun-2019.)
Hypotheses
Ref Expression
cbvsum.1  |-  ( j  =  k  ->  B  =  C )
cbvsum.2  |-  F/_ k A
cbvsum.3  |-  F/_ j A
cbvsum.4  |-  F/_ k B
cbvsum.5  |-  F/_ j C
Assertion
Ref Expression
cbvsum  |-  sum_ j  e.  A  B  =  sum_ k  e.  A  C
Distinct variable group:    j, k
Allowed substitution hints:    A( j, k)    B( j, k)    C( j, k)

Proof of Theorem cbvsum
Dummy variables  f  m  n  x are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 cbvsum.4 . . . . . . . . . . . . 13  |-  F/_ k B
2 cbvsum.5 . . . . . . . . . . . . 13  |-  F/_ j C
3 cbvsum.1 . . . . . . . . . . . . 13  |-  ( j  =  k  ->  B  =  C )
41, 2, 3cbvcsb 3395 . . . . . . . . . . . 12  |-  [_ n  /  j ]_ B  =  [_ n  /  k ]_ C
54a1i 11 . . . . . . . . . . 11  |-  ( T. 
->  [_ n  /  j ]_ B  =  [_ n  /  k ]_ C
)
65ifeq1d 3910 . . . . . . . . . 10  |-  ( T. 
->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 )  =  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) )
76mpteq2dv 4482 . . . . . . . . 9  |-  ( T. 
->  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) )  =  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) )
87seqeq3d 11926 . . . . . . . 8  |-  ( T. 
->  seq m (  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) ) )  =  seq m
(  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) ) )
98trud 1379 . . . . . . 7  |-  seq m
(  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) ) )  =  seq m (  +  , 
( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) )
109breq1i 4402 . . . . . 6  |-  (  seq m (  +  , 
( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) ) )  ~~>  x  <->  seq m
(  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) )  ~~>  x )
1110anbi2i 694 . . . . 5  |-  ( ( A  C_  ( ZZ>= `  m )  /\  seq m (  +  , 
( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) ) )  ~~>  x )  <-> 
( A  C_  ( ZZ>=
`  m )  /\  seq m (  +  , 
( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) )  ~~>  x ) )
1211rexbii 2861 . . . 4  |-  ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m
)  /\  seq m
(  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) ) )  ~~>  x )  <->  E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m )  /\  seq m (  +  , 
( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) )  ~~>  x ) )
131, 2, 3cbvcsb 3395 . . . . . . . . . . . . 13  |-  [_ (
f `  n )  /  j ]_ B  =  [_ ( f `  n )  /  k ]_ C
1413a1i 11 . . . . . . . . . . . 12  |-  ( T. 
->  [_ ( f `  n )  /  j ]_ B  =  [_ (
f `  n )  /  k ]_ C
)
1514mpteq2dv 4482 . . . . . . . . . . 11  |-  ( T. 
->  ( n  e.  NN  |->  [_ ( f `  n
)  /  j ]_ B )  =  ( n  e.  NN  |->  [_ ( f `  n
)  /  k ]_ C ) )
1615seqeq3d 11926 . . . . . . . . . 10  |-  ( T. 
->  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  j ]_ B ) )  =  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) )
1716trud 1379 . . . . . . . . 9  |-  seq 1
(  +  ,  ( n  e.  NN  |->  [_ ( f `  n
)  /  j ]_ B ) )  =  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) )
1817fveq1i 5795 . . . . . . . 8  |-  (  seq 1 (  +  , 
( n  e.  NN  |->  [_ ( f `  n
)  /  j ]_ B ) ) `  m )  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m )
1918eqeq2i 2470 . . . . . . 7  |-  ( x  =  (  seq 1
(  +  ,  ( n  e.  NN  |->  [_ ( f `  n
)  /  j ]_ B ) ) `  m )  <->  x  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) )
2019anbi2i 694 . . . . . 6  |-  ( ( f : ( 1 ... m ) -1-1-onto-> A  /\  x  =  (  seq 1 (  +  , 
( n  e.  NN  |->  [_ ( f `  n
)  /  j ]_ B ) ) `  m ) )  <->  ( f : ( 1 ... m ) -1-1-onto-> A  /\  x  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ (
f `  n )  /  k ]_ C
) ) `  m
) ) )
2120exbii 1635 . . . . 5  |-  ( E. f ( f : ( 1 ... m
)
-1-1-onto-> A  /\  x  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  j ]_ B ) ) `  m ) )  <->  E. f
( f : ( 1 ... m ) -1-1-onto-> A  /\  x  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) ) )
2221rexbii 2861 . . . 4  |-  ( E. m  e.  NN  E. f ( f : ( 1 ... m
)
-1-1-onto-> A  /\  x  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  j ]_ B ) ) `  m ) )  <->  E. m  e.  NN  E. f ( f : ( 1 ... m ) -1-1-onto-> A  /\  x  =  (  seq 1 (  +  , 
( n  e.  NN  |->  [_ ( f `  n
)  /  k ]_ C ) ) `  m ) ) )
2312, 22orbi12i 521 . . 3  |-  ( ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m )  /\  seq m (  +  , 
( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) ) )  ~~>  x )  \/  E. m  e.  NN  E. f ( f : ( 1 ... m ) -1-1-onto-> A  /\  x  =  (  seq 1 (  +  , 
( n  e.  NN  |->  [_ ( f `  n
)  /  j ]_ B ) ) `  m ) ) )  <-> 
( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m )  /\  seq m (  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) )  ~~>  x )  \/ 
E. m  e.  NN  E. f ( f : ( 1 ... m
)
-1-1-onto-> A  /\  x  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) ) ) )
2423iotabii 5506 . 2  |-  ( iota
x ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m )  /\  seq m (  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) ) )  ~~>  x )  \/ 
E. m  e.  NN  E. f ( f : ( 1 ... m
)
-1-1-onto-> A  /\  x  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  j ]_ B ) ) `  m ) ) ) )  =  ( iota
x ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m )  /\  seq m (  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) )  ~~>  x )  \/ 
E. m  e.  NN  E. f ( f : ( 1 ... m
)
-1-1-onto-> A  /\  x  =  (  seq 1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) ) ) )
25 df-sum 13277 . 2  |-  sum_ j  e.  A  B  =  ( iota x ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m
)  /\  seq m
(  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  j ]_ B ,  0 ) ) )  ~~>  x )  \/  E. m  e.  NN  E. f ( f : ( 1 ... m ) -1-1-onto-> A  /\  x  =  (  seq 1 (  +  , 
( n  e.  NN  |->  [_ ( f `  n
)  /  j ]_ B ) ) `  m ) ) ) )
26 df-sum 13277 . 2  |-  sum_ k  e.  A  C  =  ( iota x ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m
)  /\  seq m
(  +  ,  ( n  e.  ZZ  |->  if ( n  e.  A ,  [_ n  /  k ]_ C ,  0 ) ) )  ~~>  x )  \/  E. m  e.  NN  E. f ( f : ( 1 ... m ) -1-1-onto-> A  /\  x  =  (  seq 1 (  +  , 
( n  e.  NN  |->  [_ ( f `  n
)  /  k ]_ C ) ) `  m ) ) ) )
2724, 25, 263eqtr4i 2491 1  |-  sum_ j  e.  A  B  =  sum_ k  e.  A  C
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    \/ wo 368    /\ wa 369    = wceq 1370   T. wtru 1371   E.wex 1587    e. wcel 1758   F/_wnfc 2600   E.wrex 2797   [_csb 3390    C_ wss 3431   ifcif 3894   class class class wbr 4395    |-> cmpt 4453   iotacio 5482   -1-1-onto->wf1o 5520   ` cfv 5521  (class class class)co 6195   0cc0 9388   1c1 9389    + caddc 9391   NNcn 10428   ZZcz 10752   ZZ>=cuz 10967   ...cfz 11549    seqcseq 11918    ~~> cli 13075   sum_csu 13276
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-10 1777  ax-11 1782  ax-12 1794  ax-13 1954  ax-ext 2431
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-clab 2438  df-cleq 2444  df-clel 2447  df-nfc 2602  df-ral 2801  df-rex 2802  df-rab 2805  df-v 3074  df-sbc 3289  df-csb 3391  df-dif 3434  df-un 3436  df-in 3438  df-ss 3445  df-nul 3741  df-if 3895  df-sn 3981  df-pr 3983  df-op 3987  df-uni 4195  df-br 4396  df-opab 4454  df-mpt 4455  df-cnv 4951  df-dm 4953  df-rn 4954  df-res 4955  df-ima 4956  df-iota 5484  df-fv 5529  df-ov 6198  df-oprab 6199  df-mpt2 6200  df-recs 6937  df-rdg 6971  df-seq 11919  df-sum 13277
This theorem is referenced by:  cbvsumv  13286  cbvsumi  13287  esumpfinvalf  26665
  Copyright terms: Public domain W3C validator