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 32488
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 7958 . . . 4 (𝐴 × 𝐵) = {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)}
2 xpss 5649 . . . . . 6 (𝐸 × 𝐹) ⊆ (V × V)
3 rabss2 4035 . . . . . 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 3945 . . . . . . . 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 3945 . . . . . . . 8 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → (2nd𝑟) ∈ 𝐹)
128, 11jca 512 . . . . . . 7 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → ((1st𝑟) ∈ 𝐸 ∧ (2nd𝑟) ∈ 𝐹))
13 elxp7 7956 . . . . . . 7 (𝑟 ∈ (𝐸 × 𝐹) ↔ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐸 ∧ (2nd𝑟) ∈ 𝐹)))
145, 12, 13sylanbrc 583 . . . . . 6 (((𝐴𝐸𝐵𝐹) ∧ (𝑟 ∈ (V × V) ∧ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵))) → 𝑟 ∈ (𝐸 × 𝐹))
1514rabss3d 4039 . . . . 5 ((𝐴𝐸𝐵𝐹) → {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} ⊆ {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
164, 15eqssd 3961 . . . 4 ((𝐴𝐸𝐵𝐹) → {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)} = {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
171, 16eqtr4id 2795 . . 3 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)})
18 inrab 4266 . . 3 ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)}
1917, 18eqtr4di 2794 . 2 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}))
20 f1stres 7945 . . . . 5 (1st ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐸
21 ffn 6668 . . . . 5 ((1st ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐸 → (1st ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹))
22 fncnvima2 7011 . . . . 5 ((1st ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹) → ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴})
2320, 21, 22mp2b 10 . . . 4 ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴}
24 fvres 6861 . . . . . 6 (𝑟 ∈ (𝐸 × 𝐹) → ((1st ↾ (𝐸 × 𝐹))‘𝑟) = (1st𝑟))
2524eleq1d 2822 . . . . 5 (𝑟 ∈ (𝐸 × 𝐹) → (((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴 ↔ (1st𝑟) ∈ 𝐴))
2625rabbiia 3411 . . . 4 {𝑟 ∈ (𝐸 × 𝐹) ∣ ((1st ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐴} = {𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴}
2723, 26eqtri 2764 . . 3 ((1st ↾ (𝐸 × 𝐹)) “ 𝐴) = {𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴}
28 f2ndres 7946 . . . . 5 (2nd ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐹
29 ffn 6668 . . . . 5 ((2nd ↾ (𝐸 × 𝐹)):(𝐸 × 𝐹)⟶𝐹 → (2nd ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹))
30 fncnvima2 7011 . . . . 5 ((2nd ↾ (𝐸 × 𝐹)) Fn (𝐸 × 𝐹) → ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵})
3128, 29, 30mp2b 10 . . . 4 ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵}
32 fvres 6861 . . . . . 6 (𝑟 ∈ (𝐸 × 𝐹) → ((2nd ↾ (𝐸 × 𝐹))‘𝑟) = (2nd𝑟))
3332eleq1d 2822 . . . . 5 (𝑟 ∈ (𝐸 × 𝐹) → (((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵 ↔ (2nd𝑟) ∈ 𝐵))
3433rabbiia 3411 . . . 4 {𝑟 ∈ (𝐸 × 𝐹) ∣ ((2nd ↾ (𝐸 × 𝐹))‘𝑟) ∈ 𝐵} = {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}
3531, 34eqtri 2764 . . 3 ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵) = {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵}
3627, 35ineq12i 4170 . 2 (((1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵)) = ({𝑟 ∈ (𝐸 × 𝐹) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (𝐸 × 𝐹) ∣ (2nd𝑟) ∈ 𝐵})
3719, 36eqtr4di 2794 1 ((𝐴𝐸𝐵𝐹) → (𝐴 × 𝐵) = (((1st ↾ (𝐸 × 𝐹)) “ 𝐴) ∩ ((2nd ↾ (𝐸 × 𝐹)) “ 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1541  wcel 2106  {crab 3407  Vcvv 3445  cin 3909  wss 3910   × cxp 5631  ccnv 5632  cres 5635  cima 5636   Fn wfn 6491  wf 6492  cfv 6496  1st c1st 7919  2nd c2nd 7920
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2707  ax-sep 5256  ax-nul 5263  ax-pr 5384  ax-un 7672
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2889  df-ne 2944  df-ral 3065  df-rex 3074  df-rab 3408  df-v 3447  df-sbc 3740  df-csb 3856  df-dif 3913  df-un 3915  df-in 3917  df-ss 3927  df-nul 4283  df-if 4487  df-sn 4587  df-pr 4589  df-op 4593  df-uni 4866  df-iun 4956  df-br 5106  df-opab 5168  df-mpt 5189  df-id 5531  df-xp 5639  df-rel 5640  df-cnv 5641  df-co 5642  df-dm 5643  df-rn 5644  df-res 5645  df-ima 5646  df-iota 6448  df-fun 6498  df-fn 6499  df-f 6500  df-fv 6504  df-1st 7921  df-2nd 7922
This theorem is referenced by:  cnre2csqima  32492  sxbrsigalem2  32886  sxbrsiga  32890
  Copyright terms: Public domain W3C validator