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

Theorem fztpval 13388
Description: Two ways of defining the first three values of a sequence on . (Contributed by NM, 13-Sep-2011.)
Assertion
Ref Expression
fztpval (∀𝑥 ∈ (1...3)(𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ ((𝐹‘1) = 𝐴 ∧ (𝐹‘2) = 𝐵 ∧ (𝐹‘3) = 𝐶))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶   𝑥,𝐹

Proof of Theorem fztpval
StepHypRef Expression
1 1z 12420 . . . . 5 1 ∈ ℤ
2 fztp 13382 . . . . 5 (1 ∈ ℤ → (1...(1 + 2)) = {1, (1 + 1), (1 + 2)})
31, 2ax-mp 5 . . . 4 (1...(1 + 2)) = {1, (1 + 1), (1 + 2)}
4 df-3 12107 . . . . . 6 3 = (2 + 1)
5 2cn 12118 . . . . . . 7 2 ∈ ℂ
6 ax-1cn 10999 . . . . . . 7 1 ∈ ℂ
75, 6addcomi 11236 . . . . . 6 (2 + 1) = (1 + 2)
84, 7eqtri 2765 . . . . 5 3 = (1 + 2)
98oveq2i 7324 . . . 4 (1...3) = (1...(1 + 2))
10 tpeq3 4688 . . . . . 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 12106 . . . . . 6 2 = (1 + 1)
13 tpeq2 4687 . . . . . 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 2765 . . . 4 {1, 2, 3} = {1, (1 + 1), (1 + 2)}
163, 9, 153eqtr4i 2775 . . 3 (1...3) = {1, 2, 3}
1716raleqi 3308 . 2 (∀𝑥 ∈ (1...3)(𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ ∀𝑥 ∈ {1, 2, 3} (𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)))
18 1ex 11041 . . 3 1 ∈ V
19 2ex 12120 . . 3 2 ∈ V
20 3ex 12125 . . 3 3 ∈ V
21 fveq2 6809 . . . 4 (𝑥 = 1 → (𝐹𝑥) = (𝐹‘1))
22 iftrue 4475 . . . 4 (𝑥 = 1 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = 𝐴)
2321, 22eqeq12d 2753 . . 3 (𝑥 = 1 → ((𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ (𝐹‘1) = 𝐴))
24 fveq2 6809 . . . 4 (𝑥 = 2 → (𝐹𝑥) = (𝐹‘2))
25 1re 11045 . . . . . . . 8 1 ∈ ℝ
26 1lt2 12214 . . . . . . . 8 1 < 2
2725, 26gtneii 11157 . . . . . . 7 2 ≠ 1
28 neeq1 3004 . . . . . . 7 (𝑥 = 2 → (𝑥 ≠ 1 ↔ 2 ≠ 1))
2927, 28mpbiri 257 . . . . . 6 (𝑥 = 2 → 𝑥 ≠ 1)
30 ifnefalse 4481 . . . . . 6 (𝑥 ≠ 1 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = if(𝑥 = 2, 𝐵, 𝐶))
3129, 30syl 17 . . . . 5 (𝑥 = 2 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = if(𝑥 = 2, 𝐵, 𝐶))
32 iftrue 4475 . . . . 5 (𝑥 = 2 → if(𝑥 = 2, 𝐵, 𝐶) = 𝐵)
3331, 32eqtrd 2777 . . . 4 (𝑥 = 2 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = 𝐵)
3424, 33eqeq12d 2753 . . 3 (𝑥 = 2 → ((𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ (𝐹‘2) = 𝐵))
35 fveq2 6809 . . . 4 (𝑥 = 3 → (𝐹𝑥) = (𝐹‘3))
36 1lt3 12216 . . . . . . . 8 1 < 3
3725, 36gtneii 11157 . . . . . . 7 3 ≠ 1
38 neeq1 3004 . . . . . . 7 (𝑥 = 3 → (𝑥 ≠ 1 ↔ 3 ≠ 1))
3937, 38mpbiri 257 . . . . . 6 (𝑥 = 3 → 𝑥 ≠ 1)
4039, 30syl 17 . . . . 5 (𝑥 = 3 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = if(𝑥 = 2, 𝐵, 𝐶))
41 2re 12117 . . . . . . . 8 2 ∈ ℝ
42 2lt3 12215 . . . . . . . 8 2 < 3
4341, 42gtneii 11157 . . . . . . 7 3 ≠ 2
44 neeq1 3004 . . . . . . 7 (𝑥 = 3 → (𝑥 ≠ 2 ↔ 3 ≠ 2))
4543, 44mpbiri 257 . . . . . 6 (𝑥 = 3 → 𝑥 ≠ 2)
46 ifnefalse 4481 . . . . . 6 (𝑥 ≠ 2 → if(𝑥 = 2, 𝐵, 𝐶) = 𝐶)
4745, 46syl 17 . . . . 5 (𝑥 = 3 → if(𝑥 = 2, 𝐵, 𝐶) = 𝐶)
4840, 47eqtrd 2777 . . . 4 (𝑥 = 3 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = 𝐶)
4935, 48eqeq12d 2753 . . 3 (𝑥 = 3 → ((𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ (𝐹‘3) = 𝐶))
5018, 19, 20, 23, 34, 49raltp 4649 . 2 (∀𝑥 ∈ {1, 2, 3} (𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ ((𝐹‘1) = 𝐴 ∧ (𝐹‘2) = 𝐵 ∧ (𝐹‘3) = 𝐶))
5117, 50bitri 274 1 (∀𝑥 ∈ (1...3)(𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ ((𝐹‘1) = 𝐴 ∧ (𝐹‘2) = 𝐵 ∧ (𝐹‘3) = 𝐶))
Colors of variables: wff setvar class
Syntax hints:  wb 205  w3a 1086   = wceq 1540  wcel 2105  wne 2941  wral 3062  ifcif 4469  {ctp 4573  cfv 6463  (class class class)co 7313  1c1 10942   + caddc 10944  2c2 12098  3c3 12099  cz 12389  ...cfz 13309
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2708  ax-sep 5236  ax-nul 5243  ax-pow 5301  ax-pr 5365  ax-un 7626  ax-cnex 10997  ax-resscn 10998  ax-1cn 10999  ax-icn 11000  ax-addcl 11001  ax-addrcl 11002  ax-mulcl 11003  ax-mulrcl 11004  ax-mulcom 11005  ax-addass 11006  ax-mulass 11007  ax-distr 11008  ax-i2m1 11009  ax-1ne0 11010  ax-1rid 11011  ax-rnegex 11012  ax-rrecex 11013  ax-cnre 11014  ax-pre-lttri 11015  ax-pre-lttrn 11016  ax-pre-ltadd 11017  ax-pre-mulgt0 11018
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-reu 3351  df-rab 3405  df-v 3443  df-sbc 3726  df-csb 3842  df-dif 3899  df-un 3901  df-in 3903  df-ss 3913  df-pss 3915  df-nul 4267  df-if 4470  df-pw 4545  df-sn 4570  df-pr 4572  df-tp 4574  df-op 4576  df-uni 4849  df-iun 4937  df-br 5086  df-opab 5148  df-mpt 5169  df-tr 5203  df-id 5505  df-eprel 5511  df-po 5519  df-so 5520  df-fr 5560  df-we 5562  df-xp 5611  df-rel 5612  df-cnv 5613  df-co 5614  df-dm 5615  df-rn 5616  df-res 5617  df-ima 5618  df-pred 6222  df-ord 6289  df-on 6290  df-lim 6291  df-suc 6292  df-iota 6415  df-fun 6465  df-fn 6466  df-f 6467  df-f1 6468  df-fo 6469  df-f1o 6470  df-fv 6471  df-riota 7270  df-ov 7316  df-oprab 7317  df-mpo 7318  df-om 7756  df-1st 7874  df-2nd 7875  df-frecs 8142  df-wrecs 8173  df-recs 8247  df-rdg 8286  df-er 8544  df-en 8780  df-dom 8781  df-sdom 8782  df-pnf 11081  df-mnf 11082  df-xr 11083  df-ltxr 11084  df-le 11085  df-sub 11277  df-neg 11278  df-nn 12044  df-2 12106  df-3 12107  df-n0 12304  df-z 12390  df-uz 12653  df-fz 13310
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator