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

Theorem mptun 5938
Description: Union of mappings which are mutually compatible. (Contributed by Mario Carneiro, 31-Aug-2015.)
Assertion
Ref Expression
mptun (𝑥 ∈ (𝐴𝐵) ↦ 𝐶) = ((𝑥𝐴𝐶) ∪ (𝑥𝐵𝐶))

Proof of Theorem mptun
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 df-mpt 4645 . 2 (𝑥 ∈ (𝐴𝐵) ↦ 𝐶) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶)}
2 df-mpt 4645 . . . 4 (𝑥𝐴𝐶) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐶)}
3 df-mpt 4645 . . . 4 (𝑥𝐵𝐶) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵𝑦 = 𝐶)}
42, 3uneq12i 3727 . . 3 ((𝑥𝐴𝐶) ∪ (𝑥𝐵𝐶)) = ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐶)} ∪ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵𝑦 = 𝐶)})
5 elun 3715 . . . . . . 7 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴𝑥𝐵))
65anbi1i 727 . . . . . 6 ((𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶) ↔ ((𝑥𝐴𝑥𝐵) ∧ 𝑦 = 𝐶))
7 andir 908 . . . . . 6 (((𝑥𝐴𝑥𝐵) ∧ 𝑦 = 𝐶) ↔ ((𝑥𝐴𝑦 = 𝐶) ∨ (𝑥𝐵𝑦 = 𝐶)))
86, 7bitri 263 . . . . 5 ((𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶) ↔ ((𝑥𝐴𝑦 = 𝐶) ∨ (𝑥𝐵𝑦 = 𝐶)))
98opabbii 4649 . . . 4 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶)} = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦 = 𝐶) ∨ (𝑥𝐵𝑦 = 𝐶))}
10 unopab 4660 . . . 4 ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐶)} ∪ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵𝑦 = 𝐶)}) = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦 = 𝐶) ∨ (𝑥𝐵𝑦 = 𝐶))}
119, 10eqtr4i 2635 . . 3 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶)} = ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐶)} ∪ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵𝑦 = 𝐶)})
124, 11eqtr4i 2635 . 2 ((𝑥𝐴𝐶) ∪ (𝑥𝐵𝐶)) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶)}
131, 12eqtr4i 2635 1 (𝑥 ∈ (𝐴𝐵) ↦ 𝐶) = ((𝑥𝐴𝐶) ∪ (𝑥𝐵𝐶))
Colors of variables: wff setvar class
Syntax hints:  wo 382  wa 383   = wceq 1475  wcel 1977  cun 3538  {copab 4642  cmpt 4643
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-v 3175  df-un 3545  df-opab 4644  df-mpt 4645
This theorem is referenced by:  fmptap  6341  fmptapd  6342  partfun  28858  esumrnmpt2  29457  ptrest  32578
  Copyright terms: Public domain W3C validator