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

Theorem fztpval 13500
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 12519 . . . . 5 1 ∈ ℤ
2 fztp 13494 . . . . 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 12207 . . . . . 6 3 = (2 + 1)
5 2cn 12218 . . . . . . 7 2 ∈ ℂ
6 ax-1cn 11082 . . . . . . 7 1 ∈ ℂ
75, 6addcomi 11322 . . . . . 6 (2 + 1) = (1 + 2)
84, 7eqtri 2757 . . . . 5 3 = (1 + 2)
98oveq2i 7367 . . . 4 (1...3) = (1...(1 + 2))
10 tpeq3 4699 . . . . . 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 12206 . . . . . 6 2 = (1 + 1)
13 tpeq2 4698 . . . . . 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 2757 . . . 4 {1, 2, 3} = {1, (1 + 1), (1 + 2)}
163, 9, 153eqtr4i 2767 . . 3 (1...3) = {1, 2, 3}
1716raleqi 3292 . 2 (∀𝑥 ∈ (1...3)(𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ ∀𝑥 ∈ {1, 2, 3} (𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)))
18 1ex 11126 . . 3 1 ∈ V
19 2ex 12220 . . 3 2 ∈ V
20 3ex 12225 . . 3 3 ∈ V
21 fveq2 6832 . . . 4 (𝑥 = 1 → (𝐹𝑥) = (𝐹‘1))
22 iftrue 4483 . . . 4 (𝑥 = 1 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = 𝐴)
2321, 22eqeq12d 2750 . . 3 (𝑥 = 1 → ((𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ (𝐹‘1) = 𝐴))
24 fveq2 6832 . . . 4 (𝑥 = 2 → (𝐹𝑥) = (𝐹‘2))
25 1re 11130 . . . . . . . 8 1 ∈ ℝ
26 1lt2 12309 . . . . . . . 8 1 < 2
2725, 26gtneii 11243 . . . . . . 7 2 ≠ 1
28 neeq1 2992 . . . . . . 7 (𝑥 = 2 → (𝑥 ≠ 1 ↔ 2 ≠ 1))
2927, 28mpbiri 258 . . . . . 6 (𝑥 = 2 → 𝑥 ≠ 1)
30 ifnefalse 4489 . . . . . 6 (𝑥 ≠ 1 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = if(𝑥 = 2, 𝐵, 𝐶))
3129, 30syl 17 . . . . 5 (𝑥 = 2 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = if(𝑥 = 2, 𝐵, 𝐶))
32 iftrue 4483 . . . . 5 (𝑥 = 2 → if(𝑥 = 2, 𝐵, 𝐶) = 𝐵)
3331, 32eqtrd 2769 . . . 4 (𝑥 = 2 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = 𝐵)
3424, 33eqeq12d 2750 . . 3 (𝑥 = 2 → ((𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ (𝐹‘2) = 𝐵))
35 fveq2 6832 . . . 4 (𝑥 = 3 → (𝐹𝑥) = (𝐹‘3))
36 1lt3 12311 . . . . . . . 8 1 < 3
3725, 36gtneii 11243 . . . . . . 7 3 ≠ 1
38 neeq1 2992 . . . . . . 7 (𝑥 = 3 → (𝑥 ≠ 1 ↔ 3 ≠ 1))
3937, 38mpbiri 258 . . . . . 6 (𝑥 = 3 → 𝑥 ≠ 1)
4039, 30syl 17 . . . . 5 (𝑥 = 3 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = if(𝑥 = 2, 𝐵, 𝐶))
41 2re 12217 . . . . . . . 8 2 ∈ ℝ
42 2lt3 12310 . . . . . . . 8 2 < 3
4341, 42gtneii 11243 . . . . . . 7 3 ≠ 2
44 neeq1 2992 . . . . . . 7 (𝑥 = 3 → (𝑥 ≠ 2 ↔ 3 ≠ 2))
4543, 44mpbiri 258 . . . . . 6 (𝑥 = 3 → 𝑥 ≠ 2)
46 ifnefalse 4489 . . . . . 6 (𝑥 ≠ 2 → if(𝑥 = 2, 𝐵, 𝐶) = 𝐶)
4745, 46syl 17 . . . . 5 (𝑥 = 3 → if(𝑥 = 2, 𝐵, 𝐶) = 𝐶)
4840, 47eqtrd 2769 . . . 4 (𝑥 = 3 → if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) = 𝐶)
4935, 48eqeq12d 2750 . . 3 (𝑥 = 3 → ((𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ (𝐹‘3) = 𝐶))
5018, 19, 20, 23, 34, 49raltp 4660 . 2 (∀𝑥 ∈ {1, 2, 3} (𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ ((𝐹‘1) = 𝐴 ∧ (𝐹‘2) = 𝐵 ∧ (𝐹‘3) = 𝐶))
5117, 50bitri 275 1 (∀𝑥 ∈ (1...3)(𝐹𝑥) = if(𝑥 = 1, 𝐴, if(𝑥 = 2, 𝐵, 𝐶)) ↔ ((𝐹‘1) = 𝐴 ∧ (𝐹‘2) = 𝐵 ∧ (𝐹‘3) = 𝐶))
Colors of variables: wff setvar class
Syntax hints:  wb 206  w3a 1086   = wceq 1541  wcel 2113  wne 2930  wral 3049  ifcif 4477  {ctp 4582  cfv 6490  (class class class)co 7356  1c1 11025   + caddc 11027  2c2 12198  3c3 12199  cz 12486  ...cfz 13421
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 1911  ax-6 1968  ax-7 2009  ax-8 2115  ax-9 2123  ax-10 2146  ax-11 2162  ax-12 2182  ax-ext 2706  ax-sep 5239  ax-nul 5249  ax-pow 5308  ax-pr 5375  ax-un 7678  ax-cnex 11080  ax-resscn 11081  ax-1cn 11082  ax-icn 11083  ax-addcl 11084  ax-addrcl 11085  ax-mulcl 11086  ax-mulrcl 11087  ax-mulcom 11088  ax-addass 11089  ax-mulass 11090  ax-distr 11091  ax-i2m1 11092  ax-1ne0 11093  ax-1rid 11094  ax-rnegex 11095  ax-rrecex 11096  ax-cnre 11097  ax-pre-lttri 11098  ax-pre-lttrn 11099  ax-pre-ltadd 11100  ax-pre-mulgt0 11101
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-nf 1785  df-sb 2068  df-mo 2537  df-eu 2567  df-clab 2713  df-cleq 2726  df-clel 2809  df-nfc 2883  df-ne 2931  df-nel 3035  df-ral 3050  df-rex 3059  df-reu 3349  df-rab 3398  df-v 3440  df-sbc 3739  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4284  df-if 4478  df-pw 4554  df-sn 4579  df-pr 4581  df-tp 4583  df-op 4585  df-uni 4862  df-iun 4946  df-br 5097  df-opab 5159  df-mpt 5178  df-tr 5204  df-id 5517  df-eprel 5522  df-po 5530  df-so 5531  df-fr 5575  df-we 5577  df-xp 5628  df-rel 5629  df-cnv 5630  df-co 5631  df-dm 5632  df-rn 5633  df-res 5634  df-ima 5635  df-pred 6257  df-ord 6318  df-on 6319  df-lim 6320  df-suc 6321  df-iota 6446  df-fun 6492  df-fn 6493  df-f 6494  df-f1 6495  df-fo 6496  df-f1o 6497  df-fv 6498  df-riota 7313  df-ov 7359  df-oprab 7360  df-mpo 7361  df-om 7807  df-1st 7931  df-2nd 7932  df-frecs 8221  df-wrecs 8252  df-recs 8301  df-rdg 8339  df-er 8633  df-en 8882  df-dom 8883  df-sdom 8884  df-pnf 11166  df-mnf 11167  df-xr 11168  df-ltxr 11169  df-le 11170  df-sub 11364  df-neg 11365  df-nn 12144  df-2 12206  df-3 12207  df-n0 12400  df-z 12487  df-uz 12750  df-fz 13422
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator