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

Theorem gsumvalx 14451
Description: Expand out the substitutions in df-gsum 13405. (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 13405 . . 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 10 . 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 732 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  w  =  G )
43fveq2d 5529 . . . . . . 7  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( Base `  w )  =  ( Base `  G
) )
5 gsumval.b . . . . . . 7  |-  B  =  ( Base `  G
)
64, 5syl6eqr 2333 . . . . . 6  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( Base `  w )  =  B )
73fveq2d 5529 . . . . . . . . . . 11  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( +g  `  w )  =  ( +g  `  G
) )
8 gsumval.p . . . . . . . . . . 11  |-  .+  =  ( +g  `  G )
97, 8syl6eqr 2333 . . . . . . . . . 10  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( +g  `  w )  =  .+  )
109oveqd 5875 . . . . . . . . 9  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( x ( +g  `  w ) y )  =  ( x  .+  y ) )
1110eqeq1d 2291 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( x ( +g  `  w ) y )  =  y  <-> 
( x  .+  y
)  =  y ) )
129oveqd 5875 . . . . . . . . 9  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( y ( +g  `  w ) x )  =  ( y  .+  x ) )
1312eqeq1d 2291 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( y ( +g  `  w ) x )  =  y  <-> 
( y  .+  x
)  =  y ) )
1411, 13anbi12d 691 . . . . . . 7  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( ( x ( +g  `  w
) y )  =  y  /\  ( y ( +g  `  w
) x )  =  y )  <->  ( (
x  .+  y )  =  y  /\  (
y  .+  x )  =  y ) ) )
156, 14raleqbidv 2748 . . . . . 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 2783 . . . . 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 5866 . . . . . . . . . . 11  |-  ( t  =  y  ->  (
s  .+  t )  =  ( s  .+  y ) )
19 id 19 . . . . . . . . . . 11  |-  ( t  =  y  ->  t  =  y )
2018, 19eqeq12d 2297 . . . . . . . . . 10  |-  ( t  =  y  ->  (
( s  .+  t
)  =  t  <->  ( s  .+  y )  =  y ) )
21 oveq1 5865 . . . . . . . . . . 11  |-  ( t  =  y  ->  (
t  .+  s )  =  ( y  .+  s ) )
2221, 19eqeq12d 2297 . . . . . . . . . 10  |-  ( t  =  y  ->  (
( t  .+  s
)  =  t  <->  ( y  .+  s )  =  y ) )
2320, 22anbi12d 691 . . . . . . . . 9  |-  ( t  =  y  ->  (
( ( s  .+  t )  =  t  /\  ( t  .+  s )  =  t )  <->  ( ( s 
.+  y )  =  y  /\  ( y 
.+  s )  =  y ) ) )
2423cbvralv 2764 . . . . . . . 8  |-  ( A. t  e.  B  (
( s  .+  t
)  =  t  /\  ( t  .+  s
)  =  t )  <->  A. y  e.  B  ( ( s  .+  y )  =  y  /\  ( y  .+  s )  =  y ) )
25 oveq1 5865 . . . . . . . . . . 11  |-  ( s  =  x  ->  (
s  .+  y )  =  ( x  .+  y ) )
2625eqeq1d 2291 . . . . . . . . . 10  |-  ( s  =  x  ->  (
( s  .+  y
)  =  y  <->  ( x  .+  y )  =  y ) )
27 oveq2 5866 . . . . . . . . . . 11  |-  ( s  =  x  ->  (
y  .+  s )  =  ( y  .+  x ) )
2827eqeq1d 2291 . . . . . . . . . 10  |-  ( s  =  x  ->  (
( y  .+  s
)  =  y  <->  ( y  .+  x )  =  y ) )
2926, 28anbi12d 691 . . . . . . . . 9  |-  ( s  =  x  ->  (
( ( s  .+  y )  =  y  /\  ( y  .+  s )  =  y )  <->  ( ( x 
.+  y )  =  y  /\  ( y 
.+  x )  =  y ) ) )
3029ralbidv 2563 . . . . . . . 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 248 . . . . . . 7  |-  ( s  =  x  ->  ( A. t  e.  B  ( ( s  .+  t )  =  t  /\  ( t  .+  s )  =  t )  <->  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) ) )
3231cbvrabv 2787 . . . . . 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 2303 . . . . 5  |-  O  =  { x  e.  B  |  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) }
3416, 33syl6eqr 2333 . . . 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 3087 . . 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 5539 . . . . . . . 8  |-  ( Base `  G )  e.  _V
375, 36eqeltri 2353 . . . . . . 7  |-  B  e. 
_V
3837rabex 4165 . . . . . 6  |-  { x  e.  B  |  A. y  e.  B  (
( x  .+  y
)  =  y  /\  ( y  .+  x
)  =  y ) }  e.  _V
3933, 38eqeltri 2353 . . . . 5  |-  O  e. 
_V
4039a1i 10 . . . 4  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  O  e.  _V )
41 simplrr 737 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  g  =  F )
4241rneqd 4906 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ran  g  =  ran  F )
43 simpr 447 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  o  =  O )
4442, 43sseq12d 3207 . . . . 5  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( ran  g  C_  o  <->  ran  F  C_  O ) )
453adantr 451 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  w  =  G )
4645fveq2d 5529 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( 0g `  w )  =  ( 0g `  G
) )
47 gsumval.z . . . . . 6  |-  .0.  =  ( 0g `  G )
4846, 47syl6eqr 2333 . . . . 5  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( 0g `  w )  =  .0.  )
4941dmeqd 4881 . . . . . . . 8  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  g  =  dom  F )
50 gsumvalx.a . . . . . . . . 9  |-  ( ph  ->  dom  F  =  A )
5150ad2antrr 706 . . . . . . . 8  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  F  =  A )
5249, 51eqtrd 2315 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  g  =  A )
5352eleq1d 2349 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( dom  g  e.  ran  ...  <->  A  e.  ran  ... )
)
5452eqeq1d 2291 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( dom  g  =  (
m ... n )  <->  A  =  ( m ... n
) ) )
559adantr 451 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( +g  `  w )  = 
.+  )
5655seqeq2d 11053 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m ( ( +g  `  w ) ,  g )  =  seq  m
(  .+  ,  g
) )
5741seqeq3d 11054 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m (  .+  , 
g )  =  seq  m (  .+  ,  F ) )
5856, 57eqtrd 2315 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m ( ( +g  `  w ) ,  g )  =  seq  m
(  .+  ,  F
) )
5958fveq1d 5527 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (  seq  m ( ( +g  `  w ) ,  g ) `  n )  =  (  seq  m
(  .+  ,  F
) `  n )
)
6059eqeq2d 2294 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (
x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n )  <-> 
x  =  (  seq  m (  .+  ,  F ) `  n
) ) )
6154, 60anbi12d 691 . . . . . . . . 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 2564 . . . . . . . 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 1612 . . . . . . 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 5240 . . . . . 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 3294 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( _V  \  o )  =  ( _V  \  O
) )
6665imaeq2d 5012 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' F " ( _V 
\  o ) )  =  ( `' F " ( _V  \  O
) ) )
6741cnveqd 4857 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  `' g  =  `' F
)
6867imaeq1d 5011 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' g " ( _V  \  o ) )  =  ( `' F " ( _V  \  o
) ) )
69 gsumval.w . . . . . . . . . . . 12  |-  ( ph  ->  W  =  ( `' F " ( _V 
\  O ) ) )
7069ad2antrr 706 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  W  =  ( `' F " ( _V  \  O
) ) )
7166, 68, 703eqtr4d 2325 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' g " ( _V  \  o ) )  =  W )
72 dfsbcq 2993 . . . . . . . . . 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 15 . . . . . . . . 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 5208 . . . . . . . . . . . . 13  |-  ( F  e.  X  ->  `' F  e.  _V )
76 imaexg 5026 . . . . . . . . . . . . 13  |-  ( `' F  e.  _V  ->  ( `' F " ( _V 
\  O ) )  e.  _V )
7774, 75, 763syl 18 . . . . . . . . . . . 12  |-  ( ph  ->  ( `' F "
( _V  \  O
) )  e.  _V )
7869, 77eqeltrd 2357 . . . . . . . . . . 11  |-  ( ph  ->  W  e.  _V )
7978ad2antrr 706 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  W  e.  _V )
80 fveq2 5525 . . . . . . . . . . . . . . 15  |-  ( y  =  W  ->  ( # `
 y )  =  ( # `  W
) )
8180adantl 452 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  ( # `
 y )  =  ( # `  W
) )
8281oveq2d 5874 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
1 ... ( # `  y
) )  =  ( 1 ... ( # `  W ) ) )
83 f1oeq2 5464 . . . . . . . . . . . . 13  |-  ( ( 1 ... ( # `  y ) )  =  ( 1 ... ( # `
 W ) )  ->  ( f : ( 1 ... ( # `
 y ) ) -1-1-onto-> y  <-> 
f : ( 1 ... ( # `  W
) ) -1-1-onto-> y ) )
8482, 83syl 15 . . . . . . . . . . . 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 5465 . . . . . . . . . . . . 13  |-  ( y  =  W  ->  (
f : ( 1 ... ( # `  W
) ) -1-1-onto-> y  <->  f : ( 1 ... ( # `  W ) ) -1-1-onto-> W ) )
8685adantl 452 . . . . . . . . . . . 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 244 . . . . . . . . . . 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 11053 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  (
g  o.  f ) ) )
8941coeq1d 4845 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (
g  o.  f )  =  ( F  o.  f ) )
9089seqeq3d 11054 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 (  .+  , 
( g  o.  f
) )  =  seq  1 (  .+  , 
( F  o.  f
) ) )
9188, 90eqtrd 2315 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  ( F  o.  f )
) )
9291adantr 451 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  ( F  o.  f )
) )
9392, 81fveq12d 5531 . . . . . . . . . . . 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 2294 . . . . . . . . . . 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 691 . . . . . . . . . 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 3027 . . . . . . . . 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 244 . . . . . . . 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 1612 . . . . . . 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 5240 . . . . . 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 3587 . . . . 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 3587 . . . 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 3123 . . 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 2315 . 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 2796 . . 3  |-  ( G  e.  V  ->  G  e.  _V )
106104, 105syl 15 . 2  |-  ( ph  ->  G  e.  _V )
107 elex 2796 . . 3  |-  ( F  e.  X  ->  F  e.  _V )
10874, 107syl 15 . 2  |-  ( ph  ->  F  e.  _V )
109 fvex 5539 . . . . 5  |-  ( 0g
`  G )  e. 
_V
11047, 109eqeltri 2353 . . . 4  |-  .0.  e.  _V
111 iotaex 5236 . . . . 5  |-  ( iota
x E. m E. n  e.  ( ZZ>= `  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m ( 
.+  ,  F ) `
 n ) ) )  e.  _V
112 iotaex 5236 . . . . 5  |-  ( iota
x E. f ( f : ( 1 ... ( # `  W
) ) -1-1-onto-> W  /\  x  =  (  seq  1 ( 
.+  ,  ( F  o.  f ) ) `
 ( # `  W
) ) ) )  e.  _V
113111, 112ifex 3623 . . . 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 3623 . . 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 10 . 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 5975 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 176    /\ wa 358   E.wex 1528    = wceq 1623    e. wcel 1684   A.wral 2543   E.wrex 2544   {crab 2547   _Vcvv 2788   [.wsbc 2991   [_csb 3081    \ cdif 3149    C_ wss 3152   ifcif 3565   `'ccnv 4688   dom cdm 4689   ran crn 4690   "cima 4692    o. ccom 4693   iotacio 5217   -1-1-onto->wf1o 5254   ` cfv 5255  (class class class)co 5858    e. cmpt2 5860   1c1 8738   ZZ>=cuz 10230   ...cfz 10782    seq cseq 11046   #chash 11337   Basecbs 13148   +g cplusg 13208   0gc0g 13400    gsumg cgsu 13401
This theorem is referenced by:  gsumval  14452  gsumpropd  14453  gsumpropd2lem  23379
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-ral 2548  df-rex 2549  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-recs 6388  df-rdg 6423  df-seq 11047  df-gsum 13405
  Copyright terms: Public domain W3C validator