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

Theorem fpar 6442
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 6440 . . 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 6441 . . 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 3536 . 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 4419 . . . 4  |-  <. ( F `  x ) ,  ( G `  y ) >.  e.  _V
65dfmpt2 6429 . . 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 4999 . . . . . . . 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 4999 . . . . . . . . . 10  |-  ( ( { x }  X.  _V )  i^i  ( _V  X.  { y } ) )  =  ( ( { x }  i^i  _V )  X.  ( _V  i^i  { y } ) )
9 inv1 3646 . . . . . . . . . . 11  |-  ( { x }  i^i  _V )  =  { x }
10 incom 3525 . . . . . . . . . . . 12  |-  ( _V 
i^i  { y } )  =  ( { y }  i^i  _V )
11 inv1 3646 . . . . . . . . . . . 12  |-  ( { y }  i^i  _V )  =  { y }
1210, 11eqtri 2455 . . . . . . . . . . 11  |-  ( _V 
i^i  { y } )  =  { y }
139, 12xpeq12i 4892 . . . . . . . . . 10  |-  ( ( { x }  i^i  _V )  X.  ( _V 
i^i  { y } ) )  =  ( { x }  X.  {
y } )
14 vex 2951 . . . . . . . . . . 11  |-  x  e. 
_V
15 vex 2951 . . . . . . . . . . 11  |-  y  e. 
_V
1614, 15xpsn 5902 . . . . . . . . . 10  |-  ( { x }  X.  {
y } )  =  { <. x ,  y
>. }
178, 13, 163eqtri 2459 . . . . . . . . 9  |-  ( ( { x }  X.  _V )  i^i  ( _V  X.  { y } ) )  =  { <. x ,  y >. }
18 inxp 4999 . . . . . . . . . 10  |-  ( ( { ( F `  x ) }  X.  _V )  i^i  ( _V  X.  { ( G `
 y ) } ) )  =  ( ( { ( F `
 x ) }  i^i  _V )  X.  ( _V  i^i  {
( G `  y
) } ) )
19 inv1 3646 . . . . . . . . . . 11  |-  ( { ( F `  x
) }  i^i  _V )  =  { ( F `  x ) }
20 incom 3525 . . . . . . . . . . . 12  |-  ( _V 
i^i  { ( G `  y ) } )  =  ( { ( G `  y ) }  i^i  _V )
21 inv1 3646 . . . . . . . . . . . 12  |-  ( { ( G `  y
) }  i^i  _V )  =  { ( G `  y ) }
2220, 21eqtri 2455 . . . . . . . . . . 11  |-  ( _V 
i^i  { ( G `  y ) } )  =  { ( G `
 y ) }
2319, 22xpeq12i 4892 . . . . . . . . . 10  |-  ( ( { ( F `  x ) }  i^i  _V )  X.  ( _V 
i^i  { ( G `  y ) } ) )  =  ( { ( F `  x
) }  X.  {
( G `  y
) } )
24 fvex 5734 . . . . . . . . . . 11  |-  ( F `
 x )  e. 
_V
25 fvex 5734 . . . . . . . . . . 11  |-  ( G `
 y )  e. 
_V
2624, 25xpsn 5902 . . . . . . . . . 10  |-  ( { ( F `  x
) }  X.  {
( G `  y
) } )  =  { <. ( F `  x ) ,  ( G `  y )
>. }
2718, 23, 263eqtri 2459 . . . . . . . . 9  |-  ( ( { ( F `  x ) }  X.  _V )  i^i  ( _V  X.  { ( G `
 y ) } ) )  =  { <. ( F `  x
) ,  ( G `
 y ) >. }
2817, 27xpeq12i 4892 . . . . . . . 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 4419 . . . . . . . . 9  |-  <. x ,  y >.  e.  _V
3029, 5xpsn 5902 . . . . . . . 8  |-  ( {
<. x ,  y >. }  X.  { <. ( F `  x ) ,  ( G `  y ) >. } )  =  { <. <. x ,  y >. ,  <. ( F `  x ) ,  ( G `  y ) >. >. }
317, 28, 303eqtri 2459 . . . . . . 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 11 . . . . . 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 4103 . . . . 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 11 . . . 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 4103 . . 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 4151 . . 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 2461 . 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 2492 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 359    = wceq 1652    e. wcel 1725   _Vcvv 2948    i^i cin 3311   {csn 3806   <.cop 3809   U_ciun 4085    X. cxp 4868   `'ccnv 4869    |` cres 4872    o. ccom 4874    Fn wfn 5441   ` cfv 5446    e. cmpt2 6075   1stc1st 6339   2ndc2nd 6340
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-13 1727  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-pow 4369  ax-pr 4395  ax-un 4693
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-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-ral 2702  df-rex 2703  df-reu 2704  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-uni 4008  df-iun 4087  df-br 4205  df-opab 4259  df-mpt 4260  df-id 4490  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-oprab 6077  df-mpt2 6078  df-1st 6341  df-2nd 6342
  Copyright terms: Public domain W3C validator