ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fseq1p1m1 Unicode version

Theorem fseq1p1m1 10029
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 993 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  F : ( 1 ... N ) --> A )
2 nn0p1nn 9153 . . . . . . . . 9  |-  ( N  e.  NN0  ->  ( N  +  1 )  e.  NN )
32adantr 274 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( N  +  1 )  e.  NN )
4 simpr2 994 . . . . . . . 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 5658 . . . . . . . . 9  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( H : {
( N  +  1 ) } --> { B } 
<->  H  =  { <. ( N  +  1 ) ,  B >. } ) )
75, 6mpbiri 167 . . . . . . . 8  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  H : { ( N  +  1 ) } --> { B }
)
83, 4, 7syl2anc 409 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  H : { ( N  + 
1 ) } --> { B } )
94snssd 3718 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  { B }  C_  A )
108, 9fssd 5350 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  H : { ( N  + 
1 ) } --> A )
11 fzp1disj 10015 . . . . . . 7  |-  ( ( 1 ... N )  i^i  { ( N  +  1 ) } )  =  (/)
1211a1i 9 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( 1 ... N
)  i^i  { ( N  +  1 ) } )  =  (/) )
13 fun2 5361 . . . . . 6  |-  ( ( ( F : ( 1 ... N ) --> A  /\  H : { ( N  + 
1 ) } --> A )  /\  ( ( 1 ... N )  i^i 
{ ( N  + 
1 ) } )  =  (/) )  ->  ( F  u.  H ) : ( ( 1 ... N )  u. 
{ ( N  + 
1 ) } ) --> A )
141, 10, 12, 13syl21anc 1227 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  u.  H ) : ( ( 1 ... N )  u. 
{ ( N  + 
1 ) } ) --> A )
15 1z 9217 . . . . . . . 8  |-  1  e.  ZZ
16 simpl 108 . . . . . . . . 9  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  NN0 )
17 nn0uz 9500 . . . . . . . . . 10  |-  NN0  =  ( ZZ>= `  0 )
18 1m1e0 8926 . . . . . . . . . . 11  |-  ( 1  -  1 )  =  0
1918fveq2i 5489 . . . . . . . . . 10  |-  ( ZZ>= `  ( 1  -  1 ) )  =  (
ZZ>= `  0 )
2017, 19eqtr4i 2189 . . . . . . . . 9  |-  NN0  =  ( ZZ>= `  ( 1  -  1 ) )
2116, 20eleqtrdi 2259 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )
22 fzsuc2 10014 . . . . . . . 8  |-  ( ( 1  e.  ZZ  /\  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )  -> 
( 1 ... ( N  +  1 ) )  =  ( ( 1 ... N )  u.  { ( N  +  1 ) } ) )
2315, 21, 22sylancr 411 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
1 ... ( N  + 
1 ) )  =  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )
2423eqcomd 2171 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( 1 ... N
)  u.  { ( N  +  1 ) } )  =  ( 1 ... ( N  +  1 ) ) )
2524feq2d 5325 . . . . 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 ) )
2614, 25mpbid 146 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  u.  H ) : ( 1 ... ( N  +  1 ) ) --> A )
27 simpr3 995 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  G  =  ( F  u.  H ) )
2827feq1d 5324 . . . 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 ) )
2926, 28mpbird 166 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  G : ( 1 ... ( N  +  1 ) ) --> A )
3027reseq1d 4883 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G  |`  { ( N  +  1 ) } )  =  ( ( F  u.  H )  |`  { ( N  + 
1 ) } ) )
31 ffn 5337 . . . . . . . . . 10  |-  ( F : ( 1 ... N ) --> A  ->  F  Fn  ( 1 ... N ) )
32 fnresdisj 5298 . . . . . . . . . 10  |-  ( F  Fn  ( 1 ... N )  ->  (
( ( 1 ... N )  i^i  {
( N  +  1 ) } )  =  (/) 
<->  ( F  |`  { ( N  +  1 ) } )  =  (/) ) )
331, 31, 323syl 17 . . . . . . . . 9  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( ( 1 ... N )  i^i  {
( N  +  1 ) } )  =  (/) 
<->  ( F  |`  { ( N  +  1 ) } )  =  (/) ) )
3412, 33mpbid 146 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  |`  { ( N  +  1 ) } )  =  (/) )
3534uneq1d 3275 . . . . . . 7  |-  ( ( 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 ) } ) ) )
36 resundir 4898 . . . . . . 7  |-  ( ( F  u.  H )  |`  { ( N  + 
1 ) } )  =  ( ( F  |`  { ( N  + 
1 ) } )  u.  ( H  |`  { ( N  + 
1 ) } ) )
37 uncom 3266 . . . . . . . 8  |-  ( (/)  u.  ( H  |`  { ( N  +  1 ) } ) )  =  ( ( H  |`  { ( N  + 
1 ) } )  u.  (/) )
38 un0 3442 . . . . . . . 8  |-  ( ( H  |`  { ( N  +  1 ) } )  u.  (/) )  =  ( H  |`  { ( N  +  1 ) } )
3937, 38eqtr2i 2187 . . . . . . 7  |-  ( H  |`  { ( N  + 
1 ) } )  =  ( (/)  u.  ( H  |`  { ( N  +  1 ) } ) )
4035, 36, 393eqtr4g 2224 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( F  u.  H
)  |`  { ( N  +  1 ) } )  =  ( H  |`  { ( N  + 
1 ) } ) )
41 ffn 5337 . . . . . . 7  |-  ( H : { ( N  +  1 ) } --> A  ->  H  Fn  { ( N  +  1 ) } )
42 fnresdm 5297 . . . . . . 7  |-  ( H  Fn  { ( N  +  1 ) }  ->  ( H  |`  { ( N  + 
1 ) } )  =  H )
4310, 41, 423syl 17 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H  |`  { ( N  +  1 ) } )  =  H )
4430, 40, 433eqtrd 2202 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G  |`  { ( N  +  1 ) } )  =  H )
4544fveq1d 5488 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( G  |`  { ( N  +  1 ) } ) `  ( N  +  1 ) )  =  ( H `
 ( N  + 
1 ) ) )
4616nn0zd 9311 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  ZZ )
4746peano2zd 9316 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( N  +  1 )  e.  ZZ )
48 snidg 3605 . . . . 5  |-  ( ( N  +  1 )  e.  ZZ  ->  ( N  +  1 )  e.  { ( N  +  1 ) } )
49 fvres 5510 . . . . 5  |-  ( ( N  +  1 )  e.  { ( N  +  1 ) }  ->  ( ( G  |`  { ( N  + 
1 ) } ) `
 ( N  + 
1 ) )  =  ( G `  ( N  +  1 ) ) )
5047, 48, 493syl 17 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( G  |`  { ( N  +  1 ) } ) `  ( N  +  1 ) )  =  ( G `
 ( N  + 
1 ) ) )
515fveq1i 5487 . . . . . 6  |-  ( H `
 ( N  + 
1 ) )  =  ( { <. ( N  +  1 ) ,  B >. } `  ( N  +  1
) )
52 fvsng 5681 . . . . . 6  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( { <. ( N  +  1 ) ,  B >. } `  ( N  +  1
) )  =  B )
5351, 52syl5eq 2211 . . . . 5  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( H `  ( N  +  1 ) )  =  B )
543, 4, 53syl2anc 409 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H `  ( N  +  1 ) )  =  B )
5545, 50, 543eqtr3d 2206 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G `  ( N  +  1 ) )  =  B )
5627reseq1d 4883 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G  |`  ( 1 ... N ) )  =  ( ( F  u.  H )  |`  (
1 ... N ) ) )
57 incom 3314 . . . . . . . 8  |-  ( { ( N  +  1 ) }  i^i  (
1 ... N ) )  =  ( ( 1 ... N )  i^i 
{ ( N  + 
1 ) } )
5857, 12syl5eq 2211 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( { ( N  + 
1 ) }  i^i  ( 1 ... N
) )  =  (/) )
59 ffn 5337 . . . . . . . 8  |-  ( H : { ( N  +  1 ) } --> { B }  ->  H  Fn  { ( N  +  1 ) } )
60 fnresdisj 5298 . . . . . . . 8  |-  ( H  Fn  { ( N  +  1 ) }  ->  ( ( { ( N  +  1 ) }  i^i  (
1 ... N ) )  =  (/)  <->  ( H  |`  ( 1 ... N
) )  =  (/) ) )
618, 59, 603syl 17 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( { ( N  +  1 ) }  i^i  ( 1 ... N ) )  =  (/) 
<->  ( H  |`  (
1 ... N ) )  =  (/) ) )
6258, 61mpbid 146 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( H  |`  ( 1 ... N ) )  =  (/) )
6362uneq2d 3276 . . . . 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.  (/) ) )
64 resundir 4898 . . . . 5  |-  ( ( F  u.  H )  |`  ( 1 ... N
) )  =  ( ( F  |`  (
1 ... N ) )  u.  ( H  |`  ( 1 ... N
) ) )
65 un0 3442 . . . . . 6  |-  ( ( F  |`  ( 1 ... N ) )  u.  (/) )  =  ( F  |`  ( 1 ... N ) )
6665eqcomi 2169 . . . . 5  |-  ( F  |`  ( 1 ... N
) )  =  ( ( F  |`  (
1 ... N ) )  u.  (/) )
6763, 64, 663eqtr4g 2224 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( F  u.  H
)  |`  ( 1 ... N ) )  =  ( F  |`  (
1 ... N ) ) )
68 fnresdm 5297 . . . . 5  |-  ( F  Fn  ( 1 ... N )  ->  ( F  |`  ( 1 ... N ) )  =  F )
691, 31, 683syl 17 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( F  |`  ( 1 ... N ) )  =  F )
7056, 67, 693eqtrrd 2203 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  F  =  ( G  |`  ( 1 ... N
) ) )
7129, 55, 703jca 1167 . 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
) ) ) )
72 simpr1 993 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G : ( 1 ... ( N  +  1 ) ) --> A )
73 fzssp1 10002 . . . . 5  |-  ( 1 ... N )  C_  ( 1 ... ( N  +  1 ) )
74 fssres 5363 . . . . 5  |-  ( ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( 1 ... N )  C_  (
1 ... ( N  + 
1 ) ) )  ->  ( G  |`  ( 1 ... N
) ) : ( 1 ... N ) --> A )
7572, 73, 74sylancl 410 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  ( 1 ... N ) ) : ( 1 ... N
) --> A )
76 simpr3 995 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  F  =  ( G  |`  ( 1 ... N
) ) )
7776feq1d 5324 . . . 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 ) )
7875, 77mpbird 166 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  F : ( 1 ... N ) --> A )
79 simpr2 994 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G `  ( N  +  1 ) )  =  B )
802adantr 274 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  NN )
81 nnuz 9501 . . . . . . 7  |-  NN  =  ( ZZ>= `  1 )
8280, 81eleqtrdi 2259 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  ( ZZ>= `  1
) )
83 eluzfz2 9967 . . . . . 6  |-  ( ( N  +  1 )  e.  ( ZZ>= `  1
)  ->  ( N  +  1 )  e.  ( 1 ... ( N  +  1 ) ) )
8482, 83syl 14 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  ( 1 ... ( N  +  1 ) ) )
8572, 84ffvelrnd 5621 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G `  ( N  +  1 ) )  e.  A )
8679, 85eqeltrrd 2244 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  B  e.  A )
87 ffn 5337 . . . . . . . . 9  |-  ( G : ( 1 ... ( N  +  1 ) ) --> A  ->  G  Fn  ( 1 ... ( N  + 
1 ) ) )
8872, 87syl 14 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G  Fn  ( 1 ... ( N  +  1 ) ) )
89 fnressn 5671 . . . . . . . 8  |-  ( ( G  Fn  ( 1 ... ( N  + 
1 ) )  /\  ( N  +  1
)  e.  ( 1 ... ( N  + 
1 ) ) )  ->  ( G  |`  { ( N  + 
1 ) } )  =  { <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >. } )
9088, 84, 89syl2anc 409 . . . . . . 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
) ) >. } )
91 opeq2 3759 . . . . . . . . 9  |-  ( ( G `  ( N  +  1 ) )  =  B  ->  <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >.  =  <. ( N  +  1 ) ,  B >. )
9291sneqd 3589 . . . . . . . 8  |-  ( ( G `  ( N  +  1 ) )  =  B  ->  { <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >. }  =  { <. ( N  + 
1 ) ,  B >. } )
9379, 92syl 14 . . . . . . 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 >. } )
9490, 93eqtrd 2198 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  { ( N  +  1 ) } )  =  { <. ( N  +  1 ) ,  B >. } )
955, 94eqtr4id 2218 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  H  =  ( G  |`  { ( N  + 
1 ) } ) )
9676, 95uneq12d 3277 . . . 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 ) } ) ) )
97 simpl 108 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  N  e.  NN0 )
9897, 20eleqtrdi 2259 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )
9915, 98, 22sylancr 411 . . . . . 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 ) } ) )
10099reseq2d 4884 . . . . 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 ) } ) ) )
101 resundi 4897 . . . . 5  |-  ( G  |`  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )  =  ( ( G  |`  ( 1 ... N
) )  u.  ( G  |`  { ( N  +  1 ) } ) )
102100, 101eqtr2di 2216 . . . 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 ) ) ) )
103 fnresdm 5297 . . . . 5  |-  ( G  Fn  ( 1 ... ( N  +  1 ) )  ->  ( G  |`  ( 1 ... ( N  +  1 ) ) )  =  G )
10472, 87, 1033syl 17 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G  |`  ( 1 ... ( N  +  1 ) ) )  =  G )
10596, 102, 1043eqtrrd 2203 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G  =  ( F  u.  H ) )
10678, 86, 1053jca 1167 . 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 ) ) )
10771, 106impbida 586 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    /\ wa 103    <-> wb 104    /\ w3a 968    = wceq 1343    e. wcel 2136    u. cun 3114    i^i cin 3115    C_ wss 3116   (/)c0 3409   {csn 3576   <.cop 3579    |` cres 4606    Fn wfn 5183   -->wf 5184   ` cfv 5188  (class class class)co 5842   0cc0 7753   1c1 7754    + caddc 7756    - cmin 8069   NNcn 8857   NN0cn0 9114   ZZcz 9191   ZZ>=cuz 9466   ...cfz 9944
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-cnex 7844  ax-resscn 7845  ax-1cn 7846  ax-1re 7847  ax-icn 7848  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-addcom 7853  ax-addass 7855  ax-distr 7857  ax-i2m1 7858  ax-0lt1 7859  ax-0id 7861  ax-rnegex 7862  ax-cnre 7864  ax-pre-ltirr 7865  ax-pre-ltwlin 7866  ax-pre-lttrn 7867  ax-pre-apti 7868  ax-pre-ltadd 7869
This theorem depends on definitions:  df-bi 116  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-nel 2432  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-br 3983  df-opab 4044  df-mpt 4045  df-id 4271  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-pnf 7935  df-mnf 7936  df-xr 7937  df-ltxr 7938  df-le 7939  df-sub 8071  df-neg 8072  df-inn 8858  df-n0 9115  df-z 9192  df-uz 9467  df-fz 9945
This theorem is referenced by:  fseq1m1p1  10030
  Copyright terms: Public domain W3C validator