ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fisumcom2 Unicode version

Theorem fisumcom2 11401
Description: Interchange order of summation. Note that  B ( j ) and 
D ( k ) are not necessarily constant expressions. (Contributed by Mario Carneiro, 28-Apr-2014.) (Revised by Mario Carneiro, 8-Apr-2016.) (Proof shortened by JJ, 2-Aug-2021.)
Hypotheses
Ref Expression
fsumcom2.1  |-  ( ph  ->  A  e.  Fin )
fsumcom2.2  |-  ( ph  ->  C  e.  Fin )
fsumcom2.3  |-  ( (
ph  /\  j  e.  A )  ->  B  e.  Fin )
fisumcom2.fi  |-  ( (
ph  /\  k  e.  C )  ->  D  e.  Fin )
fsumcom2.4  |-  ( ph  ->  ( ( j  e.  A  /\  k  e.  B )  <->  ( k  e.  C  /\  j  e.  D ) ) )
fsumcom2.5  |-  ( (
ph  /\  ( j  e.  A  /\  k  e.  B ) )  ->  E  e.  CC )
Assertion
Ref Expression
fisumcom2  |-  ( ph  -> 
sum_ j  e.  A  sum_ k  e.  B  E  =  sum_ k  e.  C  sum_ j  e.  D  E
)
Distinct variable groups:    j, k, A    C, j, k    ph, j,
k    B, k    D, j
Allowed substitution hints:    B( j)    D( k)    E( j, k)

