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

Theorem fntpg 6440
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 6435 . 2 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → Fun {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩})
2 dmsnopg 6076 . . . . . . . . . 10 (𝐴𝐹 → dom {⟨𝑋, 𝐴⟩} = {𝑋})
323ad2ant1 1135 . . . . . . . . 9 ((𝐴𝐹𝐵𝐺𝐶𝐻) → dom {⟨𝑋, 𝐴⟩} = {𝑋})
4 dmsnopg 6076 . . . . . . . . . 10 (𝐵𝐺 → dom {⟨𝑌, 𝐵⟩} = {𝑌})
543ad2ant2 1136 . . . . . . . . 9 ((𝐴𝐹𝐵𝐺𝐶𝐻) → dom {⟨𝑌, 𝐵⟩} = {𝑌})
63, 5jca 515 . . . . . . . 8 ((𝐴𝐹𝐵𝐺𝐶𝐻) → (dom {⟨𝑋, 𝐴⟩} = {𝑋} ∧ dom {⟨𝑌, 𝐵⟩} = {𝑌}))
763ad2ant2 1136 . . . . . . 7 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → (dom {⟨𝑋, 𝐴⟩} = {𝑋} ∧ dom {⟨𝑌, 𝐵⟩} = {𝑌}))
8 uneq12 4072 . . . . . . 7 ((dom {⟨𝑋, 𝐴⟩} = {𝑋} ∧ dom {⟨𝑌, 𝐵⟩} = {𝑌}) → (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = ({𝑋} ∪ {𝑌}))
97, 8syl 17 . . . . . 6 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = ({𝑋} ∪ {𝑌}))
10 df-pr 4544 . . . . . 6 {𝑋, 𝑌} = ({𝑋} ∪ {𝑌})
119, 10eqtr4di 2796 . . . . 5 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌})
12 df-pr 4544 . . . . . . . 8 {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩})
1312dmeqi 5773 . . . . . . 7 dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = dom ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩})
1413eqeq1i 2742 . . . . . 6 (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = {𝑋, 𝑌} ↔ dom ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌})
15 dmun 5779 . . . . . . 7 dom ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩}) = (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩})
1615eqeq1i 2742 . . . . . 6 (dom ({⟨𝑋, 𝐴⟩} ∪ {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌} ↔ (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌})
1714, 16bitri 278 . . . . 5 (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = {𝑋, 𝑌} ↔ (dom {⟨𝑋, 𝐴⟩} ∪ dom {⟨𝑌, 𝐵⟩}) = {𝑋, 𝑌})
1811, 17sylibr 237 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} = {𝑋, 𝑌})
19 dmsnopg 6076 . . . . . 6 (𝐶𝐻 → dom {⟨𝑍, 𝐶⟩} = {𝑍})
20193ad2ant3 1137 . . . . 5 ((𝐴𝐹𝐵𝐺𝐶𝐻) → dom {⟨𝑍, 𝐶⟩} = {𝑍})
21203ad2ant2 1136 . . . 4 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → dom {⟨𝑍, 𝐶⟩} = {𝑍})
2218, 21uneq12d 4078 . . 3 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ dom {⟨𝑍, 𝐶⟩}) = ({𝑋, 𝑌} ∪ {𝑍}))
23 df-tp 4546 . . . . 5 {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = ({⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ {⟨𝑍, 𝐶⟩})
2423dmeqi 5773 . . . 4 dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = dom ({⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ {⟨𝑍, 𝐶⟩})
25 dmun 5779 . . . 4 dom ({⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ {⟨𝑍, 𝐶⟩}) = (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ dom {⟨𝑍, 𝐶⟩})
2624, 25eqtri 2765 . . 3 dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = (dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩} ∪ dom {⟨𝑍, 𝐶⟩})
27 df-tp 4546 . . 3 {𝑋, 𝑌, 𝑍} = ({𝑋, 𝑌} ∪ {𝑍})
2822, 26, 273eqtr4g 2803 . 2 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = {𝑋, 𝑌, 𝑍})
29 df-fn 6383 . 2 ({⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} Fn {𝑋, 𝑌, 𝑍} ↔ (Fun {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} ∧ dom {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} = {𝑋, 𝑌, 𝑍}))
301, 28, 29sylanbrc 586 1 (((𝑋𝑈𝑌𝑉𝑍𝑊) ∧ (𝐴𝐹𝐵𝐺𝐶𝐻) ∧ (𝑋𝑌𝑋𝑍𝑌𝑍)) → {⟨𝑋, 𝐴⟩, ⟨𝑌, 𝐵⟩, ⟨𝑍, 𝐶⟩} Fn {𝑋, 𝑌, 𝑍})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  w3a 1089   = wceq 1543  wcel 2110  wne 2940  cun 3864  {csn 4541  {cpr 4543  {ctp 4545  cop 4547  dom cdm 5551  Fun wfun 6374   Fn wfn 6375
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ne 2941  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3410  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-tp 4546  df-op 4548  df-br 5054  df-opab 5116  df-id 5455  df-xp 5557  df-rel 5558  df-cnv 5559  df-co 5560  df-dm 5561  df-fun 6382  df-fn 6383
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator