MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  fmpt2x Unicode version

Theorem fmpt2x 6206
Description: Functionality, domain and codomain of a class given by the "maps to" notation, where  B ( x ) is not constant but depends on  x. (Contributed by NM, 29-Dec-2014.)
Hypothesis
Ref Expression
fmpt2x.1  |-  F  =  ( x  e.  A ,  y  e.  B  |->  C )
Assertion
Ref Expression
fmpt2x  |-  ( A. x  e.  A  A. y  e.  B  C  e.  D  <->  F : U_ x  e.  A  ( {
x }  X.  B
) --> D )
Distinct variable groups:    x, y, A    y, B    x, D, y
Allowed substitution hints:    B( x)    C( x, y)    F( x, y)

Proof of Theorem fmpt2x
Dummy variables  v  w  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 vex 2804 . . . . . . . 8  |-  z  e. 
_V
2 vex 2804 . . . . . . . 8  |-  w  e. 
_V
31, 2op1std 6146 . . . . . . 7  |-  ( v  =  <. z ,  w >.  ->  ( 1st `  v
)  =  z )
43csbeq1d 3100 . . . . . 6  |-  ( v  =  <. z ,  w >.  ->  [_ ( 1st `  v
)  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C  =  [_ z  /  x ]_ [_ ( 2nd `  v )  /  y ]_ C )
51, 2op2ndd 6147 . . . . . . . 8  |-  ( v  =  <. z ,  w >.  ->  ( 2nd `  v
)  =  w )
65csbeq1d 3100 . . . . . . 7  |-  ( v  =  <. z ,  w >.  ->  [_ ( 2nd `  v
)  /  y ]_ C  =  [_ w  / 
y ]_ C )
76csbeq2dv 3119 . . . . . 6  |-  ( v  =  <. z ,  w >.  ->  [_ z  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C  =  [_ z  /  x ]_ [_ w  / 
y ]_ C )
84, 7eqtrd 2328 . . . . 5  |-  ( v  =  <. z ,  w >.  ->  [_ ( 1st `  v
)  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C  =  [_ z  /  x ]_ [_ w  / 
y ]_ C )
98eleq1d 2362 . . . 4  |-  ( v  =  <. z ,  w >.  ->  ( [_ ( 1st `  v )  /  x ]_ [_ ( 2nd `  v )  /  y ]_ C  e.  D  <->  [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D )
)
109raliunxp 4841 . . 3  |-  ( A. v  e.  U_  z  e.  A  ( { z }  X.  [_ z  /  x ]_ B )
[_ ( 1st `  v
)  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C  e.  D  <->  A. z  e.  A  A. w  e.  [_  z  /  x ]_ B [_ z  /  x ]_ [_ w  / 
y ]_ C  e.  D
)
11 nfv 1609 . . . . . . 7  |-  F/ z ( ( x  e.  A  /\  y  e.  B )  /\  v  =  C )
12 nfv 1609 . . . . . . 7  |-  F/ w
( ( x  e.  A  /\  y  e.  B )  /\  v  =  C )
13 nfv 1609 . . . . . . . . 9  |-  F/ x  z  e.  A
14 nfcsb1v 3126 . . . . . . . . . 10  |-  F/_ x [_ z  /  x ]_ B
1514nfel2 2444 . . . . . . . . 9  |-  F/ x  w  e.  [_ z  /  x ]_ B
1613, 15nfan 1783 . . . . . . . 8  |-  F/ x
( z  e.  A  /\  w  e.  [_ z  /  x ]_ B )
17 nfcsb1v 3126 . . . . . . . . 9  |-  F/_ x [_ z  /  x ]_ [_ w  /  y ]_ C
1817nfeq2 2443 . . . . . . . 8  |-  F/ x  v  =  [_ z  /  x ]_ [_ w  / 
y ]_ C
1916, 18nfan 1783 . . . . . . 7  |-  F/ x
( ( z  e.  A  /\  w  e. 
[_ z  /  x ]_ B )  /\  v  =  [_ z  /  x ]_ [_ w  /  y ]_ C )
20 nfv 1609 . . . . . . . 8  |-  F/ y ( z  e.  A  /\  w  e.  [_ z  /  x ]_ B )
21 nfcv 2432 . . . . . . . . . 10  |-  F/_ y
z
22 nfcsb1v 3126 . . . . . . . . . 10  |-  F/_ y [_ w  /  y ]_ C
2321, 22nfcsb 3128 . . . . . . . . 9  |-  F/_ y [_ z  /  x ]_ [_ w  /  y ]_ C
2423nfeq2 2443 . . . . . . . 8  |-  F/ y  v  =  [_ z  /  x ]_ [_ w  /  y ]_ C
2520, 24nfan 1783 . . . . . . 7  |-  F/ y ( ( z  e.  A  /\  w  e. 
[_ z  /  x ]_ B )  /\  v  =  [_ z  /  x ]_ [_ w  /  y ]_ C )
26 eleq1 2356 . . . . . . . . . 10  |-  ( x  =  z  ->  (
x  e.  A  <->  z  e.  A ) )
2726adantr 451 . . . . . . . . 9  |-  ( ( x  =  z  /\  y  =  w )  ->  ( x  e.  A  <->  z  e.  A ) )
28 eleq1 2356 . . . . . . . . . 10  |-  ( y  =  w  ->  (
y  e.  B  <->  w  e.  B ) )
29 csbeq1a 3102 . . . . . . . . . . 11  |-  ( x  =  z  ->  B  =  [_ z  /  x ]_ B )
3029eleq2d 2363 . . . . . . . . . 10  |-  ( x  =  z  ->  (
w  e.  B  <->  w  e.  [_ z  /  x ]_ B ) )
3128, 30sylan9bbr 681 . . . . . . . . 9  |-  ( ( x  =  z  /\  y  =  w )  ->  ( y  e.  B  <->  w  e.  [_ z  /  x ]_ B ) )
3227, 31anbi12d 691 . . . . . . . 8  |-  ( ( x  =  z  /\  y  =  w )  ->  ( ( x  e.  A  /\  y  e.  B )  <->  ( z  e.  A  /\  w  e.  [_ z  /  x ]_ B ) ) )
33 csbeq1a 3102 . . . . . . . . . 10  |-  ( y  =  w  ->  C  =  [_ w  /  y ]_ C )
34 csbeq1a 3102 . . . . . . . . . 10  |-  ( x  =  z  ->  [_ w  /  y ]_ C  =  [_ z  /  x ]_ [_ w  /  y ]_ C )
3533, 34sylan9eqr 2350 . . . . . . . . 9  |-  ( ( x  =  z  /\  y  =  w )  ->  C  =  [_ z  /  x ]_ [_ w  /  y ]_ C
)
3635eqeq2d 2307 . . . . . . . 8  |-  ( ( x  =  z  /\  y  =  w )  ->  ( v  =  C  <-> 
v  =  [_ z  /  x ]_ [_ w  /  y ]_ C
) )
3732, 36anbi12d 691 . . . . . . 7  |-  ( ( x  =  z  /\  y  =  w )  ->  ( ( ( x  e.  A  /\  y  e.  B )  /\  v  =  C )  <->  ( (
z  e.  A  /\  w  e.  [_ z  /  x ]_ B )  /\  v  =  [_ z  /  x ]_ [_ w  / 
y ]_ C ) ) )
3811, 12, 19, 25, 37cbvoprab12 5936 . . . . . 6  |-  { <. <.
x ,  y >. ,  v >.  |  ( ( x  e.  A  /\  y  e.  B
)  /\  v  =  C ) }  =  { <. <. z ,  w >. ,  v >.  |  ( ( z  e.  A  /\  w  e.  [_ z  /  x ]_ B )  /\  v  =  [_ z  /  x ]_ [_ w  /  y ]_ C
) }
39 df-mpt2 5879 . . . . . 6  |-  ( x  e.  A ,  y  e.  B  |->  C )  =  { <. <. x ,  y >. ,  v
>.  |  ( (
x  e.  A  /\  y  e.  B )  /\  v  =  C
) }
40 df-mpt2 5879 . . . . . 6  |-  ( z  e.  A ,  w  e.  [_ z  /  x ]_ B  |->  [_ z  /  x ]_ [_ w  /  y ]_ C
)  =  { <. <.
z ,  w >. ,  v >.  |  (
( z  e.  A  /\  w  e.  [_ z  /  x ]_ B )  /\  v  =  [_ z  /  x ]_ [_ w  /  y ]_ C
) }
4138, 39, 403eqtr4i 2326 . . . . 5  |-  ( x  e.  A ,  y  e.  B  |->  C )  =  ( z  e.  A ,  w  e. 
[_ z  /  x ]_ B  |->  [_ z  /  x ]_ [_ w  /  y ]_ C
)
42 fmpt2x.1 . . . . 5  |-  F  =  ( x  e.  A ,  y  e.  B  |->  C )
438mpt2mptx 5954 . . . . 5  |-  ( v  e.  U_ z  e.  A  ( { z }  X.  [_ z  /  x ]_ B ) 
|->  [_ ( 1st `  v
)  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C )  =  ( z  e.  A ,  w  e.  [_ z  /  x ]_ B  |->  [_ z  /  x ]_ [_ w  /  y ]_ C
)
4441, 42, 433eqtr4i 2326 . . . 4  |-  F  =  ( v  e.  U_ z  e.  A  ( { z }  X.  [_ z  /  x ]_ B )  |->  [_ ( 1st `  v )  /  x ]_ [_ ( 2nd `  v )  /  y ]_ C )
4544fmpt 5697 . . 3  |-  ( A. v  e.  U_  z  e.  A  ( { z }  X.  [_ z  /  x ]_ B )
[_ ( 1st `  v
)  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C  e.  D  <->  F : U_ z  e.  A  ( { z }  X.  [_ z  /  x ]_ B ) --> D )
4610, 45bitr3i 242 . 2  |-  ( A. z  e.  A  A. w  e.  [_  z  /  x ]_ B [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D  <->  F : U_ z  e.  A  ( {
z }  X.  [_ z  /  x ]_ B
) --> D )
47 nfv 1609 . . 3  |-  F/ z A. y  e.  B  C  e.  D
4817nfel1 2442 . . . 4  |-  F/ x [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D
4914, 48nfral 2609 . . 3  |-  F/ x A. w  e.  [_  z  /  x ]_ B [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D
50 nfv 1609 . . . . 5  |-  F/ w  C  e.  D
5122nfel1 2442 . . . . 5  |-  F/ y
[_ w  /  y ]_ C  e.  D
5233eleq1d 2362 . . . . 5  |-  ( y  =  w  ->  ( C  e.  D  <->  [_ w  / 
y ]_ C  e.  D
) )
5350, 51, 52cbvral 2773 . . . 4  |-  ( A. y  e.  B  C  e.  D  <->  A. w  e.  B  [_ w  /  y ]_ C  e.  D )
5434eleq1d 2362 . . . . 5  |-  ( x  =  z  ->  ( [_ w  /  y ]_ C  e.  D  <->  [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D )
)
5529, 54raleqbidv 2761 . . . 4  |-  ( x  =  z  ->  ( A. w  e.  B  [_ w  /  y ]_ C  e.  D  <->  A. w  e.  [_  z  /  x ]_ B [_ z  /  x ]_ [_ w  / 
y ]_ C  e.  D
) )
5653, 55syl5bb 248 . . 3  |-  ( x  =  z  ->  ( A. y  e.  B  C  e.  D  <->  A. w  e.  [_  z  /  x ]_ B [_ z  /  x ]_ [_ w  / 
y ]_ C  e.  D
) )
5747, 49, 56cbvral 2773 . 2  |-  ( A. x  e.  A  A. y  e.  B  C  e.  D  <->  A. z  e.  A  A. w  e.  [_  z  /  x ]_ B [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D )
58 nfcv 2432 . . . 4  |-  F/_ z
( { x }  X.  B )
59 nfcv 2432 . . . . 5  |-  F/_ x { z }
6059, 14nfxp 4731 . . . 4  |-  F/_ x
( { z }  X.  [_ z  /  x ]_ B )
61 sneq 3664 . . . . 5  |-  ( x  =  z  ->  { x }  =  { z } )
6261, 29xpeq12d 4730 . . . 4  |-  ( x  =  z  ->  ( { x }  X.  B )  =  ( { z }  X.  [_ z  /  x ]_ B ) )
6358, 60, 62cbviun 3955 . . 3  |-  U_ x  e.  A  ( {
x }  X.  B
)  =  U_ z  e.  A  ( {
z }  X.  [_ z  /  x ]_ B
)
6463feq2i 5400 . 2  |-  ( F : U_ x  e.  A  ( { x }  X.  B ) --> D  <-> 
F : U_ z  e.  A  ( {
z }  X.  [_ z  /  x ]_ B
) --> D )
6546, 57, 643bitr4i 268 1  |-  ( A. x  e.  A  A. y  e.  B  C  e.  D  <->  F : U_ x  e.  A  ( {
x }  X.  B
) --> D )
Colors of variables: wff set class
Syntax hints:    <-> wb 176    /\ wa 358    = wceq 1632    e. wcel 1696   A.wral 2556   [_csb 3094   {csn 3653   <.cop 3656   U_ciun 3921    e. cmpt 4093    X. cxp 4703   -->wf 5267   ` cfv 5271   {coprab 5875    e. cmpt2 5876   1stc1st 6136   2ndc2nd 6137
This theorem is referenced by:  fmpt2  6207  eldmcoa  13913  gsum2d2lem  15240  gsum2d2  15241  gsumcom2  15242  dmdprd  15252  dprdval  15254  dprd2d2  15295  ablfaclem2  15337  ptbasfi  17292  ptcmplem1  17762  prdsxmslem2  18091
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-ral 2561  df-rex 2562  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-nul 3469  df-if 3579  df-sn 3659  df-pr 3660  df-op 3662  df-uni 3844  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-id 4325  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-fv 5279  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139
  Copyright terms: Public domain W3C validator