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

Theorem fseq1p1m1 11045
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 963 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  F : ( 1 ... N ) --> A )
2 nn0p1nn 10184 . . . . . . . . 9  |-  ( N  e.  NN0  ->  ( N  +  1 )  e.  NN )
32adantr 452 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( N  +  1 )  e.  NN )
4 simpr2 964 . . . . . . . 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 5839 . . . . . . . . 9  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( H : {
( N  +  1 ) } --> { B } 
<->  H  =  { <. ( N  +  1 ) ,  B >. } ) )
75, 6mpbiri 225 . . . . . . . 8  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  H : { ( N  +  1 ) } --> { B }
)
83, 4, 7syl2anc 643 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  H : { ( N  + 
1 ) } --> { B } )
94snssd 3879 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  { B }  C_  A )
10 fss 5532 . . . . . . 7  |-  ( ( H : { ( N  +  1 ) } --> { B }  /\  { B }  C_  A )  ->  H : { ( N  + 
1 ) } --> A )
118, 9, 10syl2anc 643 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  H : { ( N  + 
1 ) } --> A )
12 fzp1disj 11029 . . . . . . 7  |-  ( ( 1 ... N )  i^i  { ( N  +  1 ) } )  =  (/)
1312a1i 11 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( 1 ... N
)  i^i  { ( N  +  1 ) } )  =  (/) )
14 fun2 5541 . . . . . 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 1183 . . . . 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 10236 . . . . . . . 8  |-  1  e.  ZZ
17 simpl 444 . . . . . . . . 9  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  NN0 )
18 nn0uz 10445 . . . . . . . . . 10  |-  NN0  =  ( ZZ>= `  0 )
19 1m1e0 9993 . . . . . . . . . . 11  |-  ( 1  -  1 )  =  0
2019fveq2i 5664 . . . . . . . . . 10  |-  ( ZZ>= `  ( 1  -  1 ) )  =  (
ZZ>= `  0 )
2118, 20eqtr4i 2403 . . . . . . . . 9  |-  NN0  =  ( ZZ>= `  ( 1  -  1 ) )
2217, 21syl6eleq 2470 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )
23 fzsuc2 11028 . . . . . . . 8  |-  ( ( 1  e.  ZZ  /\  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )  -> 
( 1 ... ( N  +  1 ) )  =  ( ( 1 ... N )  u.  { ( N  +  1 ) } ) )
2416, 22, 23sylancr 645 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
1 ... ( N  + 
1 ) )  =  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )
2524eqcomd 2385 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( 1 ... N
)  u.  { ( N  +  1 ) } )  =  ( 1 ... ( N  +  1 ) ) )
2625feq2d 5514 . . . . 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 202 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  u.  H ) : ( 1 ... ( N  +  1 ) ) --> A )
28 simpr3 965 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  G  =  ( F  u.  H ) )
2928feq1d 5513 . . . 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 224 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  G : ( 1 ... ( N  +  1 ) ) --> A )
31 ovex 6038 . . . . . 6  |-  ( N  +  1 )  e. 
_V
3231snid 3777 . . . . 5  |-  ( N  +  1 )  e. 
{ ( N  + 
1 ) }
33 fvres 5678 . . . . 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 5078 . . . . . . 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 5524 . . . . . . . . . . 11  |-  ( F : ( 1 ... N ) --> A  ->  F  Fn  ( 1 ... N ) )
37 fnresdisj 5488 . . . . . . . . . . 11  |-  ( F  Fn  ( 1 ... N )  ->  (
( ( 1 ... N )  i^i  {
( N  +  1 ) } )  =  (/) 
<->  ( F  |`  { ( N  +  1 ) } )  =  (/) ) )
381, 36, 373syl 19 . . . . . . . . . 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 202 . . . . . . . . 9  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  |`  { ( N  +  1 ) } )  =  (/) )
4039uneq1d 3436 . . . . . . . 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 5094 . . . . . . . 8  |-  ( ( F  u.  H )  |`  { ( N  + 
1 ) } )  =  ( ( F  |`  { ( N  + 
1 ) } )  u.  ( H  |`  { ( N  + 
1 ) } ) )
42 uncom 3427 . . . . . . . . 9  |-  ( (/)  u.  ( H  |`  { ( N  +  1 ) } ) )  =  ( ( H  |`  { ( N  + 
1 ) } )  u.  (/) )
43 un0 3588 . . . . . . . . 9  |-  ( ( H  |`  { ( N  +  1 ) } )  u.  (/) )  =  ( H  |`  { ( N  +  1 ) } )
4442, 43eqtr2i 2401 . . . . . . . 8  |-  ( H  |`  { ( N  + 
1 ) } )  =  ( (/)  u.  ( H  |`  { ( N  +  1 ) } ) )
4540, 41, 443eqtr4g 2437 . . . . . . 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 5524 . . . . . . . 8  |-  ( H : { ( N  +  1 ) } --> A  ->  H  Fn  { ( N  +  1 ) } )
47 fnresdm 5487 . . . . . . . 8  |-  ( H  Fn  { ( N  +  1 ) }  ->  ( H  |`  { ( N  + 
1 ) } )  =  H )
4811, 46, 473syl 19 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H  |`  { ( N  +  1 ) } )  =  H )
4935, 45, 483eqtrd 2416 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G  |`  { ( N  +  1 ) } )  =  H )
5049fveq1d 5663 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( G  |`  { ( N  +  1 ) } ) `  ( N  +  1 ) )  =  ( H `
 ( N  + 
1 ) ) )
515fveq1i 5662 . . . . . . 7  |-  ( H `
 ( N  + 
1 ) )  =  ( { <. ( N  +  1 ) ,  B >. } `  ( N  +  1
) )
52 fvsng 5859 . . . . . . 7  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( { <. ( N  +  1 ) ,  B >. } `  ( N  +  1
) )  =  B )
5351, 52syl5eq 2424 . . . . . 6  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( H `  ( N  +  1 ) )  =  B )
543, 4, 53syl2anc 643 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H `  ( N  +  1 ) )  =  B )
5550, 54eqtrd 2412 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( G  |`  { ( N  +  1 ) } ) `  ( N  +  1 ) )  =  B )
5634, 55syl5eqr 2426 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G `  ( N  +  1 ) )  =  B )
5728reseq1d 5078 . . . 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 3469 . . . . . . . 8  |-  ( { ( N  +  1 ) }  i^i  (
1 ... N ) )  =  ( ( 1 ... N )  i^i 
{ ( N  + 
1 ) } )
5958, 13syl5eq 2424 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( { ( N  + 
1 ) }  i^i  ( 1 ... N
) )  =  (/) )
60 ffn 5524 . . . . . . . 8  |-  ( H : { ( N  +  1 ) } --> { B }  ->  H  Fn  { ( N  +  1 ) } )
61 fnresdisj 5488 . . . . . . . 8  |-  ( H  Fn  { ( N  +  1 ) }  ->  ( ( { ( N  +  1 ) }  i^i  (
1 ... N ) )  =  (/)  <->  ( H  |`  ( 1 ... N
) )  =  (/) ) )
628, 60, 613syl 19 . . . . . . 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 202 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H  |`  ( 1 ... N ) )  =  (/) )
6463uneq2d 3437 . . . . 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 5094 . . . . 5  |-  ( ( F  u.  H )  |`  ( 1 ... N
) )  =  ( ( F  |`  (
1 ... N ) )  u.  ( H  |`  ( 1 ... N
) ) )
66 un0 3588 . . . . . 6  |-  ( ( F  |`  ( 1 ... N ) )  u.  (/) )  =  ( F  |`  ( 1 ... N ) )
6766eqcomi 2384 . . . . 5  |-  ( F  |`  ( 1 ... N
) )  =  ( ( F  |`  (
1 ... N ) )  u.  (/) )
6864, 65, 673eqtr4g 2437 . . . 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 5487 . . . . 5  |-  ( F  Fn  ( 1 ... N )  ->  ( F  |`  ( 1 ... N ) )  =  F )
701, 36, 693syl 19 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  |`  ( 1 ... N ) )  =  F )
7157, 68, 703eqtrrd 2417 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  F  =  ( G  |`  ( 1 ... N
) ) )
7230, 56, 713jca 1134 . 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 963 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G : ( 1 ... ( N  +  1 ) ) --> A )
74 fzssp1 11020 . . . . 5  |-  ( 1 ... N )  C_  ( 1 ... ( N  +  1 ) )
75 fssres 5543 . . . . 5  |-  ( ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( 1 ... N )  C_  (
1 ... ( N  + 
1 ) ) )  ->  ( G  |`  ( 1 ... N
) ) : ( 1 ... N ) --> A )
7673, 74, 75sylancl 644 . . . 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 965 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  F  =  ( G  |`  ( 1 ... N
) ) )
7877feq1d 5513 . . . 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 224 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  F : ( 1 ... N ) --> A )
80 simpr2 964 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G `  ( N  +  1 ) )  =  B )
812adantr 452 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  NN )
82 nnuz 10446 . . . . . . 7  |-  NN  =  ( ZZ>= `  1 )
8381, 82syl6eleq 2470 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  ( ZZ>= `  1
) )
84 eluzfz2 10990 . . . . . 6  |-  ( ( N  +  1 )  e.  ( ZZ>= `  1
)  ->  ( N  +  1 )  e.  ( 1 ... ( N  +  1 ) ) )
8583, 84syl 16 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  ( 1 ... ( N  +  1 ) ) )
8673, 85ffvelrnd 5803 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G `  ( N  +  1 ) )  e.  A )
8780, 86eqeltrrd 2455 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  B  e.  A )
88 ffn 5524 . . . . . . . . 9  |-  ( G : ( 1 ... ( N  +  1 ) ) --> A  ->  G  Fn  ( 1 ... ( N  + 
1 ) ) )
8973, 88syl 16 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G  Fn  ( 1 ... ( N  +  1 ) ) )
90 fnressn 5850 . . . . . . . 8  |-  ( ( G  Fn  ( 1 ... ( N  + 
1 ) )  /\  ( N  +  1
)  e.  ( 1 ... ( N  + 
1 ) ) )  ->  ( G  |`  { ( N  + 
1 ) } )  =  { <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >. } )
9189, 85, 90syl2anc 643 . . . . . . 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
) ) >. } )
92 opeq2 3920 . . . . . . . . 9  |-  ( ( G `  ( N  +  1 ) )  =  B  ->  <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >.  =  <. ( N  +  1 ) ,  B >. )
9392sneqd 3763 . . . . . . . 8  |-  ( ( G `  ( N  +  1 ) )  =  B  ->  { <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >. }  =  { <. ( N  + 
1 ) ,  B >. } )
9480, 93syl 16 . . . . . . 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 >. } )
9591, 94eqtrd 2412 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  { ( N  +  1 ) } )  =  { <. ( N  +  1 ) ,  B >. } )
9695, 5syl6reqr 2431 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  H  =  ( G  |`  { ( N  + 
1 ) } ) )
9777, 96uneq12d 3438 . . . 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 ) } ) ) )
98 simpl 444 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  N  e.  NN0 )
9998, 21syl6eleq 2470 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )
10016, 99, 23sylancr 645 . . . . . 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 ) } ) )
101100reseq2d 5079 . . . . 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 ) } ) ) )
102 resundi 5093 . . . . 5  |-  ( G  |`  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )  =  ( ( G  |`  ( 1 ... N
) )  u.  ( G  |`  { ( N  +  1 ) } ) )
103101, 102syl6req 2429 . . . 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 ) ) ) )
104 fnresdm 5487 . . . . 5  |-  ( G  Fn  ( 1 ... ( N  +  1 ) )  ->  ( G  |`  ( 1 ... ( N  +  1 ) ) )  =  G )
10573, 88, 1043syl 19 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  ( 1 ... ( N  +  1 ) ) )  =  G )
10697, 103, 1053eqtrrd 2417 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G  =  ( F  u.  H ) )
10779, 87, 1063jca 1134 . 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 ) ) )
10872, 107impbida 806 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 177    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717    u. cun 3254    i^i cin 3255    C_ wss 3256   (/)c0 3564   {csn 3750   <.cop 3753    |` cres 4813    Fn wfn 5382   -->wf 5383   ` cfv 5387  (class class class)co 6013   0cc0 8916   1c1 8917    + caddc 8919    - cmin 9216   NNcn 9925   NN0cn0 10146   ZZcz 10207   ZZ>=cuz 10413   ...cfz 10968
This theorem is referenced by:  fseq1m1p1  11046
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2361  ax-sep 4264  ax-nul 4272  ax-pow 4311  ax-pr 4337  ax-un 4634  ax-cnex 8972  ax-resscn 8973  ax-1cn 8974  ax-icn 8975  ax-addcl 8976  ax-addrcl 8977  ax-mulcl 8978  ax-mulrcl 8979  ax-mulcom 8980  ax-addass 8981  ax-mulass 8982  ax-distr 8983  ax-i2m1 8984  ax-1ne0 8985  ax-1rid 8986  ax-rnegex 8987  ax-rrecex 8988  ax-cnre 8989  ax-pre-lttri 8990  ax-pre-lttrn 8991  ax-pre-ltadd 8992  ax-pre-mulgt0 8993
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2235  df-mo 2236  df-clab 2367  df-cleq 2373  df-clel 2376  df-nfc 2505  df-ne 2545  df-nel 2546  df-ral 2647  df-rex 2648  df-reu 2649  df-rab 2651  df-v 2894  df-sbc 3098  df-csb 3188  df-dif 3259  df-un 3261  df-in 3263  df-ss 3270  df-pss 3272  df-nul 3565  df-if 3676  df-pw 3737  df-sn 3756  df-pr 3757  df-tp 3758  df-op 3759  df-uni 3951  df-iun 4030  df-br 4147  df-opab 4201  df-mpt 4202  df-tr 4237  df-eprel 4428  df-id 4432  df-po 4437  df-so 4438  df-fr 4475  df-we 4477  df-ord 4518  df-on 4519  df-lim 4520  df-suc 4521  df-om 4779  df-xp 4817  df-rel 4818  df-cnv 4819  df-co 4820  df-dm 4821  df-rn 4822  df-res 4823  df-ima 4824  df-iota 5351  df-fun 5389  df-fn 5390  df-f 5391  df-f1 5392  df-fo 5393  df-f1o 5394  df-fv 5395  df-ov 6016  df-oprab 6017  df-mpt2 6018  df-1st 6281  df-2nd 6282  df-riota 6478  df-recs 6562  df-rdg 6597  df-er 6834  df-en 7039  df-dom 7040  df-sdom 7041  df-pnf 9048  df-mnf 9049  df-xr 9050  df-ltxr 9051  df-le 9052  df-sub 9218  df-neg 9219  df-nn 9926  df-n0 10147  df-z 10208  df-uz 10414  df-fz 10969
  Copyright terms: Public domain W3C validator