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

Theorem mpt2mptsx 6626
Description: Express a two-argument function as a one-argument function, or vice-versa. (Contributed by Mario Carneiro, 24-Dec-2016.)
Assertion
Ref Expression
mpt2mptsx  |-  ( x  e.  A ,  y  e.  B  |->  C )  =  ( z  e. 
U_ x  e.  A  ( { x }  X.  B )  |->  [_ ( 1st `  z )  /  x ]_ [_ ( 2nd `  z )  /  y ]_ C )
Distinct variable groups:    x, y,
z, A    y, B, z    z, C
Allowed substitution hints:    B( x)    C( x, y)

Proof of Theorem mpt2mptsx
Dummy variables  v  u are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 vex 2965 . . . . . 6  |-  u  e. 
_V
2 vex 2965 . . . . . 6  |-  v  e. 
_V
31, 2op1std 6576 . . . . 5  |-  ( z  =  <. u ,  v
>.  ->  ( 1st `  z
)  =  u )
43csbeq1d 3283 . . . 4  |-  ( z  =  <. u ,  v
>.  ->  [_ ( 1st `  z
)  /  x ]_ [_ ( 2nd `  z
)  /  y ]_ C  =  [_ u  /  x ]_ [_ ( 2nd `  z )  /  y ]_ C )
51, 2op2ndd 6577 . . . . . 6  |-  ( z  =  <. u ,  v
>.  ->  ( 2nd `  z
)  =  v )
65csbeq1d 3283 . . . . 5  |-  ( z  =  <. u ,  v
>.  ->  [_ ( 2nd `  z
)  /  y ]_ C  =  [_ v  / 
y ]_ C )
76csbeq2dv 3675 . . . 4  |-  ( z  =  <. u ,  v
>.  ->  [_ u  /  x ]_ [_ ( 2nd `  z
)  /  y ]_ C  =  [_ u  /  x ]_ [_ v  / 
y ]_ C )
84, 7eqtrd 2465 . . 3  |-  ( z  =  <. u ,  v
>.  ->  [_ ( 1st `  z
)  /  x ]_ [_ ( 2nd `  z
)  /  y ]_ C  =  [_ u  /  x ]_ [_ v  / 
y ]_ C )
98mpt2mptx 6170 . 2  |-  ( z  e.  U_ u  e.  A  ( { u }  X.  [_ u  /  x ]_ B )  |->  [_ ( 1st `  z )  /  x ]_ [_ ( 2nd `  z )  / 
y ]_ C )  =  ( u  e.  A ,  v  e.  [_ u  /  x ]_ B  |->  [_ u  /  x ]_ [_ v  /  y ]_ C
)
10 nfcv 2569 . . . 4  |-  F/_ u
( { x }  X.  B )
11 nfcv 2569 . . . . 5  |-  F/_ x { u }
12 nfcsb1v 3292 . . . . 5  |-  F/_ x [_ u  /  x ]_ B
1311, 12nfxp 4853 . . . 4  |-  F/_ x
( { u }  X.  [_ u  /  x ]_ B )
14 sneq 3875 . . . . 5  |-  ( x  =  u  ->  { x }  =  { u } )
15 csbeq1a 3285 . . . . 5  |-  ( x  =  u  ->  B  =  [_ u  /  x ]_ B )
1614, 15xpeq12d 4852 . . . 4  |-  ( x  =  u  ->  ( { x }  X.  B )  =  ( { u }  X.  [_ u  /  x ]_ B ) )
1710, 13, 16cbviun 4195 . . 3  |-  U_ x  e.  A  ( {
x }  X.  B
)  =  U_ u  e.  A  ( {
u }  X.  [_ u  /  x ]_ B
)
18 mpteq1 4360 . . 3  |-  ( U_ x  e.  A  ( { x }  X.  B )  =  U_ u  e.  A  ( { u }  X.  [_ u  /  x ]_ B )  ->  (
z  e.  U_ x  e.  A  ( {
x }  X.  B
)  |->  [_ ( 1st `  z
)  /  x ]_ [_ ( 2nd `  z
)  /  y ]_ C )  =  ( z  e.  U_ u  e.  A  ( {
u }  X.  [_ u  /  x ]_ B
)  |->  [_ ( 1st `  z
)  /  x ]_ [_ ( 2nd `  z
)  /  y ]_ C ) )
1917, 18ax-mp 5 . 2  |-  ( z  e.  U_ x  e.  A  ( { x }  X.  B )  |->  [_ ( 1st `  z )  /  x ]_ [_ ( 2nd `  z )  / 
y ]_ C )  =  ( z  e.  U_ u  e.  A  ( { u }  X.  [_ u  /  x ]_ B )  |->  [_ ( 1st `  z )  /  x ]_ [_ ( 2nd `  z )  /  y ]_ C )
20 nfcv 2569 . . 3  |-  F/_ u B
21 nfcv 2569 . . 3  |-  F/_ u C
22 nfcv 2569 . . 3  |-  F/_ v C
23 nfcsb1v 3292 . . 3  |-  F/_ x [_ u  /  x ]_ [_ v  /  y ]_ C
24 nfcv 2569 . . . 4  |-  F/_ y
u
25 nfcsb1v 3292 . . . 4  |-  F/_ y [_ v  /  y ]_ C
2624, 25nfcsb 3294 . . 3  |-  F/_ y [_ u  /  x ]_ [_ v  /  y ]_ C
27 csbeq1a 3285 . . . 4  |-  ( y  =  v  ->  C  =  [_ v  /  y ]_ C )
28 csbeq1a 3285 . . . 4  |-  ( x  =  u  ->  [_ v  /  y ]_ C  =  [_ u  /  x ]_ [_ v  /  y ]_ C )
2927, 28sylan9eqr 2487 . . 3  |-  ( ( x  =  u  /\  y  =  v )  ->  C  =  [_ u  /  x ]_ [_ v  /  y ]_ C
)
3020, 12, 21, 22, 23, 26, 15, 29cbvmpt2x 6153 . 2  |-  ( x  e.  A ,  y  e.  B  |->  C )  =  ( u  e.  A ,  v  e. 
[_ u  /  x ]_ B  |->  [_ u  /  x ]_ [_ v  /  y ]_ C
)
319, 19, 303eqtr4ri 2464 1  |-  ( x  e.  A ,  y  e.  B  |->  C )  =  ( z  e. 
U_ x  e.  A  ( { x }  X.  B )  |->  [_ ( 1st `  z )  /  x ]_ [_ ( 2nd `  z )  /  y ]_ C )
Colors of variables: wff setvar class
Syntax hints:    = wceq 1362   [_csb 3276   {csn 3865   <.cop 3871   U_ciun 4159    e. cmpt 4338    X. cxp 4825   ` cfv 5406    e. cmpt2 6082   1stc1st 6564   2ndc2nd 6565
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1594  ax-4 1605  ax-5 1669  ax-6 1707  ax-7 1727  ax-8 1757  ax-9 1759  ax-10 1774  ax-11 1779  ax-12 1791  ax-13 1942  ax-ext 2414  ax-sep 4401  ax-nul 4409  ax-pow 4458  ax-pr 4519  ax-un 6361
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 960  df-tru 1365  df-ex 1590  df-nf 1593  df-sb 1700  df-eu 2258  df-mo 2259  df-clab 2420  df-cleq 2426  df-clel 2429  df-nfc 2558  df-ne 2598  df-ral 2710  df-rex 2711  df-rab 2714  df-v 2964  df-sbc 3176  df-csb 3277  df-dif 3319  df-un 3321  df-in 3323  df-ss 3330  df-nul 3626  df-if 3780  df-sn 3866  df-pr 3868  df-op 3872  df-uni 4080  df-iun 4161  df-br 4281  df-opab 4339  df-mpt 4340  df-id 4623  df-xp 4833  df-rel 4834  df-cnv 4835  df-co 4836  df-dm 4837  df-rn 4838  df-iota 5369  df-fun 5408  df-fv 5414  df-oprab 6084  df-mpt2 6085  df-1st 6566  df-2nd 6567
This theorem is referenced by:  mpt2mpts  6627  ovmptss  6643
  Copyright terms: Public domain W3C validator