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

Theorem gsumval3a 15183
Description: Value of the group sum operation over an index set with finite support. (Contributed by Mario Carneiro, 7-Dec-2014.)
Hypotheses
Ref Expression
gsumval3.b  |-  B  =  ( Base `  G
)
gsumval3.0  |-  .0.  =  ( 0g `  G )
gsumval3.p  |-  .+  =  ( +g  `  G )
gsumval3.z  |-  Z  =  (Cntz `  G )
gsumval3.g  |-  ( ph  ->  G  e.  Mnd )
gsumval3.a  |-  ( ph  ->  A  e.  V )
gsumval3.f  |-  ( ph  ->  F : A --> B )
gsumval3.c  |-  ( ph  ->  ran  F  C_  ( Z `  ran  F ) )
gsumval3a.t  |-  ( ph  ->  W  e.  Fin )
gsumval3a.n  |-  ( ph  ->  W  =/=  (/) )
gsumval3a.w  |-  W  =  ( `' F "
( _V  \  {  .0.  } ) )
gsumval3a.i  |-  ( ph  ->  -.  A  e.  ran  ... )
Assertion
Ref Expression
gsumval3a  |-  ( ph  ->  ( G  gsumg  F )  =  ( iota x E. f
( f : ( 1 ... ( # `  W ) ) -1-1-onto-> W  /\  x  =  (  seq  1 (  .+  , 
( F  o.  f
) ) `  ( # `
 W ) ) ) ) )
Distinct variable groups:    x, f,  .+    A, f, x    ph, f, x    x,  .0.    f, G, x   
x, V    B, f, x    f, F, x    f, W, x
Dummy variables  m  n  y  z are mutually distinct and distinct from all other variables.
Allowed substitution hints:    V( f)    .0. ( f)    Z( x, f)

Proof of Theorem gsumval3a
StepHypRef Expression
1 gsumval3.b . . 3  |-  B  =  ( Base `  G
)
2 gsumval3.0 . . 3  |-  .0.  =  ( 0g `  G )
3 gsumval3.p . . 3  |-  .+  =  ( +g  `  G )
4 eqid 2284 . . 3  |-  { z  e.  B  |  A. y  e.  B  (
( z  .+  y
)  =  y  /\  ( y  .+  z
)  =  y ) }  =  { z  e.  B  |  A. y  e.  B  (
( z  .+  y
)  =  y  /\  ( y  .+  z
)  =  y ) }
5 gsumval3.g . . . . . . 7  |-  ( ph  ->  G  e.  Mnd )
61, 2, 3, 4gsumvallem2 14443 . . . . . . 7  |-  ( G  e.  Mnd  ->  { z  e.  B  |  A. y  e.  B  (
( z  .+  y
)  =  y  /\  ( y  .+  z
)  =  y ) }  =  {  .0.  } )
75, 6syl 17 . . . . . 6  |-  ( ph  ->  { z  e.  B  |  A. y  e.  B  ( ( z  .+  y )  =  y  /\  ( y  .+  z )  =  y ) }  =  {  .0.  } )
87difeq2d 3295 . . . . 5  |-  ( ph  ->  ( _V  \  {
z  e.  B  |  A. y  e.  B  ( ( z  .+  y )  =  y  /\  ( y  .+  z )  =  y ) } )  =  ( _V  \  {  .0.  } ) )
98imaeq2d 5011 . . . 4  |-  ( ph  ->  ( `' F "
( _V  \  {
z  e.  B  |  A. y  e.  B  ( ( z  .+  y )  =  y  /\  ( y  .+  z )  =  y ) } ) )  =  ( `' F " ( _V  \  {  .0.  } ) ) )
10 gsumval3a.w . . . 4  |-  W  =  ( `' F "
( _V  \  {  .0.  } ) )
119, 10syl6reqr 2335 . . 3  |-  ( ph  ->  W  =  ( `' F " ( _V 
\  { z  e.  B  |  A. y  e.  B  ( (
z  .+  y )  =  y  /\  (
y  .+  z )  =  y ) } ) ) )
12 gsumval3.a . . 3  |-  ( ph  ->  A  e.  V )
13 gsumval3.f . . 3  |-  ( ph  ->  F : A --> B )
141, 2, 3, 4, 11, 5, 12, 13gsumval 14446 . 2  |-  ( ph  ->  ( G  gsumg  F )  =  if ( ran  F  C_  { z  e.  B  |  A. y  e.  B  ( ( z  .+  y )  =  y  /\  ( y  .+  z )  =  y ) } ,  .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
) ) ) ) ) ) )
15 gsumval3a.n . . . 4  |-  ( ph  ->  W  =/=  (/) )
167sseq2d 3207 . . . . . 6  |-  ( ph  ->  ( ran  F  C_  { z  e.  B  |  A. y  e.  B  ( ( z  .+  y )  =  y  /\  ( y  .+  z )  =  y ) }  <->  ran  F  C_  {  .0.  } ) )
17 ffn 5354 . . . . . . . . . . . 12  |-  ( F : A --> B  ->  F  Fn  A )
1813, 17syl 17 . . . . . . . . . . 11  |-  ( ph  ->  F  Fn  A )
1918adantr 453 . . . . . . . . . 10  |-  ( (
ph  /\  ran  F  C_  {  .0.  } )  ->  F  Fn  A )
20 simpr 449 . . . . . . . . . 10  |-  ( (
ph  /\  ran  F  C_  {  .0.  } )  ->  ran  F  C_  {  .0.  } )
21 df-f 5225 . . . . . . . . . 10  |-  ( F : A --> {  .0.  }  <-> 
( F  Fn  A  /\  ran  F  C_  {  .0.  } ) )
2219, 20, 21sylanbrc 647 . . . . . . . . 9  |-  ( (
ph  /\  ran  F  C_  {  .0.  } )  ->  F : A --> {  .0.  } )
23 disjdif 3527 . . . . . . . . 9  |-  ( {  .0.  }  i^i  ( _V  \  {  .0.  }
) )  =  (/)
24 fimacnvdisj 5384 . . . . . . . . 9  |-  ( ( F : A --> {  .0.  }  /\  ( {  .0.  }  i^i  ( _V  \  {  .0.  } ) )  =  (/) )  ->  ( `' F " ( _V 
\  {  .0.  }
) )  =  (/) )
2522, 23, 24sylancl 645 . . . . . . . 8  |-  ( (
ph  /\  ran  F  C_  {  .0.  } )  -> 
( `' F "
( _V  \  {  .0.  } ) )  =  (/) )
2610, 25syl5eq 2328 . . . . . . 7  |-  ( (
ph  /\  ran  F  C_  {  .0.  } )  ->  W  =  (/) )
2726ex 425 . . . . . 6  |-  ( ph  ->  ( ran  F  C_  {  .0.  }  ->  W  =  (/) ) )
2816, 27sylbid 208 . . . . 5  |-  ( ph  ->  ( ran  F  C_  { z  e.  B  |  A. y  e.  B  ( ( z  .+  y )  =  y  /\  ( y  .+  z )  =  y ) }  ->  W  =  (/) ) )
2928necon3ad 2483 . . . 4  |-  ( ph  ->  ( W  =/=  (/)  ->  -.  ran  F  C_  { z  e.  B  |  A. y  e.  B  (
( z  .+  y
)  =  y  /\  ( y  .+  z
)  =  y ) } ) )
3015, 29mpd 16 . . 3  |-  ( ph  ->  -.  ran  F  C_  { z  e.  B  |  A. y  e.  B  ( ( z  .+  y )  =  y  /\  ( y  .+  z )  =  y ) } )
31 iffalse 3573 . . 3  |-  ( -. 
ran  F  C_  { z  e.  B  |  A. y  e.  B  (
( z  .+  y
)  =  y  /\  ( y  .+  z
)  =  y ) }  ->  if ( ran  F  C_  { z  e.  B  |  A. y  e.  B  (
( z  .+  y
)  =  y  /\  ( y  .+  z
)  =  y ) } ,  .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 ) ) ) ) ) )  =  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 ) ) ) ) ) )
3230, 31syl 17 . 2  |-  ( ph  ->  if ( ran  F  C_ 
{ z  e.  B  |  A. y  e.  B  ( ( z  .+  y )  =  y  /\  ( y  .+  z )  =  y ) } ,  .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
) ) ) ) ) )  =  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 ) ) ) ) ) )
33 gsumval3a.i . . 3  |-  ( ph  ->  -.  A  e.  ran  ... )
34 iffalse 3573 . . 3  |-  ( -.  A  e.  ran  ...  ->  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
) ) ) ) )  =  ( iota
x E. f ( f : ( 1 ... ( # `  W
) ) -1-1-onto-> W  /\  x  =  (  seq  1 ( 
.+  ,  ( F  o.  f ) ) `
 ( # `  W
) ) ) ) )
3533, 34syl 17 . 2  |-  ( ph  ->  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
) ) ) ) )  =  ( iota
x E. f ( f : ( 1 ... ( # `  W
) ) -1-1-onto-> W  /\  x  =  (  seq  1 ( 
.+  ,  ( F  o.  f ) ) `
 ( # `  W
) ) ) ) )
3614, 32, 353eqtrd 2320 1  |-  ( ph  ->  ( G  gsumg  F )  =  ( 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:   -. wn 5    -> wi 6    /\ wa 360   E.wex 1529    = wceq 1624    e. wcel 1685    =/= wne 2447   A.wral 2544   E.wrex 2545   {crab 2548   _Vcvv 2789    \ cdif 3150    i^i cin 3152    C_ wss 3153   (/)c0 3456   ifcif 3566   {csn 3641   `'ccnv 4687   ran crn 4689   "cima 4691    o. ccom 4692    Fn wfn 5216   -->wf 5217   -1-1-onto->wf1o 5220   ` cfv 5221  (class class class)co 5819   iotacio 6250   Fincfn 6858   1c1 8733   ZZ>=cuz 10225   ...cfz 10776    seq cseq 11040   #chash 11331   Basecbs 13142   +g cplusg 13202   0gc0g 13394    gsumg cgsu 13395   Mndcmnd 14355  Cntzccntz 14785
This theorem is referenced by:  gsumval3  15185
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-gen 1534  ax-5 1545  ax-17 1604  ax-9 1637  ax-8 1645  ax-13 1687  ax-14 1689  ax-6 1704  ax-7 1709  ax-11 1716  ax-12 1867  ax-ext 2265  ax-sep 4142  ax-nul 4150  ax-pow 4187  ax-pr 4213  ax-un 4511
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3an 938  df-tru 1312  df-ex 1530  df-nf 1533  df-sb 1632  df-eu 2148  df-mo 2149  df-clab 2271  df-cleq 2277  df-clel 2280  df-nfc 2409  df-ne 2449  df-ral 2549  df-rex 2550  df-reu 2551  df-rmo 2552  df-rab 2553  df-v 2791  df-sbc 2993  df-csb 3083  df-dif 3156  df-un 3158  df-in 3160  df-ss 3167  df-nul 3457  df-if 3567  df-pw 3628  df-sn 3647  df-pr 3648  df-op 3650  df-uni 3829  df-br 4025  df-opab 4079  df-mpt 4080  df-id 4308  df-xp 4694  df-rel 4695  df-cnv 4696  df-co 4697  df-dm 4698  df-rn 4699  df-res 4700  df-ima 4701  df-fun 5223  df-fn 5224  df-f 5225  df-f1 5226  df-fo 5227  df-f1o 5228  df-fv 5229  df-ov 5822  df-oprab 5823  df-mpt2 5824  df-iota 6252  df-riota 6299  df-recs 6383  df-rdg 6418  df-seq 11041  df-0g 13398  df-gsum 13399  df-mnd 14361
  Copyright terms: Public domain W3C validator