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

Theorem iununi 5072
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 2971 . . . . . . 7 (𝐵 ≠ ∅ ↔ ¬ 𝐵 = ∅)
2 iunconst 4974 . . . . . . 7 (𝐵 ≠ ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
31, 2sylbir 238 . . . . . 6 (¬ 𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
4 iun0 5033 . . . . . . 7 ∪ 𝑥 ∈ 𝐵 ∅ = ∅
5 id 23 . . . . . . . 8 (𝐴 = ∅ → 𝐴 = ∅)
65iuneq2d 4994 . . . . . . 7 (𝐴 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = ∪ 𝑥 ∈ 𝐵 ∅)
74, 6, 53eqtr4a 2835 . . . . . 6 (𝐴 = ∅ → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
83, 7ja 188 . . . . 5 ((𝐵 = ∅ → 𝐴 = ∅) → ∪ 𝑥 ∈ 𝐵 𝐴 = 𝐴)
98eqcomd 2780 . . . 4 ((𝐵 = ∅ → 𝐴 = ∅) → 𝐴 = ∪ 𝑥 ∈ 𝐵 𝐴)
109uneq1d 4176 . . 3 ((𝐵 = ∅ → 𝐴 = ∅) → (𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥) = (∪ 𝑥 ∈ 𝐵 𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥))
11 uniiun 5030 . . . 4 ∪ 𝐵 = ∪ 𝑥 ∈ 𝐵 𝑥
1211uneq2i 4174 . . 3 (𝐴 ∪ ∪ 𝐵) = (𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥)
13 iunun 5066 . . 3 ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = (∪ 𝑥 ∈ 𝐵 𝐴 ∪ ∪ 𝑥 ∈ 𝐵 𝑥)
1410, 12, 133eqtr4g 2834 . 2 ((𝐵 = ∅ → 𝐴 = ∅) → (𝐴 ∪ ∪ 𝐵) = ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥))
15 unieq 4891 . . . . . . 7 (𝐵 = ∅ → ∪ 𝐵 = ∪ ∅)
16 uni0 4909 . . . . . . 7 ∪ ∅ = ∅
1715, 16eqtrdi 2825 . . . . . 6 (𝐵 = ∅ → ∪ 𝐵 = ∅)
1817uneq2d 4177 . . . . 5 (𝐵 = ∅ → (𝐴 ∪ ∪ 𝐵) = (𝐴 ∪ ∅))
19 un0 4354 . . . . 5 (𝐴 ∪ ∅) = 𝐴
2018, 19eqtrdi 2825 . . . 4 (𝐵 = ∅ → (𝐴 ∪ ∪ 𝐵) = 𝐴)
21 iuneq1 4981 . . . . 5 (𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = ∪ 𝑥 ∈ ∅ (𝐴 ∪ 𝑥))
22 0iun 5034 . . . . 5 ∪ 𝑥 ∈ ∅ (𝐴 ∪ 𝑥) = ∅
2321, 22eqtrdi 2825 . . . 4 (𝐵 = ∅ → ∪ 𝑥 ∈ 𝐵 (𝐴 ∪ 𝑥) = ∅)
2420, 23eqeq12d 2790 . . 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 1572   ≠ wne 2970   ∪ cun 4159  ∅c0 4288  ∪ cuni 4880  ∪ ciun 4964
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1575  df-fal 1585  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-ne 2971  df-ral 3092  df-rex 3102  df-v 3463  df-ss 3908  df-dif 4057  df-un 4161  df-nul 4289  df-uni 4881  df-iun 4966
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator