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

Theorem iuncom4 4963
Description: Commutation of union with indexed union. (Contributed by Mario Carneiro, 18-Jan-2014.)
Assertion
Ref Expression
iuncom4 ∪ 𝑥 ∈ 𝐴 ∪ 𝐵 = ∪ ∪ 𝑥 ∈ 𝐴 𝐵

Proof of Theorem iuncom4
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-rex 3091 . . . . . . 7 (∃𝑧 ∈ 𝐵 𝑦 ∈ 𝑧 ↔ ∃𝑧(𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
21rexbii 3113 . . . . . 6 (∃𝑥 ∈ 𝐴 ∃𝑧 ∈ 𝐵 𝑦 ∈ 𝑧 ↔ ∃𝑥 ∈ 𝐴 ∃𝑧(𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
3 rexcom4 3293 . . . . . 6 (∃𝑥 ∈ 𝐴 ∃𝑧(𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧) ↔ ∃𝑧∃𝑥 ∈ 𝐴 (𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
42, 3bitri 278 . . . . 5 (∃𝑥 ∈ 𝐴 ∃𝑧 ∈ 𝐵 𝑦 ∈ 𝑧 ↔ ∃𝑧∃𝑥 ∈ 𝐴 (𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
5 r19.41v 3196 . . . . . 6 (∃𝑥 ∈ 𝐴 (𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧) ↔ (∃𝑥 ∈ 𝐴 𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
65exbii 1881 . . . . 5 (∃𝑧∃𝑥 ∈ 𝐴 (𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧) ↔ ∃𝑧(∃𝑥 ∈ 𝐴 𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
74, 6bitri 278 . . . 4 (∃𝑥 ∈ 𝐴 ∃𝑧 ∈ 𝐵 𝑦 ∈ 𝑧 ↔ ∃𝑧(∃𝑥 ∈ 𝐴 𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
8 eluni2 4874 . . . . 5 (𝑦 ∈ ∪ 𝐵 ↔ ∃𝑧 ∈ 𝐵 𝑦 ∈ 𝑧)
98rexbii 3113 . . . 4 (∃𝑥 ∈ 𝐴 𝑦 ∈ ∪ 𝐵 ↔ ∃𝑥 ∈ 𝐴 ∃𝑧 ∈ 𝐵 𝑦 ∈ 𝑧)
10 df-rex 3091 . . . . 5 (∃𝑧 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑦 ∈ 𝑧 ↔ ∃𝑧(𝑧 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ∧ 𝑦 ∈ 𝑧))
11 eliun 4958 . . . . . . 7 (𝑧 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ 𝐵)
1211anbi1i 636 . . . . . 6 ((𝑧 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ∧ 𝑦 ∈ 𝑧) ↔ (∃𝑥 ∈ 𝐴 𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
1312exbii 1881 . . . . 5 (∃𝑧(𝑧 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ∧ 𝑦 ∈ 𝑧) ↔ ∃𝑧(∃𝑥 ∈ 𝐴 𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
1410, 13bitri 278 . . . 4 (∃𝑧 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑦 ∈ 𝑧 ↔ ∃𝑧(∃𝑥 ∈ 𝐴 𝑧 ∈ 𝐵 ∧ 𝑦 ∈ 𝑧))
157, 9, 143bitr4i 306 . . 3 (∃𝑥 ∈ 𝐴 𝑦 ∈ ∪ 𝐵 ↔ ∃𝑧 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑦 ∈ 𝑧)
16 eliun 4958 . . 3 (𝑦 ∈ ∪ 𝑥 ∈ 𝐴 ∪ 𝐵 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ ∪ 𝐵)
17 eluni2 4874 . . 3 (𝑦 ∈ ∪ ∪ 𝑥 ∈ 𝐴 𝐵 ↔ ∃𝑧 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑦 ∈ 𝑧)
1815, 16, 173bitr4i 306 . 2 (𝑦 ∈ ∪ 𝑥 ∈ 𝐴 ∪ 𝐵 ↔ 𝑦 ∈ ∪ ∪ 𝑥 ∈ 𝐴 𝐵)
1918eqriv 2760 1 ∪ 𝑥 ∈ 𝐴 ∪ 𝐵 = ∪ ∪ 𝑥 ∈ 𝐴 𝐵
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147  ∃wrex 3090  ∪ cuni 4870  ∪ ciun 4954
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-11 2197  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-tru 1573  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-rex 3091  df-v 3456  df-uni 4871  df-iun 4956
This theorem is used by:  ituniiun  10524  tgidm  23325  txcmplem2  23988
  Copyright terms: Public domain W3C validator