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

Theorem iununi 4984
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 2988 . . . . . . 7 (𝐵 ≠ ∅ ↔ ¬ 𝐵 = ∅)
2 iunconst 4890 . . . . . . 7 (𝐵 ≠ ∅ → 𝑥𝐵 𝐴 = 𝐴)
31, 2sylbir 238 . . . . . 6 𝐵 = ∅ → 𝑥𝐵 𝐴 = 𝐴)
4 iun0 4948 . . . . . . 7 𝑥𝐵 ∅ = ∅
5 id 22 . . . . . . . 8 (𝐴 = ∅ → 𝐴 = ∅)
65iuneq2d 4910 . . . . . . 7 (𝐴 = ∅ → 𝑥𝐵 𝐴 = 𝑥𝐵 ∅)
74, 6, 53eqtr4a 2859 . . . . . 6 (𝐴 = ∅ → 𝑥𝐵 𝐴 = 𝐴)
83, 7ja 189 . . . . 5 ((𝐵 = ∅ → 𝐴 = ∅) → 𝑥𝐵 𝐴 = 𝐴)
98eqcomd 2804 . . . 4 ((𝐵 = ∅ → 𝐴 = ∅) → 𝐴 = 𝑥𝐵 𝐴)
109uneq1d 4089 . . 3 ((𝐵 = ∅ → 𝐴 = ∅) → (𝐴 𝑥𝐵 𝑥) = ( 𝑥𝐵 𝐴 𝑥𝐵 𝑥))
11 uniiun 4945 . . . 4 𝐵 = 𝑥𝐵 𝑥
1211uneq2i 4087 . . 3 (𝐴 𝐵) = (𝐴 𝑥𝐵 𝑥)
13 iunun 4978 . . 3 𝑥𝐵 (𝐴𝑥) = ( 𝑥𝐵 𝐴 𝑥𝐵 𝑥)
1410, 12, 133eqtr4g 2858 . 2 ((𝐵 = ∅ → 𝐴 = ∅) → (𝐴 𝐵) = 𝑥𝐵 (𝐴𝑥))
15 unieq 4811 . . . . . . 7 (𝐵 = ∅ → 𝐵 = ∅)
16 uni0 4828 . . . . . . 7 ∅ = ∅
1715, 16eqtrdi 2849 . . . . . 6 (𝐵 = ∅ → 𝐵 = ∅)
1817uneq2d 4090 . . . . 5 (𝐵 = ∅ → (𝐴 𝐵) = (𝐴 ∪ ∅))
19 un0 4298 . . . . 5 (𝐴 ∪ ∅) = 𝐴
2018, 19eqtrdi 2849 . . . 4 (𝐵 = ∅ → (𝐴 𝐵) = 𝐴)
21 iuneq1 4897 . . . . 5 (𝐵 = ∅ → 𝑥𝐵 (𝐴𝑥) = 𝑥 ∈ ∅ (𝐴𝑥))
22 0iun 4949 . . . . 5 𝑥 ∈ ∅ (𝐴𝑥) = ∅
2321, 22eqtrdi 2849 . . . 4 (𝐵 = ∅ → 𝑥𝐵 (𝐴𝑥) = ∅)
2420, 23eqeq12d 2814 . . 3 (𝐵 = ∅ → ((𝐴 𝐵) = 𝑥𝐵 (𝐴𝑥) ↔ 𝐴 = ∅))
2524biimpcd 252 . 2 ((𝐴 𝐵) = 𝑥𝐵 (𝐴𝑥) → (𝐵 = ∅ → 𝐴 = ∅))
2614, 25impbii 212 1 ((𝐵 = ∅ → 𝐴 = ∅) ↔ (𝐴 𝐵) = 𝑥𝐵 (𝐴𝑥))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209   = wceq 1538  wne 2987  cun 3879  c0 4243   cuni 4800   ciun 4881
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-sn 4526  df-uni 4801  df-iun 4883
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator