ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fmpoco Unicode version

Theorem fmpoco 6195
Description: Composition of two functions. Variation of fmptco 5662 when the second function has two arguments. (Contributed by Mario Carneiro, 8-Feb-2015.)
Hypotheses
Ref Expression
fmpoco.1  |-  ( (
ph  /\  ( x  e.  A  /\  y  e.  B ) )  ->  R  e.  C )
fmpoco.2  |-  ( ph  ->  F  =  ( x  e.  A ,  y  e.  B  |->  R ) )
fmpoco.3  |-  ( ph  ->  G  =  ( z  e.  C  |->  S ) )
fmpoco.4  |-  ( z  =  R  ->  S  =  T )
Assertion
Ref Expression
fmpoco  |-  ( ph  ->  ( G  o.  F
)  =  ( x  e.  A ,  y  e.  B  |->  T ) )
Distinct variable groups:    x, y, B   
x, z, C, y    ph, x, y    x, S, y    x, A, y   
z, R    z, T
Allowed substitution hints:    ph( z)    A( z)    B( z)    R( x, y)    S( z)    T( x, y)    F( x, y, z)    G( x, y, z)

Proof of Theorem fmpoco
Dummy variables  v  u  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fmpoco.1 . . . . . 6  |-  ( (
ph  /\  ( x  e.  A  /\  y  e.  B ) )  ->  R  e.  C )
21ralrimivva 2552 . . . . 5  |-  ( ph  ->  A. x  e.  A  A. y  e.  B  R  e.  C )
3 eqid 2170 . . . . . 6  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( x  e.  A ,  y  e.  B  |->  R )
43fmpo 6180 . . . . 5  |-  ( A. x  e.  A  A. y  e.  B  R  e.  C  <->  ( x  e.  A ,  y  e.  B  |->  R ) : ( A  X.  B
) --> C )
52, 4sylib 121 . . . 4  |-  ( ph  ->  ( x  e.  A ,  y  e.  B  |->  R ) : ( A  X.  B ) --> C )
6 nfcv 2312 . . . . . . 7  |-  F/_ u R
7 nfcv 2312 . . . . . . 7  |-  F/_ v R
8 nfcv 2312 . . . . . . . 8  |-  F/_ x
v
9 nfcsb1v 3082 . . . . . . . 8  |-  F/_ x [_ u  /  x ]_ R
108, 9nfcsb 3086 . . . . . . 7  |-  F/_ x [_ v  /  y ]_ [_ u  /  x ]_ R
11 nfcsb1v 3082 . . . . . . 7  |-  F/_ y [_ v  /  y ]_ [_ u  /  x ]_ R
12 csbeq1a 3058 . . . . . . . 8  |-  ( x  =  u  ->  R  =  [_ u  /  x ]_ R )
13 csbeq1a 3058 . . . . . . . 8  |-  ( y  =  v  ->  [_ u  /  x ]_ R  = 
[_ v  /  y ]_ [_ u  /  x ]_ R )
1412, 13sylan9eq 2223 . . . . . . 7  |-  ( ( x  =  u  /\  y  =  v )  ->  R  =  [_ v  /  y ]_ [_ u  /  x ]_ R )
156, 7, 10, 11, 14cbvmpo 5932 . . . . . 6  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( u  e.  A ,  v  e.  B  |->  [_ v  /  y ]_ [_ u  /  x ]_ R )
16 vex 2733 . . . . . . . . . 10  |-  u  e. 
_V
17 vex 2733 . . . . . . . . . 10  |-  v  e. 
_V
1816, 17op2ndd 6128 . . . . . . . . 9  |-  ( w  =  <. u ,  v
>.  ->  ( 2nd `  w
)  =  v )
1918csbeq1d 3056 . . . . . . . 8  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R )
2016, 17op1std 6127 . . . . . . . . . 10  |-  ( w  =  <. u ,  v
>.  ->  ( 1st `  w
)  =  u )
2120csbeq1d 3056 . . . . . . . . 9  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 1st `  w
)  /  x ]_ R  =  [_ u  /  x ]_ R )
2221csbeq2dv 3075 . . . . . . . 8  |-  ( w  =  <. u ,  v
>.  ->  [_ v  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ u  /  x ]_ R )
2319, 22eqtrd 2203 . . . . . . 7  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ u  /  x ]_ R )
2423mpompt 5945 . . . . . 6  |-  ( w  e.  ( A  X.  B )  |->  [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R )  =  ( u  e.  A , 
v  e.  B  |->  [_ v  /  y ]_ [_ u  /  x ]_ R )
2515, 24eqtr4i 2194 . . . . 5  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( w  e.  ( A  X.  B
)  |->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R )
2625fmpt 5646 . . . 4  |-  ( A. w  e.  ( A  X.  B ) [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R  e.  C  <->  ( x  e.  A , 
y  e.  B  |->  R ) : ( A  X.  B ) --> C )
275, 26sylibr 133 . . 3  |-  ( ph  ->  A. w  e.  ( A  X.  B )
[_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  e.  C )
28 fmpoco.2 . . . 4  |-  ( ph  ->  F  =  ( x  e.  A ,  y  e.  B  |->  R ) )
2928, 25eqtrdi 2219 . . 3  |-  ( ph  ->  F  =  ( w  e.  ( A  X.  B )  |->  [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R ) )
30 fmpoco.3 . . 3  |-  ( ph  ->  G  =  ( z  e.  C  |->  S ) )
3127, 29, 30fmptcos 5664 . 2  |-  ( ph  ->  ( G  o.  F
)  =  ( w  e.  ( A  X.  B )  |->  [_ [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R  /  z ]_ S ) )
3223csbeq1d 3056 . . . . 5  |-  ( w  =  <. u ,  v
>.  ->  [_ [_ ( 2nd `  w )  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  /  z ]_ S  =  [_ [_ v  / 
y ]_ [_ u  /  x ]_ R  /  z ]_ S )
3332mpompt 5945 . . . 4  |-  ( w  e.  ( A  X.  B )  |->  [_ [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R  /  z ]_ S )  =  ( u  e.  A , 
v  e.  B  |->  [_ [_ v  /  y ]_ [_ u  /  x ]_ R  /  z ]_ S
)
34 nfcv 2312 . . . . 5  |-  F/_ u [_ R  /  z ]_ S
35 nfcv 2312 . . . . 5  |-  F/_ v [_ R  /  z ]_ S
36 nfcv 2312 . . . . . 6  |-  F/_ x S
3710, 36nfcsb 3086 . . . . 5  |-  F/_ x [_ [_ v  /  y ]_ [_ u  /  x ]_ R  /  z ]_ S
38 nfcv 2312 . . . . . 6  |-  F/_ y S
3911, 38nfcsb 3086 . . . . 5  |-  F/_ y [_ [_ v  /  y ]_ [_ u  /  x ]_ R  /  z ]_ S
4014csbeq1d 3056 . . . . 5  |-  ( ( x  =  u  /\  y  =  v )  ->  [_ R  /  z ]_ S  =  [_ [_ v  /  y ]_ [_ u  /  x ]_ R  / 
z ]_ S )
4134, 35, 37, 39, 40cbvmpo 5932 . . . 4  |-  ( x  e.  A ,  y  e.  B  |->  [_ R  /  z ]_ S
)  =  ( u  e.  A ,  v  e.  B  |->  [_ [_ v  /  y ]_ [_ u  /  x ]_ R  / 
z ]_ S )
4233, 41eqtr4i 2194 . . 3  |-  ( w  e.  ( A  X.  B )  |->  [_ [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R  /  z ]_ S )  =  ( x  e.  A , 
y  e.  B  |->  [_ R  /  z ]_ S
)
4313impb 1194 . . . . 5  |-  ( (
ph  /\  x  e.  A  /\  y  e.  B
)  ->  R  e.  C )
44 nfcvd 2313 . . . . . 6  |-  ( R  e.  C  ->  F/_ z T )
45 fmpoco.4 . . . . . 6  |-  ( z  =  R  ->  S  =  T )
4644, 45csbiegf 3092 . . . . 5  |-  ( R  e.  C  ->  [_ R  /  z ]_ S  =  T )
4743, 46syl 14 . . . 4  |-  ( (
ph  /\  x  e.  A  /\  y  e.  B
)  ->  [_ R  / 
z ]_ S  =  T )
4847mpoeq3dva 5917 . . 3  |-  ( ph  ->  ( x  e.  A ,  y  e.  B  |-> 
[_ R  /  z ]_ S )  =  ( x  e.  A , 
y  e.  B  |->  T ) )
4942, 48eqtrid 2215 . 2  |-  ( ph  ->  ( w  e.  ( A  X.  B ) 
|->  [_ [_ ( 2nd `  w )  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  /  z ]_ S
)  =  ( x  e.  A ,  y  e.  B  |->  T ) )
5031, 49eqtrd 2203 1  |-  ( ph  ->  ( G  o.  F
)  =  ( x  e.  A ,  y  e.  B  |->  T ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    /\ w3a 973    = wceq 1348    e. wcel 2141   A.wral 2448   [_csb 3049   <.cop 3586    |-> cmpt 4050    X. cxp 4609    o. ccom 4615   -->wf 5194   ` cfv 5198    e. cmpo 5855   1stc1st 6117   2ndc2nd 6118
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-sep 4107  ax-pow 4160  ax-pr 4194  ax-un 4418
This theorem depends on definitions:  df-bi 116  df-3an 975  df-tru 1351  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ral 2453  df-rex 2454  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-un 3125  df-in 3127  df-ss 3134  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-iun 3875  df-br 3990  df-opab 4051  df-mpt 4052  df-id 4278  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-fv 5206  df-oprab 5857  df-mpo 5858  df-1st 6119  df-2nd 6120
This theorem is referenced by:  oprabco  6196  txswaphmeolem  13114  bdxmet  13295
  Copyright terms: Public domain W3C validator