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

Theorem mpt2mptx 6156
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 4260 . 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 6078 . . 3  |-  ( x  e.  A ,  y  e.  B  |->  D )  =  { <. <. x ,  y >. ,  w >.  |  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) }
3 eliunxp 5004 . . . . . . 7  |-  ( z  e.  U_ x  e.  A  ( { x }  X.  B )  <->  E. x E. y ( z  = 
<. x ,  y >.  /\  ( x  e.  A  /\  y  e.  B
) ) )
43anbi1i 677 . . . . . 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 1925 . . . . . 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 631 . . . . . . . 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 2446 . . . . . . . . . 10  |-  ( z  =  <. x ,  y
>.  ->  ( w  =  C  <->  w  =  D
) )
98anbi2d 685 . . . . . . . . 9  |-  ( z  =  <. x ,  y
>.  ->  ( ( ( x  e.  A  /\  y  e.  B )  /\  w  =  C
)  <->  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) )
109pm5.32i 619 . . . . . . . 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 241 . . . . . . 7  |-  ( ( ( z  =  <. x ,  y >.  /\  (
x  e.  A  /\  y  e.  B )
)  /\  w  =  C )  <->  ( z  =  <. x ,  y
>.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  w  =  D ) ) )
12112exbii 1593 . . . . . 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 265 . . . . 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 4264 . . . 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 6113 . . . 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 2458 . . 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 2458 . 2  |-  ( x  e.  A ,  y  e.  B  |->  D )  =  { <. z ,  w >.  |  (
z  e.  U_ x  e.  A  ( {
x }  X.  B
)  /\  w  =  C ) }
181, 17eqtr4i 2458 1  |-  ( z  e.  U_ x  e.  A  ( { x }  X.  B )  |->  C )  =  ( x  e.  A ,  y  e.  B  |->  D )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359   E.wex 1550    = wceq 1652    e. wcel 1725   {csn 3806   <.cop 3809   U_ciun 4085   {copab 4257    e. cmpt 4258    X. cxp 4868   {coprab 6074    e. cmpt2 6075
This theorem is referenced by:  mpt2mpt  6157  mpt2mptsx  6406  dmmpt2ssx  6408  fmpt2x  6409  gsumcom2  15541
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-sep 4322  ax-nul 4330  ax-pr 4395
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-ral 2702  df-rex 2703  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-nul 3621  df-if 3732  df-sn 3812  df-pr 3813  df-op 3815  df-iun 4087  df-opab 4259  df-mpt 4260  df-xp 4876  df-rel 4877  df-oprab 6077  df-mpt2 6078
  Copyright terms: Public domain W3C validator