Users' Mathboxes Mathbox for Peter Mazsa < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  inxpxrn Structured version   Visualization version   GIF version

Theorem inxpxrn 36448
Description: Two ways to express the intersection of a range Cartesian product with a Cartesian product. (Contributed by Peter Mazsa, 10-Apr-2020.)
Assertion
Ref Expression
inxpxrn ((𝑅 ∩ (𝐴 × 𝐵)) ⋉ (𝑆 ∩ (𝐴 × 𝐶))) = ((𝑅𝑆) ∩ (𝐴 × (𝐵 × 𝐶)))

Proof of Theorem inxpxrn
Dummy variables 𝑢 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 xrnrel 36430 . 2 Rel ((𝑅 ∩ (𝐴 × 𝐵)) ⋉ (𝑆 ∩ (𝐴 × 𝐶)))
2 relinxp 5713 . 2 Rel ((𝑅𝑆) ∩ (𝐴 × (𝐵 × 𝐶)))
3 brxrn2 36432 . . . . . 6 (𝑢 ∈ V → (𝑢(𝑅𝑆)𝑥 ↔ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧)))
43elv 3428 . . . . 5 (𝑢(𝑅𝑆)𝑥 ↔ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))
54anbi2i 622 . . . 4 ((𝑢𝐴𝑢(𝑅𝑆)𝑥) ↔ (𝑢𝐴 ∧ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧)))
65anbi2i 622 . . 3 ((𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴𝑢(𝑅𝑆)𝑥)) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴 ∧ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))))
7 xrninxp2 36446 . . . 4 ((𝑅𝑆) ∩ (𝐴 × (𝐵 × 𝐶))) = {⟨𝑢, 𝑥⟩ ∣ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴𝑢(𝑅𝑆)𝑥))}
87brabidgaw 36422 . . 3 (𝑢((𝑅𝑆) ∩ (𝐴 × (𝐵 × 𝐶)))𝑥 ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴𝑢(𝑅𝑆)𝑥)))
9 brxrn2 36432 . . . . 5 (𝑢 ∈ V → (𝑢((𝑅 ∩ (𝐴 × 𝐵)) ⋉ (𝑆 ∩ (𝐴 × 𝐶)))𝑥 ↔ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)))
109elv 3428 . . . 4 (𝑢((𝑅 ∩ (𝐴 × 𝐵)) ⋉ (𝑆 ∩ (𝐴 × 𝐶)))𝑥 ↔ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧))
11 3anass 1093 . . . . 5 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)))
12112exbii 1852 . . . 4 (∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧) ↔ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)))
13 brinxp2 5655 . . . . . . . . . . . 12 (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦 ↔ ((𝑢𝐴𝑦𝐵) ∧ 𝑢𝑅𝑦))
14 brinxp2 5655 . . . . . . . . . . . 12 (𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧 ↔ ((𝑢𝐴𝑧𝐶) ∧ 𝑢𝑆𝑧))
1513, 14anbi12i 626 . . . . . . . . . . 11 ((𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧) ↔ (((𝑢𝐴𝑦𝐵) ∧ 𝑢𝑅𝑦) ∧ ((𝑢𝐴𝑧𝐶) ∧ 𝑢𝑆𝑧)))
16 anan 36306 . . . . . . . . . . 11 ((((𝑢𝐴𝑦𝐵) ∧ 𝑢𝑅𝑦) ∧ ((𝑢𝐴𝑧𝐶) ∧ 𝑢𝑆𝑧)) ↔ ((𝑦𝐵𝑧𝐶) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))))
1715, 16bitri 274 . . . . . . . . . 10 ((𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧) ↔ ((𝑦𝐵𝑧𝐶) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))))
1817anbi2i 622 . . . . . . . . 9 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧)))))
19 anass 468 . . . . . . . . 9 (((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧𝐶)) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧)))))
20 eqelb 36309 . . . . . . . . . . 11 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑥 ∈ (𝐵 × 𝐶)) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ ⟨𝑦, 𝑧⟩ ∈ (𝐵 × 𝐶)))
21 opelxp 5616 . . . . . . . . . . . 12 (⟨𝑦, 𝑧⟩ ∈ (𝐵 × 𝐶) ↔ (𝑦𝐵𝑧𝐶))
2221anbi2i 622 . . . . . . . . . . 11 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ ⟨𝑦, 𝑧⟩ ∈ (𝐵 × 𝐶)) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧𝐶)))
2320, 22bitr2i 275 . . . . . . . . . 10 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧𝐶)) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑥 ∈ (𝐵 × 𝐶)))
2423anbi1i 623 . . . . . . . . 9 (((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧𝐶)) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))) ↔ ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑥 ∈ (𝐵 × 𝐶)) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))))
2518, 19, 243bitr2i 298 . . . . . . . 8 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)) ↔ ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑥 ∈ (𝐵 × 𝐶)) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))))
26 ancom 460 . . . . . . . . 9 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑥 ∈ (𝐵 × 𝐶)) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ 𝑥 = ⟨𝑦, 𝑧⟩))
2726anbi1i 623 . . . . . . . 8 (((𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑥 ∈ (𝐵 × 𝐶)) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))) ↔ ((𝑥 ∈ (𝐵 × 𝐶) ∧ 𝑥 = ⟨𝑦, 𝑧⟩) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))))
28 anass 468 . . . . . . . 8 (((𝑥 ∈ (𝐵 × 𝐶) ∧ 𝑥 = ⟨𝑦, 𝑧⟩) ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧)))))
2925, 27, 283bitri 296 . . . . . . 7 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧)))))
30 an12 641 . . . . . . . . 9 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))) ↔ (𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))))
31 3anass 1093 . . . . . . . . . 10 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢𝑅𝑦𝑢𝑆𝑧)))
3231anbi2i 622 . . . . . . . . 9 ((𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧)) ↔ (𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))))
3330, 32bitr4i 277 . . . . . . . 8 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧))) ↔ (𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧)))
3433anbi2i 622 . . . . . . 7 ((𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢𝐴 ∧ (𝑢𝑅𝑦𝑢𝑆𝑧)))) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))))
3529, 34bitri 274 . . . . . 6 ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))))
36352exbii 1852 . . . . 5 (∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)) ↔ ∃𝑦𝑧(𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))))
37 19.42vv 1962 . . . . 5 (∃𝑦𝑧(𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ ∃𝑦𝑧(𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))))
38 19.42vv 1962 . . . . . 6 (∃𝑦𝑧(𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧)) ↔ (𝑢𝐴 ∧ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧)))
3938anbi2i 622 . . . . 5 ((𝑥 ∈ (𝐵 × 𝐶) ∧ ∃𝑦𝑧(𝑢𝐴 ∧ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴 ∧ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))))
4036, 37, 393bitri 296 . . . 4 (∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑢(𝑅 ∩ (𝐴 × 𝐵))𝑦𝑢(𝑆 ∩ (𝐴 × 𝐶))𝑧)) ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴 ∧ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))))
4110, 12, 403bitri 296 . . 3 (𝑢((𝑅 ∩ (𝐴 × 𝐵)) ⋉ (𝑆 ∩ (𝐴 × 𝐶)))𝑥 ↔ (𝑥 ∈ (𝐵 × 𝐶) ∧ (𝑢𝐴 ∧ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ 𝑢𝑅𝑦𝑢𝑆𝑧))))
426, 8, 413bitr4ri 303 . 2 (𝑢((𝑅 ∩ (𝐴 × 𝐵)) ⋉ (𝑆 ∩ (𝐴 × 𝐶)))𝑥𝑢((𝑅𝑆) ∩ (𝐴 × (𝐵 × 𝐶)))𝑥)
431, 2, 42eqbrriv 5690 1 ((𝑅 ∩ (𝐴 × 𝐵)) ⋉ (𝑆 ∩ (𝐴 × 𝐶))) = ((𝑅𝑆) ∩ (𝐴 × (𝐵 × 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  Vcvv 3422  cin 3882  cop 4564   class class class wbr 5070   × cxp 5578  cxrn 36259
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fo 6424  df-fv 6426  df-1st 7804  df-2nd 7805  df-xrn 36428
This theorem is referenced by:  xrnres4  36458  xrnresex  36459
  Copyright terms: Public domain W3C validator