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 31902
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 7900 . . . 4 (𝐴 × 𝐵) = {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)}
2 xpss 5616 . . . . . 6 (𝐸 × 𝐹) ⊆ (V × V)
3 rabss2 4017 . . . . . 6 ((𝐸 × 𝐹) ⊆ (V × V) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
42, 3mp1i 13 . . . . 5 ((𝐴𝐸𝐵𝐹) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
5 simprl 769 . . . . . . 7 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝑟 ∈ (V × V))
6 simpll 765 . . . . . . . . 9 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝐴𝐸)
7 simprrl 779 . . . . . . . . 9 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (1st𝑟) ∈ 𝐴)
86, 7sseldd 3927 . . . . . . . 8 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (1st𝑟) ∈ 𝐸)
9 simplr 767 . . . . . . . . 9 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝐵𝐹)
10 simprrr 780 . . . . . . . . 9 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (2nd𝑟) ∈ 𝐵)
119, 10sseldd 3927 . . . . . . . 8 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (2nd𝑟) ∈ 𝐹)
128, 11jca 513 . . . . . . 7 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → ((1st𝑟) ∈ 𝐸 ∧ (2nd𝑟) ∈ 𝐹))
13 elxp7 7898 . . . . . . 7 (𝑟 ∈ (𝐸 × 𝐹) ↔ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐸 ∧ (2nd𝑟) ∈ 𝐹)))
145, 12, 13sylanbrc 584 . . . . . 6 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝑟 ∈ (𝐸 × 𝐹))
1514rabss3d 30906 . . . . 5 ((𝐴𝐸𝐵𝐹) → {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
164, 15eqssd 3943 . . . 4 ((𝐴𝐸𝐵𝐹) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} = {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
171, 16eqtr4id 2795 . . 3 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
18 inrab 4246 . . 3 ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)}
1917, 18eqtr4di 2794 . 2 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}))
20 f1stres 7887 . . . . 5 (1st ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐸
21 ffn 6630 . . . . 5 ((1st ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐸 → (1st ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹))
22 fncnvima2 6970 . . . . 5 ((1st ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹) → ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴})
2320, 21, 22mp2b 10 . . . 4 ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴}
24 fvres 6823 . . . . . 6 (𝑟 ∈ (𝐸 × 𝐹) → ((1st ↾ (𝐸 × 𝐹))‘𝑟) = (1st𝑟))
2524eleq1d 2821 . . . . 5 (𝑟 ∈ (𝐸 × 𝐹) → (((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴 ↔ (1st𝑟) ∈ 𝐴))
2625rabbiia 3414 . . . 4 {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴} = {𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴}
2723, 26eqtri 2764 . . 3 ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴}
28 f2ndres 7888 . . . . 5 (2nd ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐹
29 ffn 6630 . . . . 5 ((2nd ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐹 → (2nd ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹))
30 fncnvima2 6970 . . . . 5 ((2nd ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹) → ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵})
3128, 29, 30mp2b 10 . . . 4 ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵}
32 fvres 6823 . . . . . 6 (𝑟 ∈ (𝐸 × 𝐹) → ((2nd ↾ (𝐸 × 𝐹))‘𝑟) = (2nd𝑟))
3332eleq1d 2821 . . . . 5 (𝑟 ∈ (𝐸 × 𝐹) → (((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵 ↔ (2nd𝑟) ∈ 𝐵))
3433rabbiia 3414 . . . 4 {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵} = {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}
3531, 34eqtri 2764 . . 3 ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}
3627, 35ineq12i 4150 . 2 (((1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵)) = ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵})
3719, 36eqtr4di 2794 1 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = (((1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397   = wceq 1539  wcel 2104  {crab 3284  Vcvv 3437  cin 3891  wss 3892   × cxp 5598  ccnv 5599  cres 5602  cima 5603   Fn wfn 6453  wf 6454  cfv 6458  1st c1st 7861  2nd c2nd 7862
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-11 2152  ax-12 2169  ax-ext 2707  ax-sep 5232  ax-nul 5239  ax-pr 5361  ax-un 7620
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2887  df-ne 2942  df-ral 3063  df-rex 3072  df-rab 3287  df-v 3439  df-sbc 3722  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-sn 4566  df-pr 4568  df-op 4572  df-uni 4845  df-iun 4933  df-br 5082  df-opab 5144  df-mpt 5165  df-id 5500  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-ima 5613  df-iota 6410  df-fun 6460  df-fn 6461  df-f 6462  df-fv 6466  df-1st 7863  df-2nd 7864
This theorem is referenced by:  cnre2csqima  31906  sxbrsigalem2  32298  sxbrsiga  32302
  Copyright terms: Public domain W3C validator