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

Theorem fseq1m1p1 11533
Description: Add/remove an item to/from the end of a finite sequence. (Contributed by Paul Chapman, 17-Nov-2012.)
Hypothesis
Ref Expression
fseq1m1p1.1  |-  H  =  { <. N ,  B >. }
Assertion
Ref Expression
fseq1m1p1  |-  ( N  e.  NN  ->  (
( F : ( 1 ... ( N  -  1 ) ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H
) )  <->  ( G : ( 1 ... N ) --> A  /\  ( G `  N )  =  B  /\  F  =  ( G  |`  ( 1 ... ( N  -  1 ) ) ) ) ) )

Proof of Theorem fseq1m1p1
StepHypRef Expression
1 nnm1nn0 10619 . . 3  |-  ( N  e.  NN  ->  ( N  -  1 )  e.  NN0 )
2 eqid 2441 . . . 4  |-  { <. ( ( N  -  1 )  +  1 ) ,  B >. }  =  { <. ( ( N  -  1 )  +  1 ) ,  B >. }
32fseq1p1m1 11532 . . 3  |-  ( ( N  -  1 )  e.  NN0  ->  ( ( F : ( 1 ... ( N  - 
1 ) ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  { <. (
( N  -  1 )  +  1 ) ,  B >. } ) )  <->  ( G :
( 1 ... (
( N  -  1 )  +  1 ) ) --> A  /\  ( G `  ( ( N  -  1 )  +  1 ) )  =  B  /\  F  =  ( G  |`  ( 1 ... ( N  -  1 ) ) ) ) ) )
41, 3syl 16 . 2  |-  ( N  e.  NN  ->  (
( F : ( 1 ... ( N  -  1 ) ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  { <. ( ( N  - 
1 )  +  1 ) ,  B >. } ) )  <->  ( G : ( 1 ... ( ( N  - 
1 )  +  1 ) ) --> A  /\  ( G `  ( ( N  -  1 )  +  1 ) )  =  B  /\  F  =  ( G  |`  ( 1 ... ( N  -  1 ) ) ) ) ) )
5 nncn 10328 . . . . . . . . 9  |-  ( N  e.  NN  ->  N  e.  CC )
6 ax-1cn 9338 . . . . . . . . 9  |-  1  e.  CC
7 npcan 9617 . . . . . . . . 9  |-  ( ( N  e.  CC  /\  1  e.  CC )  ->  ( ( N  - 
1 )  +  1 )  =  N )
85, 6, 7sylancl 662 . . . . . . . 8  |-  ( N  e.  NN  ->  (
( N  -  1 )  +  1 )  =  N )
98opeq1d 4063 . . . . . . 7  |-  ( N  e.  NN  ->  <. (
( N  -  1 )  +  1 ) ,  B >.  =  <. N ,  B >. )
109sneqd 3887 . . . . . 6  |-  ( N  e.  NN  ->  { <. ( ( N  -  1 )  +  1 ) ,  B >. }  =  { <. N ,  B >. } )
11 fseq1m1p1.1 . . . . . 6  |-  H  =  { <. N ,  B >. }
1210, 11syl6eqr 2491 . . . . 5  |-  ( N  e.  NN  ->  { <. ( ( N  -  1 )  +  1 ) ,  B >. }  =  H )
1312uneq2d 3508 . . . 4  |-  ( N  e.  NN  ->  ( F  u.  { <. (
( N  -  1 )  +  1 ) ,  B >. } )  =  ( F  u.  H ) )
1413eqeq2d 2452 . . 3  |-  ( N  e.  NN  ->  ( G  =  ( F  u.  { <. ( ( N  -  1 )  +  1 ) ,  B >. } )  <->  G  =  ( F  u.  H
) ) )
15143anbi3d 1295 . 2  |-  ( N  e.  NN  ->  (
( F : ( 1 ... ( N  -  1 ) ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  { <. ( ( N  - 
1 )  +  1 ) ,  B >. } ) )  <->  ( F : ( 1 ... ( N  -  1 ) ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H ) ) ) )
168oveq2d 6105 . . . 4  |-  ( N  e.  NN  ->  (
1 ... ( ( N  -  1 )  +  1 ) )  =  ( 1 ... N
) )
1716feq2d 5545 . . 3  |-  ( N  e.  NN  ->  ( G : ( 1 ... ( ( N  - 
1 )  +  1 ) ) --> A  <->  G :
( 1 ... N
) --> A ) )
188fveq2d 5693 . . . 4  |-  ( N  e.  NN  ->  ( G `  ( ( N  -  1 )  +  1 ) )  =  ( G `  N ) )
1918eqeq1d 2449 . . 3  |-  ( N  e.  NN  ->  (
( G `  (
( N  -  1 )  +  1 ) )  =  B  <->  ( G `  N )  =  B ) )
2017, 193anbi12d 1290 . 2  |-  ( N  e.  NN  ->  (
( G : ( 1 ... ( ( N  -  1 )  +  1 ) ) --> A  /\  ( G `
 ( ( N  -  1 )  +  1 ) )  =  B  /\  F  =  ( G  |`  (
1 ... ( N  - 
1 ) ) ) )  <->  ( G :
( 1 ... N
) --> A  /\  ( G `  N )  =  B  /\  F  =  ( G  |`  (
1 ... ( N  - 
1 ) ) ) ) ) )
214, 15, 203bitr3d 283 1  |-  ( N  e.  NN  ->  (
( F : ( 1 ... ( N  -  1 ) ) --> A  /\  B  e.  A  /\  G  =  ( F  u.  H
) )  <->  ( G : ( 1 ... N ) --> A  /\  ( G `  N )  =  B  /\  F  =  ( G  |`  ( 1 ... ( N  -  1 ) ) ) ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ w3a 965    = wceq 1369    e. wcel 1756    u. cun 3324   {csn 3875   <.cop 3881    |` cres 4840   -->wf 5412   ` cfv 5416  (class class class)co 6089   CCcc 9278   1c1 9281    + caddc 9283    - cmin 9593   NNcn 10320   NN0cn0 10577   ...cfz 11435
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2422  ax-sep 4411  ax-nul 4419  ax-pow 4468  ax-pr 4529  ax-un 6370  ax-cnex 9336  ax-resscn 9337  ax-1cn 9338  ax-icn 9339  ax-addcl 9340  ax-addrcl 9341  ax-mulcl 9342  ax-mulrcl 9343  ax-mulcom 9344  ax-addass 9345  ax-mulass 9346  ax-distr 9347  ax-i2m1 9348  ax-1ne0 9349  ax-1rid 9350  ax-rnegex 9351  ax-rrecex 9352  ax-cnre 9353  ax-pre-lttri 9354  ax-pre-lttrn 9355  ax-pre-ltadd 9356  ax-pre-mulgt0 9357
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2428  df-cleq 2434  df-clel 2437  df-nfc 2566  df-ne 2606  df-nel 2607  df-ral 2718  df-rex 2719  df-reu 2720  df-rab 2722  df-v 2972  df-sbc 3185  df-csb 3287  df-dif 3329  df-un 3331  df-in 3333  df-ss 3340  df-pss 3342  df-nul 3636  df-if 3790  df-pw 3860  df-sn 3876  df-pr 3878  df-tp 3880  df-op 3882  df-uni 4090  df-iun 4171  df-br 4291  df-opab 4349  df-mpt 4350  df-tr 4384  df-eprel 4630  df-id 4634  df-po 4639  df-so 4640  df-fr 4677  df-we 4679  df-ord 4720  df-on 4721  df-lim 4722  df-suc 4723  df-xp 4844  df-rel 4845  df-cnv 4846  df-co 4847  df-dm 4848  df-rn 4849  df-res 4850  df-ima 4851  df-iota 5379  df-fun 5418  df-fn 5419  df-f 5420  df-f1 5421  df-fo 5422  df-f1o 5423  df-fv 5424  df-riota 6050  df-ov 6092  df-oprab 6093  df-mpt2 6094  df-om 6475  df-1st 6575  df-2nd 6576  df-recs 6830  df-rdg 6864  df-er 7099  df-en 7309  df-dom 7310  df-sdom 7311  df-pnf 9418  df-mnf 9419  df-xr 9420  df-ltxr 9421  df-le 9422  df-sub 9595  df-neg 9596  df-nn 10321  df-n0 10578  df-z 10645  df-uz 10860  df-fz 11436
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator