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

Theorem gsumvalx 14774
Description: Expand out the substitutions in df-gsum 13728. (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 13728 . . 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 733 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  w  =  G )
43fveq2d 5732 . . . . . . 7  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( Base `  w )  =  ( Base `  G
) )
5 gsumval.b . . . . . . 7  |-  B  =  ( Base `  G
)
64, 5syl6eqr 2486 . . . . . 6  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( Base `  w )  =  B )
73fveq2d 5732 . . . . . . . . . . 11  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( +g  `  w )  =  ( +g  `  G
) )
8 gsumval.p . . . . . . . . . . 11  |-  .+  =  ( +g  `  G )
97, 8syl6eqr 2486 . . . . . . . . . 10  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( +g  `  w )  =  .+  )
109oveqd 6098 . . . . . . . . 9  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( x ( +g  `  w ) y )  =  ( x  .+  y ) )
1110eqeq1d 2444 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( x ( +g  `  w ) y )  =  y  <-> 
( x  .+  y
)  =  y ) )
129oveqd 6098 . . . . . . . . 9  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( y ( +g  `  w ) x )  =  ( y  .+  x ) )
1312eqeq1d 2444 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( y ( +g  `  w ) x )  =  y  <-> 
( y  .+  x
)  =  y ) )
1411, 13anbi12d 692 . . . . . . 7  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( ( x ( +g  `  w
) y )  =  y  /\  ( y ( +g  `  w
) x )  =  y )  <->  ( (
x  .+  y )  =  y  /\  (
y  .+  x )  =  y ) ) )
156, 14raleqbidv 2916 . . . . . 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 2951 . . . . 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 6089 . . . . . . . . . . 11  |-  ( t  =  y  ->  (
s  .+  t )  =  ( s  .+  y ) )
19 id 20 . . . . . . . . . . 11  |-  ( t  =  y  ->  t  =  y )
2018, 19eqeq12d 2450 . . . . . . . . . 10  |-  ( t  =  y  ->  (
( s  .+  t
)  =  t  <->  ( s  .+  y )  =  y ) )
21 oveq1 6088 . . . . . . . . . . 11  |-  ( t  =  y  ->  (
t  .+  s )  =  ( y  .+  s ) )
2221, 19eqeq12d 2450 . . . . . . . . . 10  |-  ( t  =  y  ->  (
( t  .+  s
)  =  t  <->  ( y  .+  s )  =  y ) )
2320, 22anbi12d 692 . . . . . . . . 9  |-  ( t  =  y  ->  (
( ( s  .+  t )  =  t  /\  ( t  .+  s )  =  t )  <->  ( ( s 
.+  y )  =  y  /\  ( y 
.+  s )  =  y ) ) )
2423cbvralv 2932 . . . . . . . 8  |-  ( A. t  e.  B  (
( s  .+  t
)  =  t  /\  ( t  .+  s
)  =  t )  <->  A. y  e.  B  ( ( s  .+  y )  =  y  /\  ( y  .+  s )  =  y ) )
25 oveq1 6088 . . . . . . . . . . 11  |-  ( s  =  x  ->  (
s  .+  y )  =  ( x  .+  y ) )
2625eqeq1d 2444 . . . . . . . . . 10  |-  ( s  =  x  ->  (
( s  .+  y
)  =  y  <->  ( x  .+  y )  =  y ) )
27 oveq2 6089 . . . . . . . . . . 11  |-  ( s  =  x  ->  (
y  .+  s )  =  ( y  .+  x ) )
2827eqeq1d 2444 . . . . . . . . . 10  |-  ( s  =  x  ->  (
( y  .+  s
)  =  y  <->  ( y  .+  x )  =  y ) )
2926, 28anbi12d 692 . . . . . . . . 9  |-  ( s  =  x  ->  (
( ( s  .+  y )  =  y  /\  ( y  .+  s )  =  y )  <->  ( ( x 
.+  y )  =  y  /\  ( y 
.+  x )  =  y ) ) )
3029ralbidv 2725 . . . . . . . 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 249 . . . . . . 7  |-  ( s  =  x  ->  ( A. t  e.  B  ( ( s  .+  t )  =  t  /\  ( t  .+  s )  =  t )  <->  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) ) )
3231cbvrabv 2955 . . . . . 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 2456 . . . . 5  |-  O  =  { x  e.  B  |  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) }
3416, 33syl6eqr 2486 . . . 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 3257 . . 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 5742 . . . . . . . 8  |-  ( Base `  G )  e.  _V
375, 36eqeltri 2506 . . . . . . 7  |-  B  e. 
_V
3837rabex 4354 . . . . . 6  |-  { x  e.  B  |  A. y  e.  B  (
( x  .+  y
)  =  y  /\  ( y  .+  x
)  =  y ) }  e.  _V
3933, 38eqeltri 2506 . . . . 5  |-  O  e. 
_V
4039a1i 11 . . . 4  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  ->  O  e.  _V )
41 simplrr 738 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  g  =  F )
4241rneqd 5097 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ran  g  =  ran  F )
43 simpr 448 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  o  =  O )
4442, 43sseq12d 3377 . . . . 5  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( ran  g  C_  o  <->  ran  F  C_  O ) )
453adantr 452 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  w  =  G )
4645fveq2d 5732 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( 0g `  w )  =  ( 0g `  G
) )
47 gsumval.z . . . . . 6  |-  .0.  =  ( 0g `  G )
4846, 47syl6eqr 2486 . . . . 5  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( 0g `  w )  =  .0.  )
4941dmeqd 5072 . . . . . . . 8  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  g  =  dom  F )
50 gsumvalx.a . . . . . . . . 9  |-  ( ph  ->  dom  F  =  A )
5150ad2antrr 707 . . . . . . . 8  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  F  =  A )
5249, 51eqtrd 2468 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  g  =  A )
5352eleq1d 2502 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( dom  g  e.  ran  ...  <->  A  e.  ran  ... )
)
5452eqeq1d 2444 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( dom  g  =  (
m ... n )  <->  A  =  ( m ... n
) ) )
559adantr 452 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( +g  `  w )  = 
.+  )
5655seqeq2d 11330 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m ( ( +g  `  w ) ,  g )  =  seq  m
(  .+  ,  g
) )
5741seqeq3d 11331 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m (  .+  , 
g )  =  seq  m (  .+  ,  F ) )
5856, 57eqtrd 2468 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m ( ( +g  `  w ) ,  g )  =  seq  m
(  .+  ,  F
) )
5958fveq1d 5730 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (  seq  m ( ( +g  `  w ) ,  g ) `  n )  =  (  seq  m
(  .+  ,  F
) `  n )
)
6059eqeq2d 2447 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (
x  =  (  seq  m ( ( +g  `  w ) ,  g ) `  n )  <-> 
x  =  (  seq  m (  .+  ,  F ) `  n
) ) )
6154, 60anbi12d 692 . . . . . . . . 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 2726 . . . . . . . 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 1636 . . . . . . 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 5439 . . . . . 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 3465 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( _V  \  o )  =  ( _V  \  O
) )
6665imaeq2d 5203 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' F " ( _V 
\  o ) )  =  ( `' F " ( _V  \  O
) ) )
6741cnveqd 5048 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  `' g  =  `' F
)
6867imaeq1d 5202 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' g " ( _V  \  o ) )  =  ( `' F " ( _V  \  o
) ) )
69 gsumval.w . . . . . . . . . . . 12  |-  ( ph  ->  W  =  ( `' F " ( _V 
\  O ) ) )
7069ad2antrr 707 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  W  =  ( `' F " ( _V  \  O
) ) )
7166, 68, 703eqtr4d 2478 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' g " ( _V  \  o ) )  =  W )
72 dfsbcq 3163 . . . . . . . . . 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 5405 . . . . . . . . . . . . 13  |-  ( F  e.  X  ->  `' F  e.  _V )
76 imaexg 5217 . . . . . . . . . . . . 13  |-  ( `' F  e.  _V  ->  ( `' F " ( _V 
\  O ) )  e.  _V )
7774, 75, 763syl 19 . . . . . . . . . . . 12  |-  ( ph  ->  ( `' F "
( _V  \  O
) )  e.  _V )
7869, 77eqeltrd 2510 . . . . . . . . . . 11  |-  ( ph  ->  W  e.  _V )
7978ad2antrr 707 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  W  e.  _V )
80 fveq2 5728 . . . . . . . . . . . . . . 15  |-  ( y  =  W  ->  ( # `
 y )  =  ( # `  W
) )
8180adantl 453 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  ( # `
 y )  =  ( # `  W
) )
8281oveq2d 6097 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
1 ... ( # `  y
) )  =  ( 1 ... ( # `  W ) ) )
83 f1oeq2 5666 . . . . . . . . . . . . 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 5667 . . . . . . . . . . . . 13  |-  ( y  =  W  ->  (
f : ( 1 ... ( # `  W
) ) -1-1-onto-> y  <->  f : ( 1 ... ( # `  W ) ) -1-1-onto-> W ) )
8685adantl 453 . . . . . . . . . . . 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 245 . . . . . . . . . . 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 11330 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  (
g  o.  f ) ) )
8941coeq1d 5034 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (
g  o.  f )  =  ( F  o.  f ) )
9089seqeq3d 11331 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 (  .+  , 
( g  o.  f
) )  =  seq  1 (  .+  , 
( F  o.  f
) ) )
9188, 90eqtrd 2468 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  ( F  o.  f )
) )
9291adantr 452 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  ( F  o.  f )
) )
9392, 81fveq12d 5734 . . . . . . . . . . . 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 2447 . . . . . . . . . . 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 692 . . . . . . . . . 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 3197 . . . . . . . . 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 245 . . . . . . . 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 1636 . . . . . . 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 5439 . . . . . 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 3761 . . . . 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 3761 . . . 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 3293 . . 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 2468 . 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 2964 . . 3  |-  ( G  e.  V  ->  G  e.  _V )
106104, 105syl 16 . 2  |-  ( ph  ->  G  e.  _V )
107 elex 2964 . . 3  |-  ( F  e.  X  ->  F  e.  _V )
10874, 107syl 16 . 2  |-  ( ph  ->  F  e.  _V )
109 fvex 5742 . . . . 5  |-  ( 0g
`  G )  e. 
_V
11047, 109eqeltri 2506 . . . 4  |-  .0.  e.  _V
111 iotaex 5435 . . . . 5  |-  ( iota
x E. m E. n  e.  ( ZZ>= `  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m ( 
.+  ,  F ) `
 n ) ) )  e.  _V
112 iotaex 5435 . . . . 5  |-  ( iota
x E. f ( f : ( 1 ... ( # `  W
) ) -1-1-onto-> W  /\  x  =  (  seq  1 ( 
.+  ,  ( F  o.  f ) ) `
 ( # `  W
) ) ) )  e.  _V
113111, 112ifex 3797 . . . 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 3797 . . 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 6201 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 177    /\ wa 359   E.wex 1550    = wceq 1652    e. wcel 1725   A.wral 2705   E.wrex 2706   {crab 2709   _Vcvv 2956   [.wsbc 3161   [_csb 3251    \ cdif 3317    C_ wss 3320   ifcif 3739   `'ccnv 4877   dom cdm 4878   ran crn 4879   "cima 4881    o. ccom 4882   iotacio 5416   -1-1-onto->wf1o 5453   ` cfv 5454  (class class class)co 6081    e. cmpt2 6083   1c1 8991   ZZ>=cuz 10488   ...cfz 11043    seq cseq 11323   #chash 11618   Basecbs 13469   +g cplusg 13529   0gc0g 13723    gsumg cgsu 13724
This theorem is referenced by:  gsumval  14775  gsumpropd  14776  gsumpropd2lem  24220
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-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2417  ax-sep 4330  ax-nul 4338  ax-pow 4377  ax-pr 4403  ax-un 4701
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-eu 2285  df-mo 2286  df-clab 2423  df-cleq 2429  df-clel 2432  df-nfc 2561  df-ne 2601  df-ral 2710  df-rex 2711  df-rab 2714  df-v 2958  df-sbc 3162  df-csb 3252  df-dif 3323  df-un 3325  df-in 3327  df-ss 3334  df-nul 3629  df-if 3740  df-pw 3801  df-sn 3820  df-pr 3821  df-op 3823  df-uni 4016  df-br 4213  df-opab 4267  df-mpt 4268  df-id 4498  df-xp 4884  df-rel 4885  df-cnv 4886  df-co 4887  df-dm 4888  df-rn 4889  df-res 4890  df-ima 4891  df-iota 5418  df-fun 5456  df-fn 5457  df-f 5458  df-f1 5459  df-fo 5460  df-f1o 5461  df-fv 5462  df-ov 6084  df-oprab 6085  df-mpt2 6086  df-recs 6633  df-rdg 6668  df-seq 11324  df-gsum 13728
  Copyright terms: Public domain W3C validator