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

Theorem sumeq1f 12177
Description: Equality theorem for a sum. (Contributed by NM, 11-Dec-2005.) (Revised by Mario Carneiro, 13-Jul-2013.)
Hypotheses
Ref Expression
sumeq1f.1  |-  F/_ k A
sumeq1f.2  |-  F/_ k B
Assertion
Ref Expression
sumeq1f  |-  ( A  =  B  ->  sum_ k  e.  A  C  =  sum_ k  e.  B  C
)

Proof of Theorem sumeq1f
Dummy variables  f  m  n  x are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 sseq1 3212 . . . . . 6  |-  ( A  =  B  ->  ( A  C_  ( ZZ>= `  m
)  <->  B  C_  ( ZZ>= `  m ) ) )
2 sumeq1f.1 . . . . . . . . . 10  |-  F/_ k A
3 sumeq1f.2 . . . . . . . . . 10  |-  F/_ k B
42, 3nfeq 2439 . . . . . . . . 9  |-  F/ k  A  =  B
5 simpl 443 . . . . . . . . . . 11  |-  ( ( A  =  B  /\  k  e.  ZZ )  ->  A  =  B )
65eleq2d 2363 . . . . . . . . . 10  |-  ( ( A  =  B  /\  k  e.  ZZ )  ->  ( k  e.  A  <->  k  e.  B ) )
76ifbid 3596 . . . . . . . . 9  |-  ( ( A  =  B  /\  k  e.  ZZ )  ->  if ( k  e.  A ,  C , 
0 )  =  if ( k  e.  B ,  C ,  0 ) )
84, 7mpteq2da 4121 . . . . . . . 8  |-  ( A  =  B  ->  (
k  e.  ZZ  |->  if ( k  e.  A ,  C ,  0 ) )  =  ( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) )
98seqeq3d 11070 . . . . . . 7  |-  ( A  =  B  ->  seq  m (  +  , 
( k  e.  ZZ  |->  if ( k  e.  A ,  C ,  0 ) ) )  =  seq  m (  +  , 
( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) ) )
109breq1d 4049 . . . . . 6  |-  ( A  =  B  ->  (  seq  m (  +  , 
( k  e.  ZZ  |->  if ( k  e.  A ,  C ,  0 ) ) )  ~~>  x  <->  seq  m (  +  ,  ( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) )  ~~>  x ) )
111, 10anbi12d 691 . . . . 5  |-  ( A  =  B  ->  (
( A  C_  ( ZZ>=
`  m )  /\  seq  m (  +  , 
( k  e.  ZZ  |->  if ( k  e.  A ,  C ,  0 ) ) )  ~~>  x )  <-> 
( B  C_  ( ZZ>=
`  m )  /\  seq  m (  +  , 
( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) )  ~~>  x ) ) )
1211rexbidv 2577 . . . 4  |-  ( A  =  B  ->  ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m )  /\  seq  m (  +  , 
( k  e.  ZZ  |->  if ( k  e.  A ,  C ,  0 ) ) )  ~~>  x )  <->  E. m  e.  ZZ  ( B  C_  ( ZZ>= `  m )  /\  seq  m (  +  , 
( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) )  ~~>  x ) ) )
13 f1oeq3 5481 . . . . . . 7  |-  ( A  =  B  ->  (
f : ( 1 ... m ) -1-1-onto-> A  <->  f :
( 1 ... m
)
-1-1-onto-> B ) )
1413anbi1d 685 . . . . . 6  |-  ( A  =  B  ->  (
( f : ( 1 ... m ) -1-1-onto-> A  /\  x  =  (  seq  1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) )  <->  ( f : ( 1 ... m ) -1-1-onto-> B  /\  x  =  (  seq  1 (  +  ,  ( n  e.  NN  |->  [_ (
f `  n )  /  k ]_ C
) ) `  m
) ) ) )
1514exbidv 1616 . . . . 5  |-  ( A  =  B  ->  ( E. f ( f : ( 1 ... m
)
-1-1-onto-> A  /\  x  =  (  seq  1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) )  <->  E. f
( f : ( 1 ... m ) -1-1-onto-> B  /\  x  =  (  seq  1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) ) ) )
1615rexbidv 2577 . . . 4  |-  ( A  =  B  ->  ( E. m  e.  NN  E. f ( f : ( 1 ... m
)
-1-1-onto-> A  /\  x  =  (  seq  1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) )  <->  E. m  e.  NN  E. f ( f : ( 1 ... m ) -1-1-onto-> B  /\  x  =  (  seq  1 (  +  , 
( n  e.  NN  |->  [_ ( f `  n
)  /  k ]_ C ) ) `  m ) ) ) )
1712, 16orbi12d 690 . . 3  |-  ( A  =  B  ->  (
( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m )  /\  seq  m (  +  ,  ( k  e.  ZZ  |->  if ( k  e.  A ,  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 ) ) )  <-> 
( E. m  e.  ZZ  ( B  C_  ( ZZ>= `  m )  /\  seq  m (  +  ,  ( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) )  ~~>  x )  \/ 
E. m  e.  NN  E. f ( f : ( 1 ... m
)
-1-1-onto-> B  /\  x  =  (  seq  1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) ) ) ) )
1817iotabidv 5256 . 2  |-  ( A  =  B  ->  ( iota x ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m )  /\  seq  m (  +  ,  ( k  e.  ZZ  |->  if ( k  e.  A ,  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 ) ) ) )  =  ( iota
x ( E. m  e.  ZZ  ( B  C_  ( ZZ>= `  m )  /\  seq  m (  +  ,  ( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) )  ~~>  x )  \/ 
E. m  e.  NN  E. f ( f : ( 1 ... m
)
-1-1-onto-> B  /\  x  =  (  seq  1 (  +  ,  ( n  e.  NN  |->  [_ ( f `  n )  /  k ]_ C ) ) `  m ) ) ) ) )
19 df-sum 12175 . 2  |-  sum_ k  e.  A  C  =  ( iota x ( E. m  e.  ZZ  ( A  C_  ( ZZ>= `  m
)  /\  seq  m (  +  ,  ( k  e.  ZZ  |->  if ( k  e.  A ,  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 ) ) ) )
20 df-sum 12175 . 2  |-  sum_ k  e.  B  C  =  ( iota x ( E. m  e.  ZZ  ( B  C_  ( ZZ>= `  m
)  /\  seq  m (  +  ,  ( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) )  ~~>  x )  \/  E. m  e.  NN  E. f ( f : ( 1 ... m ) -1-1-onto-> B  /\  x  =  (  seq  1 (  +  , 
( n  e.  NN  |->  [_ ( f `  n
)  /  k ]_ C ) ) `  m ) ) ) )
2118, 19, 203eqtr4g 2353 1  |-  ( A  =  B  ->  sum_ k  e.  A  C  =  sum_ k  e.  B  C
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    \/ wo 357    /\ wa 358   E.wex 1531    = wceq 1632    e. wcel 1696   F/_wnfc 2419   E.wrex 2557   [_csb 3094    C_ wss 3165   ifcif 3578   class class class wbr 4039    e. cmpt 4093   iotacio 5233   -1-1-onto->wf1o 5270   ` cfv 5271  (class class class)co 5874   0cc0 8753   1c1 8754    + caddc 8756   NNcn 9762   ZZcz 10040   ZZ>=cuz 10246   ...cfz 10798    seq cseq 11062    ~~> cli 11974   sum_csu 12174
This theorem is referenced by:  sumeq1  12178
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ral 2561  df-rex 2562  df-rab 2565  df-v 2803  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-nul 3469  df-if 3579  df-sn 3659  df-pr 3660  df-op 3662  df-uni 3844  df-br 4040  df-opab 4094  df-mpt 4095  df-cnv 4713  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-recs 6404  df-rdg 6439  df-seq 11063  df-sum 12175
  Copyright terms: Public domain W3C validator