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

Theorem tpf 14424
Description: A function into a (proper) triple. (Contributed by AV, 20-Jul-2025.)
Hypotheses
Ref Expression
tpf1o.f 𝐹 = (𝑥 ∈ (0..^3) ↦ if(𝑥 = 0, 𝐴, if(𝑥 = 1, 𝐵, 𝐶)))
tpf.t 𝑇 = {𝐴, 𝐵, 𝐶}
Assertion
Ref Expression
tpf ((𝐴𝑉𝐵𝑉𝐶𝑉) → 𝐹:(0..^3)⟶𝑇)
Distinct variable groups:   𝑥,𝐴   𝑥,𝑉   𝑥,𝐵   𝑥,𝐶   𝑥,𝑇
Allowed substitution hint:   𝐹(𝑥)

Proof of Theorem tpf
StepHypRef Expression
1 tpid1g 4723 . . . . . 6 (𝐴𝑉𝐴 ∈ {𝐴, 𝐵, 𝐶})
213ad2ant1 1133 . . . . 5 ((𝐴𝑉𝐵𝑉𝐶𝑉) → 𝐴 ∈ {𝐴, 𝐵, 𝐶})
3 tpid2g 4725 . . . . . . 7 (𝐵𝑉𝐵 ∈ {𝐴, 𝐵, 𝐶})
433ad2ant2 1134 . . . . . 6 ((𝐴𝑉𝐵𝑉𝐶𝑉) → 𝐵 ∈ {𝐴, 𝐵, 𝐶})
5 tpid3g 4726 . . . . . . 7 (𝐶𝑉𝐶 ∈ {𝐴, 𝐵, 𝐶})
653ad2ant3 1135 . . . . . 6 ((𝐴𝑉𝐵𝑉𝐶𝑉) → 𝐶 ∈ {𝐴, 𝐵, 𝐶})
74, 6ifcld 4525 . . . . 5 ((𝐴𝑉𝐵𝑉𝐶𝑉) → if(𝑥 = 1, 𝐵, 𝐶) ∈ {𝐴, 𝐵, 𝐶})
82, 7ifcld 4525 . . . 4 ((𝐴𝑉𝐵𝑉𝐶𝑉) → if(𝑥 = 0, 𝐴, if(𝑥 = 1, 𝐵, 𝐶)) ∈ {𝐴, 𝐵, 𝐶})
9 tpf.t . . . 4 𝑇 = {𝐴, 𝐵, 𝐶}
108, 9eleqtrrdi 2839 . . 3 ((𝐴𝑉𝐵𝑉𝐶𝑉) → if(𝑥 = 0, 𝐴, if(𝑥 = 1, 𝐵, 𝐶)) ∈ 𝑇)
1110adantr 480 . 2 (((𝐴𝑉𝐵𝑉𝐶𝑉) ∧ 𝑥 ∈ (0..^3)) → if(𝑥 = 0, 𝐴, if(𝑥 = 1, 𝐵, 𝐶)) ∈ 𝑇)
12 tpf1o.f . 2 𝐹 = (𝑥 ∈ (0..^3) ↦ if(𝑥 = 0, 𝐴, if(𝑥 = 1, 𝐵, 𝐶)))
1311, 12fmptd 7052 1 ((𝐴𝑉𝐵𝑉𝐶𝑉) → 𝐹:(0..^3)⟶𝑇)
Colors of variables: wff setvar class
Syntax hints:  wi 4  w3a 1086   = wceq 1540  wcel 2109  ifcif 4478  {ctp 4583  cmpt 5176  wf 6482  (class class class)co 7353  0cc0 11028  1c1 11029  3c3 12202  ..^cfzo 13575
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2008  ax-8 2111  ax-9 2119  ax-10 2142  ax-11 2158  ax-12 2178  ax-ext 2701  ax-sep 5238  ax-nul 5248  ax-pr 5374
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2533  df-eu 2562  df-clab 2708  df-cleq 2721  df-clel 2803  df-nfc 2878  df-ral 3045  df-rex 3054  df-rab 3397  df-v 3440  df-dif 3908  df-un 3910  df-in 3912  df-ss 3922  df-nul 4287  df-if 4479  df-sn 4580  df-pr 4582  df-tp 4584  df-op 4586  df-br 5096  df-opab 5158  df-mpt 5177  df-id 5518  df-xp 5629  df-rel 5630  df-cnv 5631  df-co 5632  df-dm 5633  df-rn 5634  df-res 5635  df-ima 5636  df-fun 6488  df-fn 6489  df-f 6490
This theorem is referenced by:  tpfo  14425
  Copyright terms: Public domain W3C validator