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

Theorem iununi 5064
Description: A relationship involving union and indexed union. Exercise 25 of [Enderton] p. 33. (Contributed by NM, 25-Nov-2003.) (Proof shortened by Mario Carneiro, 17-Nov-2016.)
Assertion
Ref Expression
iununi ((𝐵 = ∅ → 𝐴 = ∅) ↔ (𝐴 ∪ ∪ 𝐵) = ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵

Proof of Theorem iununi
StepHypRef Expression
1 df-ne 2960 . . . . . . 7 (𝐵 ≠ ∅ ↔ ¬ 𝐵 = ∅)
2 iunconst 4966 . . . . . . 7 (𝐵 ≠ ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
31, 2sylbir 238 . . . . . 6 (¬ 𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
4 iun0 5025 . . . . . . 7 ∪ 𝑥 ∈ 𝐵 ∅ = ∅
5 id 23 . . . . . . . 8 (𝐴 = ∅ → 𝐴 = ∅)
65iuneq2d 4986 . . . . . . 7 (𝐴 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = ∪ 𝑥 ∈ 𝐵 ∅)
74, 6, 53eqtr4a 2824 . . . . . 6 (𝐴 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
83, 7ja 188 . . . . 5 ((𝐵 = ∅ → 𝐴 = ∅) → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
98eqcomd 2769 . . . 4 ((𝐵 = ∅ → 𝐴 = ∅) → 𝐴 = ∪ 𝑥 ∈ 𝐵 𝐴)
109uneq1d 4169 . . 3 ((𝐵 = ∅ → 𝐴 = ∅) → (𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥) = (∪ 𝑥 ∈ 𝐵 𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥))
11 uniiun 5022 . . . 4 ∪ 𝐵 = ∪ 𝑥 ∈ 𝐵 𝑥
1211uneq2i 4167 . . 3 (𝐴 ∪ ∪ 𝐵) = (𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥)
13 iunun 5058 . . 3 ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = (∪ 𝑥 ∈ 𝐵 𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥)
1410, 12, 133eqtr4g 2823 . 2 ((𝐵 = ∅ → 𝐴 = ∅) → (𝐴 ∪ ∪ 𝐵) = ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥))
15 unieq 4883 . . . . . . 7 (𝐵 = ∅ → ∪ 𝐵 = ∪ ∅)
16 uni0 4901 . . . . . . 7 ∪ ∅ = ∅
1715, 16eqtrdi 2814 . . . . . 6 (𝐵 = ∅ → ∪ 𝐵 = ∅)
1817uneq2d 4170 . . . . 5 (𝐵 = ∅ → (𝐴 ∪ ∪ 𝐵) = (𝐴 ∪ ∅))
19 un0 4347 . . . . 5 (𝐴 ∪ ∅) = 𝐴
2018, 19eqtrdi 2814 . . . 4 (𝐵 = ∅ → (𝐴 ∪ ∪ 𝐵) = 𝐴)
21 iuneq1 4973 . . . . 5 (𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = ∪ 𝑥 ∈ ∅ (𝐴 ∪ 𝑥))
22 0iun 5026 . . . . 5 ∪ 𝑥 ∈ ∅ (𝐴 ∪ 𝑥) = ∅
2321, 22eqtrdi 2814 . . . 4 (𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = ∅)
2420, 23eqeq12d 2779 . . 3 (𝐵 = ∅ → ((𝐴 ∪ ∪ 𝐵) = ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) ↔ 𝐴 = ∅))
2524biimpcd 252 . 2 ((𝐴 ∪ ∪ 𝐵) = ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) → (𝐵 = ∅ → 𝐴 = ∅))
2614, 25impbii 212 1 ((𝐵 = ∅ → 𝐴 = ∅) ↔ (𝐴 ∪ ∪ 𝐵) = ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   = wceq 1570   ≠ wne 2959   ∪ cun 4152  ∅c0 4281  ∪ cuni 4872  ∪ ciun 4956
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-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-ne 2960  df-ral 3081  df-rex 3091  df-v 3456  df-ss 3901  df-dif 4050  df-un 4154  df-nul 4282  df-uni 4873  df-iun 4958
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator