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

Theorem gsumvalx 14776
Description: Expand out the substitutions in df-gsum 13730. (Contributed by Mario Carneiro, 18-Sep-2015.)
Hypotheses
Ref Expression
gsumval.b  |-  B  =  ( Base `  G
)
gsumval.z  |-  .0.  =  ( 0g `  G )
gsumval.p  |-  .+  =  ( +g  `  G )
gsumval.o  |-  O  =  { s  e.  B  |  A. t  e.  B  ( ( s  .+  t )  =  t  /\  ( t  .+  s )  =  t ) }
gsumval.w  |-  ( ph  ->  W  =  ( `' F " ( _V 
\  O ) ) )
gsumval.g  |-  ( ph  ->  G  e.  V )
gsumvalx.f  |-  ( ph  ->  F  e.  X )
gsumvalx.a  |-  ( ph  ->  dom  F  =  A )
Assertion
Ref Expression
gsumvalx  |-  ( ph  ->  ( G  gsumg  F )  =  if ( ran  F  C_  O ,  .0.  ,  if ( A  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) ) ) )
Distinct variable groups:    t, s, x, B    f, m, n, x, ph    f, F, m, n, x    f, G, m, n, x    .+ , s,
t, x    f, O, m, n, x
Allowed substitution hints:    ph( t, s)    A( x, t, f, m, n, s)    B( f, m, n)    .+ ( f, m, n)    F( t, s)    G( t, s)    O( t, s)    V( x, t, f, m, n, s)    W( x, t, f, m, n, s)    X( x, t, f, m, n, s)    .0. ( x, t, f, m, n, s)

Proof of Theorem gsumvalx
Dummy variables  g 
o  w  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-gsum 13730 . . 3  |-  gsumg  =  ( w  e. 
_V ,  g  e. 
_V  |->  [_ { x  e.  ( Base `  w
)  |  A. y  e.  ( Base `  w
) ( ( x ( +g  `  w
) y )  =  y  /\  ( y ( +g  `  w
) x )  =  y ) }  / 
o ]_ if ( ran  g  C_  o , 
( 0g `  w
) ,  if ( dom  g  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( dom  g  =  ( m ... n
)  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) ) ,  ( iota x E. f [. ( `' g " ( _V 
\  o ) )  /  y ]. (
f : ( 1 ... ( # `  y
) ) -1-1-onto-> y  /\  x  =  (  seq  1
( ( +g  `  w
) ,  ( g  o.  f ) ) `
 ( # `  y
) ) ) ) ) ) )
21a1i 11 . 2  |-  ( ph  -> 
gsumg  =  ( w  e. 
_V ,  g  e. 
_V  |->  [_ { x  e.  ( Base `  w
)  |  A. y  e.  ( Base `  w
) ( ( x ( +g  `  w
) y )  =  y  /\  ( y ( +g  `  w
) x )  =  y ) }  / 
o ]_ if ( ran  g  C_  o , 
( 0g `  w
) ,  if ( dom  g  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( dom  g  =  ( m ... n
)  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) ) ,  ( iota x E. f [. ( `' g " ( _V 
\  o ) )  /  y ]. (
f : ( 1 ... ( # `  y
) ) -1-1-onto-> y  /\  x  =  (  seq  1
( ( +g  `  w
) ,  ( g  o.  f ) ) `
 ( # `  y
) ) ) ) ) ) ) )
3 simprl 734 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  w  =  G )
43fveq2d 5734 . . . . . . 7  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( Base `  w )  =  ( Base `  G
) )
5 gsumval.b . . . . . . 7  |-  B  =  ( Base `  G
)
64, 5syl6eqr 2488 . . . . . 6  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( Base `  w )  =  B )
73fveq2d 5734 . . . . . . . . . . 11  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( +g  `  w )  =  ( +g  `  G
) )
8 gsumval.p . . . . . . . . . . 11  |-  .+  =  ( +g  `  G )
97, 8syl6eqr 2488 . . . . . . . . . 10  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( +g  `  w )  =  .+  )
109oveqd 6100 . . . . . . . . 9  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( x ( +g  `  w ) y )  =  ( x  .+  y ) )
1110eqeq1d 2446 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( x ( +g  `  w ) y )  =  y  <-> 
( x  .+  y
)  =  y ) )
129oveqd 6100 . . . . . . . . 9  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( y ( +g  `  w ) x )  =  ( y  .+  x ) )
1312eqeq1d 2446 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( y ( +g  `  w ) x )  =  y  <-> 
( y  .+  x
)  =  y ) )
1411, 13anbi12d 693 . . . . . . 7  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( ( x ( +g  `  w
) y )  =  y  /\  ( y ( +g  `  w
) x )  =  y )  <->  ( (
x  .+  y )  =  y  /\  (
y  .+  x )  =  y ) ) )
156, 14raleqbidv 2918 . . . . . 6  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( A. y  e.  ( Base `  w
) ( ( x ( +g  `  w
) y )  =  y  /\  ( y ( +g  `  w
) x )  =  y )  <->  A. y  e.  B  ( (
x  .+  y )  =  y  /\  (
y  .+  x )  =  y ) ) )
166, 15rabeqbidv 2953 . . . . 5  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  { x  e.  ( Base `  w )  | 
A. y  e.  (
Base `  w )
( ( x ( +g  `  w ) y )  =  y  /\  ( y ( +g  `  w ) x )  =  y ) }  =  {
x  e.  B  |  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) } )
17 gsumval.o . . . . . 6  |-  O  =  { s  e.  B  |  A. t  e.  B  ( ( s  .+  t )  =  t  /\  ( t  .+  s )  =  t ) }
18 oveq2 6091 . . . . . . . . . . 11  |-  ( t  =  y  ->  (
s  .+  t )  =  ( s  .+  y ) )
19 id 21 . . . . . . . . . . 11  |-  ( t  =  y  ->  t  =  y )
2018, 19eqeq12d 2452 . . . . . . . . . 10  |-  ( t  =  y  ->  (
( s  .+  t
)  =  t  <->  ( s  .+  y )  =  y ) )
21 oveq1 6090 . . . . . . . . . . 11  |-  ( t  =  y  ->  (
t  .+  s )  =  ( y  .+  s ) )
2221, 19eqeq12d 2452 . . . . . . . . . 10  |-  ( t  =  y  ->  (
( t  .+  s
)  =  t  <->  ( y  .+  s )  =  y ) )
2320, 22anbi12d 693 . . . . . . . . 9  |-  ( t  =  y  ->  (
( ( s  .+  t )  =  t  /\  ( t  .+  s )  =  t )  <->  ( ( s 
.+  y )  =  y  /\  ( y 
.+  s )  =  y ) ) )
2423cbvralv 2934 . . . . . . . 8  |-  ( A. t  e.  B  (
( s  .+  t
)  =  t  /\  ( t  .+  s
)  =  t )  <->  A. y  e.  B  ( ( s  .+  y )  =  y  /\  ( y  .+  s )  =  y ) )
25 oveq1 6090 . . . . . . . . . . 11  |-  ( s  =  x  ->  (
s  .+  y )  =  ( x  .+  y ) )
2625eqeq1d 2446 . . . . . . . . . 10  |-  ( s  =  x  ->  (
( s  .+  y
)  =  y  <->  ( x  .+  y )  =  y ) )
27 oveq2 6091 . . . . . . . . . . 11  |-  ( s  =  x  ->  (
y  .+  s )  =  ( y  .+  x ) )
2827eqeq1d 2446 . . . . . . . . . 10  |-  ( s  =  x  ->  (
( y  .+  s
)  =  y  <->  ( y  .+  x )  =  y ) )
2926, 28anbi12d 693 . . . . . . . . 9  |-  ( s  =  x  ->  (
( ( s  .+  y )  =  y  /\  ( y  .+  s )  =  y )  <->  ( ( x 
.+  y )  =  y  /\  ( y 
.+  x )  =  y ) ) )
3029ralbidv 2727 . . . . . . . 8  |-  ( s  =  x  ->  ( A. y  e.  B  ( ( s  .+  y )  =  y  /\  ( y  .+  s )  =  y )  <->  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) ) )
3124, 30syl5bb 250 . . . . . . 7  |-  ( s  =  x  ->  ( A. t  e.  B  ( ( s  .+  t )  =  t  /\  ( t  .+  s )  =  t )  <->  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) ) )
3231cbvrabv 2957 . . . . . 6  |-  { s  e.  B  |  A. t  e.  B  (
( s  .+  t
)  =  t  /\  ( t  .+  s
)  =  t ) }  =  { x  e.  B  |  A. y  e.  B  (
( x  .+  y
)  =  y  /\  ( y  .+  x
)  =  y ) }
3317, 32eqtri 2458 . . . . 5  |-  O  =  { x  e.  B  |  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) }
3416, 33syl6eqr 2488 . . . 4  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  { x  e.  ( Base `  w )  | 
A. y  e.  (
Base `  w )
( ( x ( +g  `  w ) y )  =  y  /\  ( y ( +g  `  w ) x )  =  y ) }  =  O )
3534csbeq1d 3259 . . 3  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  [_ { x  e.  (
Base `  w )  |  A. y  e.  (
Base `  w )
( ( x ( +g  `  w ) y )  =  y  /\  ( y ( +g  `  w ) x )  =  y ) }  /  o ]_ if ( ran  g  C_  o ,  ( 0g
`  w ) ,  if ( dom  g  e.  ran  ... ,  ( iota
x E. m E. n  e.  ( ZZ>= `  m ) ( dom  g  =  ( m ... n )  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) ) ,  ( iota x E. f [. ( `' g "
( _V  \  o
) )  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) ) ) ) )  = 
[_ O  /  o ]_ if ( ran  g  C_  o ,  ( 0g
`  w ) ,  if ( dom  g  e.  ran  ... ,  ( iota
x E. m E. n  e.  ( ZZ>= `  m ) ( dom  g  =  ( m ... n )  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) ) ,  ( iota x E. f [. ( `' g "
( _V  \  o
) )  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) ) ) ) ) )
36 fvex 5744 . . . . . . . 8  |-  ( Base `  G )  e.  _V
375, 36eqeltri 2508 . . . . . . 7  |-  B  e. 
_V
3837rabex 4356 . . . . . 6  |-  { x  e.  B  |  A. y  e.  B  (
( x  .+  y
)  =  y  /\  ( y  .+  x
)  =  y ) }  e.  _V
3933, 38eqeltri 2508 . . . . 5  |-  O  e. 
_V
4039a1i 11 . . . 4  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  O  e.  _V )
41 simplrr 739 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  g  =  F )
4241rneqd 5099 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ran  g  =  ran  F )
43 simpr 449 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  o  =  O )
4442, 43sseq12d 3379 . . . . 5  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( ran  g  C_  o  <->  ran  F  C_  O ) )
453adantr 453 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  w  =  G )
4645fveq2d 5734 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( 0g `  w )  =  ( 0g `  G
) )
47 gsumval.z . . . . . 6  |-  .0.  =  ( 0g `  G )
4846, 47syl6eqr 2488 . . . . 5  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( 0g `  w )  =  .0.  )
4941dmeqd 5074 . . . . . . . 8  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  g  =  dom  F )
50 gsumvalx.a . . . . . . . . 9  |-  ( ph  ->  dom  F  =  A )
5150ad2antrr 708 . . . . . . . 8  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  F  =  A )
5249, 51eqtrd 2470 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  g  =  A )
5352eleq1d 2504 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( dom  g  e.  ran  ...  <->  A  e.  ran  ... )
)
5452eqeq1d 2446 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( dom  g  =  (
m ... n )  <->  A  =  ( m ... n
) ) )
559adantr 453 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( +g  `  w )  = 
.+  )
5655seqeq2d 11332 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m ( ( +g  `  w ) ,  g )  =  seq  m
(  .+  ,  g
) )
5741seqeq3d 11333 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m (  .+  , 
g )  =  seq  m (  .+  ,  F ) )
5856, 57eqtrd 2470 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m ( ( +g  `  w ) ,  g )  =  seq  m
(  .+  ,  F
) )
5958fveq1d 5732 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (  seq  m ( ( +g  `  w ) ,  g ) `  n )  =  (  seq  m
(  .+  ,  F
) `  n )
)
6059eqeq2d 2449 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (
x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n )  <-> 
x  =  (  seq  m (  .+  ,  F ) `  n
) ) )
6154, 60anbi12d 693 . . . . . . . . 9  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (
( dom  g  =  ( m ... n
)  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) )  <->  ( A  =  ( m ... n )  /\  x  =  (  seq  m ( 
.+  ,  F ) `
 n ) ) ) )
6261rexbidv 2728 . . . . . . . 8  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( E. n  e.  ( ZZ>=
`  m ) ( dom  g  =  ( m ... n )  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) )  <->  E. n  e.  ( ZZ>= `  m )
( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) )
6362exbidv 1637 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( E. m E. n  e.  ( ZZ>= `  m )
( dom  g  =  ( m ... n
)  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) )  <->  E. m E. n  e.  ( ZZ>=
`  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) )
6463iotabidv 5441 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( iota x E. m E. n  e.  ( ZZ>= `  m ) ( dom  g  =  ( m ... n )  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) )  =  ( iota x E. m E. n  e.  ( ZZ>=
`  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) )
6543difeq2d 3467 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( _V  \  o )  =  ( _V  \  O
) )
6665imaeq2d 5205 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' F " ( _V 
\  o ) )  =  ( `' F " ( _V  \  O
) ) )
6741cnveqd 5050 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  `' g  =  `' F
)
6867imaeq1d 5204 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' g " ( _V  \  o ) )  =  ( `' F " ( _V  \  o
) ) )
69 gsumval.w . . . . . . . . . . . 12  |-  ( ph  ->  W  =  ( `' F " ( _V 
\  O ) ) )
7069ad2antrr 708 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  W  =  ( `' F " ( _V  \  O
) ) )
7166, 68, 703eqtr4d 2480 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' g " ( _V  \  o ) )  =  W )
72 dfsbcq 3165 . . . . . . . . . 10  |-  ( ( `' g " ( _V  \  o ) )  =  W  ->  ( [. ( `' g "
( _V  \  o
) )  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) )  <->  [. W  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) ) ) )
7371, 72syl 16 . . . . . . . . 9  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( [. ( `' g "
( _V  \  o
) )  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) )  <->  [. W  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) ) ) )
74 gsumvalx.f . . . . . . . . . . . . 13  |-  ( ph  ->  F  e.  X )
75 cnvexg 5407 . . . . . . . . . . . . 13  |-  ( F  e.  X  ->  `' F  e.  _V )
76 imaexg 5219 . . . . . . . . . . . . 13  |-  ( `' F  e.  _V  ->  ( `' F " ( _V 
\  O ) )  e.  _V )
7774, 75, 763syl 19 . . . . . . . . . . . 12  |-  ( ph  ->  ( `' F "
( _V  \  O
) )  e.  _V )
7869, 77eqeltrd 2512 . . . . . . . . . . 11  |-  ( ph  ->  W  e.  _V )
7978ad2antrr 708 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  W  e.  _V )
80 fveq2 5730 . . . . . . . . . . . . . . 15  |-  ( y  =  W  ->  ( # `
 y )  =  ( # `  W
) )
8180adantl 454 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  ( # `
 y )  =  ( # `  W
) )
8281oveq2d 6099 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
1 ... ( # `  y
) )  =  ( 1 ... ( # `  W ) ) )
83 f1oeq2 5668 . . . . . . . . . . . . 13  |-  ( ( 1 ... ( # `  y ) )  =  ( 1 ... ( # `
 W ) )  ->  ( f : ( 1 ... ( # `
 y ) ) -1-1-onto-> y  <-> 
f : ( 1 ... ( # `  W
) ) -1-1-onto-> y ) )
8482, 83syl 16 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
f : ( 1 ... ( # `  y
) ) -1-1-onto-> y  <->  f : ( 1 ... ( # `  W ) ) -1-1-onto-> y ) )
85 f1oeq3 5669 . . . . . . . . . . . . 13  |-  ( y  =  W  ->  (
f : ( 1 ... ( # `  W
) ) -1-1-onto-> y  <->  f : ( 1 ... ( # `  W ) ) -1-1-onto-> W ) )
8685adantl 454 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
f : ( 1 ... ( # `  W
) ) -1-1-onto-> y  <->  f : ( 1 ... ( # `  W ) ) -1-1-onto-> W ) )
8784, 86bitrd 246 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
f : ( 1 ... ( # `  y
) ) -1-1-onto-> y  <->  f : ( 1 ... ( # `  W ) ) -1-1-onto-> W ) )
8855seqeq2d 11332 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  (
g  o.  f ) ) )
8941coeq1d 5036 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (
g  o.  f )  =  ( F  o.  f ) )
9089seqeq3d 11333 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 (  .+  , 
( g  o.  f
) )  =  seq  1 (  .+  , 
( F  o.  f
) ) )
9188, 90eqtrd 2470 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  ( F  o.  f )
) )
9291adantr 453 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  ( F  o.  f )
) )
9392, 81fveq12d 5736 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) )  =  (  seq  1 ( 
.+  ,  ( F  o.  f ) ) `
 ( # `  W
) ) )
9493eqeq2d 2449 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) )  <->  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) )
9587, 94anbi12d 693 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) )  <-> 
( f : ( 1 ... ( # `  W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  , 
( F  o.  f
) ) `  ( # `
 W ) ) ) ) )
