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

Theorem gsumccat 14792
Description: Homomorphic property of composites. (Contributed by Stefan O'Rear, 16-Aug-2015.) (Revised by Mario Carneiro, 1-Oct-2015.)
Hypotheses
Ref Expression
gsumwcl.b  |-  B  =  ( Base `  G
)
gsumccat.p  |-  .+  =  ( +g  `  G )
Assertion
Ref Expression
gsumccat  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  ( G  gsumg  ( W concat  X ) )  =  ( ( G  gsumg  W )  .+  ( G  gsumg  X ) ) )

Proof of Theorem gsumccat
Dummy variables  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq1 6091 . . . 4  |-  ( W  =  (/)  ->  ( W concat  X )  =  (
(/) concat  X ) )
21oveq2d 6100 . . 3  |-  ( W  =  (/)  ->  ( G 
gsumg  ( W concat  X ) )  =  ( G  gsumg  ( (/) concat  X ) ) )
3 oveq2 6092 . . . . 5  |-  ( W  =  (/)  ->  ( G 
gsumg  W )  =  ( G  gsumg  (/) ) )
4 eqid 2438 . . . . . 6  |-  ( 0g
`  G )  =  ( 0g `  G
)
54gsum0 14785 . . . . 5  |-  ( G 
gsumg  (/) )  =  ( 0g
`  G )
63, 5syl6eq 2486 . . . 4  |-  ( W  =  (/)  ->  ( G 
gsumg  W )  =  ( 0g `  G ) )
76oveq1d 6099 . . 3  |-  ( W  =  (/)  ->  ( ( G  gsumg  W )  .+  ( G  gsumg  X ) )  =  ( ( 0g `  G )  .+  ( G  gsumg  X ) ) )
82, 7eqeq12d 2452 . 2  |-  ( W  =  (/)  ->  ( ( G  gsumg  ( W concat  X ) )  =  ( ( G  gsumg  W )  .+  ( G  gsumg  X ) )  <->  ( G  gsumg  (
(/) concat  X ) )  =  ( ( 0g `  G )  .+  ( G  gsumg  X ) ) ) )
9 oveq2 6092 . . . . 5  |-  ( X  =  (/)  ->  ( W concat  X )  =  ( W concat  (/) ) )
109oveq2d 6100 . . . 4  |-  ( X  =  (/)  ->  ( G 
gsumg  ( W concat  X ) )  =  ( G  gsumg  ( W concat  (/) ) ) )
11 oveq2 6092 . . . . . 6  |-  ( X  =  (/)  ->  ( G 
gsumg  X )  =  ( G  gsumg  (/) ) )
1211, 5syl6eq 2486 . . . . 5  |-  ( X  =  (/)  ->  ( G 
gsumg  X )  =  ( 0g `  G ) )
1312oveq2d 6100 . . . 4  |-  ( X  =  (/)  ->  ( ( G  gsumg  W )  .+  ( G  gsumg  X ) )  =  ( ( G  gsumg  W ) 
.+  ( 0g `  G ) ) )
1410, 13eqeq12d 2452 . . 3  |-  ( X  =  (/)  ->  ( ( G  gsumg  ( W concat  X ) )  =  ( ( G  gsumg  W )  .+  ( G  gsumg  X ) )  <->  ( G  gsumg  ( W concat  (/) ) )  =  ( ( G  gsumg  W ) 
.+  ( 0g `  G ) ) ) )
15 gsumwcl.b . . . . . 6  |-  B  =  ( Base `  G
)
16 gsumccat.p . . . . . 6  |-  .+  =  ( +g  `  G )
17 simpl1 961 . . . . . 6  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  ->  G  e.  Mnd )
18 lennncl 11741 . . . . . . . . . . 11  |-  ( ( W  e. Word  B  /\  W  =/=  (/) )  ->  ( # `
 W )  e.  NN )
19183ad2antl2 1121 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  -> 
( # `  W )  e.  NN )
2019adantrr 699 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( # `  W )  e.  NN )
21 lennncl 11741 . . . . . . . . . . 11  |-  ( ( X  e. Word  B  /\  X  =/=  (/) )  ->  ( # `
 X )  e.  NN )
22213ad2antl3 1122 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  X  =/=  (/) )  -> 
( # `  X )  e.  NN )
2322adantrl 698 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( # `  X )  e.  NN )
2420, 23nnaddcld 10051 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( # `  W
)  +  ( # `  X ) )  e.  NN )
25 nnm1nn0 10266 . . . . . . . 8  |-  ( ( ( # `  W
)  +  ( # `  X ) )  e.  NN  ->  ( (
( # `  W )  +  ( # `  X
) )  -  1 )  e.  NN0 )
2624, 25syl 16 . . . . . . 7  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  W )  +  (
# `  X )
)  -  1 )  e.  NN0 )
27 nn0uz 10525 . . . . . . 7  |-  NN0  =  ( ZZ>= `  0 )
2826, 27syl6eleq 2528 . . . . . 6  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  W )  +  (
# `  X )
)  -  1 )  e.  ( ZZ>= `  0
) )
29 simpl2 962 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  ->  W  e. Word  B )
30 simpl3 963 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  ->  X  e. Word  B )
31 ccatcl 11748 . . . . . . . . 9  |-  ( ( W  e. Word  B  /\  X  e. Word  B )  ->  ( W concat  X )  e. Word  B )
3229, 30, 31syl2anc 644 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( W concat  X )  e. Word  B )
33 wrdf 11738 . . . . . . . 8  |-  ( ( W concat  X )  e. Word  B  ->  ( W concat  X
) : ( 0..^ ( # `  ( W concat  X ) ) ) --> B )
3432, 33syl 16 . . . . . . 7  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( W concat  X ) : ( 0..^ (
# `  ( W concat  X ) ) ) --> B )
35 ccatlen 11749 . . . . . . . . . . 11  |-  ( ( W  e. Word  B  /\  X  e. Word  B )  ->  ( # `  ( W concat  X ) )  =  ( ( # `  W
)  +  ( # `  X ) ) )
3629, 30, 35syl2anc 644 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( # `  ( W concat  X ) )  =  ( ( # `  W
)  +  ( # `  X ) ) )
3736oveq2d 6100 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( 0..^ ( # `  ( W concat  X ) ) )  =  ( 0..^ ( ( # `  W )  +  (
# `  X )
) ) )
3820nnzd 10379 . . . . . . . . . . 11  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( # `  W )  e.  ZZ )
3923nnzd 10379 . . . . . . . . . . 11  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( # `  X )  e.  ZZ )
4038, 39zaddcld 10384 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( # `  W
)  +  ( # `  X ) )  e.  ZZ )
41 fzoval 11146 . . . . . . . . . 10  |-  ( ( ( # `  W
)  +  ( # `  X ) )  e.  ZZ  ->  ( 0..^ ( ( # `  W
)  +  ( # `  X ) ) )  =  ( 0 ... ( ( ( # `  W )  +  (
# `  X )
)  -  1 ) ) )
4240, 41syl 16 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( 0..^ ( (
# `  W )  +  ( # `  X
) ) )  =  ( 0 ... (
( ( # `  W
)  +  ( # `  X ) )  - 
1 ) ) )
4337, 42eqtrd 2470 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( 0..^ ( # `  ( W concat  X ) ) )  =  ( 0 ... ( ( ( # `  W
)  +  ( # `  X ) )  - 
1 ) ) )
4443feq2d 5584 . . . . . . 7  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( W concat  X
) : ( 0..^ ( # `  ( W concat  X ) ) ) --> B  <->  ( W concat  X
) : ( 0 ... ( ( (
# `  W )  +  ( # `  X
) )  -  1 ) ) --> B ) )
4534, 44mpbid 203 . . . . . 6  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( W concat  X ) : ( 0 ... ( ( ( # `  W )  +  (
# `  X )
)  -  1 ) ) --> B )
4615, 16, 17, 28, 45gsumval2 14788 . . . . 5  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( G  gsumg  ( W concat  X ) )  =  (  seq  0 (  .+  , 
( W concat  X )
) `  ( (
( # `  W )  +  ( # `  X
) )  -  1 ) ) )
47 nnm1nn0 10266 . . . . . . . . . 10  |-  ( (
# `  W )  e.  NN  ->  ( ( # `
 W )  - 
1 )  e.  NN0 )
4820, 47syl 16 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( # `  W
)  -  1 )  e.  NN0 )
4948, 27syl6eleq 2528 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( # `  W
)  -  1 )  e.  ( ZZ>= `  0
) )
50 wrdf 11738 . . . . . . . . . 10  |-  ( W  e. Word  B  ->  W : ( 0..^ (
# `  W )
) --> B )
5129, 50syl 16 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  ->  W : ( 0..^ (
# `  W )
) --> B )
52 fzoval 11146 . . . . . . . . . . 11  |-  ( (
# `  W )  e.  ZZ  ->  ( 0..^ ( # `  W
) )  =  ( 0 ... ( (
# `  W )  -  1 ) ) )
5338, 52syl 16 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( 0..^ ( # `  W ) )  =  ( 0 ... (
( # `  W )  -  1 ) ) )
5453feq2d 5584 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( W : ( 0..^ ( # `  W
) ) --> B  <->  W :
( 0 ... (
( # `  W )  -  1 ) ) --> B ) )
5551, 54mpbid 203 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  ->  W : ( 0 ... ( ( # `  W
)  -  1 ) ) --> B )
5615, 16, 17, 49, 55gsumval2 14788 . . . . . . 7  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( G  gsumg  W )  =  (  seq  0 (  .+  ,  W ) `  (
( # `  W )  -  1 ) ) )
57 nnm1nn0 10266 . . . . . . . . . 10  |-  ( (
# `  X )  e.  NN  ->  ( ( # `
 X )  - 
1 )  e.  NN0 )
5823, 57syl 16 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( # `  X
)  -  1 )  e.  NN0 )
5958, 27syl6eleq 2528 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( # `  X
)  -  1 )  e.  ( ZZ>= `  0
) )
60 wrdf 11738 . . . . . . . . . 10  |-  ( X  e. Word  B  ->  X : ( 0..^ (
# `  X )
) --> B )
6130, 60syl 16 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  ->  X : ( 0..^ (
# `  X )
) --> B )
62 fzoval 11146 . . . . . . . . . . 11  |-  ( (
# `  X )  e.  ZZ  ->  ( 0..^ ( # `  X
) )  =  ( 0 ... ( (
# `  X )  -  1 ) ) )
6339, 62syl 16 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( 0..^ ( # `  X ) )  =  ( 0 ... (
( # `  X )  -  1 ) ) )
6463feq2d 5584 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( X : ( 0..^ ( # `  X
) ) --> B  <->  X :
( 0 ... (
( # `  X )  -  1 ) ) --> B ) )
6561, 64mpbid 203 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  ->  X : ( 0 ... ( ( # `  X
)  -  1 ) ) --> B )
6615, 16, 17, 59, 65gsumval2 14788 . . . . . . 7  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( G  gsumg  X )  =  (  seq  0 (  .+  ,  X ) `  (
( # `  X )  -  1 ) ) )
6756, 66oveq12d 6102 . . . . . 6  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( G  gsumg  W ) 
.+  ( G  gsumg  X ) )  =  ( (  seq  0 (  .+  ,  W ) `  (
( # `  W )  -  1 ) ) 
.+  (  seq  0
(  .+  ,  X
) `  ( ( # `
 X )  - 
1 ) ) ) )
6815, 16mndcl 14700 . . . . . . . . . 10  |-  ( ( G  e.  Mnd  /\  x  e.  B  /\  y  e.  B )  ->  ( x  .+  y
)  e.  B )
69683expb 1155 . . . . . . . . 9  |-  ( ( G  e.  Mnd  /\  ( x  e.  B  /\  y  e.  B
) )  ->  (
x  .+  y )  e.  B )
7017, 69sylan 459 . . . . . . . 8  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  (
x  e.  B  /\  y  e.  B )
)  ->  ( x  .+  y )  e.  B
)
7115, 16mndass 14701 . . . . . . . . 9  |-  ( ( G  e.  Mnd  /\  ( x  e.  B  /\  y  e.  B  /\  z  e.  B
) )  ->  (
( x  .+  y
)  .+  z )  =  ( x  .+  ( y  .+  z
) ) )
7217, 71sylan 459 . . . . . . . 8  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  (
x  e.  B  /\  y  e.  B  /\  z  e.  B )
)  ->  ( (
x  .+  y )  .+  z )  =  ( x  .+  ( y 
.+  z ) ) )
73 uzid 10505 . . . . . . . . . . 11  |-  ( (
# `  W )  e.  ZZ  ->  ( # `  W
)  e.  ( ZZ>= `  ( # `  W ) ) )
7438, 73syl 16 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( # `  W )  e.  ( ZZ>= `  ( # `
 W ) ) )
75 uzaddcl 10538 . . . . . . . . . 10  |-  ( ( ( # `  W
)  e.  ( ZZ>= `  ( # `  W ) )  /\  ( (
# `  X )  -  1 )  e. 
NN0 )  ->  (
( # `  W )  +  ( ( # `  X )  -  1 ) )  e.  (
ZZ>= `  ( # `  W
) ) )
7674, 58, 75syl2anc 644 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( # `  W
)  +  ( (
# `  X )  -  1 ) )  e.  ( ZZ>= `  ( # `
 W ) ) )
7720nncnd 10021 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( # `  W )  e.  CC )
7823nncnd 10021 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( # `  X )  e.  CC )
79 ax-1cn 9053 . . . . . . . . . . 11  |-  1  e.  CC
8079a1i 11 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
1  e.  CC )
8177, 78, 80addsubassd 9436 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  W )  +  (
# `  X )
)  -  1 )  =  ( ( # `  W )  +  ( ( # `  X
)  -  1 ) ) )
82 npcan 9319 . . . . . . . . . . 11  |-  ( ( ( # `  W
)  e.  CC  /\  1  e.  CC )  ->  ( ( ( # `  W )  -  1 )  +  1 )  =  ( # `  W
) )
8377, 79, 82sylancl 645 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  W )  -  1 )  +  1 )  =  ( # `  W
) )
8483fveq2d 5735 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ZZ>= `  ( (
( # `  W )  -  1 )  +  1 ) )  =  ( ZZ>= `  ( # `  W
) ) )
8576, 81, 843eltr4d 2519 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  W )  +  (
# `  X )
)  -  1 )  e.  ( ZZ>= `  (
( ( # `  W
)  -  1 )  +  1 ) ) )
8645ffvelrnda 5873 . . . . . . . 8  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( ( # `  W
)  +  ( # `  X ) )  - 
1 ) ) )  ->  ( ( W concat  X ) `  x
)  e.  B )
8770, 72, 85, 49, 86seqsplit 11361 . . . . . . 7  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
(  seq  0 ( 
.+  ,  ( W concat  X ) ) `  ( ( ( # `  W )  +  (
# `  X )
)  -  1 ) )  =  ( (  seq  0 (  .+  ,  ( W concat  X
) ) `  (
( # `  W )  -  1 ) ) 
.+  (  seq  (
( ( # `  W
)  -  1 )  +  1 ) ( 
.+  ,  ( W concat  X ) ) `  ( ( ( # `  W )  +  (
# `  X )
)  -  1 ) ) ) )
88 simpll2 998 . . . . . . . . . 10  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  W )  -  1 ) ) )  ->  W  e. Word  B )
89 simpll3 999 . . . . . . . . . 10  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  W )  -  1 ) ) )  ->  X  e. Word  B )
9053eleq2d 2505 . . . . . . . . . . 11  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( x  e.  ( 0..^ ( # `  W
) )  <->  x  e.  ( 0 ... (
( # `  W )  -  1 ) ) ) )
9190biimpar 473 . . . . . . . . . 10  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  W )  -  1 ) ) )  ->  x  e.  ( 0..^ ( # `  W
) ) )
92 ccatval1 11750 . . . . . . . . . 10  |-  ( ( W  e. Word  B  /\  X  e. Word  B  /\  x  e.  ( 0..^ ( # `  W ) ) )  ->  ( ( W concat  X ) `  x
)  =  ( W `
 x ) )
9388, 89, 91, 92syl3anc 1185 . . . . . . . . 9  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  W )  -  1 ) ) )  ->  ( ( W concat  X ) `  x
)  =  ( W `
 x ) )
9449, 93seqfveq 11352 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
(  seq  0 ( 
.+  ,  ( W concat  X ) ) `  ( ( # `  W
)  -  1 ) )  =  (  seq  0 (  .+  ,  W ) `  (
( # `  W )  -  1 ) ) )
9577addid2d 9272 . . . . . . . . . . . 12  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( 0  +  (
# `  W )
)  =  ( # `  W ) )
9683, 95eqtr4d 2473 . . . . . . . . . . 11  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  W )  -  1 )  +  1 )  =  ( 0  +  ( # `  W
) ) )
9796seqeq1d 11334 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  ->  seq  ( ( ( # `  W )  -  1 )  +  1 ) (  .+  ,  ( W concat  X ) )  =  seq  ( 0  +  ( # `  W
) ) (  .+  ,  ( W concat  X
) ) )
9877, 78addcomd 9273 . . . . . . . . . . . 12  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( # `  W
)  +  ( # `  X ) )  =  ( ( # `  X
)  +  ( # `  W ) ) )
9998oveq1d 6099 . . . . . . . . . . 11  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  W )  +  (
# `  X )
)  -  1 )  =  ( ( (
# `  X )  +  ( # `  W
) )  -  1 ) )
10078, 77, 80addsubd 9437 . . . . . . . . . . 11  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  X )  +  (
# `  W )
)  -  1 )  =  ( ( (
# `  X )  -  1 )  +  ( # `  W
) ) )
10199, 100eqtrd 2470 . . . . . . . . . 10  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( ( # `  W )  +  (
# `  X )
)  -  1 )  =  ( ( (
# `  X )  -  1 )  +  ( # `  W
) ) )
10297, 101fveq12d 5737 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
(  seq  ( (
( # `  W )  -  1 )  +  1 ) (  .+  ,  ( W concat  X
) ) `  (
( ( # `  W
)  +  ( # `  X ) )  - 
1 ) )  =  (  seq  ( 0  +  ( # `  W
) ) (  .+  ,  ( W concat  X
) ) `  (
( ( # `  X
)  -  1 )  +  ( # `  W
) ) ) )
103 simpll2 998 . . . . . . . . . . . 12  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  X )  -  1 ) ) )  ->  W  e. Word  B )
104 simpll3 999 . . . . . . . . . . . 12  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  X )  -  1 ) ) )  ->  X  e. Word  B )
10563eleq2d 2505 . . . . . . . . . . . . 13  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( x  e.  ( 0..^ ( # `  X
) )  <->  x  e.  ( 0 ... (
( # `  X )  -  1 ) ) ) )
106105biimpar 473 . . . . . . . . . . . 12  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  X )  -  1 ) ) )  ->  x  e.  ( 0..^ ( # `  X
) ) )
107 ccatval3 11752 . . . . . . . . . . . 12  |-  ( ( W  e. Word  B  /\  X  e. Word  B  /\  x  e.  ( 0..^ ( # `  X ) ) )  ->  ( ( W concat  X ) `  (
x  +  ( # `  W ) ) )  =  ( X `  x ) )
108103, 104, 106, 107syl3anc 1185 . . . . . . . . . . 11  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  X )  -  1 ) ) )  ->  ( ( W concat  X ) `  (
x  +  ( # `  W ) ) )  =  ( X `  x ) )
109108eqcomd 2443 . . . . . . . . . 10  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  /\  x  e.  ( 0 ... (
( # `  X )  -  1 ) ) )  ->  ( X `  x )  =  ( ( W concat  X ) `
 ( x  +  ( # `  W ) ) ) )
11059, 38, 109seqshft2 11354 . . . . . . . . 9  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
(  seq  0 ( 
.+  ,  X ) `
 ( ( # `  X )  -  1 ) )  =  (  seq  ( 0  +  ( # `  W
) ) (  .+  ,  ( W concat  X
) ) `  (
( ( # `  X
)  -  1 )  +  ( # `  W
) ) ) )
111102, 110eqtr4d 2473 . . . . . . . 8  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
(  seq  ( (
( # `  W )  -  1 )  +  1 ) (  .+  ,  ( W concat  X
) ) `  (
( ( # `  W
)  +  ( # `  X ) )  - 
1 ) )  =  (  seq  0 ( 
.+  ,  X ) `
 ( ( # `  X )  -  1 ) ) )
11294, 111oveq12d 6102 . . . . . . 7  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( (  seq  0
(  .+  ,  ( W concat  X ) ) `  ( ( # `  W
)  -  1 ) )  .+  (  seq  ( ( ( # `  W )  -  1 )  +  1 ) (  .+  ,  ( W concat  X ) ) `
 ( ( (
# `  W )  +  ( # `  X
) )  -  1 ) ) )  =  ( (  seq  0
(  .+  ,  W
) `  ( ( # `
 W )  - 
1 ) )  .+  (  seq  0 (  .+  ,  X ) `  (
( # `  X )  -  1 ) ) ) )
11387, 112eqtrd 2470 . . . . . 6  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
(  seq  0 ( 
.+  ,  ( W concat  X ) ) `  ( ( ( # `  W )  +  (
# `  X )
)  -  1 ) )  =  ( (  seq  0 (  .+  ,  W ) `  (
( # `  W )  -  1 ) ) 
.+  (  seq  0
(  .+  ,  X
) `  ( ( # `
 X )  - 
1 ) ) ) )
11467, 113eqtr4d 2473 . . . . 5  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( ( G  gsumg  W ) 
.+  ( G  gsumg  X ) )  =  (  seq  0 (  .+  , 
( W concat  X )
) `  ( (
( # `  W )  +  ( # `  X
) )  -  1 ) ) )
11546, 114eqtr4d 2473 . . . 4  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  ( W  =/=  (/)  /\  X  =/=  (/) ) )  -> 
( G  gsumg  ( W concat  X ) )  =  ( ( G  gsumg  W )  .+  ( G  gsumg  X ) ) )
116115anassrs 631 . . 3  |-  ( ( ( ( G  e. 
Mnd  /\  W  e. Word  B  /\  X  e. Word  B
)  /\  W  =/=  (/) )  /\  X  =/=  (/) )  ->  ( G 
gsumg  ( W concat  X ) )  =  ( ( G 
gsumg  W )  .+  ( G  gsumg  X ) ) )
117 simpl2 962 . . . . . 6  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  ->  W  e. Word  B )
118 ccatrid 11754 . . . . . 6  |-  ( W  e. Word  B  ->  ( W concat 
(/) )  =  W )
119117, 118syl 16 . . . . 5  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  -> 
( W concat  (/) )  =  W )
120119oveq2d 6100 . . . 4  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  -> 
( G  gsumg  ( W concat  (/) ) )  =  ( G  gsumg  W ) )
121 simpl1 961 . . . . 5  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  ->  G  e.  Mnd )
12215gsumwcl 14791 . . . . . . 7  |-  ( ( G  e.  Mnd  /\  W  e. Word  B )  ->  ( G  gsumg  W )  e.  B
)
1231223adant3 978 . . . . . 6  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  ( G  gsumg  W )  e.  B
)
124123adantr 453 . . . . 5  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  -> 
( G  gsumg  W )  e.  B
)
12515, 16, 4mndrid 14722 . . . . 5  |-  ( ( G  e.  Mnd  /\  ( G  gsumg  W )  e.  B
)  ->  ( ( G  gsumg  W )  .+  ( 0g `  G ) )  =  ( G  gsumg  W ) )
126121, 124, 125syl2anc 644 . . . 4  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  -> 
( ( G  gsumg  W ) 
.+  ( 0g `  G ) )  =  ( G  gsumg  W ) )
127120, 126eqtr4d 2473 . . 3  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  -> 
( G  gsumg  ( W concat  (/) ) )  =  ( ( G 
gsumg  W )  .+  ( 0g `  G ) ) )
12814, 116, 127pm2.61ne 2681 . 2  |-  ( ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  /\  W  =/=  (/) )  -> 
( G  gsumg  ( W concat  X ) )  =  ( ( G  gsumg  W )  .+  ( G  gsumg  X ) ) )
129 ccatlid 11753 . . . . 5  |-  ( X  e. Word  B  ->  ( (/) concat  X )  =  X )
1301293ad2ant3 981 . . . 4  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  ( (/) concat  X )  =  X )
131130oveq2d 6100 . . 3  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  ( G  gsumg  ( (/) concat  X ) )  =  ( G  gsumg  X ) )
132 simp1 958 . . . 4  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  G  e.  Mnd )
13315gsumwcl 14791 . . . . 5  |-  ( ( G  e.  Mnd  /\  X  e. Word  B )  ->  ( G  gsumg  X )  e.  B
)
1341333adant2 977 . . . 4  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  ( G  gsumg  X )  e.  B
)
13515, 16, 4mndlid 14721 . . . 4  |-  ( ( G  e.  Mnd  /\  ( G  gsumg  X )  e.  B
)  ->  ( ( 0g `  G )  .+  ( G  gsumg  X ) )  =  ( G  gsumg  X ) )
136132, 134, 135syl2anc 644 . . 3  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  (
( 0g `  G
)  .+  ( G  gsumg  X ) )  =  ( G  gsumg  X ) )
137131, 136eqtr4d 2473 . 2  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  ( G  gsumg  ( (/) concat  X ) )  =  ( ( 0g
`  G )  .+  ( G  gsumg  X ) ) )
1388, 128, 137pm2.61ne 2681 1  |-  ( ( G  e.  Mnd  /\  W  e. Word  B  /\  X  e. Word  B )  ->  ( G  gsumg  ( W concat  X ) )  =  ( ( G  gsumg  W )  .+  ( G  gsumg  X ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 360    /\ w3a 937    = wceq 1653    e. wcel 1726    =/= wne 2601   (/)c0 3630   -->wf 5453   ` cfv 5457  (class class class)co 6084   CCcc 8993   0cc0 8995   1c1 8996    + caddc 8998    - cmin 9296   NNcn 10005   NN0cn0 10226   ZZcz 10287   ZZ>=cuz 10493   ...cfz 11048  ..^cfzo 11140    seq cseq 11328   #chash 11623  Word cword 11722   concat cconcat 11723   Basecbs 13474   +g cplusg 13534   0gc0g 13728    gsumg cgsu 13729   Mndcmnd 14689
This theorem is referenced by:  gsumws2  14793  gsumspl  14794  gsumwspan  14796  frmdgsum  14812  frmdup1  14814  gsumwrev  15167  frgpuplem  15409  frgpup1  15412  psgnunilem5  27408  psgnuni  27413  psgnghm  27428
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 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-rep 4323  ax-sep 4333  ax-nul 4341  ax-pow 4380  ax-pr 4406  ax-un 4704  ax-cnex 9051  ax-resscn 9052  ax-1cn 9053  ax-icn 9054  ax-addcl 9055  ax-addrcl 9056  ax-mulcl 9057  ax-mulrcl 9058  ax-mulcom 9059  ax-addass 9060  ax-mulass 9061  ax-distr 9062  ax-i2m1 9063  ax-1ne0 9064  ax-1rid 9065  ax-rnegex 9066  ax-rrecex 9067  ax-cnre 9068  ax-pre-lttri 9069  ax-pre-lttrn 9070  ax-pre-ltadd 9071  ax-pre-mulgt0 9072
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  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-nel 2604  df-ral 2712  df-rex 2713  df-reu 2714  df-rmo 2715  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-pss 3338  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-tp 3824  df-op 3825  df-uni 4018  df-int 4053  df-iun 4097  df-br 4216  df-opab 4270  df-mpt 4271  df-tr 4306  df-eprel 4497  df-id 4501  df-po 4506  df-so 4507  df-fr 4544  df-we 4546  df-ord 4587  df-on 4588  df-lim 4589  df-suc 4590  df-om 4849  df-xp 4887  df-rel 4888  df-cnv 4889  df-co 4890  df-dm 4891  df-rn 4892  df-res 4893  df-ima 4894  df-iota 5421  df-fun 5459  df-fn 5460  df-f 5461  df-f1 5462  df-fo 5463  df-f1o 5464  df-fv 5465  df-ov 6087  df-oprab 6088  df-mpt2 6089  df-1st 6352  df-2nd 6353  df-riota 6552  df-recs 6636  df-rdg 6671  df-1o 6727  df-oadd 6731  df-er 6908  df-en 7113  df-dom 7114  df-sdom 7115  df-fin 7116  df-card 7831  df-pnf 9127  df-mnf 9128  df-xr 9129  df-ltxr 9130  df-le 9131  df-sub 9298  df-neg 9299  df-nn 10006  df-2 10063  df-n0 10227  df-z 10288  df-uz 10494  df-fz 11049  df-fzo 11141  df-seq 11329  df-hash 11624  df-word 11728  df-concat 11729  df-ndx 13477  df-slot 13478  df-base 13479  df-sets 13480  df-ress 13481  df-plusg 13547  df-0g 13732  df-gsum 13733  df-mnd 14695  df-submnd 14744
  Copyright terms: Public domain W3C validator