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

Theorem inuni 5310
Description: The intersection of a union ∪ 𝐴 with a class 𝐵 is equal to the union of the intersections of each element of 𝐴 with 𝐵. (Contributed by FL, 24-Mar-2007.) (Proof shortened by Wolf Lammen, 15-May-2025.)
Assertion
Ref Expression
inuni (∪ 𝐴 ∩ 𝐵) = ∪ {𝑥 ∣ ∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵)}
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦

Proof of Theorem inuni
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 ancom 466 . . . . 5 ((𝑧 ∈ 𝑥 ∧ ∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵)) ↔ (∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥))
2 r19.41v 3192 . . . . 5 (∃𝑦 ∈ 𝐴 (𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥) ↔ (∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥))
31, 2bitr4i 281 . . . 4 ((𝑧 ∈ 𝑥 ∧ ∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵)) ↔ ∃𝑦 ∈ 𝐴 (𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥))
43exbii 1880 . . 3 (∃𝑥(𝑧 ∈ 𝑥 ∧ ∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵)) ↔ ∃𝑥∃𝑦 ∈ 𝐴 (𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥))
5 eluniab 4880 . . 3 (𝑧 ∈ ∪ {𝑥 ∣ ∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵)} ↔ ∃𝑥(𝑧 ∈ 𝑥 ∧ ∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵)))
6 eluni2 4870 . . . . . 6 (𝑧 ∈ ∪ 𝐴 ↔ ∃𝑦 ∈ 𝐴 𝑧 ∈ 𝑦)
76anbi1i 636 . . . . 5 ((𝑧 ∈ ∪ 𝐴 ∧ 𝑧 ∈ 𝐵) ↔ (∃𝑦 ∈ 𝐴 𝑧 ∈ 𝑦 ∧ 𝑧 ∈ 𝐵))
8 elin 4093 . . . . 5 (𝑧 ∈ (∪ 𝐴 ∩ 𝐵) ↔ (𝑧 ∈ ∪ 𝐴 ∧ 𝑧 ∈ 𝐵))
9 r19.41v 3192 . . . . 5 (∃𝑦 ∈ 𝐴 (𝑧 ∈ 𝑦 ∧ 𝑧 ∈ 𝐵) ↔ (∃𝑦 ∈ 𝐴 𝑧 ∈ 𝑦 ∧ 𝑧 ∈ 𝐵))
107, 8, 93bitr4i 306 . . . 4 (𝑧 ∈ (∪ 𝐴 ∩ 𝐵) ↔ ∃𝑦 ∈ 𝐴 (𝑧 ∈ 𝑦 ∧ 𝑧 ∈ 𝐵))
11 vex 3454 . . . . . . . 8 𝑦 ∈ V
1211inex1 5276 . . . . . . 7 (𝑦 ∩ 𝐵) ∈ V
13 eleq2 2849 . . . . . . 7 (𝑥 = (𝑦 ∩ 𝐵) → (𝑧 ∈ 𝑥 ↔ 𝑧 ∈ (𝑦 ∩ 𝐵)))
1412, 13ceqsexv 3498 . . . . . 6 (∃𝑥(𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥) ↔ 𝑧 ∈ (𝑦 ∩ 𝐵))
15 elin 4093 . . . . . 6 (𝑧 ∈ (𝑦 ∩ 𝐵) ↔ (𝑧 ∈ 𝑦 ∧ 𝑧 ∈ 𝐵))
1614, 15bitri 278 . . . . 5 (∃𝑥(𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥) ↔ (𝑧 ∈ 𝑦 ∧ 𝑧 ∈ 𝐵))
1716rexbii 3109 . . . 4 (∃𝑦 ∈ 𝐴 ∃𝑥(𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥) ↔ ∃𝑦 ∈ 𝐴 (𝑧 ∈ 𝑦 ∧ 𝑧 ∈ 𝐵))
18 rexcom4 3289 . . . 4 (∃𝑦 ∈ 𝐴 ∃𝑥(𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥) ↔ ∃𝑥∃𝑦 ∈ 𝐴 (𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥))
1910, 17, 183bitr2i 302 . . 3 (𝑧 ∈ (∪ 𝐴 ∩ 𝐵) ↔ ∃𝑥∃𝑦 ∈ 𝐴 (𝑥 = (𝑦 ∩ 𝐵) ∧ 𝑧 ∈ 𝑥))
204, 5, 193bitr4ri 307 . 2 (𝑧 ∈ (∪ 𝐴 ∩ 𝐵) ↔ 𝑧 ∈ ∪ {𝑥 ∣ ∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵)})
2120eqriv 2757 1 (∪ 𝐴 ∩ 𝐵) = ∪ {𝑥 ∣ ∃𝑦 ∈ 𝐴 𝑥 = (𝑦 ∩ 𝐵)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2144  {cab 2738  ∃wrex 3086   ∩ cin 4089  ∪ cuni 4866
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-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-ex 1812  df-nf 1816  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-rex 3087  df-v 3452  df-in 4091  df-uni 4867
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator