Metamath Proof Explorer


Theorem f2ndres

Description: Mapping of a restriction of the 2nd (second member of an ordered pair) function. (Contributed by NM, 7-Aug-2006) (Revised by Mario Carneiro, 8-Sep-2013)

Ref Expression
Assertion f2ndres 2 nd A × B : A × B B

Proof

Step Hyp Ref Expression
1 vex y V
2 vex z V
3 1 2 op2nda ran y z = z
4 3 eleq1i ran y z B z B
5 4 biimpri z B ran y z B
6 5 adantl y A z B ran y z B
7 6 rgen2 y A z B ran y z B
8 sneq x = y z x = y z
9 8 rneqd x = y z ran x = ran y z
10 9 unieqd x = y z ran x = ran y z
11 10 eleq1d x = y z ran x B ran y z B
12 11 ralxp x A × B ran x B y A z B ran y z B
13 7 12 mpbir x A × B ran x B
14 df-2nd 2 nd = x V ran x
15 14 reseq1i 2 nd A × B = x V ran x A × B
16 ssv A × B V
17 resmpt A × B V x V ran x A × B = x A × B ran x
18 16 17 ax-mp x V ran x A × B = x A × B ran x
19 15 18 eqtri 2 nd A × B = x A × B ran x
20 19 fmpt x A × B ran x B 2 nd A × B : A × B B
21 13 20 mpbi 2 nd A × B : A × B B