Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-restuni Structured version   Visualization version   GIF version

Theorem bj-restuni 38110
Description: The union of an elementwise intersection by a set is equal to the intersection with that set of the union of the family. See also restuni 23485 and restuni2 23490. (Contributed by BJ, 27-Apr-2021.)
Assertion
Ref Expression
bj-restuni ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → ∪ (𝑋 ↾t 𝐴) = (∪ 𝑋 ∩ 𝐴))

Proof of Theorem bj-restuni
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eluni 4869 . . 3 (𝑥 ∈ ∪ (𝑋 ↾t 𝐴) ↔ ∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 ∈ (𝑋 ↾t 𝐴)))
2 elrest 17603 . . . . . 6 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (𝑦 ∈ (𝑋 ↾t 𝐴) ↔ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)))
32anbi2d 642 . . . . 5 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → ((𝑥 ∈ 𝑦 ∧ 𝑦 ∈ (𝑋 ↾t 𝐴)) ↔ (𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴))))
43exbidv 1953 . . . 4 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 ∈ (𝑋 ↾t 𝐴)) ↔ ∃𝑦(𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴))))
5 eluni 4869 . . . . . . . 8 (𝑥 ∈ ∪ 𝑋 ↔ ∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋))
65bicomi 227 . . . . . . 7 (∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ↔ 𝑥 ∈ ∪ 𝑋)
76anbi1i 636 . . . . . 6 ((∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 ∈ ∪ 𝑋 ∧ 𝑥 ∈ 𝐴))
87a1i 11 . . . . 5 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → ((∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 ∈ ∪ 𝑋 ∧ 𝑥 ∈ 𝐴)))
9 df-rex 3087 . . . . . . . . 9 (∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴) ↔ ∃𝑧(𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴)))
109anbi2i 635 . . . . . . . 8 ((𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ 𝑦 ∧ ∃𝑧(𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
11 19.42v 1985 . . . . . . . . 9 (∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ (𝑥 ∈ 𝑦 ∧ ∃𝑧(𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
1211bicomi 227 . . . . . . . 8 ((𝑥 ∈ 𝑦 ∧ ∃𝑧(𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
1310, 12bitri 278 . . . . . . 7 ((𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ ∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
1413exbii 1880 . . . . . 6 (∃𝑦(𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ ∃𝑦∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
15 excom 2198 . . . . . 6 (∃𝑦∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ∃𝑧∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
16 an12 658 . . . . . . . . . 10 ((𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ (𝑧 ∈ 𝑋 ∧ (𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
1716exbii 1880 . . . . . . . . 9 (∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ∃𝑦(𝑧 ∈ 𝑋 ∧ (𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
18 19.42v 1985 . . . . . . . . 9 (∃𝑦(𝑧 ∈ 𝑋 ∧ (𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ (𝑧 ∈ 𝑋 ∧ ∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
19 eqimss 3966 . . . . . . . . . . . . . . 15 (𝑦 = (𝑧 ∩ 𝐴) → 𝑦 ⊆ (𝑧 ∩ 𝐴))
2019sseld 3907 . . . . . . . . . . . . . 14 (𝑦 = (𝑧 ∩ 𝐴) → (𝑥 ∈ 𝑦 → 𝑥 ∈ (𝑧 ∩ 𝐴)))
2120imdistanri 580 . . . . . . . . . . . . 13 ((𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)) → (𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)))
22 eqimss2 3967 . . . . . . . . . . . . . . 15 (𝑦 = (𝑧 ∩ 𝐴) → (𝑧 ∩ 𝐴) ⊆ 𝑦)
2322sseld 3907 . . . . . . . . . . . . . 14 (𝑦 = (𝑧 ∩ 𝐴) → (𝑥 ∈ (𝑧 ∩ 𝐴) → 𝑥 ∈ 𝑦))
2423imdistanri 580 . . . . . . . . . . . . 13 ((𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)) → (𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)))
2521, 24impbii 212 . . . . . . . . . . . 12 ((𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)))
2625exbii 1880 . . . . . . . . . . 11 (∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)) ↔ ∃𝑦(𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)))
27 19.42v 1985 . . . . . . . . . . 11 (∃𝑦(𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ (𝑧 ∩ 𝐴) ∧ ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)))
28 vex 3454 . . . . . . . . . . . . . . . 16 𝑧 ∈ V
2928inex1 5276 . . . . . . . . . . . . . . 15 (𝑧 ∩ 𝐴) ∈ V
3029isseti 3468 . . . . . . . . . . . . . 14 ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)
3130biantru 539 . . . . . . . . . . . . 13 (𝑥 ∈ (𝑧 ∩ 𝐴) ↔ (𝑥 ∈ (𝑧 ∩ 𝐴) ∧ ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)))
3231bicomi 227 . . . . . . . . . . . 12 ((𝑥 ∈ (𝑧 ∩ 𝐴) ∧ ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)) ↔ 𝑥 ∈ (𝑧 ∩ 𝐴))
33 elin 4093 . . . . . . . . . . . 12 (𝑥 ∈ (𝑧 ∩ 𝐴) ↔ (𝑥 ∈ 𝑧 ∧ 𝑥 ∈ 𝐴))
3432, 33bitri 278 . . . . . . . . . . 11 ((𝑥 ∈ (𝑧 ∩ 𝐴) ∧ ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ 𝑧 ∧ 𝑥 ∈ 𝐴))
3526, 27, 343bitri 300 . . . . . . . . . 10 (∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ 𝑧 ∧ 𝑥 ∈ 𝐴))
3635bianassc 656 . . . . . . . . 9 ((𝑧 ∈ 𝑋 ∧ ∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ((𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
3717, 18, 363bitri 300 . . . . . . . 8 (∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ((𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
3837exbii 1880 . . . . . . 7 (∃𝑧∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ∃𝑧((𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
39 19.41v 1981 . . . . . . 7 (∃𝑧((𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴) ↔ (∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
4038, 39bitri 278 . . . . . 6 (∃𝑧∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ (∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
4114, 15, 403bitri 300 . . . . 5 (∃𝑦(𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ (∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
42 elin 4093 . . . . 5 (𝑥 ∈ (∪ 𝑋 ∩ 𝐴) ↔ (𝑥 ∈ ∪ 𝑋 ∧ 𝑥 ∈ 𝐴))
438, 41, 423bitr4g 317 . . . 4 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (∃𝑦(𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ 𝑥 ∈ (∪ 𝑋 ∩ 𝐴)))
444, 43bitrd 282 . . 3 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 ∈ (𝑋 ↾t 𝐴)) ↔ 𝑥 ∈ (∪ 𝑋 ∩ 𝐴)))
451, 44bitrid 286 . 2 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (𝑥 ∈ ∪ (𝑋 ↾t 𝐴) ↔ 𝑥 ∈ (∪ 𝑋 ∩ 𝐴)))
4645eqrdv 2758 1 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → ∪ (𝑋 ↾t 𝐴) = (∪ 𝑋 ∩ 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2144  ∃wrex 3086   ∩ cin 4089  ∪ cuni 4866  (class class class)co 7420   ↾t crest 17596
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-rep 5231  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-rest 17598
This theorem is used by:  bj-restuni2  38111
  Copyright terms: Public domain W3C validator