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

Theorem fseq1p1m1 10857
Description: Add/remove an item to/from the end of a finite sequence. (Contributed by Paul Chapman, 17-Nov-2012.) (Revised by Mario Carneiro, 7-Mar-2014.)
Hypothesis
Ref Expression
fseq1p1m1.1  |-  H  =  { <. ( N  + 
1 ) ,  B >. }
Assertion
Ref Expression
fseq1p1m1  |-  ( N  e.  NN0  ->  ( ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
)  <->  ( G :
( 1 ... ( N  +  1 ) ) --> A  /\  ( G `  ( N  +  1 ) )  =  B  /\  F  =  ( G  |`  ( 1 ... N
) ) ) ) )

Proof of Theorem fseq1p1m1
StepHypRef Expression
1 simpr1 961 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  F : ( 1 ... N ) --> A )
2 nn0p1nn 10003 . . . . . . . . 9  |-  ( N  e.  NN0  ->  ( N  +  1 )  e.  NN )
32adantr 451 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( N  +  1 )  e.  NN )
4 simpr2 962 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  B  e.  A )
5 fseq1p1m1.1 . . . . . . . . 9  |-  H  =  { <. ( N  + 
1 ) ,  B >. }
6 fsng 5697 . . . . . . . . 9  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( H : {
( N  +  1 ) } --> { B } 
<->  H  =  { <. ( N  +  1 ) ,  B >. } ) )
75, 6mpbiri 224 . . . . . . . 8  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  H : { ( N  +  1 ) } --> { B }
)
83, 4, 7syl2anc 642 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  H : { ( N  + 
1 ) } --> { B } )
94snssd 3760 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  { B }  C_  A )
10 fss 5397 . . . . . . 7  |-  ( ( H : { ( N  +  1 ) } --> { B }  /\  { B }  C_  A )  ->  H : { ( N  + 
1 ) } --> A )
118, 9, 10syl2anc 642 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  H : { ( N  + 
1 ) } --> A )
12 fzp1disj 10843 . . . . . . 7  |-  ( ( 1 ... N )  i^i  { ( N  +  1 ) } )  =  (/)
1312a1i 10 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( 1 ... N
)  i^i  { ( N  +  1 ) } )  =  (/) )
14 fun2 5406 . . . . . 6  |-  ( ( ( F : ( 1 ... N ) --> A  /\  H : { ( N  + 
1 ) } --> A )  /\  ( ( 1 ... N )  i^i 
{ ( N  + 
1 ) } )  =  (/) )  ->  ( F  u.  H ) : ( ( 1 ... N )  u. 
{ ( N  + 
1 ) } ) --> A )
151, 11, 13, 14syl21anc 1181 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  u.  H ) : ( ( 1 ... N )  u. 
{ ( N  + 
1 ) } ) --> A )
16 1z 10053 . . . . . . . 8  |-  1  e.  ZZ
17 simpl 443 . . . . . . . . 9  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  NN0 )
18 nn0uz 10262 . . . . . . . . . 10  |-  NN0  =  ( ZZ>= `  0 )
19 1m1e0 9814 . . . . . . . . . . 11  |-  ( 1  -  1 )  =  0
2019fveq2i 5528 . . . . . . . . . 10  |-  ( ZZ>= `  ( 1  -  1 ) )  =  (
ZZ>= `  0 )
2118, 20eqtr4i 2306 . . . . . . . . 9  |-  NN0  =  ( ZZ>= `  ( 1  -  1 ) )
2217, 21syl6eleq 2373 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )
23 fzsuc2 10842 . . . . . . . 8  |-  ( ( 1  e.  ZZ  /\  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )  -> 
( 1 ... ( N  +  1 ) )  =  ( ( 1 ... N )  u.  { ( N  +  1 ) } ) )
2416, 22, 23sylancr 644 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
1 ... ( N  + 
1 ) )  =  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )
2524eqcomd 2288 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( 1 ... N
)  u.  { ( N  +  1 ) } )  =  ( 1 ... ( N  +  1 ) ) )
2625feq2d 5380 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( F  u.  H
) : ( ( 1 ... N )  u.  { ( N  +  1 ) } ) --> A  <->  ( F  u.  H ) : ( 1 ... ( N  +  1 ) ) --> A ) )
2715, 26mpbid 201 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  u.  H ) : ( 1 ... ( N  +  1 ) ) --> A )
28 simpr3 963 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  G  =  ( F  u.  H ) )
2928feq1d 5379 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G : ( 1 ... ( N  +  1 ) ) --> A  <->  ( F  u.  H ) : ( 1 ... ( N  +  1 ) ) --> A ) )
3027, 29mpbird 223 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  G : ( 1 ... ( N  +  1 ) ) --> A )
31 ovex 5883 . . . . . 6  |-  ( N  +  1 )  e. 
_V
3231snid 3667 . . . . 5  |-  ( N  +  1 )  e. 
{ ( N  + 
1 ) }
33 fvres 5542 . . . . 5  |-  ( ( N  +  1 )  e.  { ( N  +  1 ) }  ->  ( ( G  |`  { ( N  + 
1 ) } ) `
 ( N  + 
1 ) )  =  ( G `  ( N  +  1 ) ) )
3432, 33ax-mp 8 . . . 4  |-  ( ( G  |`  { ( N  +  1 ) } ) `  ( N  +  1 ) )  =  ( G `
 ( N  + 
1 ) )
3528reseq1d 4954 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G  |`  { ( N  +  1 ) } )  =  ( ( F  u.  H )  |`  { ( N  + 
1 ) } ) )
36 ffn 5389 . . . . . . . . . . 11  |-  ( F : ( 1 ... N ) --> A  ->  F  Fn  ( 1 ... N ) )
37 fnresdisj 5354 . . . . . . . . . . 11  |-  ( F  Fn  ( 1 ... N )  ->  (
( ( 1 ... N )  i^i  {
( N  +  1 ) } )  =  (/) 
<->  ( F  |`  { ( N  +  1 ) } )  =  (/) ) )
381, 36, 373syl 18 . . . . . . . . . 10  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( ( 1 ... N )  i^i  {
( N  +  1 ) } )  =  (/) 
<->  ( F  |`  { ( N  +  1 ) } )  =  (/) ) )
3913, 38mpbid 201 . . . . . . . . 9  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  |`  { ( N  +  1 ) } )  =  (/) )
4039uneq1d 3328 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( F  |`  { ( N  +  1 ) } )  u.  ( H  |`  { ( N  +  1 ) } ) )  =  (
(/)  u.  ( H  |` 
{ ( N  + 
1 ) } ) ) )
41 resundir 4970 . . . . . . . 8  |-  ( ( F  u.  H )  |`  { ( N  + 
1 ) } )  =  ( ( F  |`  { ( N  + 
1 ) } )  u.  ( H  |`  { ( N  + 
1 ) } ) )
42 uncom 3319 . . . . . . . . 9  |-  ( (/)  u.  ( H  |`  { ( N  +  1 ) } ) )  =  ( ( H  |`  { ( N  + 
1 ) } )  u.  (/) )
43 un0 3479 . . . . . . . . 9  |-  ( ( H  |`  { ( N  +  1 ) } )  u.  (/) )  =  ( H  |`  { ( N  +  1 ) } )
4442, 43eqtr2i 2304 . . . . . . . 8  |-  ( H  |`  { ( N  + 
1 ) } )  =  ( (/)  u.  ( H  |`  { ( N  +  1 ) } ) )
4540, 41, 443eqtr4g 2340 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( F  u.  H
)  |`  { ( N  +  1 ) } )  =  ( H  |`  { ( N  + 
1 ) } ) )
46 ffn 5389 . . . . . . . 8  |-  ( H : { ( N  +  1 ) } --> A  ->  H  Fn  { ( N  +  1 ) } )
47 fnresdm 5353 . . . . . . . 8  |-  ( H  Fn  { ( N  +  1 ) }  ->  ( H  |`  { ( N  + 
1 ) } )  =  H )
4811, 46, 473syl 18 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H  |`  { ( N  +  1 ) } )  =  H )
4935, 45, 483eqtrd 2319 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G  |`  { ( N  +  1 ) } )  =  H )
5049fveq1d 5527 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( G  |`  { ( N  +  1 ) } ) `  ( N  +  1 ) )  =  ( H `
 ( N  + 
1 ) ) )
515fveq1i 5526 . . . . . . 7  |-  ( H `
 ( N  + 
1 ) )  =  ( { <. ( N  +  1 ) ,  B >. } `  ( N  +  1
) )
52 fvsng 5714 . . . . . . 7  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( { <. ( N  +  1 ) ,  B >. } `  ( N  +  1
) )  =  B )
5351, 52syl5eq 2327 . . . . . 6  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( H `  ( N  +  1 ) )  =  B )
543, 4, 53syl2anc 642 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H `  ( N  +  1 ) )  =  B )
5550, 54eqtrd 2315 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( G  |`  { ( N  +  1 ) } ) `  ( N  +  1 ) )  =  B )
5634, 55syl5eqr 2329 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G `  ( N  +  1 ) )  =  B )
5728reseq1d 4954 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G  |`  ( 1 ... N ) )  =  ( ( F  u.  H )  |`  (
1 ... N ) ) )
58 incom 3361 . . . . . . . 8  |-  ( { ( N  +  1 ) }  i^i  (
1 ... N ) )  =  ( ( 1 ... N )  i^i 
{ ( N  + 
1 ) } )
5958, 13syl5eq 2327 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( { ( N  + 
1 ) }  i^i  ( 1 ... N
) )  =  (/) )
60 ffn 5389 . . . . . . . 8  |-  ( H : { ( N  +  1 ) } --> { B }  ->  H  Fn  { ( N  +  1 ) } )
61 fnresdisj 5354 . . . . . . . 8  |-  ( H  Fn  { ( N  +  1 ) }  ->  ( ( { ( N  +  1 ) }  i^i  (
1 ... N ) )  =  (/)  <->  ( H  |`  ( 1 ... N
) )  =  (/) ) )
628, 60, 613syl 18 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( { ( N  +  1 ) }  i^i  ( 1 ... N ) )  =  (/) 
<->  ( H  |`  (
1 ... N ) )  =  (/) ) )
6359, 62mpbid 201 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H  |`  ( 1 ... N ) )  =  (/) )
6463uneq2d 3329 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( F  |`  (
1 ... N ) )  u.  ( H  |`  ( 1 ... N
) ) )  =  ( ( F  |`  ( 1 ... N
) )  u.  (/) ) )
65 resundir 4970 . . . . 5  |-  ( ( F  u.  H )  |`  ( 1 ... N
) )  =  ( ( F  |`  (
1 ... N ) )  u.  ( H  |`  ( 1 ... N
) ) )
66 un0 3479 . . . . . 6  |-  ( ( F  |`  ( 1 ... N ) )  u.  (/) )  =  ( F  |`  ( 1 ... N ) )
6766eqcomi 2287 . . . . 5  |-  ( F  |`  ( 1 ... N
) )  =  ( ( F  |`  (
1 ... N ) )  u.  (/) )
6864, 65, 673eqtr4g 2340 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( F  u.  H
)  |`  ( 1 ... N ) )  =  ( F  |`  (
1 ... N ) ) )
69 fnresdm 5353 . . . . 5  |-  ( F  Fn  ( 1 ... N )  ->  ( F  |`  ( 1 ... N ) )  =  F )
701, 36, 693syl 18 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  |`  ( 1 ... N ) )  =  F )
7157, 68, 703eqtrrd 2320 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  F  =  ( G  |`  ( 1 ... N
) ) )
7230, 56, 713jca 1132 . 2  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G : ( 1 ... ( N  +  1 ) ) --> A  /\  ( G `  ( N  +  1 ) )  =  B  /\  F  =  ( G  |`  ( 1 ... N
) ) ) )
73 simpr1 961 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G : ( 1 ... ( N  +  1 ) ) --> A )
74 fzssp1 10834 . . . . 5  |-  ( 1 ... N )  C_  ( 1 ... ( N  +  1 ) )
75 fssres 5408 . . . . 5  |-  ( ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( 1 ... N )  C_  (
1 ... ( N  + 
1 ) ) )  ->  ( G  |`  ( 1 ... N
) ) : ( 1 ... N ) --> A )
7673, 74, 75sylancl 643 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  ( 1 ... N ) ) : ( 1 ... N
) --> A )
77 simpr3 963 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  F  =  ( G  |`  ( 1 ... N
) ) )
7877feq1d 5379 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( F : ( 1 ... N ) --> A  <->  ( G  |`  ( 1 ... N
) ) : ( 1 ... N ) --> A ) )
7976, 78mpbird 223 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  F : ( 1 ... N ) --> A )
80 simpr2 962 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G `  ( N  +  1 ) )  =  B )
812adantr 451 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  NN )
82 nnuz 10263 . . . . . . 7  |-  NN  =  ( ZZ>= `  1 )
8381, 82syl6eleq 2373 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  ( ZZ>= `  1
) )
84 eluzfz2 10804 . . . . . 6  |-  ( ( N  +  1 )  e.  ( ZZ>= `  1
)  ->  ( N  +  1 )  e.  ( 1 ... ( N  +  1 ) ) )
8583, 84syl 15 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  ( 1 ... ( N  +  1 ) ) )
86 ffvelrn 5663 . . . . 5  |-  ( ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( N  + 
1 )  e.  ( 1 ... ( N  +  1 ) ) )  ->  ( G `  ( N  +  1 ) )  e.  A
)
8773, 85, 86syl2anc 642 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G `  ( N  +  1 ) )  e.  A )
8880, 87eqeltrrd 2358 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  B  e.  A )
89 ffn 5389 . . . . . . . . 9  |-  ( G : ( 1 ... ( N  +  1 ) ) --> A  ->  G  Fn  ( 1 ... ( N  + 
1 ) ) )
9073, 89syl 15 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G  Fn  ( 1 ... ( N  +  1 ) ) )
91 fnressn 5705 . . . . . . . 8  |-  ( ( G  Fn  ( 1 ... ( N  + 
1 ) )  /\  ( N  +  1
)  e.  ( 1 ... ( N  + 
1 ) ) )  ->  ( G  |`  { ( N  + 
1 ) } )  =  { <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >. } )
9290, 85, 91syl2anc 642 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  { ( N  +  1 ) } )  =  { <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >. } )
93 opeq2 3797 . . . . . . . . 9  |-  ( ( G `  ( N  +  1 ) )  =  B  ->  <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >.  =  <. ( N  +  1 ) ,  B >. )
9493sneqd 3653 . . . . . . . 8  |-  ( ( G `  ( N  +  1 ) )  =  B  ->  { <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >. }  =  { <. ( N  + 
1 ) ,  B >. } )
9580, 94syl 15 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  { <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >. }  =  { <. ( N  + 
1 ) ,  B >. } )
9692, 95eqtrd 2315 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  { ( N  +  1 ) } )  =  { <. ( N  +  1 ) ,  B >. } )
9796, 5syl6reqr 2334 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  H  =  ( G  |`  { ( N  + 
1 ) } ) )
9877, 97uneq12d 3330 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( F  u.  H )  =  ( ( G  |`  ( 1 ... N
) )  u.  ( G  |`  { ( N  +  1 ) } ) ) )
99 simpl 443 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  N  e.  NN0 )
10099, 21syl6eleq 2373 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )
10116, 100, 23sylancr 644 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  (
1 ... ( N  + 
1 ) )  =  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )
102101reseq2d 4955 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  ( 1 ... ( N  +  1 ) ) )  =  ( G  |`  (
( 1 ... N
)  u.  { ( N  +  1 ) } ) ) )
103 resundi 4969 . . . . 5  |-  ( G  |`  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )  =  ( ( G  |`  ( 1 ... N
) )  u.  ( G  |`  { ( N  +  1 ) } ) )
104102, 103syl6req 2332 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  (
( G  |`  (
1 ... N ) )  u.  ( G  |`  { ( N  + 
1 ) } ) )  =  ( G  |`  ( 1 ... ( N  +  1 ) ) ) )
105 fnresdm 5353 . . . . 5  |-  ( G  Fn  ( 1 ... ( N  +  1 ) )  ->  ( G  |`  ( 1 ... ( N  +  1 ) ) )  =  G )
10673, 89, 1053syl 18 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  ( 1 ... ( N  +  1 ) ) )  =  G )
10798, 104, 1063eqtrrd 2320 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G  =  ( F  u.  H ) )
10879, 88, 1073jca 1132 . 2  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H ) ) )
10972, 108impbida 805 1  |-  ( N  e.  NN0  ->  ( ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
)  <->  ( G :
( 1 ... ( N  +  1 ) ) --> A  /\  ( G `  ( N  +  1 ) )  =  B  /\  F  =  ( G  |`  ( 1 ... N
) ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    /\ w3a 934    = wceq 1623    e. wcel 1684    u. cun 3150    i^i cin 3151    C_ wss 3152   (/)c0 3455   {csn 3640   <.cop 3643    |` cres 4691    Fn wfn 5250   -->wf 5251   ` cfv 5255  (class class class)co 5858   0cc0 8737   1c1 8738    + caddc 8740    - cmin 9037   NNcn 9746   NN0cn0 9965   ZZcz 10024   ZZ>=cuz 10230   ...cfz 10782
This theorem is referenced by:  fseq1m1p1  10858
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  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  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-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  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-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  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-1st 6122  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-nn 9747  df-n0 9966  df-z 10025  df-uz 10231  df-fz 10783
  Copyright terms: Public domain W3C validator