Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  xpinpreima2 Structured version   Visualization version   GIF version

Theorem xpinpreima2 31759
Description: Rewrite the cartesian product of two sets as the intersection of their preimage by 1st and 2nd, the projections on the first and second elements. (Contributed by Thierry Arnoux, 22-Sep-2017.)
Assertion
Ref Expression
xpinpreima2 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = (((1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵)))

Proof of Theorem xpinpreima2
Dummy variable 𝑟 is distinct from all other variables.
StepHypRef Expression
1 xp2 7841 . . . 4 (𝐴 × 𝐵) = {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)}
2 xpss 5596 . . . . . 6 (𝐸 × 𝐹) ⊆ (V × V)
3 rabss2 4007 . . . . . 6 ((𝐸 × 𝐹) ⊆ (V × V) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
42, 3mp1i 13 . . . . 5 ((𝐴𝐸𝐵𝐹) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
5 simprl 767 . . . . . . 7 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝑟 ∈ (V × V))
6 simpll 763 . . . . . . . . 9 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝐴𝐸)
7 simprrl 777 . . . . . . . . 9 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (1st𝑟) ∈ 𝐴)
86, 7sseldd 3918 . . . . . . . 8 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (1st𝑟) ∈ 𝐸)
9 simplr 765 . . . . . . . . 9 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝐵𝐹)
10 simprrr 778 . . . . . . . . 9 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (2nd𝑟) ∈ 𝐵)
119, 10sseldd 3918 . . . . . . . 8 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (2nd𝑟) ∈ 𝐹)
128, 11jca 511 . . . . . . 7 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → ((1st𝑟) ∈ 𝐸 ∧ (2nd𝑟) ∈ 𝐹))
13 elxp7 7839 . . . . . . 7 (𝑟 ∈ (𝐸 × 𝐹) ↔ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐸 ∧ (2nd𝑟) ∈ 𝐹)))
145, 12, 13sylanbrc 582 . . . . . 6 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝑟 ∈ (𝐸 × 𝐹))
1514rabss3d 30762 . . . . 5 ((𝐴𝐸𝐵𝐹) → {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
164, 15eqssd 3934 . . . 4 ((𝐴𝐸𝐵𝐹) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} = {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
171, 16eqtr4id 2798 . . 3 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
18 inrab 4237 . . 3 ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)}
1917, 18eqtr4di 2797 . 2 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}))
20 f1stres 7828 . . . . 5 (1st ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐸
21 ffn 6584 . . . . 5 ((1st ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐸 → (1st ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹))
22 fncnvima2 6920 . . . . 5 ((1st ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹) → ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴})
2320, 21, 22mp2b 10 . . . 4 ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴}
24 fvres 6775 . . . . . 6 (𝑟 ∈ (𝐸 × 𝐹) → ((1st ↾ (𝐸 × 𝐹))‘𝑟) = (1st𝑟))
2524eleq1d 2823 . . . . 5 (𝑟 ∈ (𝐸 × 𝐹) → (((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴 ↔ (1st𝑟) ∈ 𝐴))
2625rabbiia 3396 . . . 4 {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴} = {𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴}
2723, 26eqtri 2766 . . 3 ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴}
28 f2ndres 7829 . . . . 5 (2nd ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐹
29 ffn 6584 . . . . 5 ((2nd ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐹 → (2nd ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹))
30 fncnvima2 6920 . . . . 5 ((2nd ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹) → ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵})
3128, 29, 30mp2b 10 . . . 4 ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵}
32 fvres 6775 . . . . . 6 (𝑟 ∈ (𝐸 × 𝐹) → ((2nd ↾ (𝐸 × 𝐹))‘𝑟) = (2nd𝑟))
3332eleq1d 2823 . . . . 5 (𝑟 ∈ (𝐸 × 𝐹) → (((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵 ↔ (2nd𝑟) ∈ 𝐵))
3433rabbiia 3396 . . . 4 {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵} = {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}
3531, 34eqtri 2766 . . 3 ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}
3627, 35ineq12i 4141 . 2 (((1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵)) = ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵})
3719, 36eqtr4di 2797 1 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = (((1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  {crab 3067  Vcvv 3422  cin 3882  wss 3883   × cxp 5578  ccnv 5579  cres 5582  cima 5583   Fn wfn 6413  wf 6414  cfv 6418  1st c1st 7802  2nd c2nd 7803
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-sbc 3712  df-csb 3829  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-iun 4923  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-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fv 6426  df-1st 7804  df-2nd 7805
This theorem is referenced by:  cnre2csqima  31763  sxbrsigalem2  32153  sxbrsiga  32157
  Copyright terms: Public domain W3C validator