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

Theorem fmpt2x 6190
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 2791 . . . . . . . 8  |-  z  e. 
_V
2 vex 2791 . . . . . . . 8  |-  w  e. 
_V
31, 2op1std 6130 . . . . . . 7  |-  ( v  =  <. z ,  w >.  ->  ( 1st `  v
)  =  z )
43csbeq1d 3087 . . . . . 6  |-  ( v  =  <. z ,  w >.  ->  [_ ( 1st `  v
)  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C  =  [_ z  /  x ]_ [_ ( 2nd `  v )  /  y ]_ C )
51, 2op2ndd 6131 . . . . . . . 8  |-  ( v  =  <. z ,  w >.  ->  ( 2nd `  v
)  =  w )
65csbeq1d 3087 . . . . . . 7  |-  ( v  =  <. z ,  w >.  ->  [_ ( 2nd `  v
)  /  y ]_ C  =  [_ w  / 
y ]_ C )
76csbeq2dv 3106 . . . . . 6  |-  ( v  =  <. z ,  w >.  ->  [_ z  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C  =  [_ z  /  x ]_ [_ w  / 
y ]_ C )
84, 7eqtrd 2315 . . . . 5  |-  ( v  =  <. z ,  w >.  ->  [_ ( 1st `  v
)  /  x ]_ [_ ( 2nd `  v
)  /  y ]_ C  =  [_ z  /  x ]_ [_ w  / 
y ]_ C )
98eleq1d 2349 . . . 4  |-  ( v  =  <. z ,  w >.  ->  ( [_ ( 1st `  v )  /  x ]_ [_ ( 2nd `  v )  /  y ]_ C  e.  D  <->  [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D )
)
109raliunxp 4825 . . 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 1605 . . . . . . 7  |-  F/ z ( ( x  e.  A  /\  y  e.  B )  /\  v  =  C )
12 nfv 1605 . . . . . . 7  |-  F/ w
( ( x  e.  A  /\  y  e.  B )  /\  v  =  C )
13 nfv 1605 . . . . . . . . 9  |-  F/ x  z  e.  A
14 nfcsb1v 3113 . . . . . . . . . 10  |-  F/_ x [_ z  /  x ]_ B
1514nfel2 2431 . . . . . . . . 9  |-  F/ x  w  e.  [_ z  /  x ]_ B
1613, 15nfan 1771 . . . . . . . 8  |-  F/ x
( z  e.  A  /\  w  e.  [_ z  /  x ]_ B )
17 nfcsb1v 3113 . . . . . . . . 9  |-  F/_ x [_ z  /  x ]_ [_ w  /  y ]_ C
1817nfeq2 2430 . . . . . . . 8  |-  F/ x  v  =  [_ z  /  x ]_ [_ w  / 
y ]_ C
1916, 18nfan 1771 . . . . . . 7  |-  F/ x
( ( z  e.  A  /\  w  e. 
[_ z  /  x ]_ B )  /\  v  =  [_ z  /  x ]_ [_ w  /  y ]_ C )
20 nfv 1605 . . . . . . . 8  |-  F/ y ( z  e.  A  /\  w  e.  [_ z  /  x ]_ B )
21 nfcv 2419 . . . . . . . . . 10  |-  F/_ y
z
22 nfcsb1v 3113 . . . . . . . . . 10  |-  F/_ y [_ w  /  y ]_ C
2321, 22nfcsb 3115 . . . . . . . . 9  |-  F/_ y [_ z  /  x ]_ [_ w  /  y ]_ C
2423nfeq2 2430 . . . . . . . 8  |-  F/ y  v  =  [_ z  /  x ]_ [_ w  /  y ]_ C
2520, 24nfan 1771 . . . . . . 7  |-  F/ y ( ( z  e.  A  /\  w  e. 
[_ z  /  x ]_ B )  /\  v  =  [_ z  /  x ]_ [_ w  /  y ]_ C )
26 eleq1 2343 . . . . . . . . . 10  |-  ( x  =  z  ->  (
x  e.  A  <->  z  e.  A ) )
2726adantr 451 . . . . . . . . 9  |-  ( ( x  =  z  /\  y  =  w )  ->  ( x  e.  A  <->  z  e.  A ) )
28 eleq1 2343 . . . . . . . . . 10  |-  ( y  =  w  ->  (
y  e.  B  <->  w  e.  B ) )
29 csbeq1a 3089 . . . . . . . . . . 11  |-  ( x  =  z  ->  B  =  [_ z  /  x ]_ B )
3029eleq2d 2350 . . . . . . . . . 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 3089 . . . . . . . . . 10  |-  ( y  =  w  ->  C  =  [_ w  /  y ]_ C )
34 csbeq1a 3089 . . . . . . . . . 10  |-  ( x  =  z  ->  [_ w  /  y ]_ C  =  [_ z  /  x ]_ [_ w  /  y ]_ C )
3533, 34sylan9eqr 2337 . . . . . . . . 9  |-  ( ( x  =  z  /\  y  =  w )  ->  C  =  [_ z  /  x ]_ [_ w  /  y ]_ C
)
3635eqeq2d 2294 . . . . . . . 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 5920 . . . . . 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 5863 . . . . . 6  |-  ( x  e.  A ,  y  e.  B  |->  C )  =  { <. <. x ,  y >. ,  v
>.  |  ( (
x  e.  A  /\  y  e.  B )  /\  v  =  C
) }
40 df-mpt2 5863 . . . . . 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 2313 . . . . 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 5938 . . . . 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 2313 . . . 4  |-  F  =  ( v  e.  U_ z  e.  A  ( { z }  X.  [_ z  /  x ]_ B )  |->  [_ ( 1st `  v )  /  x ]_ [_ ( 2nd `  v )  /  y ]_ C )
4544fmpt 5681 . . 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 1605 . . 3  |-  F/ z A. y  e.  B  C  e.  D
4817nfel1 2429 . . . 4  |-  F/ x [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D
4914, 48nfral 2596 . . 3  |-  F/ x A. w  e.  [_  z  /  x ]_ B [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D
50 nfv 1605 . . . . 5  |-  F/ w  C  e.  D
5122nfel1 2429 . . . . 5  |-  F/ y
[_ w  /  y ]_ C  e.  D
5233eleq1d 2349 . . . . 5  |-  ( y  =  w  ->  ( C  e.  D  <->  [_ w  / 
y ]_ C  e.  D
) )
5350, 51, 52cbvral 2760 . . . 4  |-  ( A. y  e.  B  C  e.  D  <->  A. w  e.  B  [_ w  /  y ]_ C  e.  D )
5434eleq1d 2349 . . . . 5  |-  ( x  =  z  ->  ( [_ w  /  y ]_ C  e.  D  <->  [_ z  /  x ]_ [_ w  /  y ]_ C  e.  D )
)
5529, 54raleqbidv 2748 . . . 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 2760 . 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 2419 . . . 4  |-  F/_ z
( { x }  X.  B )
59 nfcv 2419 . . . . 5  |-  F/_ x { z }
6059, 14nfxp 4715 . . . 4  |-  F/_ x
( { z }  X.  [_ z  /  x ]_ B )
61 sneq 3651 . . . . 5  |-  ( x  =  z  ->  { x }  =  { z } )
6261, 29xpeq12d 4714 . . . 4  |-  ( x  =  z  ->  ( { x }  X.  B )  =  ( { z }  X.  [_ z  /  x ]_ B ) )
6358, 60, 62cbviun 3939 . . 3  |-  U_ x  e.  A  ( {
x }  X.  B
)  =  U_ z  e.  A  ( {
z }  X.  [_ z  /  x ]_ B
)
6463feq2i 5384 . 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 1623    e. wcel 1684   A.wral 2543   [_csb 3081   {csn 3640   <.cop 3643   U_ciun 3905    e. cmpt 4077    X. cxp 4687   -->wf 5251   ` cfv 5255   {coprab 5859    e. cmpt2 5860   1stc1st 6120   2ndc2nd 6121
This theorem is referenced by:  fmpt2  6191  eldmcoa  13897  gsum2d2lem  15224  gsum2d2  15225  gsumcom2  15226  dmdprd  15236  dprdval  15238  dprd2d2  15279  ablfaclem2  15321  ptbasfi  17276  ptcmplem1  17746  prdsxmslem2  18075
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-ral 2548  df-rex 2549  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-fv 5263  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123
  Copyright terms: Public domain W3C validator