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

Theorem fmpoco 6117
Description: Composition of two functions. Variation of fmptco 5590 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 2515 . . . . 5  |-  ( ph  ->  A. x  e.  A  A. y  e.  B  R  e.  C )
3 eqid 2140 . . . . . 6  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( x  e.  A ,  y  e.  B  |->  R )
43fmpo 6103 . . . . 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 2282 . . . . . . 7  |-  F/_ u R
7 nfcv 2282 . . . . . . 7  |-  F/_ v R
8 nfcv 2282 . . . . . . . 8  |-  F/_ x
v
9 nfcsb1v 3036 . . . . . . . 8  |-  F/_ x [_ u  /  x ]_ R
108, 9nfcsb 3038 . . . . . . 7  |-  F/_ x [_ v  /  y ]_ [_ u  /  x ]_ R
11 nfcsb1v 3036 . . . . . . 7  |-  F/_ y [_ v  /  y ]_ [_ u  /  x ]_ R
12 csbeq1a 3013 . . . . . . . 8  |-  ( x  =  u  ->  R  =  [_ u  /  x ]_ R )
13 csbeq1a 3013 . . . . . . . 8  |-  ( y  =  v  ->  [_ u  /  x ]_ R  = 
[_ v  /  y ]_ [_ u  /  x ]_ R )
1412, 13sylan9eq 2193 . . . . . . 7  |-  ( ( x  =  u  /\  y  =  v )  ->  R  =  [_ v  /  y ]_ [_ u  /  x ]_ R )
156, 7, 10, 11, 14cbvmpo 5854 . . . . . 6  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( u  e.  A ,  v  e.  B  |->  [_ v  /  y ]_ [_ u  /  x ]_ R )
16 vex 2690 . . . . . . . . . 10  |-  u  e. 
_V
17 vex 2690 . . . . . . . . . 10  |-  v  e. 
_V
1816, 17op2ndd 6051 . . . . . . . . 9  |-  ( w  =  <. u ,  v
>.  ->  ( 2nd `  w
)  =  v )
1918csbeq1d 3011 . . . . . . . 8  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R )
2016, 17op1std 6050 . . . . . . . . . 10  |-  ( w  =  <. u ,  v
>.  ->  ( 1st `  w
)  =  u )
2120csbeq1d 3011 . . . . . . . . 9  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 1st `  w
)  /  x ]_ R  =  [_ u  /  x ]_ R )
2221csbeq2dv 3029 . . . . . . . 8  |-  ( w  =  <. u ,  v
>.  ->  [_ v  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ u  /  x ]_ R )
2319, 22eqtrd 2173 . . . . . . 7  |-  ( w  =  <. u ,  v
>.  ->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  =  [_ v  / 
y ]_ [_ u  /  x ]_ R )
2423mpompt 5867 . . . . . 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 2164 . . . . 5  |-  ( x  e.  A ,  y  e.  B  |->  R )  =  ( w  e.  ( A  X.  B
)  |->  [_ ( 2nd `  w
)  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R )
2625fmpt 5574 . . . 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 2189 . . 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 5592 . 2  |-  ( ph  ->  ( G  o.  F
)  =  ( w  e.  ( A  X.  B )  |->  [_ [_ ( 2nd `  w )  / 
y ]_ [_ ( 1st `  w )  /  x ]_ R  /  z ]_ S ) )
3223csbeq1d 3011 . . . . 5  |-  ( w  =  <. u ,  v
>.  ->  [_ [_ ( 2nd `  w )  /  y ]_ [_ ( 1st `  w
)  /  x ]_ R  /  z ]_ S  =  [_ [_ v  / 
y ]_ [_ u  /  x ]_ R  /  z ]_ S )
3332mpompt 5867 . . . 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 2282 . . . . 5  |-  F/_ u [_ R  /  z ]_ S
35 nfcv 2282 . . . . 5  |-  F/_ v [_ R  /  z ]_ S
36 nfcv 2282 . . . . . 6  |-  F/_ x S
3710, 36nfcsb 3038 . . . . 5  |-  F/_ x [_ [_ v  /  y ]_ [_ u  /  x ]_ R  /  z ]_ S
38 nfcv 2282 . . . . . 6  |-  F/_ y S
3911, 38nfcsb 3038 . . . . 5  |-  F/_ y [_ [_ v  /  y ]_ [_ u  /  x ]_ R  /  z ]_ S
4014csbeq1d 3011 . . . . 5  |-  ( ( x  =  u  /\  y  =  v )  ->  [_ R  /  z ]_ S  =  [_ [_ v  /  y ]_ [_ u  /  x ]_ R  / 
z ]_ S )
4134, 35, 37, 39, 40cbvmpo 5854 . . . 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 2164 . . 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 1178 . . . . 5  |-  ( (
ph  /\  x  e.  A  /\  y  e.  B
)  ->  R  e.  C )
44 nfcvd 2283 . . . . . 6  |-  ( R  e.  C  ->  F/_ z T )
45 fmpoco.4 . . . . . 6  |-  ( z  =  R  ->  S  =  T )
4644, 45csbiegf 3044 . . . . 5  |-  ( R  e.  C  ->  [_ R  /  z ]_ S  =  T )
4743, 46syl 14 . . . 4  |-  ( (
ph  /\  x  e.  A  /\  y  e.  B
)  ->  [_ R  / 
z ]_ S  =  T )
4847mpoeq3dva 5839 . . 3  |-  ( ph  ->  ( x  e.  A ,  y  e.  B  |-> 
[_ R  /  z ]_ S )  =  ( x  e.  A , 
y  e.  B  |->  T ) )
4942, 48syl5eq 2185 . 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 2173 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 963    = wceq 1332    e. wcel 1481   A.wral 2417   [_csb 3004   <.cop 3531    |-> cmpt 3993    X. cxp 4541    o. ccom 4547   -->wf 5123   ` cfv 5127    e. cmpo 5780   1stc1st 6040   2ndc2nd 6041
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 699  ax-5 1424  ax-7 1425  ax-gen 1426  ax-ie1 1470  ax-ie2 1471  ax-8 1483  ax-10 1484  ax-11 1485  ax-i12 1486  ax-bndl 1487  ax-4 1488  ax-13 1492  ax-14 1493  ax-17 1507  ax-i9 1511  ax-ial 1515  ax-i5r 1516  ax-ext 2122  ax-sep 4050  ax-pow 4102  ax-pr 4135  ax-un 4359
This theorem depends on definitions:  df-bi 116  df-3an 965  df-tru 1335  df-nf 1438  df-sb 1737  df-eu 2003  df-mo 2004  df-clab 2127  df-cleq 2133  df-clel 2136  df-nfc 2271  df-ral 2422  df-rex 2423  df-rab 2426  df-v 2689  df-sbc 2911  df-csb 3005  df-un 3076  df-in 3078  df-ss 3085  df-pw 3513  df-sn 3534  df-pr 3535  df-op 3537  df-uni 3741  df-iun 3819  df-br 3934  df-opab 3994  df-mpt 3995  df-id 4219  df-xp 4549  df-rel 4550  df-cnv 4551  df-co 4552  df-dm 4553  df-rn 4554  df-res 4555  df-ima 4556  df-iota 5092  df-fun 5129  df-fn 5130  df-f 5131  df-fv 5135  df-oprab 5782  df-mpo 5783  df-1st 6042  df-2nd 6043
This theorem is referenced by:  oprabco  6118  txswaphmeolem  12519  bdxmet  12700
  Copyright terms: Public domain W3C validator