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

Theorem mpt2mptx 6180
Description: Express a two-argument function as a one-argument function, or vice-versa. In this version 
B ( x ) is not assumed to be constant w.r.t  x. (Contributed by Mario Carneiro, 29-Dec-2014.)
Hypothesis
Ref Expression
mpt2mpt.1  |-  ( z  =  <. x ,  y
>.  ->  C  =  D )
Assertion
Ref Expression
mpt2mptx  |-  ( z  e.  U_ x  e.  A  ( { x }  X.  B )  |->  C )  =  ( x  e.  A ,  y  e.  B  |->  D )
Distinct variable groups:    x, y,
z, A    y, B, z    x, C, y    z, D
Allowed substitution hints:    B( x)    C( z)    D( x, y)

Proof of Theorem mpt2mptx
Dummy variable  w is distinct from all other variables.
StepHypRef Expression
1 df-mpt 4351 . 2  |-  ( z  e.  U_ x  e.  A  ( { x }  X.  B )  |->  C )  =  { <. z ,  w >.  |  ( z  e.  U_ x  e.  A  ( {
x }  X.  B
)  /\  w  =  C ) }
2 df-mpt2 6095 . . 3  |-  ( x  e.  A ,  y  e.  B  |->  D )  =  { <. <. x ,  y >. ,  w >.  |  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) }
3 eliunxp 4976 . . . . . . 7  |-  ( z  e.  U_ x  e.  A  ( { x }  X.  B )  <->  E. x E. y ( z  = 
<. x ,  y >.  /\  ( x  e.  A  /\  y  e.  B
) ) )
43anbi1i 695 . . . . . 6  |-  ( ( z  e.  U_ x  e.  A  ( {
x }  X.  B
)  /\  w  =  C )  <->  ( E. x E. y ( z  =  <. x ,  y
>.  /\  ( x  e.  A  /\  y  e.  B ) )  /\  w  =  C )
)
5 19.41vv 1921 . . . . . 6  |-  ( E. x E. y ( ( z  =  <. x ,  y >.  /\  (
x  e.  A  /\  y  e.  B )
)  /\  w  =  C )  <->  ( E. x E. y ( z  =  <. x ,  y
>.  /\  ( x  e.  A  /\  y  e.  B ) )  /\  w  =  C )
)
6 anass 649 . . . . . . . 8  |-  ( ( ( z  =  <. x ,  y >.  /\  (
x  e.  A  /\  y  e.  B )
)  /\  w  =  C )  <->  ( z  =  <. x ,  y
>.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  C ) ) )
7 mpt2mpt.1 . . . . . . . . . . 11  |-  ( z  =  <. x ,  y
>.  ->  C  =  D )
87eqeq2d 2453 . . . . . . . . . 10  |-  ( z  =  <. x ,  y
>.  ->  ( w  =  C  <->  w  =  D
) )
98anbi2d 703 . . . . . . . . 9  |-  ( z  =  <. x ,  y
>.  ->  ( ( ( x  e.  A  /\  y  e.  B )  /\  w  =  C
)  <->  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) )
109pm5.32i 637 . . . . . . . 8  |-  ( ( z  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  w  =  C ) )  <->  ( z  =  <. x ,  y
>.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) )
116, 10bitri 249 . . . . . . 7  |-  ( ( ( z  =  <. x ,  y >.  /\  (
x  e.  A  /\  y  e.  B )
)  /\  w  =  C )  <->  ( z  =  <. x ,  y
>.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) )
12112exbii 1635 . . . . . 6  |-  ( E. x E. y ( ( z  =  <. x ,  y >.  /\  (
x  e.  A  /\  y  e.  B )
)  /\  w  =  C )  <->  E. x E. y ( z  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) )
134, 5, 123bitr2i 273 . . . . 5  |-  ( ( z  e.  U_ x  e.  A  ( {
x }  X.  B
)  /\  w  =  C )  <->  E. x E. y ( z  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) )
1413opabbii 4355 . . . 4  |-  { <. z ,  w >.  |  ( z  e.  U_ x  e.  A  ( {
x }  X.  B
)  /\  w  =  C ) }  =  { <. z ,  w >.  |  E. x E. y ( z  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) }
15 dfoprab2 6132 . . . 4  |-  { <. <.
x ,  y >. ,  w >.  |  (
( x  e.  A  /\  y  e.  B
)  /\  w  =  D ) }  =  { <. z ,  w >.  |  E. x E. y ( z  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) }
1614, 15eqtr4i 2465 . . 3  |-  { <. z ,  w >.  |  ( z  e.  U_ x  e.  A  ( {
x }  X.  B
)  /\  w  =  C ) }  =  { <. <. x ,  y
>. ,  w >.  |  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) }
172, 16eqtr4i 2465 . 2  |-  ( x  e.  A ,  y  e.  B  |->  D )  =  { <. z ,  w >.  |  (
z  e.  U_ x  e.  A  ( {
x }  X.  B
)  /\  w  =  C ) }
181, 17eqtr4i 2465 1  |-  ( z  e.  U_ x  e.  A  ( { x }  X.  B )  |->  C )  =  ( x  e.  A ,  y  e.  B  |->  D )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    = wceq 1369   E.wex 1586    e. wcel 1756   {csn 3876   <.cop 3882   U_ciun 4170   {copab 4348    e. cmpt 4349    X. cxp 4837   {coprab 6091    e. cmpt2 6092
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-sep 4412  ax-nul 4420  ax-pr 4530
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-clab 2429  df-cleq 2435  df-clel 2438  df-nfc 2567  df-ne 2607  df-ral 2719  df-rex 2720  df-rab 2723  df-v 2973  df-sbc 3186  df-csb 3288  df-dif 3330  df-un 3332  df-in 3334  df-ss 3341  df-nul 3637  df-if 3791  df-sn 3877  df-pr 3879  df-op 3883  df-iun 4172  df-opab 4350  df-mpt 4351  df-xp 4845  df-rel 4846  df-oprab 6094  df-mpt2 6095
This theorem is referenced by:  mpt2mpt  6181  mpt2mptsx  6636  dmmpt2ssx  6638  fmpt2x  6639  gsumcom2  16466
  Copyright terms: Public domain W3C validator