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

Theorem fpar 6222
Description: Merge two functions in parallel. Use as the second argument of a composition with a (2-place) operation to build compound operations such as  z  =  ( ( sqr `  x
)  +  ( abs `  y ) ). (Contributed by NM, 17-Sep-2007.) (Proof shortened by Mario Carneiro, 28-Apr-2015.)
Hypothesis
Ref Expression
fpar.1  |-  H  =  ( ( `' ( 1st  |`  ( _V  X.  _V ) )  o.  ( F  o.  ( 1st  |`  ( _V  X.  _V ) ) ) )  i^i  ( `' ( 2nd  |`  ( _V  X.  _V ) )  o.  ( G  o.  ( 2nd  |`  ( _V  X.  _V ) ) ) ) )
Assertion
Ref Expression
fpar  |-  ( ( F  Fn  A  /\  G  Fn  B )  ->  H  =  ( x  e.  A ,  y  e.  B  |->  <. ( F `  x ) ,  ( G `  y ) >. )
)
Distinct variable groups:    x, y, A    x, B, y    x, F, y    x, G, y
Allowed substitution hints:    H( x, y)

Proof of Theorem fpar
StepHypRef Expression
1 fparlem3 6220 . . 3  |-  ( F  Fn  A  ->  ( `' ( 1st  |`  ( _V  X.  _V ) )  o.  ( F  o.  ( 1st  |`  ( _V  X.  _V ) ) ) )  =  U_ x  e.  A  ( ( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) ) )
2 fparlem4 6221 . . 3  |-  ( G  Fn  B  ->  ( `' ( 2nd  |`  ( _V  X.  _V ) )  o.  ( G  o.  ( 2nd  |`  ( _V  X.  _V ) ) ) )  =  U_ y  e.  B  ( ( _V  X.  { y } )  X.  ( _V 
X.  { ( G `
 y ) } ) ) )
31, 2ineqan12d 3372 . 2  |-  ( ( F  Fn  A  /\  G  Fn  B )  ->  ( ( `' ( 1st  |`  ( _V  X.  _V ) )  o.  ( F  o.  ( 1st  |`  ( _V  X.  _V ) ) ) )  i^i  ( `' ( 2nd  |`  ( _V  X.  _V ) )  o.  ( G  o.  ( 2nd  |`  ( _V  X.  _V ) ) ) ) )  =  ( U_ x  e.  A  (
( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  U_ y  e.  B  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) ) )
4 fpar.1 . 2  |-  H  =  ( ( `' ( 1st  |`  ( _V  X.  _V ) )  o.  ( F  o.  ( 1st  |`  ( _V  X.  _V ) ) ) )  i^i  ( `' ( 2nd  |`  ( _V  X.  _V ) )  o.  ( G  o.  ( 2nd  |`  ( _V  X.  _V ) ) ) ) )
5 opex 4237 . . . 4  |-  <. ( F `  x ) ,  ( G `  y ) >.  e.  _V
65dfmpt2 6209 . . 3  |-  ( x  e.  A ,  y  e.  B  |->  <. ( F `  x ) ,  ( G `  y ) >. )  =  U_ x  e.  A  U_ y  e.  B  { <. <. x ,  y
>. ,  <. ( F `
 x ) ,  ( G `  y
) >. >. }
7 inxp 4818 . . . . . . . 8  |-  ( ( ( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) )  =  ( ( ( { x }  X.  _V )  i^i  ( _V  X.  { y } ) )  X.  (
( { ( F `
 x ) }  X.  _V )  i^i  ( _V  X.  {
( G `  y
) } ) ) )
8 inxp 4818 . . . . . . . . . 10  |-  ( ( { x }  X.  _V )  i^i  ( _V  X.  { y } ) )  =  ( ( { x }  i^i  _V )  X.  ( _V  i^i  { y } ) )
9 inv1 3481 . . . . . . . . . . 11  |-  ( { x }  i^i  _V )  =  { x }
10 incom 3361 . . . . . . . . . . . 12  |-  ( _V 
i^i  { y } )  =  ( { y }  i^i  _V )
11 inv1 3481 . . . . . . . . . . . 12  |-  ( { y }  i^i  _V )  =  { y }
1210, 11eqtri 2303 . . . . . . . . . . 11  |-  ( _V 
i^i  { y } )  =  { y }
139, 12xpeq12i 4711 . . . . . . . . . 10  |-  ( ( { x }  i^i  _V )  X.  ( _V 
i^i  { y } ) )  =  ( { x }  X.  {
y } )
14 vex 2791 . . . . . . . . . . 11  |-  x  e. 
_V
15 vex 2791 . . . . . . . . . . 11  |-  y  e. 
_V
1614, 15xpsn 5700 . . . . . . . . . 10  |-  ( { x }  X.  {
y } )  =  { <. x ,  y
>. }
178, 13, 163eqtri 2307 . . . . . . . . 9  |-  ( ( { x }  X.  _V )  i^i  ( _V  X.  { y } ) )  =  { <. x ,  y >. }
18 inxp 4818 . . . . . . . . . 10  |-  ( ( { ( F `  x ) }  X.  _V )  i^i  ( _V  X.  { ( G `
 y ) } ) )  =  ( ( { ( F `
 x ) }  i^i  _V )  X.  ( _V  i^i  {
( G `  y
) } ) )
19 inv1 3481 . . . . . . . . . . 11  |-  ( { ( F `  x
) }  i^i  _V )  =  { ( F `  x ) }
20 incom 3361 . . . . . . . . . . . 12  |-  ( _V 
i^i  { ( G `  y ) } )  =  ( { ( G `  y ) }  i^i  _V )
21 inv1 3481 . . . . . . . . . . . 12  |-  ( { ( G `  y
) }  i^i  _V )  =  { ( G `  y ) }
2220, 21eqtri 2303 . . . . . . . . . . 11  |-  ( _V 
i^i  { ( G `  y ) } )  =  { ( G `
 y ) }
2319, 22xpeq12i 4711 . . . . . . . . . 10  |-  ( ( { ( F `  x ) }  i^i  _V )  X.  ( _V 
i^i  { ( G `  y ) } ) )  =  ( { ( F `  x
) }  X.  {
( G `  y
) } )
24 fvex 5539 . . . . . . . . . . 11  |-  ( F `
 x )  e. 
_V
25 fvex 5539 . . . . . . . . . . 11  |-  ( G `
 y )  e. 
_V
2624, 25xpsn 5700 . . . . . . . . . 10  |-  ( { ( F `  x
) }  X.  {
( G `  y
) } )  =  { <. ( F `  x ) ,  ( G `  y )
>. }
2718, 23, 263eqtri 2307 . . . . . . . . 9  |-  ( ( { ( F `  x ) }  X.  _V )  i^i  ( _V  X.  { ( G `
 y ) } ) )  =  { <. ( F `  x
) ,  ( G `
 y ) >. }
2817, 27xpeq12i 4711 . . . . . . . 8  |-  ( ( ( { x }  X.  _V )  i^i  ( _V  X.  { y } ) )  X.  (
( { ( F `
 x ) }  X.  _V )  i^i  ( _V  X.  {
( G `  y
) } ) ) )  =  ( {
<. x ,  y >. }  X.  { <. ( F `  x ) ,  ( G `  y ) >. } )
29 opex 4237 . . . . . . . . 9  |-  <. x ,  y >.  e.  _V
3029, 5xpsn 5700 . . . . . . . 8  |-  ( {
<. x ,  y >. }  X.  { <. ( F `  x ) ,  ( G `  y ) >. } )  =  { <. <. x ,  y >. ,  <. ( F `  x ) ,  ( G `  y ) >. >. }
317, 28, 303eqtri 2307 . . . . . . 7  |-  ( ( ( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) )  =  { <. <.
x ,  y >. ,  <. ( F `  x ) ,  ( G `  y )
>. >. }
3231a1i 10 . . . . . 6  |-  ( y  e.  B  ->  (
( ( { x }  X.  _V )  X.  ( { ( F `
 x ) }  X.  _V ) )  i^i  ( ( _V 
X.  { y } )  X.  ( _V 
X.  { ( G `
 y ) } ) ) )  =  { <. <. x ,  y
>. ,  <. ( F `
 x ) ,  ( G `  y
) >. >. } )
3332iuneq2i 3923 . . . . 5  |-  U_ y  e.  B  ( (
( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) )  =  U_ y  e.  B  { <. <. x ,  y >. ,  <. ( F `  x ) ,  ( G `  y ) >. >. }
3433a1i 10 . . . 4  |-  ( x  e.  A  ->  U_ y  e.  B  ( (
( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) )  =  U_ y  e.  B  { <. <. x ,  y >. ,  <. ( F `  x ) ,  ( G `  y ) >. >. } )
3534iuneq2i 3923 . . 3  |-  U_ x  e.  A  U_ y  e.  B  ( ( ( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) )  =  U_ x  e.  A  U_ y  e.  B  { <. <. x ,  y >. ,  <. ( F `  x ) ,  ( G `  y ) >. >. }
36 2iunin 3970 . . 3  |-  U_ x  e.  A  U_ y  e.  B  ( ( ( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) )  =  ( U_ x  e.  A  (
( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  U_ y  e.  B  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) )
376, 35, 363eqtr2i 2309 . 2  |-  ( x  e.  A ,  y  e.  B  |->  <. ( F `  x ) ,  ( G `  y ) >. )  =  ( U_ x  e.  A  ( ( { x }  X.  _V )  X.  ( { ( F `  x ) }  X.  _V ) )  i^i  U_ y  e.  B  (
( _V  X.  {
y } )  X.  ( _V  X.  {
( G `  y
) } ) ) )
383, 4, 373eqtr4g 2340 1  |-  ( ( F  Fn  A  /\  G  Fn  B )  ->  H  =  ( x  e.  A ,  y  e.  B  |->  <. ( F `  x ) ,  ( G `  y ) >. )
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1623    e. wcel 1684   _Vcvv 2788    i^i cin 3151   {csn 3640   <.cop 3643   U_ciun 3905    X. cxp 4687   `'ccnv 4688    |` cres 4691    o. ccom 4693    Fn wfn 5250   ` cfv 5255    e. cmpt2 5860   1stc1st 6120   2ndc2nd 6121
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-reu 2550  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-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123
  Copyright terms: Public domain W3C validator