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

Theorem mptun 6466
 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 5119 . 2 (𝑥 ∈ (𝐴𝐵) ↦ 𝐶) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶)}
2 df-mpt 5119 . . . 4 (𝑥𝐴𝐶) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐶)}
3 df-mpt 5119 . . . 4 (𝑥𝐵𝐶) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵𝑦 = 𝐶)}
42, 3uneq12i 4112 . . 3 ((𝑥𝐴𝐶) ∪ (𝑥𝐵𝐶)) = ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐶)} ∪ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵𝑦 = 𝐶)})
5 elun 4100 . . . . . . 7 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴𝑥𝐵))
65anbi1i 625 . . . . . 6 ((𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶) ↔ ((𝑥𝐴𝑥𝐵) ∧ 𝑦 = 𝐶))
7 andir 1005 . . . . . 6 (((𝑥𝐴𝑥𝐵) ∧ 𝑦 = 𝐶) ↔ ((𝑥𝐴𝑦 = 𝐶) ∨ (𝑥𝐵𝑦 = 𝐶)))
86, 7bitri 277 . . . . 5 ((𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶) ↔ ((𝑥𝐴𝑦 = 𝐶) ∨ (𝑥𝐵𝑦 = 𝐶)))
98opabbii 5105 . . . 4 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶)} = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦 = 𝐶) ∨ (𝑥𝐵𝑦 = 𝐶))}
10 unopab 5117 . . . 4 ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐶)} ∪ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵𝑦 = 𝐶)}) = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦 = 𝐶) ∨ (𝑥𝐵𝑦 = 𝐶))}
119, 10eqtr4i 2846 . . 3 {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶)} = ({⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝑦 = 𝐶)} ∪ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐵𝑦 = 𝐶)})
124, 11eqtr4i 2846 . 2 ((𝑥𝐴𝐶) ∪ (𝑥𝐵𝐶)) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ (𝐴𝐵) ∧ 𝑦 = 𝐶)}
131, 12eqtr4i 2846 1 (𝑥 ∈ (𝐴𝐵) ↦ 𝐶) = ((𝑥𝐴𝐶) ∪ (𝑥𝐵𝐶))
 Colors of variables: wff setvar class Syntax hints:   ∧ wa 398   ∨ wo 843   = wceq 1537   ∈ wcel 2114   ∪ cun 3907  {copab 5100   ↦ cmpt 5118 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-12 2177  ax-ext 2792 This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2799  df-cleq 2813  df-clel 2891  df-v 3472  df-un 3914  df-opab 5101  df-mpt 5119 This theorem is referenced by:  fmptap  6904  fmptapd  6905  partfun  30404  esumrnmpt2  31331  ptrest  34928
 Copyright terms: Public domain W3C validator