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

Theorem gsumvalx 14467
Description: Expand out the substitutions in df-gsum 13421. (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 13421 . . 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 5545 . . . . . . 7  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( Base `  w )  =  ( Base `  G
) )
5 gsumval.b . . . . . . 7  |-  B  =  ( Base `  G
)
64, 5syl6eqr 2346 . . . . . 6  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( Base `  w )  =  B )
73fveq2d 5545 . . . . . . . . . . 11  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( +g  `  w )  =  ( +g  `  G
) )
8 gsumval.p . . . . . . . . . . 11  |-  .+  =  ( +g  `  G )
97, 8syl6eqr 2346 . . . . . . . . . 10  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( +g  `  w )  =  .+  )
109oveqd 5891 . . . . . . . . 9  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( x ( +g  `  w ) y )  =  ( x  .+  y ) )
1110eqeq1d 2304 . . . . . . . 8  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( ( x ( +g  `  w ) y )  =  y  <-> 
( x  .+  y
)  =  y ) )
129oveqd 5891 . . . . . . . . 9  |-  ( (
ph  /\  ( w  =  G  /\  g  =  F ) )  -> 
( y ( +g  `  w ) x )  =  ( y  .+  x ) )
1312eqeq1d 2304 . . . . . . . 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 2761 . . . . . 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 2796 . . . . 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 5882 . . . . . . . . . . 11  |-  ( t  =  y  ->  (
s  .+  t )  =  ( s  .+  y ) )
19 id 19 . . . . . . . . . . 11  |-  ( t  =  y  ->  t  =  y )
2018, 19eqeq12d 2310 . . . . . . . . . 10  |-  ( t  =  y  ->  (
( s  .+  t
)  =  t  <->  ( s  .+  y )  =  y ) )
21 oveq1 5881 . . . . . . . . . . 11  |-  ( t  =  y  ->  (
t  .+  s )  =  ( y  .+  s ) )
2221, 19eqeq12d 2310 . . . . . . . . . 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 2777 . . . . . . . 8  |-  ( A. t  e.  B  (
( s  .+  t
)  =  t  /\  ( t  .+  s
)  =  t )  <->  A. y  e.  B  ( ( s  .+  y )  =  y  /\  ( y  .+  s )  =  y ) )
25 oveq1 5881 . . . . . . . . . . 11  |-  ( s  =  x  ->  (
s  .+  y )  =  ( x  .+  y ) )
2625eqeq1d 2304 . . . . . . . . . 10  |-  ( s  =  x  ->  (
( s  .+  y
)  =  y  <->  ( x  .+  y )  =  y ) )
27 oveq2 5882 . . . . . . . . . . 11  |-  ( s  =  x  ->  (
y  .+  s )  =  ( y  .+  x ) )
2827eqeq1d 2304 . . . . . . . . . 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 2576 . . . . . . . 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 2800 . . . . . 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 2316 . . . . 5  |-  O  =  { x  e.  B  |  A. y  e.  B  ( ( x  .+  y )  =  y  /\  ( y  .+  x )  =  y ) }
3416, 33syl6eqr 2346 . . . 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 3100 . . 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 5555 . . . . . . . 8  |-  ( Base `  G )  e.  _V
375, 36eqeltri 2366 . . . . . . 7  |-  B  e. 
_V
3837rabex 4181 . . . . . 6  |-  { x  e.  B  |  A. y  e.  B  (
( x  .+  y
)  =  y  /\  ( y  .+  x
)  =  y ) }  e.  _V
3933, 38eqeltri 2366 . . . . 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 4922 . . . . . 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 3220 . . . . 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 5545 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( 0g `  w )  =  ( 0g `  G
) )
47 gsumval.z . . . . . 6  |-  .0.  =  ( 0g `  G )
4846, 47syl6eqr 2346 . . . . 5  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( 0g `  w )  =  .0.  )
4941dmeqd 4897 . . . . . . . 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 2328 . . . . . . 7  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  dom  g  =  A )
5352eleq1d 2362 . . . . . 6  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( dom  g  e.  ran  ...  <->  A  e.  ran  ... )
)
5452eqeq1d 2304 . . . . . . . . . 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 11069 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m ( ( +g  `  w ) ,  g )  =  seq  m
(  .+  ,  g
) )
5741seqeq3d 11070 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m (  .+  , 
g )  =  seq  m (  .+  ,  F ) )
5856, 57eqtrd 2328 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  m ( ( +g  `  w ) ,  g )  =  seq  m
(  .+  ,  F
) )
5958fveq1d 5543 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (  seq  m ( ( +g  `  w ) ,  g ) `  n )  =  (  seq  m
(  .+  ,  F
) `  n )
)
6059eqeq2d 2307 . . . . . . . . . 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 2577 . . . . . . . 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 1616 . . . . . . 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 5256 . . . . . 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 3307 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( _V  \  o )  =  ( _V  \  O
) )
6665imaeq2d 5028 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' F " ( _V 
\  o ) )  =  ( `' F " ( _V  \  O
) ) )
6741cnveqd 4873 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  `' g  =  `' F
)
6867imaeq1d 5027 . . . . . . . . . . 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 2338 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  ( `' g " ( _V  \  o ) )  =  W )
72 dfsbcq 3006 . . . . . . . . . 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 5224 . . . . . . . . . . . . 13  |-  ( F  e.  X  ->  `' F  e.  _V )
76 imaexg 5042 . . . . . . . . . . . . 13  |-  ( `' F  e.  _V  ->  ( `' F " ( _V 
\  O ) )  e.  _V )
7774, 75, 763syl 18 . . . . . . . . . . . 12  |-  ( ph  ->  ( `' F "
( _V  \  O
) )  e.  _V )
7869, 77eqeltrd 2370 . . . . . . . . . . 11  |-  ( ph  ->  W  e.  _V )
7978ad2antrr 706 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  W  e.  _V )
80 fveq2 5541 . . . . . . . . . . . . . . 15  |-  ( y  =  W  ->  ( # `
 y )  =  ( # `  W
) )
8180adantl 452 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  ( # `
 y )  =  ( # `  W
) )
8281oveq2d 5890 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( w  =  G  /\  g  =  F
) )  /\  o  =  O )  /\  y  =  W )  ->  (
1 ... ( # `  y
) )  =  ( 1 ... ( # `  W ) ) )
83 f1oeq2 5480 . . . . . . . . . . . . 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 5481 . . . . . . . . . . . . 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 11069 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 ( ( +g  `  w ) ,  ( g  o.  f ) )  =  seq  1
(  .+  ,  (
g  o.  f ) ) )
8941coeq1d 4861 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  (
g  o.  f )  =  ( F  o.  f ) )
9089seqeq3d 11070 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
w  =  G  /\  g  =  F )
)  /\  o  =  O )  ->  seq  1 (  .+  , 
( g  o.  f
) )  =  seq  1 (  .+  , 
( F  o.  f
) ) )
9188, 90eqtrd 2328 . . . . . . . . . . . . . 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 5547 . . . . . . . . . . . 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 2307 . . . . . . . . . . 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 3040 . . . . . . . . 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 1616 . . . . . . 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 5256 . . . . . 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 3600 . . . . 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 3600 . . . 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 3136 . . 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 2328 . 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 2809 . . 3  |-  ( G  e.  V  ->  G  e.  _V )
106104, 105syl 15 . 2  |-  ( ph  ->  G  e.  _V )
107 elex 2809 . . 3  |-  ( F  e.  X  ->  F  e.  _V )
10874, 107syl 15 . 2  |-  ( ph  ->  F  e.  _V )
109 fvex 5555 . . . . 5  |-  ( 0g
`  G )  e. 
_V
11047, 109eqeltri 2366 . . . 4  |-  .0.  e.  _V
111 iotaex 5252 . . . . 5  |-  ( iota
x E. m E. n  e.  ( ZZ>= `  m ) ( A  =  ( m ... n )  /\  x  =  (  seq  m ( 
.+  ,  F ) `
 n ) ) )  e.  _V
112 iotaex 5252 . . . . 5  |-  ( iota
x E. f ( f : ( 1 ... ( # `  W
) ) -1-1-onto-> W  /\  x  =  (  seq  1 ( 
.+  ,  ( F  o.  f ) ) `
 ( # `  W
) ) ) )  e.  _V
113111, 112ifex 3636 . . . 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 3636 . . 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 5991 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 1531    = wceq 1632    e. wcel 1696   A.wral 2556   E.wrex 2557   {crab 2560   _Vcvv 2801   [.wsbc 3004   [_csb 3094    \ cdif 3162    C_ wss 3165   ifcif 3578   `'ccnv 4704   dom cdm 4705   ran crn 4706   "cima 4708    o. ccom 4709   iotacio 5233   -1-1-onto->wf1o 5270   ` cfv 5271  (class class class)co 5874    e. cmpt2 5876   1c1 8754   ZZ>=cuz 10246   ...cfz 10798    seq cseq 11062   #chash 11353   Basecbs 13164   +g cplusg 13224   0gc0g 13416    gsumg cgsu 13417
This theorem is referenced by:  gsumval  14468  gsumpropd  14469  gsumpropd2lem  23394
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-ral 2561  df-rex 2562  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-op 3662  df-uni 3844  df-br 4040  df-opab 4094  df-mpt 4095  df-id 4325  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-recs 6404  df-rdg 6439  df-seq 11063  df-gsum 13421
  Copyright terms: Public domain W3C validator