9679, 95sbcied 3199 . . . . . . . . 9  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( [. W  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) )  <-> 
( f : ( 1 ... ( # `  W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  , 
( F  o.  f
) ) `  ( # `
 W ) ) ) ) )
9773, 96bitrd 246 . . . . . . . 8  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( [. ( `' g "
( _V  \  o
) )  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) )  <-> 
( f : ( 1 ... ( # `  W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  , 
( F  o.  f
) ) `  ( # `
 W ) ) ) ) )
9897exbidv 1637 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( E. f [. ( `' g " ( _V 
\  o ) )  /  y ]. (
f : ( 1 ... ( # `  y
) ) -1-1-onto-> y  /\  x  =  (  seq  1
( ( +g  `  w
) ,  ( g  o.  f ) ) `
 ( # `  y
) ) )  <->  E. f
( f : ( 1 ... ( # `  W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  , 
( F  o.  f
) ) `  ( # `
 W ) ) ) ) )
9998iotabidv 5441 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( iota x E. f [. ( `' g " ( _V  \  o ) )  /  y ]. (
f : ( 1 ... ( # `  y
) ) -1-1-onto-> y  /\  x  =  (  seq  1
( ( +g  `  w
) ,  ( g  o.  f ) ) `
 ( # `  y
) ) ) )  =  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) )
10053, 64, 99ifbieq12d 3763 . . . . 5  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  if ( dom  g  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( dom  g  =  ( m ... n
)  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) ) ,  ( iota x E. f [. ( `' g " ( _V 
\  o ) )  /  y ]. (
f : ( 1 ... ( # `  y
) ) -1-1-onto-> y  /\  x  =  (  seq  1
( ( +g  `  w
) ,  ( g  o.  f ) ) `
 ( # `  y
) ) ) ) )  =  if ( A  e.  ran  ... ,  ( iota x E. m E. n  e.  (
ZZ>= `  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) ) )
10144, 48, 100ifbieq12d 3763 . . . 4  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  if ( ran  g  C_  o ,  ( 0g `  w ) ,  if ( dom  g  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( dom  g  =  ( m ... n
)  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) ) ,  ( iota x E. f [. ( `' g " ( _V 
\  o ) )  /  y ]. (
f : ( 1 ... ( # `  y
) ) -1-1-onto-> y  /\  x  =  (  seq  1
( ( +g  `  w
) ,  ( g  o.  f ) ) `
 ( # `  y
) ) ) ) ) )  =  if ( ran  F  C_  O ,  .0.  ,  if ( A  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) ) ) )
10240, 101csbied 3295 . . 3  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  [_ O  /  o ]_ if ( ran  g  C_  o ,  ( 0g
`  w ) ,  if ( dom  g  e.  ran  ... ,  ( iota
x E. m E. n  e.  ( ZZ>= `  m ) ( dom  g  =  ( m ... n )  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) ) ,  ( iota x E. f [. ( `' g "
( _V  \  o
) )  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) ) ) ) )  =  if ( ran  F  C_  O ,  .0.  ,  if ( A  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) ) ) )
10335, 102eqtrd 2470 . 2  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  [_ { x  e.  (
Base `  w )  |  A. y  e.  (
Base `  w )
( ( x ( +g  `  w ) y )  =  y  /\  ( y ( +g  `  w ) x )  =  y ) }  /  o ]_ if ( ran  g  C_  o ,  ( 0g
`  w ) ,  if ( dom  g  e.  ran  ... ,  ( iota
x E. m E. n  e.  ( ZZ>= `  m ) ( dom  g  =  ( m ... n )  /\  x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n ) ) ) ,  ( iota x E. f [. ( `' g "
( _V  \  o
) )  /  y ]. ( f : ( 1 ... ( # `  y ) ) -1-1-onto-> y  /\  x  =  (  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) ) `  ( # `  y ) ) ) ) ) )  =  if ( ran  F  C_  O ,  .0.  ,  if ( A  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) ) ) )
104 gsumval.g . . 3  |-  ( ph  ->  G  e.  V )
105 elex 2966 . . 3  |-  ( G  e.  V  ->  G  e.  _V )
106104, 105syl 16 . 2  |-  ( ph  ->  G  e.  _V )
107 elex 2966 . . 3  |-  ( F  e.  X  ->  F  e.  _V )
10874, 107syl 16 . 2  |-  ( ph  ->  F  e.  _V )
109 fvex 5744 . . . . 5  |-  ( 0g
`  G )  e. 
_V
11047, 109eqeltri 2508 . . . 4  |-  .0.  e.  _V
111 iotaex 5437 . . . . 5  |-  ( iota
x E. m E. n  e.  ( ZZ>= `  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m ( 
.+  ,  F ) `
 n ) ) )  e.  _V
112 iotaex 5437 . . . . 5  |-  ( iota
x E. f ( f : ( 1 ... ( # `  W
) ) -1-1-onto-> W  /\  x  =  (  seq  1 ( 
.+  ,  ( F  o.  f ) ) `
 ( # `  W
) ) ) )  e.  _V
113111, 112ifex 3799 . . . 4  |-  if ( A  e.  ran  ... ,  ( iota x E. m E. n  e.  (
ZZ>= `  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) )  e.  _V
114110, 113ifex 3799 . . 3  |-  if ( ran  F  C_  O ,  .0.  ,  if ( A  e.  ran  ... ,  ( iota x E. m E. n  e.  (
ZZ>= `  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) ) )  e.  _V
115114a1i 11 . 2  |-  ( ph  ->  if ( ran  F  C_  O ,  .0.  ,  if ( A  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) ) )  e.  _V )
1162, 103, 106, 108, 115ovmpt2d 6203 1  |-  ( ph  ->  ( G  gsumg  F )  =  if ( ran  F  C_  O ,  .0.  ,  if ( A  e.  ran  ...
,  ( iota x E. m E. n  e.  ( ZZ>= `  m )
( A  =  ( m ... n )  /\  x  =  (  seq  m (  .+  ,  F ) `  n
) ) ) ,  ( iota x E. f ( f : ( 1 ... ( # `
 W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  ,  ( F  o.  f ) ) `  ( # `  W ) ) ) ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 178    /\ wa 360   E.wex 1551    = wceq 1653    e. wcel 1726   A.wral 2707   E.wrex 2708   {crab 2711   _Vcvv 2958   [.wsbc 3163   [_csb 3253    \ cdif 3319    C_ wss 3322   ifcif 3741   `'ccnv 4879   dom cdm 4880   ran crn 4881   "cima 4883    o. ccom 4884   iotacio 5418   -1-1-onto->wf1o 5455   ` cfv 5456  (class class class)co 6083    e. cmpt2 6085   1c1 8993   ZZ>=cuz 10490   ...cfz 11045    seq cseq 11325   #chash 11620   Basecbs 13471   +g cplusg 13531   0gc0g 13725    gsumg cgsu 13726
This theorem is referenced by:  gsumval  14777  gsumpropd  14778  gsumpropd2lem  24222
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-sep 4332  ax-nul 4340  ax-pow 4379  ax-pr 4405  ax-un 4703
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-ral 2712  df-rex 2713  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-op 3825  df-uni 4018  df-br 4215  df-opab 4269  df-mpt 4270  df-id 4500  df-xp 4886  df-rel 4887  df-cnv 4888  df-co 4889  df-dm 4890  df-rn 4891  df-res 4892  df-ima 4893  df-iota 5420  df-fun 5458  df-fn 5459  df-f 5460  df-f1 5461  df-fo 5462  df-f1o 5463  df-fv 5464  df-ov 6086  df-oprab 6087  df-mpt2 6088  df-recs 6635  df-rdg 6670  df-seq 11326  df-gsum 13730
  Copyright terms: Public domain W3C validator