Proof of Theorem fisumcom2
Dummy variables  m  n  x  y  z  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 relxp 4720 . . . . . . . . 9  |-  Rel  ( { j }  X.  B )
21rgenw 2525 . . . . . . . 8  |-  A. j  e.  A  Rel  ( { j }  X.  B
)
3 reliun 4732 . . . . . . . 8  |-  ( Rel  U_ j  e.  A  ( { j }  X.  B )  <->  A. j  e.  A  Rel  ( { j }  X.  B
) )
42, 3mpbir 145 . . . . . . 7  |-  Rel  U_ j  e.  A  ( {
j }  X.  B
)
5 relcnv 4989 . . . . . . 7  |-  Rel  `' U_ k  e.  C  ( { k }  X.  D )
6 ancom 264 . . . . . . . . . . . 12  |-  ( ( x  =  j  /\  y  =  k )  <->  ( y  =  k  /\  x  =  j )
)
7 vex 2733 . . . . . . . . . . . . 13  |-  x  e. 
_V
8 vex 2733 . . . . . . . . . . . . 13  |-  y  e. 
_V
97, 8opth 4222 . . . . . . . . . . . 12  |-  ( <.
x ,  y >.  =  <. j ,  k
>. 
<->  ( x  =  j  /\  y  =  k ) )
108, 7opth 4222 . . . . . . . . . . . 12  |-  ( <.
y ,  x >.  = 
<. k ,  j >.  <->  ( y  =  k  /\  x  =  j )
)
116, 9, 103bitr4i 211 . . . . . . . . . . 11  |-  ( <.
x ,  y >.  =  <. j ,  k
>. 
<-> 
<. y ,  x >.  = 
<. k ,  j >.
)
1211a1i 9 . . . . . . . . . 10  |-  ( ph  ->  ( <. x ,  y
>.  =  <. j ,  k >.  <->  <. y ,  x >.  =  <. k ,  j
>. ) )
13 fsumcom2.4 . . . . . . . . . 10  |-  ( ph  ->  ( ( j  e.  A  /\  k  e.  B )  <->  ( k  e.  C  /\  j  e.  D ) ) )
1412, 13anbi12d 470 . . . . . . . . 9  |-  ( ph  ->  ( ( <. x ,  y >.  =  <. j ,  k >.  /\  (
j  e.  A  /\  k  e.  B )
)  <->  ( <. y ,  x >.  =  <. k ,  j >.  /\  (
k  e.  C  /\  j  e.  D )
) ) )
15142exbidv 1861 . . . . . . . 8  |-  ( ph  ->  ( E. j E. k ( <. x ,  y >.  =  <. j ,  k >.  /\  (
j  e.  A  /\  k  e.  B )
)  <->  E. j E. k
( <. y ,  x >.  =  <. k ,  j
>.  /\  ( k  e.  C  /\  j  e.  D ) ) ) )
16 eliunxp 4750 . . . . . . . 8  |-  ( <.
x ,  y >.  e.  U_ j  e.  A  ( { j }  X.  B )  <->  E. j E. k ( <. x ,  y >.  =  <. j ,  k >.  /\  (
j  e.  A  /\  k  e.  B )
) )
177, 8opelcnv 4793 . . . . . . . . 9  |-  ( <.
x ,  y >.  e.  `' U_ k  e.  C  ( { k }  X.  D )  <->  <. y ,  x >.  e.  U_ k  e.  C  ( {
k }  X.  D
) )
18 eliunxp 4750 . . . . . . . . 9  |-  ( <.
y ,  x >.  e. 
U_ k  e.  C  ( { k }  X.  D )  <->  E. k E. j ( <. y ,  x >.  =  <. k ,  j >.  /\  (
k  e.  C  /\  j  e.  D )
) )
19 excom 1657 . . . . . . . . 9  |-  ( E. k E. j (
<. y ,  x >.  = 
<. k ,  j >.  /\  ( k  e.  C  /\  j  e.  D
) )  <->  E. j E. k ( <. y ,  x >.  =  <. k ,  j >.  /\  (
k  e.  C  /\  j  e.  D )
) )
2017, 18, 193bitri 205 . . . . . . . 8  |-  ( <.
x ,  y >.  e.  `' U_ k  e.  C  ( { k }  X.  D )  <->  E. j E. k ( <. y ,  x >.  =  <. k ,  j >.  /\  (
k  e.  C  /\  j  e.  D )
) )
2115, 16, 203bitr4g 222 . . . . . . 7  |-  ( ph  ->  ( <. x ,  y
>.  e.  U_ j  e.  A  ( { j }  X.  B )  <->  <. x ,  y >.  e.  `' U_ k  e.  C  ( { k }  X.  D ) ) )
224, 5, 21eqrelrdv 4707 . . . . . 6  |-  ( ph  ->  U_ j  e.  A  ( { j }  X.  B )  =  `' U_ k  e.  C  ( { k }  X.  D ) )
23 nfcv 2312 . . . . . . 7  |-  F/_ m
( { j }  X.  B )
24 nfcv 2312 . . . . . . . 8  |-  F/_ j { m }
25 nfcsb1v 3082 . . . . . . . 8  |-  F/_ j [_ m  /  j ]_ B
2624, 25nfxp 4638 . . . . . . 7  |-  F/_ j
( { m }  X.  [_ m  /  j ]_ B )
27 sneq 3594 . . . . . . . 8  |-  ( j  =  m  ->  { j }  =  { m } )
28 csbeq1a 3058 . . . . . . . 8  |-  ( j  =  m  ->  B  =  [_ m  /  j ]_ B )
2927, 28xpeq12d 4636 . . . . . . 7  |-  ( j  =  m  ->  ( { j }  X.  B )  =  ( { m }  X.  [_ m  /  j ]_ B ) )
3023, 26, 29cbviun 3910 . . . . . 6  |-  U_ j  e.  A  ( {
j }  X.  B
)  =  U_ m  e.  A  ( {
m }  X.  [_ m  /  j ]_ B
)
31 nfcv 2312 . . . . . . . 8  |-  F/_ n
( { k }  X.  D )
32 nfcv 2312 . . . . . . . . 9  |-  F/_ k { n }
33 nfcsb1v 3082 . . . . . . . . 9  |-  F/_ k [_ n  /  k ]_ D
3432, 33nfxp 4638 . . . . . . . 8  |-  F/_ k
( { n }  X.  [_ n  /  k ]_ D )
35 sneq 3594 . . . . . . . . 9  |-  ( k  =  n  ->  { k }  =  { n } )
36 csbeq1a 3058 . . . . . . . . 9  |-  ( k  =  n  ->  D  =  [_ n  /  k ]_ D )
3735, 36xpeq12d 4636 . . . . . . . 8  |-  ( k  =  n  ->  ( { k }  X.  D )  =  ( { n }  X.  [_ n  /  k ]_ D ) )
3831, 34, 37cbviun 3910 . . . . . . 7  |-  U_ k  e.  C  ( {
k }  X.  D
)  =  U_ n  e.  C  ( {
n }  X.  [_ n  /  k ]_ D
)
3938cnveqi 4786 . . . . . 6  |-  `' U_ k  e.  C  ( { k }  X.  D )  =  `' U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D )
4022, 30, 393eqtr3g 2226 . . . . 5  |-  ( ph  ->  U_ m  e.  A  ( { m }  X.  [_ m  /  j ]_ B )  =  `' U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )
4140sumeq1d 11329 . . . 4  |-  ( ph  -> 
sum_ z  e.  U_  m  e.  A  ( { m }  X.  [_ m  /  j ]_ B ) [_ ( 2nd `  z )  / 
k ]_ [_ ( 1st `  z )  /  j ]_ E  =  sum_ z  e.  `'  U_ n  e.  C  ( {
n }  X.  [_ n  /  k ]_ D
) [_ ( 2nd `  z
)  /  k ]_ [_ ( 1st `  z
)  /  j ]_ E )
42 vex 2733 . . . . . . . 8  |-  n  e. 
_V
43 vex 2733 . . . . . . . 8  |-  m  e. 
_V
4442, 43op1std 6127 . . . . . . 7  |-  ( w  =  <. n ,  m >.  ->  ( 1st `  w
)  =  n )
4544csbeq1d 3056 . . . . . 6  |-  ( w  =  <. n ,  m >.  ->  [_ ( 1st `  w
)  /  k ]_ [_ ( 2nd `  w
)  /  j ]_ E  =  [_ n  / 
k ]_ [_ ( 2nd `  w )  /  j ]_ E )
4642, 43op2ndd 6128 . . . . . . . 8  |-  ( w  =  <. n ,  m >.  ->  ( 2nd `  w
)  =  m )
4746csbeq1d 3056 . . . . . . 7  |-  ( w  =  <. n ,  m >.  ->  [_ ( 2nd `  w
)  /  j ]_ E  =  [_ m  / 
j ]_ E )
4847csbeq2dv 3075 . . . . . 6  |-  ( w  =  <. n ,  m >.  ->  [_ n  /  k ]_ [_ ( 2nd `  w
)  /  j ]_ E  =  [_ n  / 
k ]_ [_ m  / 
j ]_ E )
4945, 48eqtrd 2203 . . . . 5  |-  ( w  =  <. n ,  m >.  ->  [_ ( 1st `  w
)  /  k ]_ [_ ( 2nd `  w
)  /  j ]_ E  =  [_ n  / 
k ]_ [_ m  / 
j ]_ E )
5043, 42op2ndd 6128 . . . . . . 7  |-  ( z  =  <. m ,  n >.  ->  ( 2nd `  z
)  =  n )
5150csbeq1d 3056 . . . . . 6  |-  ( z  =  <. m ,  n >.  ->  [_ ( 2nd `  z
)  /  k ]_ [_ ( 1st `  z
)  /  j ]_ E  =  [_ n  / 
k ]_ [_ ( 1st `  z )  /  j ]_ E )
5243, 42op1std 6127 . . . . . . . 8  |-  ( z  =  <. m ,  n >.  ->  ( 1st `  z
)  =  m )
5352csbeq1d 3056 . . . . . . 7  |-  ( z  =  <. m ,  n >.  ->  [_ ( 1st `  z
)  /  j ]_ E  =  [_ m  / 
j ]_ E )
5453csbeq2dv 3075 . . . . . 6  |-  ( z  =  <. m ,  n >.  ->  [_ n  /  k ]_ [_ ( 1st `  z
)  /  j ]_ E  =  [_ n  / 
k ]_ [_ m  / 
j ]_ E )
5551, 54eqtrd 2203 . . . . 5  |-  ( z  =  <. m ,  n >.  ->  [_ ( 2nd `  z
)  /  k ]_ [_ ( 1st `  z
)  /  j ]_ E  =  [_ n  / 
k ]_ [_ m  / 
j ]_ E )
56 fsumcom2.2 . . . . . 6  |-  ( ph  ->  C  e.  Fin )
57 snfig 6792 . . . . . . . . 9  |-  ( n  e.  _V  ->  { n }  e.  Fin )
5857elv 2734 . . . . . . . 8  |-  { n }  e.  Fin
59 fisumcom2.fi . . . . . . . . . 10  |-  ( (
ph  /\  k  e.  C )  ->  D  e.  Fin )
6059ralrimiva 2543 . . . . . . . . 9  |-  ( ph  ->  A. k  e.  C  D  e.  Fin )
6133nfel1 2323 . . . . . . . . . 10  |-  F/ k
[_ n  /  k ]_ D  e.  Fin
6236eleq1d 2239 . . . . . . . . . 10  |-  ( k  =  n  ->  ( D  e.  Fin  <->  [_ n  / 
k ]_ D  e.  Fin ) )
6361, 62rspc 2828 . . . . . . . . 9  |-  ( n  e.  C  ->  ( A. k  e.  C  D  e.  Fin  ->  [_ n  /  k ]_ D  e.  Fin ) )
6460, 63mpan9 279 . . . . . . . 8  |-  ( (
ph  /\  n  e.  C )  ->  [_ n  /  k ]_ D  e.  Fin )
65 xpfi 6907 . . . . . . . 8  |-  ( ( { n }  e.  Fin  /\  [_ n  / 
k ]_ D  e.  Fin )  ->  ( { n }  X.  [_ n  / 
k ]_ D )  e. 
Fin )
6658, 64, 65sylancr 412 . . . . . . 7  |-  ( (
ph  /\  n  e.  C )  ->  ( { n }  X.  [_ n  /  k ]_ D )  e.  Fin )
6766ralrimiva 2543 . . . . . 6  |-  ( ph  ->  A. n  e.  C  ( { n }  X.  [_ n  /  k ]_ D )  e.  Fin )
68 disjsnxp 6216 . . . . . . 7  |- Disj  n  e.  C  ( { n }  X.  [_ n  / 
k ]_ D )
6968a1i 9 . . . . . 6  |-  ( ph  -> Disj  n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )
70 iunfidisj 6923 . . . . . 6  |-  ( ( C  e.  Fin  /\  A. n  e.  C  ( { n }  X.  [_ n  /  k ]_ D )  e.  Fin  /\ Disj  n  e.  C  ( { n }  X.  [_ n  /  k ]_ D
) )  ->  U_ n  e.  C  ( {
n }  X.  [_ n  /  k ]_ D
)  e.  Fin )
7156, 67, 69, 70syl3anc 1233 . . . . 5  |-  ( ph  ->  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D )  e.  Fin )
72 reliun 4732 . . . . . . 7  |-  ( Rel  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D )  <->  A. n  e.  C  Rel  ( { n }  X.  [_ n  /  k ]_ D
) )
73 relxp 4720 . . . . . . . 8  |-  Rel  ( { n }  X.  [_ n  /  k ]_ D )
7473a1i 9 . . . . . . 7  |-  ( n  e.  C  ->  Rel  ( { n }  X.  [_ n  /  k ]_ D ) )
7572, 74mprgbir 2528 . . . . . 6  |-  Rel  U_ n  e.  C  ( {
n }  X.  [_ n  /  k ]_ D
)
7675a1i 9 . . . . 5  |-  ( ph  ->  Rel  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )
77 csbeq1 3052 . . . . . . . 8  |-  ( m  =  ( 2nd `  w
)  ->  [_ m  / 
j ]_ E  =  [_ ( 2nd `  w )  /  j ]_ E
)
7877csbeq2dv 3075 . . . . . . 7  |-  ( m  =  ( 2nd `  w
)  ->  [_ ( 1st `  w )  /  k ]_ [_ m  /  j ]_ E  =  [_ ( 1st `  w )  / 
k ]_ [_ ( 2nd `  w )  /  j ]_ E )
7978eleq1d 2239 . . . . . 6  |-  ( m  =  ( 2nd `  w
)  ->  ( [_ ( 1st `  w )  /  k ]_ [_ m  /  j ]_ E  e.  CC  <->  [_ ( 1st `  w
)  /  k ]_ [_ ( 2nd `  w
)  /  j ]_ E  e.  CC )
)
80 csbeq1 3052 . . . . . . . 8  |-  ( n  =  ( 1st `  w
)  ->  [_ n  / 
k ]_ D  =  [_ ( 1st `  w )  /  k ]_ D
)
81 csbeq1 3052 . . . . . . . . 9  |-  ( n  =  ( 1st `  w
)  ->  [_ n  / 
k ]_ [_ m  / 
j ]_ E  =  [_ ( 1st `  w )  /  k ]_ [_ m  /  j ]_ E
)
8281eleq1d 2239 . . . . . . . 8  |-  ( n  =  ( 1st `  w
)  ->  ( [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC  <->  [_ ( 1st `  w
)  /  k ]_ [_ m  /  j ]_ E  e.  CC )
)
8380, 82raleqbidv 2677 . . . . . . 7  |-  ( n  =  ( 1st `  w
)  ->  ( A. m  e.  [_  n  / 
k ]_ D [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC  <->  A. m  e.  [_  ( 1st `  w )  /  k ]_ D [_ ( 1st `  w
)  /  k ]_ [_ m  /  j ]_ E  e.  CC )
)
84 simpl 108 . . . . . . . . . 10  |-  ( (
ph  /\  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )  ->  ph )
8543, 42opelcnv 4793 . . . . . . . . . . . . . . 15  |-  ( <.
m ,  n >.  e.  `' U_ k  e.  C  ( { k }  X.  D )  <->  <. n ,  m >.  e.  U_ k  e.  C  ( {
k }  X.  D
) )
8633, 36opeliunxp2f 6217 . . . . . . . . . . . . . . 15  |-  ( <.
n ,  m >.  e. 
U_ k  e.  C  ( { k }  X.  D )  <->  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )
8785, 86sylbbr 135 . . . . . . . . . . . . . 14  |-  ( ( n  e.  C  /\  m  e.  [_ n  / 
k ]_ D )  ->  <. m ,  n >.  e.  `' U_ k  e.  C  ( { k }  X.  D ) )
8887adantl 275 . . . . . . . . . . . . 13  |-  ( (
ph  /\  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )  ->  <. m ,  n >.  e.  `' U_ k  e.  C  ( { k }  X.  D ) )
8922adantr 274 . . . . . . . . . . . . 13  |-  ( (
ph  /\  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )  ->  U_ j  e.  A  ( { j }  X.  B )  =  `' U_ k  e.  C  ( { k }  X.  D ) )
9088, 89eleqtrrd 2250 . . . . . . . . . . . 12  |-  ( (
ph  /\  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )  ->  <. m ,  n >.  e. 
U_ j  e.  A  ( { j }  X.  B ) )
91 eliun 3877 . . . . . . . . . . . 12  |-  ( <.
m ,  n >.  e. 
U_ j  e.  A  ( { j }  X.  B )  <->  E. j  e.  A  <. m ,  n >.  e.  ( { j }  X.  B ) )
9290, 91sylib 121 . . . . . . . . . . 11  |-  ( (
ph  /\  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )  ->  E. j  e.  A  <. m ,  n >.  e.  ( { j }  X.  B ) )
93 simpr 109 . . . . . . . . . . . . . . . 16  |-  ( ( j  e.  A  /\  <.
m ,  n >.  e.  ( { j }  X.  B ) )  ->  <. m ,  n >.  e.  ( { j }  X.  B ) )
94 opelxp 4641 . . . . . . . . . . . . . . . 16  |-  ( <.
m ,  n >.  e.  ( { j }  X.  B )  <->  ( m  e.  { j }  /\  n  e.  B )
)
9593, 94sylib 121 . . . . . . . . . . . . . . 15  |-  ( ( j  e.  A  /\  <.
m ,  n >.  e.  ( { j }  X.  B ) )  ->  ( m  e. 
{ j }  /\  n  e.  B )
)
9695simpld 111 . . . . . . . . . . . . . 14  |-  ( ( j  e.  A  /\  <.
m ,  n >.  e.  ( { j }  X.  B ) )  ->  m  e.  {
j } )
97 elsni 3601 . . . . . . . . . . . . . 14  |-  ( m  e.  { j }  ->  m  =  j )
9896, 97syl 14 . . . . . . . . . . . . 13  |-  ( ( j  e.  A  /\  <.
m ,  n >.  e.  ( { j }  X.  B ) )  ->  m  =  j )
99 simpl 108 . . . . . . . . . . . . 13  |-  ( ( j  e.  A  /\  <.
m ,  n >.  e.  ( { j }  X.  B ) )  ->  j  e.  A
)
10098, 99eqeltrd 2247 . . . . . . . . . . . 12  |-  ( ( j  e.  A  /\  <.
m ,  n >.  e.  ( { j }  X.  B ) )  ->  m  e.  A
)
101100rexlimiva 2582 . . . . . . . . . . 11  |-  ( E. j  e.  A  <. m ,  n >.  e.  ( { j }  X.  B )  ->  m  e.  A )
10292, 101syl 14 . . . . . . . . . 10  |-  ( (
ph  /\  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )  ->  m  e.  A )
10325nfcri 2306 . . . . . . . . . . . 12  |-  F/ j  n  e.  [_ m  /  j ]_ B
10497equcomd 1700 . . . . . . . . . . . . . . . . 17  |-  ( m  e.  { j }  ->  j  =  m )
105104, 28syl 14 . . . . . . . . . . . . . . . 16  |-  ( m  e.  { j }  ->  B  =  [_ m  /  j ]_ B
)
106105eleq2d 2240 . . . . . . . . . . . . . . 15  |-  ( m  e.  { j }  ->  ( n  e.  B  <->  n  e.  [_ m  /  j ]_ B
) )
107106biimpa 294 . . . . . . . . . . . . . 14  |-  ( ( m  e.  { j }  /\  n  e.  B )  ->  n  e.  [_ m  /  j ]_ B )
10894, 107sylbi 120 . . . . . . . . . . . . 13  |-  ( <.
m ,  n >.  e.  ( { j }  X.  B )  ->  n  e.  [_ m  / 
j ]_ B )
109108a1i 9 . . . . . . . . . . . 12  |-  ( j  e.  A  ->  ( <. m ,  n >.  e.  ( { j }  X.  B )  ->  n  e.  [_ m  / 
j ]_ B ) )
110103, 109rexlimi 2580 . . . . . . . . . . 11  |-  ( E. j  e.  A  <. m ,  n >.  e.  ( { j }  X.  B )  ->  n  e.  [_ m  /  j ]_ B )
11192, 110syl 14 . . . . . . . . . 10  |-  ( (
ph  /\  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )  ->  n  e.  [_ m  / 
j ]_ B )
112 fsumcom2.5 . . . . . . . . . . . . . 14  |-  ( (
ph  /\  ( j  e.  A  /\  k  e.  B ) )  ->  E  e.  CC )
113112ralrimivva 2552 . . . . . . . . . . . . 13  |-  ( ph  ->  A. j  e.  A  A. k  e.  B  E  e.  CC )
114 nfcsb1v 3082 . . . . . . . . . . . . . . . 16  |-  F/_ j [_ m  /  j ]_ E
115114nfel1 2323 . . . . . . . . . . . . . . 15  |-  F/ j
[_ m  /  j ]_ E  e.  CC
11625, 115nfralxy 2508 . . . . . . . . . . . . . 14  |-  F/ j A. k  e.  [_  m  /  j ]_ B [_ m  /  j ]_ E  e.  CC
117 csbeq1a 3058 . . . . . . . . . . . . . . . 16  |-  ( j  =  m  ->  E  =  [_ m  /  j ]_ E )
118117eleq1d 2239 . . . . . . . . . . . . . . 15  |-  ( j  =  m  ->  ( E  e.  CC  <->  [_ m  / 
j ]_ E  e.  CC ) )
11928, 118raleqbidv 2677 . . . . . . . . . . . . . 14  |-  ( j  =  m  ->  ( A. k  e.  B  E  e.  CC  <->  A. k  e.  [_  m  /  j ]_ B [_ m  / 
j ]_ E  e.  CC ) )
120116, 119rspc 2828 . . . . . . . . . . . . 13  |-  ( m  e.  A  ->  ( A. j  e.  A  A. k  e.  B  E  e.  CC  ->  A. k  e.  [_  m  /  j ]_ B [_ m  /  j ]_ E  e.  CC ) )
121113, 120mpan9 279 . . . . . . . . . . . 12  |-  ( (
ph  /\  m  e.  A )  ->  A. k  e.  [_  m  /  j ]_ B [_ m  / 
j ]_ E  e.  CC )
122 nfcsb1v 3082 . . . . . . . . . . . . . 14  |-  F/_ k [_ n  /  k ]_ [_ m  /  j ]_ E
123122nfel1 2323 . . . . . . . . . . . . 13  |-  F/ k
[_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC
124 csbeq1a 3058 . . . . . . . . . . . . . 14  |-  ( k  =  n  ->  [_ m  /  j ]_ E  =  [_ n  /  k ]_ [_ m  /  j ]_ E )
125124eleq1d 2239 . . . . . . . . . . . . 13  |-  ( k  =  n  ->  ( [_ m  /  j ]_ E  e.  CC  <->  [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC )
)
126123, 125rspc 2828 . . . . . . . . . . . 12  |-  ( n  e.  [_ m  / 
j ]_ B  ->  ( A. k  e.  [_  m  /  j ]_ B [_ m  /  j ]_ E  e.  CC  ->  [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC ) )
127121, 126syl5com 29 . . . . . . . . . . 11  |-  ( (
ph  /\  m  e.  A )  ->  (
n  e.  [_ m  /  j ]_ B  ->  [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC ) )
128127impr 377 . . . . . . . . . 10  |-  ( (
ph  /\  ( m  e.  A  /\  n  e.  [_ m  /  j ]_ B ) )  ->  [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC )
12984, 102, 111, 128syl12anc 1231 . . . . . . . . 9  |-  ( (
ph  /\  ( n  e.  C  /\  m  e.  [_ n  /  k ]_ D ) )  ->  [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC )
130129ralrimivva 2552 . . . . . . . 8  |-  ( ph  ->  A. n  e.  C  A. m  e.  [_  n  /  k ]_ D [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC )
131130adantr 274 . . . . . . 7  |-  ( (
ph  /\  w  e.  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )  ->  A. n  e.  C  A. m  e.  [_  n  /  k ]_ D [_ n  /  k ]_ [_ m  /  j ]_ E  e.  CC )
132 simpr 109 . . . . . . . . 9  |-  ( (
ph  /\  w  e.  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )  ->  w  e.  U_ n  e.  C  ( { n }  X.  [_ n  / 
k ]_ D ) )
133 eliun 3877 . . . . . . . . 9  |-  ( w  e.  U_ n  e.  C  ( { n }  X.  [_ n  / 
k ]_ D )  <->  E. n  e.  C  w  e.  ( { n }  X.  [_ n  /  k ]_ D ) )
134132, 133sylib 121 . . . . . . . 8  |-  ( (
ph  /\  w  e.  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )  ->  E. n  e.  C  w  e.  ( {
n }  X.  [_ n  /  k ]_ D
) )
135 xp1st 6144 . . . . . . . . . . . 12  |-  ( w  e.  ( { n }  X.  [_ n  / 
k ]_ D )  -> 
( 1st `  w
)  e.  { n } )
136135adantl 275 . . . . . . . . . . 11  |-  ( ( n  e.  C  /\  w  e.  ( {
n }  X.  [_ n  /  k ]_ D
) )  ->  ( 1st `  w )  e. 
{ n } )
137 elsni 3601 . . . . . . . . . . 11  |-  ( ( 1st `  w )  e.  { n }  ->  ( 1st `  w
)  =  n )
138136, 137syl 14 . . . . . . . . . 10  |-  ( ( n  e.  C  /\  w  e.  ( {
n }  X.  [_ n  /  k ]_ D
) )  ->  ( 1st `  w )  =  n )
139 simpl 108 . . . . . . . . . 10  |-  ( ( n  e.  C  /\  w  e.  ( {
n }  X.  [_ n  /  k ]_ D
) )  ->  n  e.  C )
140138, 139eqeltrd 2247 . . . . . . . . 9  |-  ( ( n  e.  C  /\  w  e.  ( {
n }  X.  [_ n  /  k ]_ D
) )  ->  ( 1st `  w )  e.  C )
141140rexlimiva 2582 . . . . . . . 8  |-  ( E. n  e.  C  w  e.  ( { n }  X.  [_ n  / 
k ]_ D )  -> 
( 1st `  w
)  e.  C )
142134, 141syl 14 . . . . . . 7  |-  ( (
ph  /\  w  e.  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )  -> 
( 1st `  w
)  e.  C )
14383, 131, 142rspcdva 2839 . . . . . 6  |-  ( (
ph  /\  w  e.  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )  ->  A. m  e.  [_  ( 1st `  w )  / 
k ]_ D [_ ( 1st `  w )  / 
k ]_ [_ m  / 
j ]_ E  e.  CC )
144 xp2nd 6145 . . . . . . . . . 10  |-  ( w  e.  ( { n }  X.  [_ n  / 
k ]_ D )  -> 
( 2nd `  w
)  e.  [_ n  /  k ]_ D
)
145144adantl 275 . . . . . . . . 9  |-  ( ( n  e.  C  /\  w  e.  ( {
n }  X.  [_ n  /  k ]_ D
) )  ->  ( 2nd `  w )  e. 
[_ n  /  k ]_ D )
146138csbeq1d 3056 . . . . . . . . 9  |-  ( ( n  e.  C  /\  w  e.  ( {
n }  X.  [_ n  /  k ]_ D
) )  ->  [_ ( 1st `  w )  / 
k ]_ D  =  [_ n  /  k ]_ D
)
147145, 146eleqtrrd 2250 . . . . . . . 8  |-  ( ( n  e.  C  /\  w  e.  ( {
n }  X.  [_ n  /  k ]_ D
) )  ->  ( 2nd `  w )  e. 
[_ ( 1st `  w
)  /  k ]_ D )
148147rexlimiva 2582 . . . . . . 7  |-  ( E. n  e.  C  w  e.  ( { n }  X.  [_ n  / 
k ]_ D )  -> 
( 2nd `  w
)  e.  [_ ( 1st `  w )  / 
k ]_ D )
149134, 148syl 14 . . . . . 6  |-  ( (
ph  /\  w  e.  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )  -> 
( 2nd `  w
)  e.  [_ ( 1st `  w )  / 
k ]_ D )
15079, 143, 149rspcdva 2839 . . . . 5  |-  ( (
ph  /\  w  e.  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) )  ->  [_ ( 1st `  w
)  /  k ]_ [_ ( 2nd `  w
)  /  j ]_ E  e.  CC )
15149, 55, 71, 76, 150fsumcnv 11400 . . . 4  |-  ( ph  -> 
sum_ w  e.  U_  n  e.  C  ( {
n }  X.  [_ n  /  k ]_ D
) [_ ( 1st `  w
)  /  k ]_ [_ ( 2nd `  w
)  /  j ]_ E  =  sum_ z  e.  `'  U_ n  e.  C  ( { n }  X.  [_ n  /  k ]_ D ) [_ ( 2nd `  z )  / 
k ]_ [_ ( 1st `  z )  /  j ]_ E )
15241, 151eqtr4d 2206 . . 3  |-  ( ph  -> 
sum_ z  e.  U_  m  e.  A  ( { m }  X.  [_ m  /  j ]_ B ) [_ ( 2nd `  z )  / 
k ]_ [_ ( 1st `  z )  /  j ]_ E  =  sum_ w  e.  U_  n  e.  C  ( { n }  X.  [_ n  / 
k ]_ D ) [_ ( 1st `  w )  /  k ]_ [_ ( 2nd `  w )  / 
j ]_ E )
153 fsumcom2.1 . . . 4  |-  ( ph  ->  A  e.  Fin )
154 fsumcom2.3 . . . . . 6  |-  ( (
ph  /\  j  e.  A )  ->  B  e.  Fin )
155154ralrimiva 2543 . . . . 5  |-  ( ph  ->  A. j  e.  A  B  e.  Fin )
15625nfel1 2323 . . . . . 6  |-  F/ j
[_ m  /  j ]_ B  e.  Fin
15728eleq1d 2239 . . . . . 6  |-  ( j  =  m  ->  ( B  e.  Fin  <->  [_ m  / 
j ]_ B  e.  Fin ) )
158156, 157rspc 2828 . . . . 5  |-  ( m  e.  A  ->  ( A. j  e.  A  B  e.  Fin  ->  [_ m  /  j ]_ B  e.  Fin ) )
159155, 158mpan9 279 . . . 4  |-  ( (
ph  /\  m  e.  A )  ->  [_ m  /  j ]_ B  e.  Fin )
16055, 153, 159, 128fsum2d 11398 . . 3  |-  ( ph  -> 
sum_ m  e.  A  sum_ n  e.  [_  m  /  j ]_ B [_ n  /  k ]_ [_ m  /  j ]_ E  =  sum_ z  e.  U_  m  e.  A  ( { m }  X.  [_ m  / 
j ]_ B ) [_ ( 2nd `  z )  /  k ]_ [_ ( 1st `  z )  / 
j ]_ E )
16149, 56, 64, 129fsum2d 11398 . . 3  |-  ( ph  -> 
sum_ n  e.  C  sum_ m  e.  [_  n  /  k ]_ D [_ n  /  k ]_ [_ m  /  j ]_ E  =  sum_ w  e.  U_  n  e.  C  ( { n }  X.  [_ n  / 
k ]_ D ) [_ ( 1st `  w )  /  k ]_ [_ ( 2nd `  w )  / 
j ]_ E )
162152, 160, 1613eqtr4d 2213 . 2  |-  ( ph  -> 
sum_ m  e.  A  sum_ n  e.  [_  m  /  j ]_ B [_ n  /  k ]_ [_ m  /  j ]_ E  =  sum_ n  e.  C  sum_ m  e.  [_  n  /  k ]_ D [_ n  / 
k ]_ [_ m  / 
j ]_ E )
163 nfcv 2312 . . 3  |-  F/_ m sum_ k  e.  B  E
164 nfcv 2312 . . . . 5  |-  F/_ j
n
165164, 114nfcsb 3086 . . . 4  |-  F/_ j [_ n  /  k ]_ [_ m  /  j ]_ E
16625, 165nfsum 11320 . . 3  |-  F/_ j sum_ n  e.  [_  m  /  j ]_ B [_ n  /  k ]_ [_ m  /  j ]_ E
167 nfcv 2312 . . . . 5  |-  F/_ n E
168 nfcsb1v 3082 . . . . 5  |-  F/_ k [_ n  /  k ]_ E
169 csbeq1a 3058 . . . . 5  |-  ( k  =  n  ->  E  =  [_ n  /  k ]_ E )
170167, 168, 169cbvsumi 11325 . . . 4  |-  sum_ k  e.  B  E  =  sum_ n  e.  B  [_ n  /  k ]_ E
171117csbeq2dv 3075 . . . . . 6  |-  ( j  =  m  ->  [_ n  /  k ]_ E  =  [_ n  /  k ]_ [_ m  /  j ]_ E )
172171adantr 274 . . . . 5  |-  ( ( j  =  m  /\  n  e.  B )  ->  [_ n  /  k ]_ E  =  [_ n  /  k ]_ [_ m  /  j ]_ E
)
17328, 172sumeq12dv 11335 . . . 4  |-  ( j  =  m  ->  sum_ n  e.  B  [_ n  / 
k ]_ E  =  sum_ n  e.  [_  m  / 
j ]_ B [_ n  /  k ]_ [_ m  /  j ]_ E
)
174170, 173eqtrid 2215 . . 3  |-  ( j  =  m  ->  sum_ k  e.  B  E  =  sum_ n  e.  [_  m  /  j ]_ B [_ n  /  k ]_ [_ m  /  j ]_ E )
175163, 166, 174cbvsumi 11325 . 2  |-  sum_ j  e.  A  sum_ k  e.  B  E  =  sum_ m  e.  A  sum_ n  e.  [_  m  /  j ]_ B [_ n  / 
k ]_ [_ m  / 
j ]_ E
176 nfcv 2312 . . 3  |-  F/_ n sum_ j  e.  D  E
17733, 122nfsum 11320 . . 3  |-  F/_ k sum_ m  e.  [_  n  /  k ]_ D [_ n  /  k ]_ [_ m  /  j ]_ E
178 nfcv 2312 . . . . 5  |-  F/_ m E
179178, 114, 117cbvsumi 11325 . . . 4  |-  sum_ j  e.  D  E  =  sum_ m  e.  D  [_ m  /  j ]_ E
180124adantr 274 . . . . 5  |-  ( ( k  =  n  /\  m  e.  D )  ->  [_ m  /  j ]_ E  =  [_ n  /  k ]_ [_ m  /  j ]_ E
)
18136, 180sumeq12dv 11335 . . . 4  |-  ( k  =  n  ->  sum_ m  e.  D  [_ m  / 
j ]_ E  =  sum_ m  e.  [_  n  / 
k ]_ D [_ n  /  k ]_ [_ m  /  j ]_ E
)
182179, 181eqtrid 2215 . . 3  |-  ( k  =  n  ->  sum_ j  e.  D  E  =  sum_ m  e.  [_  n  /  k ]_ D [_ n  /  k ]_ [_ m  /  j ]_ E )
183176, 177, 182cbvsumi 11325 . 2  |-  sum_ k  e.  C  sum_ j  e.  D  E  =  sum_ n  e.  C  sum_ m  e.  [_  n  /  k ]_ D [_ n  / 
k ]_ [_ m  / 
j ]_ E
184162, 175, 1833eqtr4g 2228 1  |-  ( ph  -> 
sum_ j  e.  A  sum_ k  e.  B  E  =  sum_ k  e.  C  sum_ j  e.  D  E
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    = wceq 1348   E.wex 1485    e. wcel 2141   A.wral 2448   E.wrex 2449   _Vcvv 2730   [_csb 3049   {csn 3583   <.cop 3586   U_ciun 3873  Disj wdisj 3966    X. cxp 4609   `'ccnv 4610   Rel wrel 4616   ` cfv 5198   1stc1st 6117   2ndc2nd 6118   Fincfn 6718   CCcc 7772   sum_csu 11316
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-coll 4104  ax-sep 4107  ax-nul 4115  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-iinf 4572  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-mulrcl 7873  ax-addcom 7874  ax-mulcom 7875  ax-addass 7876  ax-mulass 7877  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-1rid 7881  ax-0id 7882  ax-rnegex 7883  ax-precex 7884  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-apti 7889  ax-pre-ltadd 7890  ax-pre-mulgt0 7891  ax-pre-mulext 7892  ax-arch 7893  ax-caucvg 7894
This theorem depends on definitions:  df-bi 116  df-dc 830  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rmo 2456  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-if 3527  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-iun 3875  df-disj 3967  df-br 3990  df-opab 4051  df-mpt 4052  df-tr 4088  df-id 4278  df-po 4281  df-iso 4282  df-iord 4351  df-on 4353  df-ilim 4354  df-suc 4356  df-iom 4575  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-isom 5207  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-1st 6119  df-2nd 6120  df-recs 6284  df-irdg 6349  df-frec 6370  df-1o 6395  df-oadd 6399  df-er 6513  df-en 6719  df-dom 6720  df-fin 6721  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-reap 8494  df-ap 8501  df-div 8590  df-inn 8879  df-2 8937  df-3 8938  df-4 8939  df-n0 9136  df-z 9213  df-uz 9488  df-q 9579  df-rp 9611  df-fz 9966  df-fzo 10099  df-seqfrec 10402  df-exp 10476  df-ihash 10710  df-cj 10806  df-re 10807  df-im 10808  df-rsqrt 10962  df-abs 10963  df-clim 11242  df-sumdc 11317
This theorem is referenced by:  fsumcom  11402  fisum0diag  11404
  Copyright terms: Public domain W3C validator