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

Theorem iununi 5058
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 2956 . . . . . . 7 (𝐵 ≠ ∅ ↔ ¬ 𝐵 = ∅)
2 iunconst 4960 . . . . . . 7 (𝐵 ≠ ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
31, 2sylbir 238 . . . . . 6 (¬ 𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
4 iun0 5019 . . . . . . 7 ∪ 𝑥 ∈ 𝐵 ∅ = ∅
5 id 23 . . . . . . . 8 (𝐴 = ∅ → 𝐴 = ∅)
65iuneq2d 4980 . . . . . . 7 (𝐴 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = ∪ 𝑥 ∈ 𝐵 ∅)
74, 6, 53eqtr4a 2821 . . . . . 6 (𝐴 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
83, 7ja 188 . . . . 5 ((𝐵 = ∅ → 𝐴 = ∅) → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
98eqcomd 2766 . . . 4 ((𝐵 = ∅ → 𝐴 = ∅) → 𝐴 = ∪ 𝑥 ∈ 𝐵 𝐴)
109uneq1d 4165 . . 3 ((𝐵 = ∅ → 𝐴 = ∅) → (𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥) = (∪ 𝑥 ∈ 𝐵 𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥))
11 uniiun 5016 . . . 4 ∪ 𝐵 = ∪ 𝑥 ∈ 𝐵 𝑥
1211uneq2i 4163 . . 3 (𝐴 ∪ ∪ 𝐵) = (𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥)
13 iunun 5052 . . 3 ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = (∪ 𝑥 ∈ 𝐵 𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥)
1410, 12, 133eqtr4g 2820 . 2 ((𝐵 = ∅ → 𝐴 = ∅) → (𝐴 ∪ ∪ 𝐵) = ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥))
15 unieq 4877 . . . . . . 7 (𝐵 = ∅ → ∪ 𝐵 = ∪ ∅)
16 uni0 4895 . . . . . . 7 ∪ ∅ = ∅
1715, 16eqtrdi 2811 . . . . . 6 (𝐵 = ∅ → ∪ 𝐵 = ∅)
1817uneq2d 4166 . . . . 5 (𝐵 = ∅ → (𝐴 ∪ ∪ 𝐵) = (𝐴 ∪ ∅))
19 un0 4343 . . . . 5 (𝐴 ∪ ∅) = 𝐴
2018, 19eqtrdi 2811 . . . 4 (𝐵 = ∅ → (𝐴 ∪ ∪ 𝐵) = 𝐴)
21 iuneq1 4967 . . . . 5 (𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = ∪ 𝑥 ∈ ∅ (𝐴 ∪ 𝑥))
22 0iun 5020 . . . . 5 ∪ 𝑥 ∈ ∅ (𝐴 ∪ 𝑥) = ∅
2321, 22eqtrdi 2811 . . . 4 (𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = ∅)
2420, 23eqeq12d 2776 . . 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 1569   ≠ wne 2955   ∪ cun 4148  ∅c0 4277  ∪ cuni 4866  ∪ ciun 4950
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rex 3087  df-v 3452  df-ss 3897  df-dif 4046  df-un 4150  df-nul 4278  df-uni 4867  df-iun 4952
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator