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

Theorem mpt3mpt 7673
Description: Express a three-argument function as a one-argument function, or vice-versa. (Contributed by BTernaryTau, 7-Sep-2026.)
Hypothesis
Ref Expression
mpt3mpt.1 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ → 𝐷 = 𝐸)
Assertion
Ref Expression
mpt3mpt (𝑤 ∈ ((𝐴 × 𝐵) × 𝐶) ↦ 𝐷) = (𝑥𝐴, 𝑦𝐵, 𝑧𝐶𝐸)
Distinct variable groups:   𝑤,𝐸   𝑥,𝐷,𝑦,𝑧   𝑤,𝐴,𝑥,𝑦,𝑧   𝑤,𝐵,𝑥,𝑦,𝑧   𝑤,𝐶,𝑥,𝑦,𝑧
Allowed substitution hints:   𝐷(𝑤)   𝐸(𝑥, 𝑦, 𝑧)

Proof of Theorem mpt3mpt
Dummy variable 𝑡 is distinct from all other variables.
StepHypRef Expression
1 el2xptp 5816 . . . . 5 (𝑤 ∈ ((𝐴 × 𝐵) × 𝐶) ↔ ∃𝑥𝐴𝑦𝐵𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩)
21anbi1i 636 . . . 4 ((𝑤 ∈ ((𝐴 × 𝐵) × 𝐶) ∧ 𝑡 = 𝐷) ↔ (∃𝑥𝐴𝑦𝐵𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷))
3 r19.41v 3192 . . . 4 (∃𝑥𝐴 (∃𝑦𝐵𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ (∃𝑥𝐴𝑦𝐵𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷))
4 r19.41v 3192 . . . . . 6 (∃𝑦𝐵 (∃𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ (∃𝑦𝐵𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷))
5 r19.41v 3192 . . . . . . . 8 (∃𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ (∃𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷))
6 mpt3mpt.1 . . . . . . . . . . 11 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ → 𝐷 = 𝐸)
76eqeq2d 2771 . . . . . . . . . 10 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ → (𝑡 = 𝐷𝑡 = 𝐸))
87pm5.32i 585 . . . . . . . . 9 ((𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸))
98rexbii 3109 . . . . . . . 8 (∃𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ ∃𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸))
105, 9bitr3i 280 . . . . . . 7 ((∃𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ ∃𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸))
1110rexbii 3109 . . . . . 6 (∃𝑦𝐵 (∃𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ ∃𝑦𝐵𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸))
124, 11bitr3i 280 . . . . 5 ((∃𝑦𝐵𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ ∃𝑦𝐵𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸))
1312rexbii 3109 . . . 4 (∃𝑥𝐴 (∃𝑦𝐵𝑧𝐶 𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐷) ↔ ∃𝑥𝐴𝑦𝐵𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸))
142, 3, 133bitr2i 302 . . 3 ((𝑤 ∈ ((𝐴 × 𝐵) × 𝐶) ∧ 𝑡 = 𝐷) ↔ ∃𝑥𝐴𝑦𝐵𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸))
1514opabbii 5171 . 2 {⟨𝑤, 𝑡⟩ ∣ (𝑤 ∈ ((𝐴 × 𝐵) × 𝐶) ∧ 𝑡 = 𝐷)} = {⟨𝑤, 𝑡⟩ ∣ ∃𝑥𝐴𝑦𝐵𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸)}
16 df-mpt 5186 . 2 (𝑤 ∈ ((𝐴 × 𝐵) × 𝐶) ↦ 𝐷) = {⟨𝑤, 𝑡⟩ ∣ (𝑤 ∈ ((𝐴 × 𝐵) × 𝐶) ∧ 𝑡 = 𝐷)}
17 df-mpt3 7672 . 2 (𝑥𝐴, 𝑦𝐵, 𝑧𝐶𝐸) = {⟨𝑤, 𝑡⟩ ∣ ∃𝑥𝐴𝑦𝐵𝑧𝐶 (𝑤 = ⟨𝑥, 𝑦, 𝑧⟩ ∧ 𝑡 = 𝐸)}
1815, 16, 173eqtr4i 2793 1 (𝑤 ∈ ((𝐴 × 𝐵) × 𝐶) ↦ 𝐷) = (𝑥𝐴, 𝑦𝐵, 𝑧𝐶𝐸)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  wi 4  wa 401   = wceq 1570  wcel 2145  wrex 3086  cotp 4591  {copab 5166  cmpt 5185   × cxp 5645  cmpt3 7671
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2732  ax-sep 5248  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-nul 4279  df-if 4482  df-sn 4584  df-pr 4586  df-op 4590  df-ot 4592  df-iun 4952  df-opab 5167  df-mpt 5186  df-xp 5653  df-rel 5654  df-mpt3 7672
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator