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

Theorem fntpg 6494
Description: Function with a domain of three different values. (Contributed by Alexander van der Vekens, 5-Dec-2017.)
Assertion
Ref Expression
fntpg (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} Fn {𝑋, 𝑌, 𝑍})

Proof of Theorem fntpg
StepHypRef Expression
1 funtpg 6489 . 2 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → Fun {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩})
2 dmsnopg 6116 . . . . . . . . . 10 (𝐴𝐹 → dom {⟨𝑋, 𝐴⟩} = {𝑋})
323ad2ant1 1132 . . . . . . . . 9 ((𝐴𝐹𝐵𝐺𝐶𝐻) → dom {⟨𝑋, 𝐴⟩} = {𝑋})
4 dmsnopg 6116 . . . . . . . . . 10 (𝐵𝐺 → dom {⟨𝑌, 𝐵⟩} = {𝑌})
543ad2ant2 1133 . . . . . . . . 9 ((𝐴𝐹𝐵𝐺𝐶𝐻) → dom {⟨𝑌, 𝐵⟩} = {𝑌})
63, 5jca 512 . . . . . . . 8 ((𝐴𝐹𝐵𝐺𝐶𝐻) → (dom {⟨𝑋, 𝐴⟩} = {𝑋} ∧ dom {⟨𝑌, 𝐵⟩} = {𝑌}))
763ad2ant2 1133 . . . . . . 7 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → (dom {⟨𝑋, 𝐴⟩} = {𝑋} ∧ dom {⟨𝑌, 𝐵⟩} = {𝑌}))
8 uneq12 4092 . . . . . . 7 ((dom {⟨𝑋, 𝐴⟩} = {𝑋} ∧ dom {⟨𝑌, 𝐵⟩} = {𝑌}) → (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = ({𝑋} ∪ {𝑌}))
97, 8syl 17 . . . . . 6 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = ({𝑋} ∪ {𝑌}))
10 df-pr 4564 . . . . . 6 {𝑋, 𝑌} = ({𝑋} ∪ {𝑌})
119, 10eqtr4di 2796 . . . . 5 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌})
12 df-pr 4564 . . . . . . . 8 {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩})
1312dmeqi 5813 . . . . . . 7 dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = dom ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩})
1413eqeq1i 2743 . . . . . 6 (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = {𝑋, 𝑌} ↔ dom ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌})
15 dmun 5819 . . . . . . 7 dom ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩}) = (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩})
1615eqeq1i 2743 . . . . . 6 (dom ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌} ↔ (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌})
1714, 16bitri 274 . . . . 5 (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = {𝑋, 𝑌} ↔ (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌})
1811, 17sylibr 233 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = {𝑋, 𝑌})
19 dmsnopg 6116 . . . . . 6 (𝐶𝐻 → dom {⟨𝑍, 𝐶⟩} = {𝑍})
20193ad2ant3 1134 . . . . 5 ((𝐴𝐹𝐵𝐺𝐶𝐻) → dom {⟨𝑍, 𝐶⟩} = {𝑍})
21203ad2ant2 1133 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → dom {⟨𝑍, 𝐶⟩} = {𝑍})
2218, 21uneq12d 4098 . . 3 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ dom {⟨𝑍, 𝐶⟩}) = ({𝑋, 𝑌} ∪ {𝑍}))
23 df-tp 4566 . . . . 5 {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = ({⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ {⟨𝑍, 𝐶⟩})
2423dmeqi 5813 . . . 4 dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = dom ({⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ {⟨𝑍, 𝐶⟩})
25 dmun 5819 . . . 4 dom ({⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ {⟨𝑍, 𝐶⟩}) = (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ dom {⟨𝑍, 𝐶⟩})
2624, 25eqtri 2766 . . 3 dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ dom {⟨𝑍, 𝐶⟩})
27 df-tp 4566 . . 3 {𝑋, 𝑌, 𝑍} = ({𝑋, 𝑌} ∪ {𝑍})
2822, 26, 273eqtr4g 2803 . 2 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = {𝑋, 𝑌, 𝑍})
29 df-fn 6436 . 2 ({⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} Fn {𝑋, 𝑌, 𝑍} ↔ (Fun {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} ∧ dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = {𝑋, 𝑌, 𝑍}))
301, 28, 29sylanbrc 583 1 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} Fn {𝑋, 𝑌, 𝑍})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1086   = wceq 1539  wcel 2106  wne 2943  cun 3885  {csn 4561  {cpr 4563  {ctp 4565  cop 4567  dom cdm 5589  Fun wfun 6427   Fn wfn 6428
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-tp 4566  df-op 4568  df-br 5075  df-opab 5137  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-fun 6435  df-fn 6436
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator