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

Theorem fmpt2co 5837
Description: Composition of two functions. Variation of fmptco 5330 when the second function has two arguments. (Contributed by Mario Carneiro, 8-Feb-2015.)
Hypotheses
Ref Expression
fmpt2co.1  |-  ( (
ph  /\  ( x  e.  A  /\  y  e.  B ) )  ->  R  e.  C )
fmpt2co.2  |-  ( ph  ->  F  =  ( x  e.  A ,  y  e.  B  |->  R ) )
fmpt2co.3  |-  ( ph  ->  G  =  ( z  e.  C  |->  S ) )
fmpt2co.4  |-  ( z  =  R  ->  S  =  T )
Assertion
Ref Expression
fmpt2co  |-  ( 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 fmpt2co
Dummy variables  u  v  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fmpt2co.1 . . . . . 6  |-  ( (
ph  /\  ( x  e.  A  /\  y  e.  B ) )  ->  R  e.  C )
21ralrimivva 2401 . . . . 5  |-  ( ph  ->  A. x  e.  A  A. y  e.  B  R  e.  C )
3 eqid 2040 . . . . . 6  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( x  e.  A ,  y  e.  B  |->  R )
43fmpt2 5827 . . . . 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 127 . . . 4  |-  ( ph  ->  ( x  e.  A ,  y  e.  B  |->  R ) : ( A  X.  B ) --> C )
6 nfcv 2178 . . . . . . 7  |-  F/_ u R
7 nfcv 2178 . . . . . . 7  |-  F/_ v R
8 nfcv 2178 . . . . . . . 8  |-  F/_ x
v
9 nfcsb1v 2882 . . . . . . . 8  |-  F/_ x [_ u  /  x ]_ R
108, 9nfcsb 2884 . . . . . . 7  |-  F/_ x [_ v  /  y ]_ [_ u  /  x ]_ R
11 nfcsb1v 2882 . . . . . . 7  |-  F/_ y [_ v  /  y ]_ [_ u  /  x ]_ R
12 csbeq1a 2860 . . . . . . . 8  |-  ( x  =  u  ->  R  =  [_ u  /  x ]_ R )
13 csbeq1a 2860 . . . . . . . 8  |-  ( y  =  v  ->  [_ u  /  x ]_ R  = 
[_ v  /  y ]_ [_ u  /  x ]_ R )
1412, 13sylan9eq 2092 . . . . . . 7  |-  ( ( x  =  u  /\  y  =  v )  ->  R  =  [_ v  /  y ]_ [_ u  /  x ]_ R )
156, 7, 10, 11, 14cbvmpt2 5583 . . . . . 6  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( u  e.  A ,  v  e.  B  |->  [_ v  /  y ]_ [_ u  /  x ]_ R )
16 vex 2560 . . . . . . . . . 10  |-  u  e. 
_V
17 vex 2560 . . . . . . . . . 10  |-  v  e. 
_V
1816, 17op2ndd 5776 . . . . . . . . 9  |-  ( w  =  <. u ,  v
>.  ->  ( 2nd `  w
)  =  v )
1918csbeq1d 2858 . . . . . . . 8  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R )
2016, 17op1std 5775 . . . . . . . . . 10  |-  ( w  =  <. u ,  v
>.  ->  ( 1st `  w
)  =  u )
2120csbeq1d 2858 . . . . . . . . 9  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 1st `  w
)  /  x ]_ R  =  [_ u  /  x ]_ R )
2221csbeq2dv 2875 . . . . . . . 8  |-  ( w  =  <. u ,  v
>.  ->  [_ v  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ u  /  x ]_ R )
2319, 22eqtrd 2072 . . . . . . 7  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ u  /  x ]_ R )
2423mpt2mpt 5596 . . . . . 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 2063 . . . . 5  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( w  e.  ( A  X.  B
)  |->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R )
2625fmpt 5319 . . . 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 137 . . 3  |-  ( ph  ->  A. w  e.  ( A  X.  B )
[_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  e.  C )
28 fmpt2co.2 . . . 4  |-  ( ph  ->  F  =  ( x  e.  A ,  y  e.  B  |->  R ) )
2928, 25syl6eq 2088 . . 3  |-  ( ph  ->  F  =  ( w  e.  ( A  X.  B )  |->  [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R ) )
30 fmpt2co.3 . . 3  |-  ( ph  ->  G  =  ( z  e.  C  |->  S ) )
3127, 29, 30fmptcos 5332 . 2  |-  ( ph  ->  ( G  o.  F
)  =  ( w  e.  ( A  X.  B )  |->  [_ [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R  /  z ]_ S ) )
3223csbeq1d 2858 . . . . 5  |-  ( w  =  <. u ,  v
>.  ->  [_ [_ ( 2nd `  w )  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  /  z ]_ S  =  [_ [_ v  / 
y ]_ [_ u  /  x ]_ R  /  z ]_ S )
3332mpt2mpt 5596 . . . 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 2178 . . . . 5  |-  F/_ u [_ R  /  z ]_ S
35 nfcv 2178 . . . . 5  |-  F/_ v [_ R  /  z ]_ S
36 nfcv 2178 . . . . . 6  |-  F/_ x S
3710, 36nfcsb 2884 . . . . 5  |-  F/_ x [_ [_ v  /  y ]_ [_ u  /  x ]_ R  /  z ]_ S
38 nfcv 2178 . . . . . 6  |-  F/_ y S
3911, 38nfcsb 2884 . . . . 5  |-  F/_ y [_ [_ v  /  y ]_ [_ u  /  x ]_ R  /  z ]_ S
4014csbeq1d 2858 . . . . 5  |-  ( ( x  =  u  /\  y  =  v )  ->  [_ R  /  z ]_ S  =  [_ [_ v  /  y ]_ [_ u  /  x ]_ R  / 
z ]_ S )
4134, 35, 37, 39, 40cbvmpt2 5583 . . . 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 2063 . . 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 1100 . . . . 5  |-  ( (
ph  /\  x  e.  A  /\  y  e.  B
)  ->  R  e.  C )
44 nfcvd 2179 . . . . . 6  |-  ( R  e.  C  ->  F/_ z T )
45 fmpt2co.4 . . . . . 6  |-  ( z  =  R  ->  S  =  T )
4644, 45csbiegf 2890 . . . . 5  |-  ( R  e.  C  ->  [_ R  /  z ]_ S  =  T )
4743, 46syl 14 . . . 4  |-  ( (
ph  /\  x  e.  A  /\  y  e.  B
)  ->  [_ R  / 
z ]_ S  =  T )
4847mpt2eq3dva 5569 . . 3  |-  ( ph  ->  ( x  e.  A ,  y  e.  B  |-> 
[_ R  /  z ]_ S )  =  ( x  e.  A , 
y  e.  B  |->  T ) )
4942, 48syl5eq 2084 . 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 2072 1  |-  ( ph  ->  ( G  o.  F
)  =  ( x  e.  A ,  y  e.  B  |->  T ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 97    /\ w3a 885    = wceq 1243    e. wcel 1393   A.wral 2306   [_csb 2852   <.cop 3378    |-> cmpt 3818    X. cxp 4343    o. ccom 4349   -->wf 4898   ` cfv 4902    |-> cmpt2 5514   1stc1st 5765   2ndc2nd 5766
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 99  ax-ia2 100  ax-ia3 101  ax-io 630  ax-5 1336  ax-7 1337  ax-gen 1338  ax-ie1 1382  ax-ie2 1383  ax-8 1395  ax-10 1396  ax-11 1397  ax-i12 1398  ax-bndl 1399  ax-4 1400  ax-13 1404  ax-14 1405  ax-17 1419  ax-i9 1423  ax-ial 1427  ax-i5r 1428  ax-ext 2022  ax-sep 3875  ax-pow 3927  ax-pr 3944  ax-un 4170
This theorem depends on definitions:  df-bi 110  df-3an 887  df-tru 1246  df-nf 1350  df-sb 1646  df-eu 1903  df-mo 1904  df-clab 2027  df-cleq 2033  df-clel 2036  df-nfc 2167  df-ral 2311  df-rex 2312  df-rab 2315  df-v 2559  df-sbc 2765  df-csb 2853  df-un 2922  df-in 2924  df-ss 2931  df-pw 3361  df-sn 3381  df-pr 3382  df-op 3384  df-uni 3581  df-iun 3659  df-br 3765  df-opab 3819  df-mpt 3820  df-id 4030  df-xp 4351  df-rel 4352  df-cnv 4353  df-co 4354  df-dm 4355  df-rn 4356  df-res 4357  df-ima 4358  df-iota 4867  df-fun 4904  df-fn 4905  df-f 4906  df-fv 4910  df-oprab 5516  df-mpt2 5517  df-1st 5767  df-2nd 5768
This theorem is referenced by:  oprabco  5838
  Copyright terms: Public domain W3C validator