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

Theorem fztpval 11885
Description: Two ways of defining the first three values of a sequence on 
NN. (Contributed by NM, 13-Sep-2011.)
Assertion
Ref Expression
fztpval  |-  ( A. x  e.  ( 1 ... 3 ) ( F `  x )  =  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  <->  ( ( F `  1 )  =  A  /\  ( F `  2 )  =  B  /\  ( F `  3 )  =  C ) )
Distinct variable groups:    x, A    x, B    x, C    x, F

Proof of Theorem fztpval
StepHypRef Expression
1 1z 10995 . . . . 5  |-  1  e.  ZZ
2 fztp 11880 . . . . 5  |-  ( 1  e.  ZZ  ->  (
1 ... ( 1  +  2 ) )  =  { 1 ,  ( 1  +  1 ) ,  ( 1  +  2 ) } )
31, 2ax-mp 5 . . . 4  |-  ( 1 ... ( 1  +  2 ) )  =  { 1 ,  ( 1  +  1 ) ,  ( 1  +  2 ) }
4 df-3 10696 . . . . . 6  |-  3  =  ( 2  +  1 )
5 2cn 10707 . . . . . . 7  |-  2  e.  CC
6 ax-1cn 9622 . . . . . . 7  |-  1  e.  CC
75, 6addcomi 9849 . . . . . 6  |-  ( 2  +  1 )  =  ( 1  +  2 )
84, 7eqtri 2483 . . . . 5  |-  3  =  ( 1  +  2 )
98oveq2i 6325 . . . 4  |-  ( 1 ... 3 )  =  ( 1 ... (
1  +  2 ) )
10 tpeq3 4074 . . . . . 6  |-  ( 3  =  ( 1  +  2 )  ->  { 1 ,  2 ,  3 }  =  { 1 ,  2 ,  ( 1  +  2 ) } )
118, 10ax-mp 5 . . . . 5  |-  { 1 ,  2 ,  3 }  =  { 1 ,  2 ,  ( 1  +  2 ) }
12 df-2 10695 . . . . . 6  |-  2  =  ( 1  +  1 )
13 tpeq2 4073 . . . . . 6  |-  ( 2  =  ( 1  +  1 )  ->  { 1 ,  2 ,  ( 1  +  2 ) }  =  { 1 ,  ( 1  +  1 ) ,  ( 1  +  2 ) } )
1412, 13ax-mp 5 . . . . 5  |-  { 1 ,  2 ,  ( 1  +  2 ) }  =  { 1 ,  ( 1  +  1 ) ,  ( 1  +  2 ) }
1511, 14eqtri 2483 . . . 4  |-  { 1 ,  2 ,  3 }  =  { 1 ,  ( 1  +  1 ) ,  ( 1  +  2 ) }
163, 9, 153eqtr4i 2493 . . 3  |-  ( 1 ... 3 )  =  { 1 ,  2 ,  3 }
1716raleqi 3002 . 2  |-  ( A. x  e.  ( 1 ... 3 ) ( F `  x )  =  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  <->  A. x  e.  { 1 ,  2 ,  3 }  ( F `  x )  =  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C
) ) )
18 1ex 9663 . . 3  |-  1  e.  _V
19 2ex 10708 . . 3  |-  2  e.  _V
20 3ex 10712 . . 3  |-  3  e.  _V
21 fveq2 5887 . . . 4  |-  ( x  =  1  ->  ( F `  x )  =  ( F ` 
1 ) )
22 iftrue 3898 . . . 4  |-  ( x  =  1  ->  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  =  A )
2321, 22eqeq12d 2476 . . 3  |-  ( x  =  1  ->  (
( F `  x
)  =  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  <->  ( F ` 
1 )  =  A ) )
24 fveq2 5887 . . . 4  |-  ( x  =  2  ->  ( F `  x )  =  ( F ` 
2 ) )
25 1re 9667 . . . . . . . 8  |-  1  e.  RR
26 1lt2 10804 . . . . . . . 8  |-  1  <  2
2725, 26gtneii 9771 . . . . . . 7  |-  2  =/=  1
28 neeq1 2697 . . . . . . 7  |-  ( x  =  2  ->  (
x  =/=  1  <->  2  =/=  1 ) )
2927, 28mpbiri 241 . . . . . 6  |-  ( x  =  2  ->  x  =/=  1 )
30 ifnefalse 3904 . . . . . 6  |-  ( x  =/=  1  ->  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  =  if ( x  =  2 ,  B ,  C ) )
3129, 30syl 17 . . . . 5  |-  ( x  =  2  ->  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  =  if ( x  =  2 ,  B ,  C ) )
32 iftrue 3898 . . . . 5  |-  ( x  =  2  ->  if ( x  =  2 ,  B ,  C )  =  B )
3331, 32eqtrd 2495 . . . 4  |-  ( x  =  2  ->  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  =  B )
3424, 33eqeq12d 2476 . . 3  |-  ( x  =  2  ->  (
( F `  x
)  =  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  <->  ( F ` 
2 )  =  B ) )
35 fveq2 5887 . . . 4  |-  ( x  =  3  ->  ( F `  x )  =  ( F ` 
3 ) )
36 1lt3 10806 . . . . . . . 8  |-  1  <  3
3725, 36gtneii 9771 . . . . . . 7  |-  3  =/=  1
38 neeq1 2697 . . . . . . 7  |-  ( x  =  3  ->  (
x  =/=  1  <->  3  =/=  1 ) )
3937, 38mpbiri 241 . . . . . 6  |-  ( x  =  3  ->  x  =/=  1 )
4039, 30syl 17 . . . . 5  |-  ( x  =  3  ->  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  =  if ( x  =  2 ,  B ,  C ) )
41 2re 10706 . . . . . . . 8  |-  2  e.  RR
42 2lt3 10805 . . . . . . . 8  |-  2  <  3
4341, 42gtneii 9771 . . . . . . 7  |-  3  =/=  2
44 neeq1 2697 . . . . . . 7  |-  ( x  =  3  ->  (
x  =/=  2  <->  3  =/=  2 ) )
4543, 44mpbiri 241 . . . . . 6  |-  ( x  =  3  ->  x  =/=  2 )
46 ifnefalse 3904 . . . . . 6  |-  ( x  =/=  2  ->  if ( x  =  2 ,  B ,  C )  =  C )
4745, 46syl 17 . . . . 5  |-  ( x  =  3  ->  if ( x  =  2 ,  B ,  C )  =  C )
4840, 47eqtrd 2495 . . . 4  |-  ( x  =  3  ->  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  =  C )
4935, 48eqeq12d 2476 . . 3  |-  ( x  =  3  ->  (
( F `  x
)  =  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  <->  ( F ` 
3 )  =  C ) )
5018, 19, 20, 23, 34, 49raltp 4038 . 2  |-  ( A. x  e.  { 1 ,  2 ,  3 }  ( F `  x )  =  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  <->  ( ( F `
 1 )  =  A  /\  ( F `
 2 )  =  B  /\  ( F `
 3 )  =  C ) )
5117, 50bitri 257 1  |-  ( A. x  e.  ( 1 ... 3 ) ( F `  x )  =  if ( x  =  1 ,  A ,  if ( x  =  2 ,  B ,  C ) )  <->  ( ( F `  1 )  =  A  /\  ( F `  2 )  =  B  /\  ( F `  3 )  =  C ) )
Colors of variables: wff setvar class
Syntax hints:    <-> wb 189    /\ w3a 991    = wceq 1454    e. wcel 1897    =/= wne 2632   A.wral 2748   ifcif 3892   {ctp 3983   ` cfv 5600  (class class class)co 6314   1c1 9565    + caddc 9567   2c2 10686   3c3 10687   ZZcz 10965   ...cfz 11812
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1679  ax-4 1692  ax-5 1768  ax-6 1815  ax-7 1861  ax-8 1899  ax-9 1906  ax-10 1925  ax-11 1930  ax-12 1943  ax-13 2101  ax-ext 2441  ax-sep 4538  ax-nul 4547  ax-pow 4594  ax-pr 4652  ax-un 6609  ax-cnex 9620  ax-resscn 9621  ax-1cn 9622  ax-icn 9623  ax-addcl 9624  ax-addrcl 9625  ax-mulcl 9626  ax-mulrcl 9627  ax-mulcom 9628  ax-addass 9629  ax-mulass 9630  ax-distr 9631  ax-i2m1 9632  ax-1ne0 9633  ax-1rid 9634  ax-rnegex 9635  ax-rrecex 9636  ax-cnre 9637  ax-pre-lttri 9638  ax-pre-lttrn 9639  ax-pre-ltadd 9640  ax-pre-mulgt0 9641
This theorem depends on definitions:  df-bi 190  df-or 376  df-an 377  df-3or 992  df-3an 993  df-tru 1457  df-ex 1674  df-nf 1678  df-sb 1808  df-eu 2313  df-mo 2314  df-clab 2448  df-cleq 2454  df-clel 2457  df-nfc 2591  df-ne 2634  df-nel 2635  df-ral 2753  df-rex 2754  df-reu 2755  df-rab 2757  df-v 3058  df-sbc 3279  df-csb 3375  df-dif 3418  df-un 3420  df-in 3422  df-ss 3429  df-pss 3431  df-nul 3743  df-if 3893  df-pw 3964  df-sn 3980  df-pr 3982  df-tp 3984  df-op 3986  df-uni 4212  df-iun 4293  df-br 4416  df-opab 4475  df-mpt 4476  df-tr 4511  df-eprel 4763  df-id 4767  df-po 4773  df-so 4774  df-fr 4811  df-we 4813  df-xp 4858  df-rel 4859  df-cnv 4860  df-co 4861  df-dm 4862  df-rn 4863  df-res 4864  df-ima 4865  df-pred 5398  df-ord 5444  df-on 5445  df-lim 5446  df-suc 5447  df-iota 5564  df-fun 5602  df-fn 5603  df-f 5604  df-f1 5605  df-fo 5606  df-f1o 5607  df-fv 5608  df-riota 6276  df-ov 6317  df-oprab 6318  df-mpt2 6319  df-om 6719  df-1st 6819  df-2nd 6820  df-wrecs 7053  df-recs 7115  df-rdg 7153  df-er 7388  df-en 7595  df-dom 7596  df-sdom 7597  df-pnf 9702  df-mnf 9703  df-xr 9704  df-ltxr 9705  df-le 9706  df-sub 9887  df-neg 9888  df-nn 10637  df-2 10695  df-3 10696  df-n0 10898  df-z 10966  df-uz 11188  df-fz 11813
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator