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

Theorem xpiundi 5721
Description: Distributive law for Cartesian product over indexed union. (Contributed by Mario Carneiro, 27-Apr-2014.)
Assertion
Ref Expression
xpiundi (𝐶 × ∪ 𝑥 ∈ 𝐴 𝐵) = ∪ 𝑥 ∈ 𝐴 (𝐶 × 𝐵)
Distinct variable group:   𝑥,𝐶
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑥)

Proof of Theorem xpiundi
Dummy variables 𝑦 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 rexcom 3291 . . . 4 (∃𝑤 ∈ 𝐶 ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩ ↔ ∃𝑥 ∈ 𝐴 ∃𝑤 ∈ 𝐶 ∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩)
2 eliun 4954 . . . . . . . 8 (𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ↔ ∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵)
32anbi1i 636 . . . . . . 7 ((𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩) ↔ (∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
43exbii 1880 . . . . . 6 (∃𝑦(𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩) ↔ ∃𝑦(∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
5 df-rex 3087 . . . . . 6 (∃𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑧 = ⟨𝑤, 𝑦⟩ ↔ ∃𝑦(𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
6 df-rex 3087 . . . . . . . 8 (∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩ ↔ ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
76rexbii 3109 . . . . . . 7 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩ ↔ ∃𝑥 ∈ 𝐴 ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
8 rexcom4 3289 . . . . . . 7 (∃𝑥 ∈ 𝐴 ∃𝑦(𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩) ↔ ∃𝑦∃𝑥 ∈ 𝐴 (𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
9 r19.41v 3192 . . . . . . . 8 (∃𝑥 ∈ 𝐴 (𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩) ↔ (∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
109exbii 1880 . . . . . . 7 (∃𝑦∃𝑥 ∈ 𝐴 (𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩) ↔ ∃𝑦(∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
117, 8, 103bitri 300 . . . . . 6 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩ ↔ ∃𝑦(∃𝑥 ∈ 𝐴 𝑦 ∈ 𝐵 ∧ 𝑧 = ⟨𝑤, 𝑦⟩))
124, 5, 113bitr4i 306 . . . . 5 (∃𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑧 = ⟨𝑤, 𝑦⟩ ↔ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩)
1312rexbii 3109 . . . 4 (∃𝑤 ∈ 𝐶 ∃𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑧 = ⟨𝑤, 𝑦⟩ ↔ ∃𝑤 ∈ 𝐶 ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩)
14 elxp2 5674 . . . . 5 (𝑧 ∈ (𝐶 × 𝐵) ↔ ∃𝑤 ∈ 𝐶 ∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩)
1514rexbii 3109 . . . 4 (∃𝑥 ∈ 𝐴 𝑧 ∈ (𝐶 × 𝐵) ↔ ∃𝑥 ∈ 𝐴 ∃𝑤 ∈ 𝐶 ∃𝑦 ∈ 𝐵 𝑧 = ⟨𝑤, 𝑦⟩)
161, 13, 153bitr4i 306 . . 3 (∃𝑤 ∈ 𝐶 ∃𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑧 = ⟨𝑤, 𝑦⟩ ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ (𝐶 × 𝐵))
17 elxp2 5674 . . 3 (𝑧 ∈ (𝐶 × ∪ 𝑥 ∈ 𝐴 𝐵) ↔ ∃𝑤 ∈ 𝐶 ∃𝑦 ∈ ∪ 𝑥 ∈ 𝐴 𝐵𝑧 = ⟨𝑤, 𝑦⟩)
18 eliun 4954 . . 3 (𝑧 ∈ ∪ 𝑥 ∈ 𝐴 (𝐶 × 𝐵) ↔ ∃𝑥 ∈ 𝐴 𝑧 ∈ (𝐶 × 𝐵))
1916, 17, 183bitr4i 306 . 2 (𝑧 ∈ (𝐶 × ∪ 𝑥 ∈ 𝐴 𝐵) ↔ 𝑧 ∈ ∪ 𝑥 ∈ 𝐴 (𝐶 × 𝐵))
2019eqriv 2757 1 (𝐶 × ∪ 𝑥 ∈ 𝐴 𝐵) = ∪ 𝑥 ∈ 𝐴 (𝐶 × 𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2144  ∃wrex 3086  ⟨cop 4589  ∪ ciun 4950   × cxp 5648
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-11 2193  ax-ext 2732  ax-sep 5248  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-in 4091  df-un 4151  df-sn 4584  df-pr 4586  df-op 4590  df-iun 4952  df-opab 5167  df-xp 5656
This theorem is used by:  xpexgALT  7993  txbasval  23925  txcmplem2  23961  xkoinjcn  24006  cvmlift2lem12  36079
  Copyright terms: Public domain W3C validator