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

Theorem fseq1p1m1 10050
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 998 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  F : ( 1 ... N ) --> A )
2 nn0p1nn 9174 . . . . . . . . 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 999 . . . . . . . 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 5669 . . . . . . . . 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 3725 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  { B }  C_  A )
108, 9fssd 5360 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  H : { ( N  + 
1 ) } --> A )
11 fzp1disj 10036 . . . . . . 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 5371 . . . . . 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 1232 . . . . 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 9238 . . . . . . . 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 9521 . . . . . . . . . 10  |-  NN0  =  ( ZZ>= `  0 )
18 1m1e0 8947 . . . . . . . . . . 11  |-  ( 1  -  1 )  =  0
1918fveq2i 5499 . . . . . . . . . 10  |-  ( ZZ>= `  ( 1  -  1 ) )  =  (
ZZ>= `  0 )
2017, 19eqtr4i 2194 . . . . . . . . 9  |-  NN0  =  ( ZZ>= `  ( 1  -  1 ) )
2116, 20eleqtrdi 2263 . . . . . . . 8  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )
22 fzsuc2 10035 . . . . . . . 8  |-  ( ( 1  e.  ZZ  /\  N  e.  ( ZZ>= `  ( 1  -  1 ) ) )  -> 
( 1 ... ( N  +  1 ) )  =  ( ( 1 ... N )  u.  { ( N  +  1 ) } ) )
2315, 21, 22sylancr 412 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
1 ... ( N  + 
1 ) )  =  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )
2423eqcomd 2176 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( 1 ... N
)  u.  { ( N  +  1 ) } )  =  ( 1 ... ( N  +  1 ) ) )
2524feq2d 5335 . . . . 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 1000 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  G  =  ( F  u.  H ) )
2827feq1d 5334 . . . 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 4890 . . . . . 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 5347 . . . . . . . . . 10  |-  ( F : ( 1 ... N ) --> A  ->  F  Fn  ( 1 ... N ) )
32 fnresdisj 5308 . . . . . . . . . 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 3280 . . . . . . 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 4905 . . . . . . 7  |-  ( ( F  u.  H )  |`  { ( N  + 
1 ) } )  =  ( ( F  |`  { ( N  + 
1 ) } )  u.  ( H  |`  { ( N  + 
1 ) } ) )
37 uncom 3271 . . . . . . . 8  |-  ( (/)  u.  ( H  |`  { ( N  +  1 ) } ) )  =  ( ( H  |`  { ( N  + 
1 ) } )  u.  (/) )
38 un0 3448 . . . . . . . 8  |-  ( ( H  |`  { ( N  +  1 ) } )  u.  (/) )  =  ( H  |`  { ( N  +  1 ) } )
3937, 38eqtr2i 2192 . . . . . . 7  |-  ( H  |`  { ( N  + 
1 ) } )  =  ( (/)  u.  ( H  |`  { ( N  +  1 ) } ) )
4035, 36, 393eqtr4g 2228 . . . . . 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 5347 . . . . . . 7  |-  ( H : { ( N  +  1 ) } --> A  ->  H  Fn  { ( N  +  1 ) } )
42 fnresdm 5307 . . . . . . 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 2207 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G  |`  { ( N  +  1 ) } )  =  H )
4544fveq1d 5498 . . . 4  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  (
( G  |`  { ( N  +  1 ) } ) `  ( N  +  1 ) )  =  ( H `
 ( N  + 
1 ) ) )
4616nn0zd 9332 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  N  e.  ZZ )
4746peano2zd 9337 . . . . 5  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( N  +  1 )  e.  ZZ )
48 snidg 3612 . . . . 5  |-  ( ( N  +  1 )  e.  ZZ  ->  ( N  +  1 )  e.  { ( N  +  1 ) } )
49 fvres 5520 . . . . 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 5497 . . . . . 6  |-  ( H `
 ( N  + 
1 ) )  =  ( { <. ( N  +  1 ) ,  B >. } `  ( N  +  1
) )
52 fvsng 5692 . . . . . 6  |-  ( ( ( N  +  1 )  e.  NN  /\  B  e.  A )  ->  ( { <. ( N  +  1 ) ,  B >. } `  ( N  +  1
) )  =  B )
5351, 52eqtrid 2215 . . . . 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 2211 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( G `  ( N  +  1 ) )  =  B )
5627reseq1d 4890 . . . 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 3319 . . . . . . . 8  |-  ( { ( N  +  1 ) }  i^i  (
1 ... N ) )  =  ( ( 1 ... N )  i^i 
{ ( N  + 
1 ) } )
5857, 12eqtrid 2215 . . . . . . 7  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  ( { ( N  + 
1 ) }  i^i  ( 1 ... N
) )  =  (/) )
59 ffn 5347 . . . . . . . 8  |-  ( H : { ( N  +  1 ) } --> { B }  ->  H  Fn  { ( N  +  1 ) } )
60 fnresdisj 5308 . . . . . . . 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 3281 . . . . 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 4905 . . . . 5  |-  ( ( F  u.  H )  |`  ( 1 ... N
) )  =  ( ( F  |`  (
1 ... N ) )  u.  ( H  |`  ( 1 ... N
) ) )
65 un0 3448 . . . . . 6  |-  ( ( F  |`  ( 1 ... N ) )  u.  (/) )  =  ( F  |`  ( 1 ... N ) )
6665eqcomi 2174 . . . . 5  |-  ( F  |`  ( 1 ... N
) )  =  ( ( F  |`  (
1 ... N ) )  u.  (/) )
6763, 64, 663eqtr4g 2228 . . . 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 5307 . . . . 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 2208 . . 3  |-  ( ( N  e.  NN0  /\  ( F : ( 1 ... N ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H )
) )  ->  F  =  ( G  |`  ( 1 ... N
) ) )
7129, 55, 703jca 1172 . 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 998 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G : ( 1 ... ( N  +  1 ) ) --> A )
73 fzssp1 10023 . . . . 5  |-  ( 1 ... N )  C_  ( 1 ... ( N  +  1 ) )
74 fssres 5373 . . . . 5  |-  ( ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( 1 ... N )  C_  (
1 ... ( N  + 
1 ) ) )  ->  ( G  |`  ( 1 ... N
) ) : ( 1 ... N ) --> A )
7572, 73, 74sylancl 411 . . . 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 1000 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  F  =  ( G  |`  ( 1 ... N
) ) )
7776feq1d 5334 . . . 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 999 . . . 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 9522 . . . . . . 7  |-  NN  =  ( ZZ>= `  1 )
8280, 81eleqtrdi 2263 . . . . . 6  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( N  +  1 )  e.  ( ZZ>= `  1
) )
83 eluzfz2 9988 . . . . . 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 5632 . . . 4  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  ( G `  ( N  +  1 ) )  e.  A )
8679, 85eqeltrrd 2248 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  B  e.  A )
87 ffn 5347 . . . . . . . . 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 5682 . . . . . . . 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 3766 . . . . . . . . 9  |-  ( ( G `  ( N  +  1 ) )  =  B  ->  <. ( N  +  1 ) ,  ( G `  ( N  +  1
) ) >.  =  <. ( N  +  1 ) ,  B >. )
9291sneqd 3596 . . . . . . . 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 2203 . . . . . 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 2222 . . . . 5  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  H  =  ( G  |`  { ( N  + 
1 ) } ) )
9676, 95uneq12d 3282 . . . 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 2263 . . . . . . 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 412 . . . . . 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 4891 . . . . 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 4904 . . . . 5  |-  ( G  |`  ( ( 1 ... N )  u.  {
( N  +  1 ) } ) )  =  ( ( G  |`  ( 1 ... N
) )  u.  ( G  |`  { ( N  +  1 ) } ) )
102100, 101eqtr2di 2220 . . . 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 5307 . . . . 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 2208 . . 3  |-  ( ( N  e.  NN0  /\  ( G : ( 1 ... ( N  + 
1 ) ) --> A  /\  ( G `  ( N  +  1
) )  =  B  /\  F  =  ( G  |`  ( 1 ... N ) ) ) )  ->  G  =  ( F  u.  H ) )
10678, 86, 1053jca 1172 . 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 591 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 973    = wceq 1348    e. wcel 2141    u. cun 3119    i^i cin 3120    C_ wss 3121   (/)c0 3414   {csn 3583   <.cop 3586    |` cres 4613    Fn wfn 5193   -->wf 5194   ` cfv 5198  (class class class)co 5853   0cc0 7774   1c1 7775    + caddc 7777    - cmin 8090   NNcn 8878   NN0cn0 9135   ZZcz 9212   ZZ>=cuz 9487   ...cfz 9965
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 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-sep 4107  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-addcom 7874  ax-addass 7876  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-0id 7882  ax-rnegex 7883  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-apti 7889  ax-pre-ltadd 7890
This theorem depends on definitions:  df-bi 116  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rab 2457  df-v 2732  df-sbc 2956  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-br 3990  df-opab 4051  df-mpt 4052  df-id 4278  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-inn 8879  df-n0 9136  df-z 9213  df-uz 9488  df-fz 9966
This theorem is referenced by:  fseq1m1p1  10051
  Copyright terms: Public domain W3C validator