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 34741
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 8091 . . . 4 (𝐴 × 𝐵) = {𝑟 ∈ (V × V) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)}
2 xpss 5682 . . . . . 6 (𝐸 × 𝐹) ⊆ (V × V)
3 rabss2 4012 . . . . . 6 ((𝐸 × 𝐹) ⊆ (V × V) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (V × V) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)})
42, 3mp1i 14 . . . . 5 ((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (V × V) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)})
5 simprl 783 . . . . . . 7 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → 𝑟 ∈ (V × V))
6 simpll 779 . . . . . . . . 9 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → 𝐴 ⊆ 𝐸)
7 simprrl 793 . . . . . . . . 9 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → (1st ‘𝑟) ∈ 𝐴)
86, 7sseldd 3921 . . . . . . . 8 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → (1st ‘𝑟) ∈ 𝐸)
9 simplr 781 . . . . . . . . 9 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → 𝐵 ⊆ 𝐹)
10 simprrr 794 . . . . . . . . 9 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → (2nd ‘𝑟) ∈ 𝐵)
119, 10sseldd 3921 . . . . . . . 8 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → (2nd ‘𝑟) ∈ 𝐹)
128, 11jca 521 . . . . . . 7 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → ((1st ‘𝑟) ∈ 𝐸 ∧ (2nd ‘𝑟) ∈ 𝐹))
13 elxp7 8089 . . . . . . 7 (𝑟 ∈ (𝐸 × 𝐹) ↔ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐸 ∧ (2nd ‘𝑟) ∈ 𝐹)))
145, 12, 13sylanbrc 595 . . . . . 6 (((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵))) → 𝑟 ∈ (𝐸 × 𝐹))
1514rabss3d 4016 . . . . 5 ((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) → {𝑟 ∈ (V × V) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)})
164, 15eqssd 3937 . . . 4 ((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)} = {𝑟 ∈ (V × V) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)})
171, 16eqtr4id 2828 . . 3 ((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) → (𝐴 × 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)})
18 inrab 4271 . . 3 ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st ‘𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd ‘𝑟) ∈ 𝐵}) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ‘𝑟) ∈ 𝐴 ∧ (2nd ‘𝑟) ∈ 𝐵)}
1917, 18eqtr4di 2827 . 2 ((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) → (𝐴 × 𝐵) = ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st ‘𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd ‘𝑟) ∈ 𝐵}))
20 f1stres 8078 . . . . 5 (1st ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐸
21 ffn 6757 . . . . 5 ((1st ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐸 → (1st ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹))
22 fncnvima2 7110 . . . . 5 ((1st ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹) → (◡(1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴})
2320, 21, 22mp2b 10 . . . 4 (◡(1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴}
24 fvres 6953 . . . . . 6 (𝑟 ∈ (𝐸 × 𝐹) → ((1st ↾ (𝐸 × 𝐹))‘𝑟) = (1st ‘𝑟))
2524eleq1d 2860 . . . . 5 (𝑟 ∈ (𝐸 × 𝐹) → (((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴 ↔ (1st ‘𝑟) ∈ 𝐴))
2625rabbiia 3427 . . . 4 {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴} = {𝑟 ∈ (𝐸 × 𝐹) ∣ (1st ‘𝑟) ∈ 𝐴}
2723, 26eqtri 2797 . . 3 (◡(1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ (1st ‘𝑟) ∈ 𝐴}
28 f2ndres 8079 . . . . 5 (2nd ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐹
29 ffn 6757 . . . . 5 ((2nd ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐹 → (2nd ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹))
30 fncnvima2 7110 . . . . 5 ((2nd ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹) → (◡(2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵})
3128, 29, 30mp2b 10 . . . 4 (◡(2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵}
32 fvres 6953 . . . . . 6 (𝑟 ∈ (𝐸 × 𝐹) → ((2nd ↾ (𝐸 × 𝐹))‘𝑟) = (2nd ‘𝑟))
3332eleq1d 2860 . . . . 5 (𝑟 ∈ (𝐸 × 𝐹) → (((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵 ↔ (2nd ‘𝑟) ∈ 𝐵))
3433rabbiia 3427 . . . 4 {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵} = {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd ‘𝑟) ∈ 𝐵}
3531, 34eqtri 2797 . . 3 (◡(2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd ‘𝑟) ∈ 𝐵}
3627, 35ineq12i 4125 . 2 ((◡(1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ (◡(2nd ↾ (𝐸 × 𝐹)) “ 𝐵)) = ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st ‘𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd ‘𝑟) ∈ 𝐵})
3719, 36eqtr4di 2827 1 ((𝐴 ⊆ 𝐸 ∧ 𝐵 ⊆ 𝐹) → (𝐴 × 𝐵) = ((◡(1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ (◡(2nd ↾ (𝐸 × 𝐹)) “ 𝐵)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2156  {crab 3423  Vcvv 3461   ⊆ wss 3907   ∩ cin 4099   × cxp 5664  ◡ccnv 5665   ↾ cres 5668   “ cima 5669   Fn wfn 6574  ⟶wf 6575  ‘cfv 6579  1st c1st 8052  2nd c2nd 8053
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pr 5406  ax-un 7802
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 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-fv 6587  df-1st 8054  df-2nd 8055
This theorem is used by:  cnre2csqima  34745  sxbrsigalem2  35120  sxbrsiga  35124
  Copyright terms: Public domain W3C validator