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

Theorem funcres 14048
Description: A functor restricted to a subcategory is a functor. (Contributed by Mario Carneiro, 6-Jan-2017.)
Hypotheses
Ref Expression
funcres.f  |-  ( ph  ->  F  e.  ( C 
Func  D ) )
funcres.h  |-  ( ph  ->  H  e.  (Subcat `  C ) )
Assertion
Ref Expression
funcres  |-  ( ph  ->  ( F  |`f  H )  e.  ( ( C  |`cat  H )  Func  D ) )

Proof of Theorem funcres
Dummy variables  f 
g  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 funcres.f . . . 4  |-  ( ph  ->  F  e.  ( C 
Func  D ) )
2 funcres.h . . . 4  |-  ( ph  ->  H  e.  (Subcat `  C ) )
31, 2resfval 14044 . . 3  |-  ( ph  ->  ( F  |`f  H )  =  <. ( ( 1st `  F
)  |`  dom  dom  H
) ,  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) ) >.
)
43fveq2d 5691 . . . . 5  |-  ( ph  ->  ( 2nd `  ( F  |`f  H ) )  =  ( 2nd `  <. ( ( 1st `  F
)  |`  dom  dom  H
) ,  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) ) >.
) )
5 fvex 5701 . . . . . . 7  |-  ( 1st `  F )  e.  _V
65resex 5145 . . . . . 6  |-  ( ( 1st `  F )  |`  dom  dom  H )  e.  _V
7 dmexg 5089 . . . . . . 7  |-  ( H  e.  (Subcat `  C
)  ->  dom  H  e. 
_V )
8 mptexg 5924 . . . . . . 7  |-  ( dom 
H  e.  _V  ->  ( z  e.  dom  H  |->  ( ( ( 2nd `  F ) `  z
)  |`  ( H `  z ) ) )  e.  _V )
92, 7, 83syl 19 . . . . . 6  |-  ( ph  ->  ( z  e.  dom  H 
|->  ( ( ( 2nd `  F ) `  z
)  |`  ( H `  z ) ) )  e.  _V )
10 op2ndg 6319 . . . . . 6  |-  ( ( ( ( 1st `  F
)  |`  dom  dom  H
)  e.  _V  /\  ( z  e.  dom  H 
|->  ( ( ( 2nd `  F ) `  z
)  |`  ( H `  z ) ) )  e.  _V )  -> 
( 2nd `  <. ( ( 1st `  F
)  |`  dom  dom  H
) ,  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) ) >.
)  =  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) ) )
116, 9, 10sylancr 645 . . . . 5  |-  ( ph  ->  ( 2nd `  <. ( ( 1st `  F
)  |`  dom  dom  H
) ,  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) ) >.
)  =  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) ) )
124, 11eqtrd 2436 . . . 4  |-  ( ph  ->  ( 2nd `  ( F  |`f  H ) )  =  ( z  e.  dom  H 
|->  ( ( ( 2nd `  F ) `  z
)  |`  ( H `  z ) ) ) )
1312opeq2d 3951 . . 3  |-  ( ph  -> 
<. ( ( 1st `  F
)  |`  dom  dom  H
) ,  ( 2nd `  ( F  |`f  H ) ) >.  =  <. ( ( 1st `  F )  |`  dom  dom  H ) ,  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) ) >.
)
143, 13eqtr4d 2439 . 2  |-  ( ph  ->  ( F  |`f  H )  =  <. ( ( 1st `  F
)  |`  dom  dom  H
) ,  ( 2nd `  ( F  |`f  H ) ) >.
)
15 eqid 2404 . . . 4  |-  ( Base `  ( C  |`cat  H )
)  =  ( Base `  ( C  |`cat  H )
)
16 eqid 2404 . . . 4  |-  ( Base `  D )  =  (
Base `  D )
17 eqid 2404 . . . 4  |-  (  Hom  `  ( C  |`cat  H )
)  =  (  Hom  `  ( C  |`cat  H )
)
18 eqid 2404 . . . 4  |-  (  Hom  `  D )  =  (  Hom  `  D )
19 eqid 2404 . . . 4  |-  ( Id
`  ( C  |`cat  H
) )  =  ( Id `  ( C  |`cat 
H ) )
20 eqid 2404 . . . 4  |-  ( Id
`  D )  =  ( Id `  D
)
21 eqid 2404 . . . 4  |-  (comp `  ( C  |`cat  H ) )  =  (comp `  ( C  |`cat  H ) )
22 eqid 2404 . . . 4  |-  (comp `  D )  =  (comp `  D )
23 eqid 2404 . . . . 5  |-  ( C  |`cat 
H )  =  ( C  |`cat  H )
2423, 2subccat 14000 . . . 4  |-  ( ph  ->  ( C  |`cat  H )  e.  Cat )
25 funcrcl 14015 . . . . . 6  |-  ( F  e.  ( C  Func  D )  ->  ( C  e.  Cat  /\  D  e. 
Cat ) )
261, 25syl 16 . . . . 5  |-  ( ph  ->  ( C  e.  Cat  /\  D  e.  Cat )
)
2726simprd 450 . . . 4  |-  ( ph  ->  D  e.  Cat )
28 eqid 2404 . . . . . . 7  |-  ( Base `  C )  =  (
Base `  C )
29 relfunc 14014 . . . . . . . 8  |-  Rel  ( C  Func  D )
30 1st2ndbr 6355 . . . . . . . 8  |-  ( ( Rel  ( C  Func  D )  /\  F  e.  ( C  Func  D
) )  ->  ( 1st `  F ) ( C  Func  D )
( 2nd `  F
) )
3129, 1, 30sylancr 645 . . . . . . 7  |-  ( ph  ->  ( 1st `  F
) ( C  Func  D ) ( 2nd `  F
) )
3228, 16, 31funcf1 14018 . . . . . 6  |-  ( ph  ->  ( 1st `  F
) : ( Base `  C ) --> ( Base `  D ) )
33 eqidd 2405 . . . . . . . 8  |-  ( ph  ->  dom  dom  H  =  dom  dom  H )
342, 33subcfn 13993 . . . . . . 7  |-  ( ph  ->  H  Fn  ( dom 
dom  H  X.  dom  dom  H ) )
352, 34, 28subcss1 13994 . . . . . 6  |-  ( ph  ->  dom  dom  H  C_  ( Base `  C ) )
36 fssres 5569 . . . . . 6  |-  ( ( ( 1st `  F
) : ( Base `  C ) --> ( Base `  D )  /\  dom  dom 
H  C_  ( Base `  C ) )  -> 
( ( 1st `  F
)  |`  dom  dom  H
) : dom  dom  H --> ( Base `  D
) )
3732, 35, 36syl2anc 643 . . . . 5  |-  ( ph  ->  ( ( 1st `  F
)  |`  dom  dom  H
) : dom  dom  H --> ( Base `  D
) )
3826simpld 446 . . . . . . 7  |-  ( ph  ->  C  e.  Cat )
3923, 28, 38, 34, 35rescbas 13984 . . . . . 6  |-  ( ph  ->  dom  dom  H  =  ( Base `  ( C  |`cat  H ) ) )
4039feq2d 5540 . . . . 5  |-  ( ph  ->  ( ( ( 1st `  F )  |`  dom  dom  H ) : dom  dom  H --> ( Base `  D
)  <->  ( ( 1st `  F )  |`  dom  dom  H ) : ( Base `  ( C  |`cat  H )
) --> ( Base `  D
) ) )
4137, 40mpbid 202 . . . 4  |-  ( ph  ->  ( ( 1st `  F
)  |`  dom  dom  H
) : ( Base `  ( C  |`cat  H )
) --> ( Base `  D
) )
42 fvex 5701 . . . . . . 7  |-  ( ( 2nd `  F ) `
 z )  e. 
_V
4342resex 5145 . . . . . 6  |-  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) )  e.  _V
44 eqid 2404 . . . . . 6  |-  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) )  =  ( z  e.  dom  H 
|->  ( ( ( 2nd `  F ) `  z
)  |`  ( H `  z ) ) )
4543, 44fnmpti 5532 . . . . 5  |-  ( z  e.  dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) )  Fn 
dom  H
4612eqcomd 2409 . . . . . 6  |-  ( ph  ->  ( z  e.  dom  H 
|->  ( ( ( 2nd `  F ) `  z
)  |`  ( H `  z ) ) )  =  ( 2nd `  ( F  |`f  H ) ) )
47 fndm 5503 . . . . . . . 8  |-  ( H  Fn  ( dom  dom  H  X.  dom  dom  H
)  ->  dom  H  =  ( dom  dom  H  X.  dom  dom  H )
)
4834, 47syl 16 . . . . . . 7  |-  ( ph  ->  dom  H  =  ( dom  dom  H  X.  dom  dom  H ) )
4939, 39xpeq12d 4862 . . . . . . 7  |-  ( ph  ->  ( dom  dom  H  X.  dom  dom  H )  =  ( ( Base `  ( C  |`cat  H )
)  X.  ( Base `  ( C  |`cat  H )
) ) )
5048, 49eqtrd 2436 . . . . . 6  |-  ( ph  ->  dom  H  =  ( ( Base `  ( C  |`cat  H ) )  X.  ( Base `  ( C  |`cat  H ) ) ) )
5146, 50fneq12d 5497 . . . . 5  |-  ( ph  ->  ( ( z  e. 
dom  H  |->  ( ( ( 2nd `  F
) `  z )  |`  ( H `  z
) ) )  Fn 
dom  H  <->  ( 2nd `  ( F  |`f  H ) )  Fn  ( ( Base `  ( C  |`cat  H ) )  X.  ( Base `  ( C  |`cat  H ) ) ) ) )
5245, 51mpbii 203 . . . 4  |-  ( ph  ->  ( 2nd `  ( F  |`f  H ) )  Fn  ( ( Base `  ( C  |`cat  H ) )  X.  ( Base `  ( C  |`cat  H ) ) ) )
53 eqid 2404 . . . . . . . 8  |-  (  Hom  `  C )  =  (  Hom  `  C )
5431adantr 452 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( 1st `  F
) ( C  Func  D ) ( 2nd `  F
) )
5535adantr 452 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  dom  dom  H  C_  ( Base `  C ) )
56 simprl 733 . . . . . . . . . 10  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  x  e.  ( Base `  ( C  |`cat  H )
) )
5739adantr 452 . . . . . . . . . 10  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  dom  dom  H  =  (
Base `  ( C  |`cat  H ) ) )
5856, 57eleqtrrd 2481 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  x  e.  dom  dom  H
)
5955, 58sseldd 3309 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  x  e.  ( Base `  C ) )
60 simprr 734 . . . . . . . . . 10  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
y  e.  ( Base `  ( C  |`cat  H )
) )
6160, 57eleqtrrd 2481 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
y  e.  dom  dom  H )
6255, 61sseldd 3309 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
y  e.  ( Base `  C ) )
6328, 53, 18, 54, 59, 62funcf2 14020 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( x ( 2nd `  F ) y ) : ( x (  Hom  `  C )
y ) --> ( ( ( 1st `  F
) `  x )
(  Hom  `  D ) ( ( 1st `  F
) `  y )
) )
642adantr 452 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  H  e.  (Subcat `  C
) )
6534adantr 452 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  H  Fn  ( dom  dom 
H  X.  dom  dom  H ) )
6664, 65, 53, 58, 61subcss2 13995 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( x H y )  C_  ( x
(  Hom  `  C ) y ) )
67 fssres 5569 . . . . . . 7  |-  ( ( ( x ( 2nd `  F ) y ) : ( x (  Hom  `  C )
y ) --> ( ( ( 1st `  F
) `  x )
(  Hom  `  D ) ( ( 1st `  F
) `  y )
)  /\  ( x H y )  C_  ( x (  Hom  `  C ) y ) )  ->  ( (
x ( 2nd `  F
) y )  |`  ( x H y ) ) : ( x H y ) --> ( ( ( 1st `  F ) `  x
) (  Hom  `  D
) ( ( 1st `  F ) `  y
) ) )
6863, 66, 67syl2anc 643 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( ( x ( 2nd `  F ) y )  |`  (
x H y ) ) : ( x H y ) --> ( ( ( 1st `  F
) `  x )
(  Hom  `  D ) ( ( 1st `  F
) `  y )
) )
691adantr 452 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  F  e.  ( C  Func  D ) )
7069, 64, 65, 58, 61resf2nd 14047 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( x ( 2nd `  ( F  |`f  H ) ) y )  =  ( ( x ( 2nd `  F
) y )  |`  ( x H y ) ) )
7170feq1d 5539 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( ( x ( 2nd `  ( F  |`f  H ) ) y ) : ( x H y ) --> ( ( ( 1st `  F
) `  x )
(  Hom  `  D ) ( ( 1st `  F
) `  y )
)  <->  ( ( x ( 2nd `  F
) y )  |`  ( x H y ) ) : ( x H y ) --> ( ( ( 1st `  F ) `  x
) (  Hom  `  D
) ( ( 1st `  F ) `  y
) ) ) )
7268, 71mpbird 224 . . . . 5  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( x ( 2nd `  ( F  |`f  H ) ) y ) : ( x H y ) --> ( ( ( 1st `  F
) `  x )
(  Hom  `  D ) ( ( 1st `  F
) `  y )
) )
7323, 28, 38, 34, 35reschom 13985 . . . . . . . 8  |-  ( ph  ->  H  =  (  Hom  `  ( C  |`cat  H )
) )
7473adantr 452 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  ->  H  =  (  Hom  `  ( C  |`cat  H )
) )
7574oveqd 6057 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( x H y )  =  ( x (  Hom  `  ( C  |`cat  H ) ) y ) )
76 fvres 5704 . . . . . . . . 9  |-  ( x  e.  dom  dom  H  ->  ( ( ( 1st `  F )  |`  dom  dom  H ) `  x )  =  ( ( 1st `  F ) `  x
) )
7758, 76syl 16 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( ( ( 1st `  F )  |`  dom  dom  H ) `  x )  =  ( ( 1st `  F ) `  x
) )
78 fvres 5704 . . . . . . . . 9  |-  ( y  e.  dom  dom  H  ->  ( ( ( 1st `  F )  |`  dom  dom  H ) `  y )  =  ( ( 1st `  F ) `  y
) )
7961, 78syl 16 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( ( ( 1st `  F )  |`  dom  dom  H ) `  y )  =  ( ( 1st `  F ) `  y
) )
8077, 79oveq12d 6058 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( ( ( ( 1st `  F )  |`  dom  dom  H ) `  x ) (  Hom  `  D ) ( ( ( 1st `  F
)  |`  dom  dom  H
) `  y )
)  =  ( ( ( 1st `  F
) `  x )
(  Hom  `  D ) ( ( 1st `  F
) `  y )
) )
8180eqcomd 2409 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( ( ( 1st `  F ) `  x
) (  Hom  `  D
) ( ( 1st `  F ) `  y
) )  =  ( ( ( ( 1st `  F )  |`  dom  dom  H ) `  x ) (  Hom  `  D
) ( ( ( 1st `  F )  |`  dom  dom  H ) `  y ) ) )
8275, 81feq23d 5547 . . . . 5  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( ( x ( 2nd `  ( F  |`f  H ) ) y ) : ( x H y ) --> ( ( ( 1st `  F
) `  x )
(  Hom  `  D ) ( ( 1st `  F
) `  y )
)  <->  ( x ( 2nd `  ( F  |`f  H ) ) y ) : ( x (  Hom  `  ( C  |`cat  H ) ) y ) --> ( ( ( ( 1st `  F
)  |`  dom  dom  H
) `  x )
(  Hom  `  D ) ( ( ( 1st `  F )  |`  dom  dom  H ) `  y ) ) ) )
8372, 82mpbid 202 . . . 4  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
) ) )  -> 
( x ( 2nd `  ( F  |`f  H ) ) y ) : ( x (  Hom  `  ( C  |`cat  H ) ) y ) --> ( ( ( ( 1st `  F
)  |`  dom  dom  H
) `  x )
(  Hom  `  D ) ( ( ( 1st `  F )  |`  dom  dom  H ) `  y ) ) )
841adantr 452 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  ->  F  e.  ( C  Func  D ) )
852adantr 452 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  ->  H  e.  (Subcat `  C
) )
8634adantr 452 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  ->  H  Fn  ( dom  dom 
H  X.  dom  dom  H ) )
8739eleq2d 2471 . . . . . . . 8  |-  ( ph  ->  ( x  e.  dom  dom 
H  <->  x  e.  ( Base `  ( C  |`cat  H
) ) ) )
8887biimpar 472 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  ->  x  e.  dom  dom  H
)
8984, 85, 86, 88, 88resf2nd 14047 . . . . . 6  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( x ( 2nd `  ( F  |`f  H ) ) x )  =  ( ( x ( 2nd `  F
) x )  |`  ( x H x ) ) )
90 eqid 2404 . . . . . . . 8  |-  ( Id
`  C )  =  ( Id `  C
)
9123, 85, 86, 90, 88subcid 13999 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( Id `  C ) `  x
)  =  ( ( Id `  ( C  |`cat 
H ) ) `  x ) )
9291eqcomd 2409 . . . . . 6  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( Id `  ( C  |`cat  H ) ) `  x )  =  ( ( Id `  C
) `  x )
)
9389, 92fveq12d 5693 . . . . 5  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( x ( 2nd `  ( F  |`f  H ) ) x ) `  ( ( Id `  ( C  |`cat 
H ) ) `  x ) )  =  ( ( ( x ( 2nd `  F
) x )  |`  ( x H x ) ) `  (
( Id `  C
) `  x )
) )
9431adantr 452 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( 1st `  F
) ( C  Func  D ) ( 2nd `  F
) )
9539, 35eqsstr3d 3343 . . . . . . . 8  |-  ( ph  ->  ( Base `  ( C  |`cat  H ) )  C_  ( Base `  C )
)
9695sselda 3308 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  ->  x  e.  ( Base `  C ) )
9728, 90, 20, 94, 96funcid 14022 . . . . . 6  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( x ( 2nd `  F ) x ) `  (
( Id `  C
) `  x )
)  =  ( ( Id `  D ) `
 ( ( 1st `  F ) `  x
) ) )
9885, 86, 88, 90subcidcl 13996 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( Id `  C ) `  x
)  e.  ( x H x ) )
99 fvres 5704 . . . . . . 7  |-  ( ( ( Id `  C
) `  x )  e.  ( x H x )  ->  ( (
( x ( 2nd `  F ) x )  |`  ( x H x ) ) `  (
( Id `  C
) `  x )
)  =  ( ( x ( 2nd `  F
) x ) `  ( ( Id `  C ) `  x
) ) )
10098, 99syl 16 . . . . . 6  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( ( x ( 2nd `  F
) x )  |`  ( x H x ) ) `  (
( Id `  C
) `  x )
)  =  ( ( x ( 2nd `  F
) x ) `  ( ( Id `  C ) `  x
) ) )
10188, 76syl 16 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( ( 1st `  F )  |`  dom  dom  H ) `  x )  =  ( ( 1st `  F ) `  x
) )
102101fveq2d 5691 . . . . . 6  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( Id `  D ) `  (
( ( 1st `  F
)  |`  dom  dom  H
) `  x )
)  =  ( ( Id `  D ) `
 ( ( 1st `  F ) `  x
) ) )
10397, 100, 1023eqtr4d 2446 . . . . 5  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( ( x ( 2nd `  F
) x )  |`  ( x H x ) ) `  (
( Id `  C
) `  x )
)  =  ( ( Id `  D ) `
 ( ( ( 1st `  F )  |`  dom  dom  H ) `  x ) ) )
10493, 103eqtrd 2436 . . . 4  |-  ( (
ph  /\  x  e.  ( Base `  ( C  |`cat  H ) ) )  -> 
( ( x ( 2nd `  ( F  |`f  H ) ) x ) `  ( ( Id `  ( C  |`cat 
H ) ) `  x ) )  =  ( ( Id `  D ) `  (
( ( 1st `  F
)  |`  dom  dom  H
) `  x )
) )
10523ad2ant1 978 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  H  e.  (Subcat `  C ) )
106343ad2ant1 978 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  H  Fn  ( dom  dom  H  X.  dom  dom  H ) )
107 simp21 990 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  x  e.  ( Base `  ( C  |`cat  H ) ) )
108393ad2ant1 978 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  dom  dom  H  =  ( Base `  ( C  |`cat  H ) ) )
109107, 108eleqtrrd 2481 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  x  e.  dom  dom  H )
110 eqid 2404 . . . . . . . 8  |-  (comp `  C )  =  (comp `  C )
111 simp22 991 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  y  e.  ( Base `  ( C  |`cat  H ) ) )
112111, 108eleqtrrd 2481 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  y  e.  dom  dom  H )
113 simp23 992 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  z  e.  ( Base `  ( C  |`cat  H ) ) )
114113, 108eleqtrrd 2481 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  z  e.  dom  dom  H )
115 simp3l 985 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  f  e.  ( x (  Hom  `  ( C  |`cat  H )
) y ) )
116733ad2ant1 978 . . . . . . . . . 10  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  H  =  (  Hom  `  ( C  |`cat  H ) ) )
117116oveqd 6057 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( x H y )  =  ( x (  Hom  `  ( C  |`cat  H )
) y ) )
118115, 117eleqtrrd 2481 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  f  e.  ( x H y ) )
119 simp3r 986 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) )
120116oveqd 6057 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( y H z )  =  ( y (  Hom  `  ( C  |`cat  H )
) z ) )
121119, 120eleqtrrd 2481 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  g  e.  ( y H z ) )
122105, 106, 109, 110, 112, 114, 118, 121subccocl 13997 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( g
( <. x ,  y
>. (comp `  C )
z ) f )  e.  ( x H z ) )
123 fvres 5704 . . . . . . 7  |-  ( ( g ( <. x ,  y >. (comp `  C ) z ) f )  e.  ( x H z )  ->  ( ( ( x ( 2nd `  F
) z )  |`  ( x H z ) ) `  (
g ( <. x ,  y >. (comp `  C ) z ) f ) )  =  ( ( x ( 2nd `  F ) z ) `  (
g ( <. x ,  y >. (comp `  C ) z ) f ) ) )
124122, 123syl 16 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
( x ( 2nd `  F ) z )  |`  ( x H z ) ) `  (
g ( <. x ,  y >. (comp `  C ) z ) f ) )  =  ( ( x ( 2nd `  F ) z ) `  (
g ( <. x ,  y >. (comp `  C ) z ) f ) ) )
125313ad2ant1 978 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( 1st `  F ) ( C 
Func  D ) ( 2nd `  F ) )
126353ad2ant1 978 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  dom  dom  H  C_  ( Base `  C
) )
127126, 109sseldd 3309 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  x  e.  ( Base `  C )
)
128126, 112sseldd 3309 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  y  e.  ( Base `  C )
)
129126, 114sseldd 3309 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  z  e.  ( Base `  C )
)
130105, 106, 53, 109, 112subcss2 13995 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( x H y )  C_  ( x (  Hom  `  C ) y ) )
131130, 118sseldd 3309 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  f  e.  ( x (  Hom  `  C ) y ) )
132105, 106, 53, 112, 114subcss2 13995 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( y H z )  C_  ( y (  Hom  `  C ) z ) )
133132, 121sseldd 3309 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  g  e.  ( y (  Hom  `  C ) z ) )
13428, 53, 110, 22, 125, 127, 128, 129, 131, 133funcco 14023 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
x ( 2nd `  F
) z ) `  ( g ( <.
x ,  y >.
(comp `  C )
z ) f ) )  =  ( ( ( y ( 2nd `  F ) z ) `
 g ) (
<. ( ( 1st `  F
) `  x ) ,  ( ( 1st `  F ) `  y
) >. (comp `  D
) ( ( 1st `  F ) `  z
) ) ( ( x ( 2nd `  F
) y ) `  f ) ) )
135124, 134eqtrd 2436 . . . . 5  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
( x ( 2nd `  F ) z )  |`  ( x H z ) ) `  (
g ( <. x ,  y >. (comp `  C ) z ) f ) )  =  ( ( ( y ( 2nd `  F
) z ) `  g ) ( <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  F ) `  y
) >. (comp `  D
) ( ( 1st `  F ) `  z
) ) ( ( x ( 2nd `  F
) y ) `  f ) ) )
13613ad2ant1 978 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  F  e.  ( C  Func  D ) )
137136, 105, 106, 109, 114resf2nd 14047 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( x
( 2nd `  ( F  |`f  H ) ) z )  =  ( ( x ( 2nd `  F
) z )  |`  ( x H z ) ) )
13823, 28, 38, 34, 35, 110rescco 13987 . . . . . . . . . 10  |-  ( ph  ->  (comp `  C )  =  (comp `  ( C  |`cat  H ) ) )
1391383ad2ant1 978 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  (comp `  C
)  =  (comp `  ( C  |`cat  H ) ) )
140139eqcomd 2409 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  (comp `  ( C  |`cat  H ) )  =  (comp `  C )
)
141140oveqd 6057 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( <. x ,  y >. (comp `  ( C  |`cat  H )
) z )  =  ( <. x ,  y
>. (comp `  C )
z ) )
142141oveqd 6057 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( g
( <. x ,  y
>. (comp `  ( C  |`cat  H ) ) z ) f )  =  ( g ( <. x ,  y >. (comp `  C ) z ) f ) )
143137, 142fveq12d 5693 . . . . 5  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
x ( 2nd `  ( F  |`f  H ) ) z ) `  ( g ( <. x ,  y
>. (comp `  ( C  |`cat  H ) ) z ) f ) )  =  ( ( ( x ( 2nd `  F
) z )  |`  ( x H z ) ) `  (
g ( <. x ,  y >. (comp `  C ) z ) f ) ) )
144109, 76syl 16 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
( 1st `  F
)  |`  dom  dom  H
) `  x )  =  ( ( 1st `  F ) `  x
) )
145112, 78syl 16 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
( 1st `  F
)  |`  dom  dom  H
) `  y )  =  ( ( 1st `  F ) `  y
) )
146144, 145opeq12d 3952 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  <. ( ( ( 1st `  F
)  |`  dom  dom  H
) `  x ) ,  ( ( ( 1st `  F )  |`  dom  dom  H ) `  y ) >.  =  <. ( ( 1st `  F
) `  x ) ,  ( ( 1st `  F ) `  y
) >. )
147 fvres 5704 . . . . . . . 8  |-  ( z  e.  dom  dom  H  ->  ( ( ( 1st `  F )  |`  dom  dom  H ) `  z )  =  ( ( 1st `  F ) `  z
) )
148114, 147syl 16 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
( 1st `  F
)  |`  dom  dom  H
) `  z )  =  ( ( 1st `  F ) `  z
) )
149146, 148oveq12d 6058 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( <. ( ( ( 1st `  F
)  |`  dom  dom  H
) `  x ) ,  ( ( ( 1st `  F )  |`  dom  dom  H ) `  y ) >. (comp `  D ) ( ( ( 1st `  F
)  |`  dom  dom  H
) `  z )
)  =  ( <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  F ) `  y
) >. (comp `  D
) ( ( 1st `  F ) `  z
) ) )
150136, 105, 106, 112, 114resf2nd 14047 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( y
( 2nd `  ( F  |`f  H ) ) z )  =  ( ( y ( 2nd `  F
) z )  |`  ( y H z ) ) )
151150fveq1d 5689 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
y ( 2nd `  ( F  |`f  H ) ) z ) `  g )  =  ( ( ( y ( 2nd `  F
) z )  |`  ( y H z ) ) `  g
) )
152 fvres 5704 . . . . . . . 8  |-  ( g  e.  ( y H z )  ->  (
( ( y ( 2nd `  F ) z )  |`  (
y H z ) ) `  g )  =  ( ( y ( 2nd `  F
) z ) `  g ) )
153121, 152syl 16 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
( y ( 2nd `  F ) z )  |`  ( y H z ) ) `  g
)  =  ( ( y ( 2nd `  F
) z ) `  g ) )
154151, 153eqtrd 2436 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
y ( 2nd `  ( F  |`f  H ) ) z ) `  g )  =  ( ( y ( 2nd `  F
) z ) `  g ) )
155136, 105, 106, 109, 112resf2nd 14047 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( x
( 2nd `  ( F  |`f  H ) ) y )  =  ( ( x ( 2nd `  F
) y )  |`  ( x H y ) ) )
156155fveq1d 5689 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
x ( 2nd `  ( F  |`f  H ) ) y ) `  f )  =  ( ( ( x ( 2nd `  F
) y )  |`  ( x H y ) ) `  f
) )
157 fvres 5704 . . . . . . . 8  |-  ( f  e.  ( x H y )  ->  (
( ( x ( 2nd `  F ) y )  |`  (
x H y ) ) `  f )  =  ( ( x ( 2nd `  F
) y ) `  f ) )
158118, 157syl 16 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
( x ( 2nd `  F ) y )  |`  ( x H y ) ) `  f
)  =  ( ( x ( 2nd `  F
) y ) `  f ) )
159156, 158eqtrd 2436 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
x ( 2nd `  ( F  |`f  H ) ) y ) `  f )  =  ( ( x ( 2nd `  F
) y ) `  f ) )
160149, 154, 159oveq123d 6061 . . . . 5  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
( y ( 2nd `  ( F  |`f  H ) ) z ) `  g ) ( <. ( ( ( 1st `  F )  |`  dom  dom  H ) `  x ) ,  ( ( ( 1st `  F
)  |`  dom  dom  H
) `  y ) >. (comp `  D )
( ( ( 1st `  F )  |`  dom  dom  H ) `  z ) ) ( ( x ( 2nd `  ( F  |`f  H ) ) y ) `  f ) )  =  ( ( ( y ( 2nd `  F ) z ) `
 g ) (
<. ( ( 1st `  F
) `  x ) ,  ( ( 1st `  F ) `  y
) >. (comp `  D
) ( ( 1st `  F ) `  z
) ) ( ( x ( 2nd `  F
) y ) `  f ) ) )
161135, 143, 1603eqtr4d 2446 . . . 4  |-  ( (
ph  /\  ( x  e.  ( Base `  ( C  |`cat  H ) )  /\  y  e.  ( Base `  ( C  |`cat  H )
)  /\  z  e.  ( Base `  ( C  |`cat  H ) ) )  /\  ( f  e.  ( x (  Hom  `  ( C  |`cat  H ) ) y )  /\  g  e.  ( y (  Hom  `  ( C  |`cat  H )
) z ) ) )  ->  ( (
x ( 2nd `  ( F  |`f  H ) ) z ) `  ( g ( <. x ,  y
>. (comp `  ( C  |`cat  H ) ) z ) f ) )  =  ( ( ( y ( 2nd `  ( F  |`f  H ) ) z ) `  g ) ( <. ( ( ( 1st `  F )  |`  dom  dom  H ) `  x ) ,  ( ( ( 1st `  F
)  |`  dom  dom  H
) `  y ) >. (comp `  D )
( ( ( 1st `  F )  |`  dom  dom  H ) `  z ) ) ( ( x ( 2nd `  ( F  |`f  H ) ) y ) `  f ) ) )
16215, 16, 17, 18, 19, 20, 21, 22, 24, 27, 41, 52, 83, 104, 161isfuncd 14017 . . 3  |-  ( ph  ->  ( ( 1st `  F
)  |`  dom  dom  H
) ( ( C  |`cat 
H )  Func  D
) ( 2nd `  ( F  |`f  H ) ) )
163 df-br 4173 . . 3  |-  ( ( ( 1st `  F
)  |`  dom  dom  H
) ( ( C  |`cat 
H )  Func  D
) ( 2nd `  ( F  |`f  H ) )  <->  <. ( ( 1st `  F )  |`  dom  dom  H ) ,  ( 2nd `  ( F  |`f  H ) ) >.  e.  ( ( C  |`cat  H
)  Func  D )
)
164162, 163sylib 189 . 2  |-  ( ph  -> 
<. ( ( 1st `  F
)  |`  dom  dom  H
) ,  ( 2nd `  ( F  |`f  H ) ) >.  e.  ( ( C  |`cat  H
)  Func  D )
)
16514, 164eqeltrd 2478 1  |-  ( ph  ->  ( F  |`f  H )  e.  ( ( C  |`cat  H )  Func  D ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1721   _Vcvv 2916    C_ wss 3280   <.cop 3777   class class class wbr 4172    e. cmpt 4226    X. cxp 4835   dom cdm 4837    |` cres 4839   Rel wrel 4842    Fn wfn 5408   -->wf 5409   ` cfv 5413  (class class class)co 6040   1stc1st 6306   2ndc2nd 6307   Basecbs 13424    Hom chom 13495  compcco 13496   Catccat 13844   Idccid 13845    |`cat cresc 13963  Subcatcsubc 13964    Func cfunc 14006    |`f cresf 14009
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1662  ax-8 1683  ax-13 1723  ax-14 1725  ax-6 1740  ax-7 1745  ax-11 1757  ax-12 1946  ax-ext 2385  ax-rep 4280  ax-sep 4290  ax-nul 4298  ax-pow 4337  ax-pr 4363  ax-un 4660  ax-cnex 9002  ax-resscn 9003  ax-1cn 9004  ax-icn 9005  ax-addcl 9006  ax-addrcl 9007  ax-mulcl 9008  ax-mulrcl 9009  ax-mulcom 9010  ax-addass 9011  ax-mulass 9012  ax-distr 9013  ax-i2m1 9014  ax-1ne0 9015  ax-1rid 9016  ax-rnegex 9017  ax-rrecex 9018  ax-cnre 9019  ax-pre-lttri 9020  ax-pre-lttrn 9021  ax-pre-ltadd 9022  ax-pre-mulgt0 9023
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2258  df-mo 2259  df-clab 2391  df-cleq 2397  df-clel 2400  df-nfc 2529  df-ne 2569  df-nel 2570  df-ral 2671  df-rex 2672  df-reu 2673  df-rmo 2674  df-rab 2675  df-v 2918  df-sbc 3122  df-csb 3212  df-dif 3283  df-un 3285  df-in 3287  df-ss 3294  df-pss 3296  df-nul 3589  df-if 3700  df-pw 3761  df-sn 3780  df-pr 3781  df-tp 3782  df-op 3783  df-uni 3976  df-iun 4055  df-br 4173  df-opab 4227  df-mpt 4228  df-tr 4263  df-eprel 4454  df-id 4458  df-po 4463  df-so 4464  df-fr 4501  df-we 4503  df-ord 4544  df-on 4545  df-lim 4546  df-suc 4547  df-om 4805  df-xp 4843  df-rel 4844  df-cnv 4845  df-co 4846  df-dm 4847  df-rn 4848  df-res 4849  df-ima 4850  df-iota 5377  df-fun 5415  df-fn 5416  df-f 5417  df-f1 5418  df-fo 5419  df-f1o 5420  df-fv 5421  df-ov 6043  df-oprab 6044  df-mpt2 6045  df-1st 6308  df-2nd 6309  df-riota 6508  df-recs 6592  df-rdg 6627  df-er 6864  df-map 6979  df-pm 6980  df-ixp 7023  df-en 7069  df-dom 7070  df-sdom 7071  df-pnf 9078  df-mnf 9079  df-xr 9080  df-ltxr 9081  df-le 9082  df-sub 9249  df-neg 9250  df-nn 9957  df-2 10014  df-3 10015  df-4 10016  df-5 10017  df-6 10018  df-7 10019  df-8 10020  df-9 10021  df-10 10022  df-n0 10178  df-z 10239  df-dec 10339  df-ndx 13427  df-slot 13428  df-base 13429  df-sets 13430  df-ress 13431  df-hom 13508  df-cco 13509  df-cat 13848  df-cid 13849  df-homf 13850  df-ssc 13965  df-resc 13966  df-subc 13967  df-func 14010  df-resf 14013
  Copyright terms: Public domain W3C validator