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 38314
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 23580 and restuni2 23585. (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 4878 . . 3 (𝑥 ∈ ∪ (𝑋 ↾t 𝐴) ↔ ∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 ∈ (𝑋 ↾t 𝐴)))
2 elrest 17668 . . . . . 6 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (𝑦 ∈ (𝑋 ↾t 𝐴) ↔ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)))
32anbi2d 642 . . . . 5 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → ((𝑥 ∈ 𝑦 ∧ 𝑦 ∈ (𝑋 ↾t 𝐴)) ↔ (𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴))))
43exbidv 1958 . . . 4 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 ∈ (𝑋 ↾t 𝐴)) ↔ ∃𝑦(𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴))))
5 eluni 4878 . . . . . . . 8 (𝑥 ∈ ∪ 𝑋 ↔ ∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋))
65bicomi 227 . . . . . . 7 (∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ↔ 𝑥 ∈ ∪ 𝑋)
76anbi1i 636 . . . . . 6 ((∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 ∈ ∪ 𝑋 ∧ 𝑥 ∈ 𝐴))
87a1i 11 . . . . 5 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → ((∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴) ↔ (𝑥 ∈ ∪ 𝑋 ∧ 𝑥 ∈ 𝐴)))
9 df-rex 3097 . . . . . . . . 9 (∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴) ↔ ∃𝑧(𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴)))
109anbi2i 635 . . . . . . . 8 ((𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ 𝑦 ∧ ∃𝑧(𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
11 19.42v 1990 . . . . . . . . 9 (∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ (𝑥 ∈ 𝑦 ∧ ∃𝑧(𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
1211bicomi 227 . . . . . . . 8 ((𝑥 ∈ 𝑦 ∧ ∃𝑧(𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
1310, 12bitri 278 . . . . . . 7 ((𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ ∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
1413exbii 1883 . . . . . 6 (∃𝑦(𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ ∃𝑦∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
15 excom 2206 . . . . . 6 (∃𝑦∃𝑧(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ∃𝑧∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
16 an12 658 . . . . . . . . . 10 ((𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ (𝑧 ∈ 𝑋 ∧ (𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
1716exbii 1883 . . . . . . . . 9 (∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ∃𝑦(𝑧 ∈ 𝑋 ∧ (𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
18 19.42v 1990 . . . . . . . . 9 (∃𝑦(𝑧 ∈ 𝑋 ∧ (𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ (𝑧 ∈ 𝑋 ∧ ∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))))
19 eqimss 3973 . . . . . . . . . . . . . . 15 (𝑦 = (𝑧 ∩ 𝐴) → 𝑦 ⊆ (𝑧 ∩ 𝐴))
2019sseld 3914 . . . . . . . . . . . . . 14 (𝑦 = (𝑧 ∩ 𝐴) → (𝑥 ∈ 𝑦 → 𝑥 ∈ (𝑧 ∩ 𝐴)))
2120imdistanri 580 . . . . . . . . . . . . 13 ((𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)) → (𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)))
22 eqimss2 3974 . . . . . . . . . . . . . . 15 (𝑦 = (𝑧 ∩ 𝐴) → (𝑧 ∩ 𝐴) ⊆ 𝑦)
2322sseld 3914 . . . . . . . . . . . . . 14 (𝑦 = (𝑧 ∩ 𝐴) → (𝑥 ∈ (𝑧 ∩ 𝐴) → 𝑥 ∈ 𝑦))
2423imdistanri 580 . . . . . . . . . . . . 13 ((𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)) → (𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)))
2521, 24impbii 212 . . . . . . . . . . . 12 ((𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)))
2625exbii 1883 . . . . . . . . . . 11 (∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)) ↔ ∃𝑦(𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)))
27 19.42v 1990 . . . . . . . . . . 11 (∃𝑦(𝑥 ∈ (𝑧 ∩ 𝐴) ∧ 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ (𝑧 ∩ 𝐴) ∧ ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)))
28 vex 3460 . . . . . . . . . . . . . . . 16 𝑧 ∈ V
2928inex1 5287 . . . . . . . . . . . . . . 15 (𝑧 ∩ 𝐴) ∈ V
3029isseti 3474 . . . . . . . . . . . . . 14 ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)
3130biantru 539 . . . . . . . . . . . . 13 (𝑥 ∈ (𝑧 ∩ 𝐴) ↔ (𝑥 ∈ (𝑧 ∩ 𝐴) ∧ ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)))
3231bicomi 227 . . . . . . . . . . . 12 ((𝑥 ∈ (𝑧 ∩ 𝐴) ∧ ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)) ↔ 𝑥 ∈ (𝑧 ∩ 𝐴))
33 elin 4098 . . . . . . . . . . . 12 (𝑥 ∈ (𝑧 ∩ 𝐴) ↔ (𝑥 ∈ 𝑧 ∧ 𝑥 ∈ 𝐴))
3432, 33bitri 278 . . . . . . . . . . 11 ((𝑥 ∈ (𝑧 ∩ 𝐴) ∧ ∃𝑦 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ 𝑧 ∧ 𝑥 ∈ 𝐴))
3526, 27, 343bitri 300 . . . . . . . . . 10 (∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴)) ↔ (𝑥 ∈ 𝑧 ∧ 𝑥 ∈ 𝐴))
3635bianassc 656 . . . . . . . . 9 ((𝑧 ∈ 𝑋 ∧ ∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ((𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
3717, 18, 363bitri 300 . . . . . . . 8 (∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ((𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
3837exbii 1883 . . . . . . 7 (∃𝑧∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ ∃𝑧((𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
39 19.41v 1986 . . . . . . 7 (∃𝑧((𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴) ↔ (∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
4038, 39bitri 278 . . . . . 6 (∃𝑧∃𝑦(𝑥 ∈ 𝑦 ∧ (𝑧 ∈ 𝑋 ∧ 𝑦 = (𝑧 ∩ 𝐴))) ↔ (∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
4114, 15, 403bitri 300 . . . . 5 (∃𝑦(𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ (∃𝑧(𝑥 ∈ 𝑧 ∧ 𝑧 ∈ 𝑋) ∧ 𝑥 ∈ 𝐴))
42 elin 4098 . . . . 5 (𝑥 ∈ (∪ 𝑋 ∩ 𝐴) ↔ (𝑥 ∈ ∪ 𝑋 ∧ 𝑥 ∈ 𝐴))
438, 41, 423bitr4g 317 . . . 4 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (∃𝑦(𝑥 ∈ 𝑦 ∧ ∃𝑧 ∈ 𝑋 𝑦 = (𝑧 ∩ 𝐴)) ↔ 𝑥 ∈ (∪ 𝑋 ∩ 𝐴)))
444, 43bitrd 282 . . 3 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (∃𝑦(𝑥 ∈ 𝑦 ∧ 𝑦 ∈ (𝑋 ↾t 𝐴)) ↔ 𝑥 ∈ (∪ 𝑋 ∩ 𝐴)))
451, 44bitrid 286 . 2 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → (𝑥 ∈ ∪ (𝑋 ↾t 𝐴) ↔ 𝑥 ∈ (∪ 𝑋 ∩ 𝐴)))
4645eqrdv 2767 1 ((𝑋 ∈ 𝑉 ∧ 𝐴 ∈ 𝑊) → ∪ (𝑋 ↾t 𝐴) = (∪ 𝑋 ∩ 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572  ∃wex 1814   ∈ wcel 2151  ∃wrex 3096   ∩ cin 4094  ∪ cuni 4875  (class class class)co 7462   ↾t crest 17661
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-rep 5241  ax-sep 5258  ax-nul 5269  ax-pr 5401  ax-un 7794
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-ov 7465  df-oprab 7466  df-mpo 7467  df-rest 17663
This theorem is used by:  bj-restuni2  38315
  Copyright terms: Public domain W3C validator