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

Theorem sumeq1f 12474
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 3361 . . . . . 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 2578 . . . . . . . . 9  |-  F/ k  A  =  B
5 simpl 444 . . . . . . . . . . 11  |-  ( ( A  =  B  /\  k  e.  ZZ )  ->  A  =  B )
65eleq2d 2502 . . . . . . . . . 10  |-  ( ( A  =  B  /\  k  e.  ZZ )  ->  ( k  e.  A  <->  k  e.  B ) )
76ifbid 3749 . . . . . . . . 9  |-  ( ( A  =  B  /\  k  e.  ZZ )  ->  if ( k  e.  A ,  C , 
0 )  =  if ( k  e.  B ,  C ,  0 ) )
84, 7mpteq2da 4286 . . . . . . . 8  |-  ( A  =  B  ->  (
k  e.  ZZ  |->  if ( k  e.  A ,  C ,  0 ) )  =  ( k  e.  ZZ  |->  if ( k  e.  B ,  C ,  0 ) ) )
98seqeq3d 11323 . . . . . . 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 4214 . . . . . 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 692 . . . . 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 2718 . . . 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 5659 . . . . . . 7  |-  ( A  =  B  ->  (
f : ( 1 ... m ) -1-1-onto-> A  <->  f :
( 1 ... m
)
-1-1-onto-> B ) )
1413anbi1d 686 . . . . . 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 1636 . . . . 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 2718 . . . 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 691 . . 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 5431 . 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 12472 . 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 12472 . 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 2492 1  |-  ( A  =  B  ->  sum_ k  e.  A  C  =  sum_ k  e.  B  C
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    \/ wo 358    /\ wa 359   E.wex 1550    = wceq 1652    e. wcel 1725   F/_wnfc 2558   E.wrex 2698   [_csb 3243    C_ wss 3312   ifcif 3731   class class class wbr 4204    e. cmpt 4258   iotacio 5408   -1-1-onto->wf1o 5445   ` cfv 5446  (class class class)co 6073   0cc0 8982   1c1 8983    + caddc 8985   NNcn 9992   ZZcz 10274   ZZ>=cuz 10480   ...cfz 11035    seq cseq 11315    ~~> cli 12270   sum_csu 12471
This theorem is referenced by:  sumeq1  12475
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ral 2702  df-rex 2703  df-rab 2706  df-v 2950  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-nul 3621  df-if 3732  df-sn 3812  df-pr 3813  df-op 3815  df-uni 4008  df-br 4205  df-opab 4259  df-mpt 4260  df-cnv 4878  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-recs 6625  df-rdg 6660  df-seq 11316  df-sum 12472
  Copyright terms: Public domain W3C validator