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

Theorem hofpropd 16907
Description: If two categories have the same set of objects, morphisms, and compositions, then they have the same Hom functor. (Contributed by Mario Carneiro, 26-Jan-2017.)
Hypotheses
Ref Expression
hofpropd.1  |-  ( ph  ->  ( Hom f  `  C )  =  ( Hom f  `  D ) )
hofpropd.2  |-  ( ph  ->  (compf `  C )  =  (compf `  D ) )
hofpropd.c  |-  ( ph  ->  C  e.  Cat )
hofpropd.d  |-  ( ph  ->  D  e.  Cat )
Assertion
Ref Expression
hofpropd  |-  ( ph  ->  (HomF
`  C )  =  (HomF
`  D ) )

Proof of Theorem hofpropd
Dummy variables  f 
g  h  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 hofpropd.1 . . 3  |-  ( ph  ->  ( Hom f  `  C )  =  ( Hom f  `  D ) )
21homfeqbas 16356 . . . . 5  |-  ( ph  ->  ( Base `  C
)  =  ( Base `  D ) )
32sqxpeqd 5141 . . . 4  |-  ( ph  ->  ( ( Base `  C
)  X.  ( Base `  C ) )  =  ( ( Base `  D
)  X.  ( Base `  D ) ) )
43adantr 481 . . . 4  |-  ( (
ph  /\  x  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) )  ->  ( ( Base `  C )  X.  ( Base `  C ) )  =  ( ( Base `  D )  X.  ( Base `  D ) ) )
5 eqid 2622 . . . . . 6  |-  ( Base `  C )  =  (
Base `  C )
6 eqid 2622 . . . . . 6  |-  ( Hom  `  C )  =  ( Hom  `  C )
7 eqid 2622 . . . . . 6  |-  ( Hom  `  D )  =  ( Hom  `  D )
81adantr 481 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( Hom f  `  C )  =  ( Hom f  `  D ) )
9 xp1st 7198 . . . . . . 7  |-  ( y  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  ( 1st `  y
)  e.  ( Base `  C ) )
109ad2antll 765 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( 1st `  y
)  e.  ( Base `  C ) )
11 xp1st 7198 . . . . . . 7  |-  ( x  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  ( 1st `  x
)  e.  ( Base `  C ) )
1211ad2antrl 764 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( 1st `  x
)  e.  ( Base `  C ) )
135, 6, 7, 8, 10, 12homfeqval 16357 . . . . 5  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  =  ( ( 1st `  y
) ( Hom  `  D
) ( 1st `  x
) ) )
14 xp2nd 7199 . . . . . . . 8  |-  ( x  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  ( 2nd `  x
)  e.  ( Base `  C ) )
1514ad2antrl 764 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( 2nd `  x
)  e.  ( Base `  C ) )
16 xp2nd 7199 . . . . . . . 8  |-  ( y  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  ( 2nd `  y
)  e.  ( Base `  C ) )
1716ad2antll 765 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( 2nd `  y
)  e.  ( Base `  C ) )
185, 6, 7, 8, 15, 17homfeqval 16357 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( ( 2nd `  x ) ( Hom  `  C ) ( 2nd `  y ) )  =  ( ( 2nd `  x
) ( Hom  `  D
) ( 2nd `  y
) ) )
1918adantr 481 . . . . 5  |-  ( ( ( ph  /\  (
x  e.  ( (
Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  f  e.  ( ( 1st `  y
) ( Hom  `  C
) ( 1st `  x
) ) )  -> 
( ( 2nd `  x
) ( Hom  `  C
) ( 2nd `  y
) )  =  ( ( 2nd `  x
) ( Hom  `  D
) ( 2nd `  y
) ) )
205, 6, 7, 8, 12, 15homfeqval 16357 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( ( 1st `  x ) ( Hom  `  C ) ( 2nd `  x ) )  =  ( ( 1st `  x
) ( Hom  `  D
) ( 2nd `  x
) ) )
21 df-ov 6653 . . . . . . . . 9  |-  ( ( 1st `  x ) ( Hom  `  C
) ( 2nd `  x
) )  =  ( ( Hom  `  C
) `  <. ( 1st `  x ) ,  ( 2nd `  x )
>. )
22 df-ov 6653 . . . . . . . . 9  |-  ( ( 1st `  x ) ( Hom  `  D
) ( 2nd `  x
) )  =  ( ( Hom  `  D
) `  <. ( 1st `  x ) ,  ( 2nd `  x )
>. )
2320, 21, 223eqtr3g 2679 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( ( Hom  `  C ) `  <. ( 1st `  x ) ,  ( 2nd `  x
) >. )  =  ( ( Hom  `  D
) `  <. ( 1st `  x ) ,  ( 2nd `  x )
>. ) )
24 1st2nd2 7205 . . . . . . . . . 10  |-  ( x  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  x  =  <. ( 1st `  x ) ,  ( 2nd `  x
) >. )
2524ad2antrl 764 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  x  =  <. ( 1st `  x ) ,  ( 2nd `  x
) >. )
2625fveq2d 6195 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( ( Hom  `  C ) `  x
)  =  ( ( Hom  `  C ) `  <. ( 1st `  x
) ,  ( 2nd `  x ) >. )
)
2725fveq2d 6195 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( ( Hom  `  D ) `  x
)  =  ( ( Hom  `  D ) `  <. ( 1st `  x
) ,  ( 2nd `  x ) >. )
)
2823, 26, 273eqtr4d 2666 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( ( Hom  `  C ) `  x
)  =  ( ( Hom  `  D ) `  x ) )
2928adantr 481 . . . . . 6  |-  ( ( ( ph  /\  (
x  e.  ( (
Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  ->  ( ( Hom  `  C ) `  x
)  =  ( ( Hom  `  D ) `  x ) )
30 eqid 2622 . . . . . . . 8  |-  (comp `  C )  =  (comp `  C )
31 eqid 2622 . . . . . . . 8  |-  (comp `  D )  =  (comp `  D )
328ad2antrr 762 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( Hom f  `  C
)  =  ( Hom f  `  D ) )
33 hofpropd.2 . . . . . . . . 9  |-  ( ph  ->  (compf `  C )  =  (compf `  D ) )
3433ad3antrrr 766 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  (compf `  C )  =  (compf `  D ) )
3510ad2antrr 762 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( 1st `  y )  e.  (
Base `  C )
)
3612ad2antrr 762 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( 1st `  x )  e.  (
Base `  C )
)
3717ad2antrr 762 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( 2nd `  y )  e.  (
Base `  C )
)
38 simplrl 800 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  f  e.  ( ( 1st `  y
) ( Hom  `  C
) ( 1st `  x
) ) )
3925ad2antrr 762 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  x  =  <. ( 1st `  x
) ,  ( 2nd `  x ) >. )
4039oveq1d 6665 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( x
(comp `  C )
( 2nd `  y
) )  =  (
<. ( 1st `  x
) ,  ( 2nd `  x ) >. (comp `  C ) ( 2nd `  y ) ) )
4140oveqd 6667 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( g
( x (comp `  C ) ( 2nd `  y ) ) h )  =  ( g ( <. ( 1st `  x
) ,  ( 2nd `  x ) >. (comp `  C ) ( 2nd `  y ) ) h ) )
42 hofpropd.c . . . . . . . . . . 11  |-  ( ph  ->  C  e.  Cat )
4342ad3antrrr 766 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  C  e.  Cat )
4415ad2antrr 762 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( 2nd `  x )  e.  (
Base `  C )
)
4526adantr 481 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
x  e.  ( (
Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  ->  ( ( Hom  `  C ) `  x
)  =  ( ( Hom  `  C ) `  <. ( 1st `  x
) ,  ( 2nd `  x ) >. )
)
4645, 21syl6eqr 2674 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
x  e.  ( (
Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  ->  ( ( Hom  `  C ) `  x
)  =  ( ( 1st `  x ) ( Hom  `  C
) ( 2nd `  x
) ) )
4746eleq2d 2687 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
x  e.  ( (
Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  ->  ( h  e.  ( ( Hom  `  C
) `  x )  <->  h  e.  ( ( 1st `  x ) ( Hom  `  C ) ( 2nd `  x ) ) ) )
4847biimpa 501 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  h  e.  ( ( 1st `  x
) ( Hom  `  C
) ( 2nd `  x
) ) )
49 simplrr 801 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  g  e.  ( ( 2nd `  x
) ( Hom  `  C
) ( 2nd `  y
) ) )
505, 6, 30, 43, 36, 44, 37, 48, 49catcocl 16346 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( g
( <. ( 1st `  x
) ,  ( 2nd `  x ) >. (comp `  C ) ( 2nd `  y ) ) h )  e.  ( ( 1st `  x ) ( Hom  `  C
) ( 2nd `  y
) ) )
5141, 50eqeltrd 2701 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( g
( x (comp `  C ) ( 2nd `  y ) ) h )  e.  ( ( 1st `  x ) ( Hom  `  C
) ( 2nd `  y
) ) )
525, 6, 30, 31, 32, 34, 35, 36, 37, 38, 51comfeqval 16368 . . . . . . 7  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( (
g ( x (comp `  C ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  C
) ( 2nd `  y
) ) f )  =  ( ( g ( x (comp `  C ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f ) )
535, 6, 30, 31, 32, 34, 36, 44, 37, 48, 49comfeqval 16368 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( g
( <. ( 1st `  x
) ,  ( 2nd `  x ) >. (comp `  C ) ( 2nd `  y ) ) h )  =  ( g ( <. ( 1st `  x
) ,  ( 2nd `  x ) >. (comp `  D ) ( 2nd `  y ) ) h ) )
5439oveq1d 6665 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( x
(comp `  D )
( 2nd `  y
) )  =  (
<. ( 1st `  x
) ,  ( 2nd `  x ) >. (comp `  D ) ( 2nd `  y ) ) )
5554oveqd 6667 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( g
( x (comp `  D ) ( 2nd `  y ) ) h )  =  ( g ( <. ( 1st `  x
) ,  ( 2nd `  x ) >. (comp `  D ) ( 2nd `  y ) ) h ) )
5653, 41, 553eqtr4d 2666 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( g
( x (comp `  C ) ( 2nd `  y ) ) h )  =  ( g ( x (comp `  D ) ( 2nd `  y ) ) h ) )
5756oveq1d 6665 . . . . . . 7  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( (
g ( x (comp `  C ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f )  =  ( ( g ( x (comp `  D ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f ) )
5852, 57eqtrd 2656 . . . . . 6  |-  ( ( ( ( ph  /\  ( x  e.  (
( Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  /\  h  e.  ( ( Hom  `  C
) `  x )
)  ->  ( (
g ( x (comp `  C ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  C
) ( 2nd `  y
) ) f )  =  ( ( g ( x (comp `  D ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f ) )
5929, 58mpteq12dva 4732 . . . . 5  |-  ( ( ( ph  /\  (
x  e.  ( (
Base `  C )  X.  ( Base `  C
) )  /\  y  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ) )  /\  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) )  /\  g  e.  ( ( 2nd `  x ) ( Hom  `  C )
( 2nd `  y
) ) ) )  ->  ( h  e.  ( ( Hom  `  C
) `  x )  |->  ( ( g ( x (comp `  C
) ( 2nd `  y
) ) h ) ( <. ( 1st `  y
) ,  ( 1st `  x ) >. (comp `  C ) ( 2nd `  y ) ) f ) )  =  ( h  e.  ( ( Hom  `  D ) `  x )  |->  ( ( g ( x (comp `  D ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f ) ) )
6013, 19, 59mpt2eq123dva 6716 . . . 4  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( f  e.  ( ( 1st `  y
) ( Hom  `  C
) ( 1st `  x
) ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  C ) ( 2nd `  y ) )  |->  ( h  e.  ( ( Hom  `  C ) `  x )  |->  ( ( g ( x (comp `  C ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  C
) ( 2nd `  y
) ) f ) ) )  =  ( f  e.  ( ( 1st `  y ) ( Hom  `  D
) ( 1st `  x
) ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  D ) ( 2nd `  y ) )  |->  ( h  e.  ( ( Hom  `  D ) `  x )  |->  ( ( g ( x (comp `  D ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f ) ) ) )
613, 4, 60mpt2eq123dva 6716 . . 3  |-  ( ph  ->  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ,  y  e.  ( (
Base `  C )  X.  ( Base `  C
) )  |->  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  C
) ( 2nd `  y
) )  |->  ( h  e.  ( ( Hom  `  C ) `  x
)  |->  ( ( g ( x (comp `  C ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  C
) ( 2nd `  y
) ) f ) ) ) )  =  ( x  e.  ( ( Base `  D
)  X.  ( Base `  D ) ) ,  y  e.  ( (
Base `  D )  X.  ( Base `  D
) )  |->  ( f  e.  ( ( 1st `  y ) ( Hom  `  D ) ( 1st `  x ) ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  D
) ( 2nd `  y
) )  |->  ( h  e.  ( ( Hom  `  D ) `  x
)  |->  ( ( g ( x (comp `  D ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f ) ) ) ) )
621, 61opeq12d 4410 . 2  |-  ( ph  -> 
<. ( Hom f  `  C ) ,  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ,  y  e.  ( (
Base `  C )  X.  ( Base `  C
) )  |->  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  C
) ( 2nd `  y
) )  |->  ( h  e.  ( ( Hom  `  C ) `  x
)  |->  ( ( g ( x (comp `  C ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  C
) ( 2nd `  y
) ) f ) ) ) ) >.  =  <. ( Hom f  `  D ) ,  ( x  e.  ( ( Base `  D
)  X.  ( Base `  D ) ) ,  y  e.  ( (
Base `  D )  X.  ( Base `  D
) )  |->  ( f  e.  ( ( 1st `  y ) ( Hom  `  D ) ( 1st `  x ) ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  D
) ( 2nd `  y
) )  |->  ( h  e.  ( ( Hom  `  D ) `  x
)  |->  ( ( g ( x (comp `  D ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f ) ) ) ) >.
)
63 eqid 2622 . . 3  |-  (HomF `  C
)  =  (HomF `  C
)
6463, 42, 5, 6, 30hofval 16892 . 2  |-  ( ph  ->  (HomF
`  C )  = 
<. ( Hom f  `  C ) ,  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) ,  y  e.  ( (
Base `  C )  X.  ( Base `  C
) )  |->  ( f  e.  ( ( 1st `  y ) ( Hom  `  C ) ( 1st `  x ) ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  C
) ( 2nd `  y
) )  |->  ( h  e.  ( ( Hom  `  C ) `  x
)  |->  ( ( g ( x (comp `  C ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  C
) ( 2nd `  y
) ) f ) ) ) ) >.
)
65 eqid 2622 . . 3  |-  (HomF `  D
)  =  (HomF `  D
)
66 hofpropd.d . . 3  |-  ( ph  ->  D  e.  Cat )
67 eqid 2622 . . 3  |-  ( Base `  D )  =  (
Base `  D )
6865, 66, 67, 7, 31hofval 16892 . 2  |-  ( ph  ->  (HomF
`  D )  = 
<. ( Hom f  `  D ) ,  ( x  e.  ( ( Base `  D
)  X.  ( Base `  D ) ) ,  y  e.  ( (
Base `  D )  X.  ( Base `  D
) )  |->  ( f  e.  ( ( 1st `  y ) ( Hom  `  D ) ( 1st `  x ) ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  D
) ( 2nd `  y
) )  |->  ( h  e.  ( ( Hom  `  D ) `  x
)  |->  ( ( g ( x (comp `  D ) ( 2nd `  y ) ) h ) ( <. ( 1st `  y ) ,  ( 1st `  x
) >. (comp `  D
) ( 2nd `  y
) ) f ) ) ) ) >.
)
6962, 64, 683eqtr4d 2666 1  |-  ( ph  ->  (HomF
`  C )  =  (HomF
`  D ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 384    = wceq 1483    e. wcel 1990   <.cop 4183    |-> cmpt 4729    X. cxp 5112   ` cfv 5888  (class class class)co 6650    |-> cmpt2 6652   1stc1st 7166   2ndc2nd 7167   Basecbs 15857   Hom chom 15952  compcco 15953   Catccat 16325   Hom f chomf 16327  compfccomf 16328  HomFchof 16888
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-rep 4771  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-pw 4160  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-1st 7168  df-2nd 7169  df-cat 16329  df-homf 16331  df-comf 16332  df-hof 16890
This theorem is referenced by:  yonpropd  16908  oppcyon  16909
  Copyright terms: Public domain W3C validator