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

Theorem xpinpreima 31259
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
xpinpreima (𝐴 × 𝐵) = (((1st ↾ (V × V)) “ 𝐴) ∩ ((2nd ↾ (V × V)) “ 𝐵))

Proof of Theorem xpinpreima
Dummy variable 𝑟 is distinct from all other variables.
StepHypRef Expression
1 inrab 4227 . 2 ({𝑟 ∈ (V × V) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (V × V) ∣ (2nd𝑟) ∈ 𝐵}) = {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)}
2 f1stres 7695 . . . . 5 (1st ↾ (V × V)):(V × V)⟶V
3 ffn 6487 . . . . 5 ((1st ↾ (V × V)):(V × V)⟶V → (1st ↾ (V × V)) Fn (V × V))
4 fncnvima2 6808 . . . . 5 ((1st ↾ (V × V)) Fn (V × V) → ((1st ↾ (V × V)) “ 𝐴) = {𝑟 ∈ (V × V) ∣ ((1st ↾ (V × V))‘𝑟) ∈ 𝐴})
52, 3, 4mp2b 10 . . . 4 ((1st ↾ (V × V)) “ 𝐴) = {𝑟 ∈ (V × V) ∣ ((1st ↾ (V × V))‘𝑟) ∈ 𝐴}
6 fvres 6664 . . . . . 6 (𝑟 ∈ (V × V) → ((1st ↾ (V × V))‘𝑟) = (1st𝑟))
76eleq1d 2874 . . . . 5 (𝑟 ∈ (V × V) → (((1st ↾ (V × V))‘𝑟) ∈ 𝐴 ↔ (1st𝑟) ∈ 𝐴))
87rabbiia 3419 . . . 4 {𝑟 ∈ (V × V) ∣ ((1st ↾ (V × V))‘𝑟) ∈ 𝐴} = {𝑟 ∈ (V × V) ∣ (1st𝑟) ∈ 𝐴}
95, 8eqtri 2821 . . 3 ((1st ↾ (V × V)) “ 𝐴) = {𝑟 ∈ (V × V) ∣ (1st𝑟) ∈ 𝐴}
10 f2ndres 7696 . . . . 5 (2nd ↾ (V × V)):(V × V)⟶V
11 ffn 6487 . . . . 5 ((2nd ↾ (V × V)):(V × V)⟶V → (2nd ↾ (V × V)) Fn (V × V))
12 fncnvima2 6808 . . . . 5 ((2nd ↾ (V × V)) Fn (V × V) → ((2nd ↾ (V × V)) “ 𝐵) = {𝑟 ∈ (V × V) ∣ ((2nd ↾ (V × V))‘𝑟) ∈ 𝐵})
1310, 11, 12mp2b 10 . . . 4 ((2nd ↾ (V × V)) “ 𝐵) = {𝑟 ∈ (V × V) ∣ ((2nd ↾ (V × V))‘𝑟) ∈ 𝐵}
14 fvres 6664 . . . . . 6 (𝑟 ∈ (V × V) → ((2nd ↾ (V × V))‘𝑟) = (2nd𝑟))
1514eleq1d 2874 . . . . 5 (𝑟 ∈ (V × V) → (((2nd ↾ (V × V))‘𝑟) ∈ 𝐵 ↔ (2nd𝑟) ∈ 𝐵))
1615rabbiia 3419 . . . 4 {𝑟 ∈ (V × V) ∣ ((2nd ↾ (V × V))‘𝑟) ∈ 𝐵} = {𝑟 ∈ (V × V) ∣ (2nd𝑟) ∈ 𝐵}
1713, 16eqtri 2821 . . 3 ((2nd ↾ (V × V)) “ 𝐵) = {𝑟 ∈ (V × V) ∣ (2nd𝑟) ∈ 𝐵}
189, 17ineq12i 4137 . 2 (((1st ↾ (V × V)) “ 𝐴) ∩ ((2nd ↾ (V × V)) “ 𝐵)) = ({𝑟 ∈ (V × V) ∣ (1st𝑟) ∈ 𝐴} ∩ {𝑟 ∈ (V × V) ∣ (2nd𝑟) ∈ 𝐵})
19 xp2 7708 . 2 (𝐴 × 𝐵) = {𝑟 ∈ (V × V) ∣ ((1st𝑟) ∈ 𝐴 ∧ (2nd𝑟) ∈ 𝐵)}
201, 18, 193eqtr4ri 2832 1 (𝐴 × 𝐵) = (((1st ↾ (V × V)) “ 𝐴) ∩ ((2nd ↾ (V × V)) “ 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wa 399   = wceq 1538  wcel 2111  {crab 3110  Vcvv 3441  cin 3880   × cxp 5517  ccnv 5518  cres 5521  cima 5522   Fn wfn 6319  wf 6320  cfv 6324  1st c1st 7669  2nd c2nd 7670
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 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-fv 6332  df-1st 7671  df-2nd 7672
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator