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

Theorem hofpropd 15089
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 14647 . . . . 5  |-  ( ph  ->  ( Base `  C
)  =  ( Base `  D ) )
32, 2xpeq12d 4877 . . . 4  |-  ( ph  ->  ( ( Base `  C
)  X.  ( Base `  C ) )  =  ( ( Base `  D
)  X.  ( Base `  D ) ) )
43adantr 465 . . . 4  |-  ( (
ph  /\  x  e.  ( ( Base `  C
)  X.  ( Base `  C ) ) )  ->  ( ( Base `  C )  X.  ( Base `  C ) )  =  ( ( Base `  D )  X.  ( Base `  D ) ) )
5 eqid 2443 . . . . . 6  |-  ( Base `  C )  =  (
Base `  C )
6 eqid 2443 . . . . . 6  |-  ( Hom  `  C )  =  ( Hom  `  C )
7 eqid 2443 . . . . . 6  |-  ( Hom  `  D )  =  ( Hom  `  D )
81adantr 465 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( Hom f  `  C )  =  ( Hom f  `  D ) )
9 xp1st 6618 . . . . . . 7  |-  ( y  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  ( 1st `  y
)  e.  ( Base `  C ) )
109ad2antll 728 . . . . . 6  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( 1st `  y
)  e.  ( Base `  C ) )
11 xp1st 6618 . . . . . . 7  |-  ( x  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  ( 1st `  x
)  e.  ( Base `  C ) )
1211ad2antrl 727 . . . . . 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 14648 . . . . 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 6619 . . . . . . . 8  |-  ( x  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  ( 2nd `  x
)  e.  ( Base `  C ) )
1514ad2antrl 727 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( 2nd `  x
)  e.  ( Base `  C ) )
16 xp2nd 6619 . . . . . . . 8  |-  ( y  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  ( 2nd `  y
)  e.  ( Base `  C ) )
1716ad2antll 728 . . . . . . 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 14648 . . . . . 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 465 . . . . 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 14648 . . . . . . . . 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 6106 . . . . . . . . 9  |-  ( ( 1st `  x ) ( Hom  `  C
) ( 2nd `  x
) )  =  ( ( Hom  `  C
) `  <. ( 1st `  x ) ,  ( 2nd `  x )
>. )
22 df-ov 6106 . . . . . . . . 9  |-  ( ( 1st `  x ) ( Hom  `  D
) ( 2nd `  x
) )  =  ( ( Hom  `  D
) `  <. ( 1st `  x ) ,  ( 2nd `  x )
>. )
2320, 21, 223eqtr3g 2498 . . . . . . . 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 6625 . . . . . . . . . 10  |-  ( x  e.  ( ( Base `  C )  X.  ( Base `  C ) )  ->  x  =  <. ( 1st `  x ) ,  ( 2nd `  x
) >. )
2524ad2antrl 727 . . . . . . . . 9  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  x  =  <. ( 1st `  x ) ,  ( 2nd `  x
) >. )
2625fveq2d 5707 . . . . . . . 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 5707 . . . . . . . 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 2485 . . . . . . 7  |-  ( (
ph  /\  ( x  e.  ( ( Base `  C
)  X.  ( Base `  C ) )  /\  y  e.  ( ( Base `  C )  X.  ( Base `  C
) ) ) )  ->  ( ( Hom  `  C ) `  x
)  =  ( ( Hom  `  D ) `  x ) )
2928adantr 465 . . . . . 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 2443 . . . . . . . 8  |-  (comp `  C )  =  (comp `  C )
31 eqid 2443 . . . . . . . 8  |-  (comp `  D )  =  (comp `  D )
328ad2antrr 725 . . . . . . . 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 729 . . . . . . . 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 725 . . . . . . . 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 725 . . . . . . . 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 725 . . . . . . . 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 759 . . . . . . . 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 725 . . . . . . . . . . 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 6118 . . . . . . . . . 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 6120 . . . . . . . . 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 729 . . . . . . . . . 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 725 . . . . . . . . . 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 465 . . . . . . . . . . . . 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 2493 . . . . . . . . . . . 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 2510 . . . . . . . . . . 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 484 . . . . . . . . . 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 760 . . . . . . . . . 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 14635 . . . . . . . . 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 2517 . . . . . . . 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 14659 . . . . . . 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 14659 . . . . . . . . 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 6118 . . . . . . . . . 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 6120 . . . . . . . . 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 2485 . . . . . . . 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 6118 . . . . . . 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 2475 . . . . . 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 4381 . . . . 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 6159 . . . 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 6159 . . 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 4079 . 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 2443 . . 3  |-  (HomF `  C
)  =  (HomF `  C
)
6463, 42, 5, 6, 30hofval 15074 . 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 2443 . . 3  |-  (HomF `  D
)  =  (HomF `  D
)
66 hofpropd.d . . 3  |-  ( ph  ->  D  e.  Cat )
67 eqid 2443 . . 3  |-  ( Base `  D )  =  (
Base `  D )
6865, 66, 67, 7, 31hofval 15074 . 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 2485 1  |-  ( ph  ->  (HomF
`  C )  =  (HomF
`  D ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    = wceq 1369    e. wcel 1756   <.cop 3895    e. cmpt 4362    X. cxp 4850   ` cfv 5430  (class class class)co 6103    e. cmpt2 6105   1stc1st 6587   2ndc2nd 6588   Basecbs 14186   Hom chom 14261  compcco 14262   Catccat 14614   Hom f chomf 14616  compfccomf 14617  HomFchof 15070
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-rep 4415  ax-sep 4425  ax-nul 4433  ax-pow 4482  ax-pr 4543  ax-un 6384
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2577  df-ne 2620  df-ral 2732  df-rex 2733  df-reu 2734  df-rab 2736  df-v 2986  df-sbc 3199  df-csb 3301  df-dif 3343  df-un 3345  df-in 3347  df-ss 3354  df-nul 3650  df-if 3804  df-pw 3874  df-sn 3890  df-pr 3892  df-op 3896  df-uni 4104  df-iun 4185  df-br 4305  df-opab 4363  df-mpt 4364  df-id 4648  df-xp 4858  df-rel 4859  df-cnv 4860  df-co 4861  df-dm 4862  df-rn 4863  df-res 4864  df-ima 4865  df-iota 5393  df-fun 5432  df-fn 5433  df-f 5434  df-f1 5435  df-fo 5436  df-f1o 5437  df-fv 5438  df-ov 6106  df-oprab 6107  df-mpt2 6108  df-1st 6589  df-2nd 6590  df-cat 14618  df-homf 14620  df-comf 14621  df-hof 15072
This theorem is referenced by:  yonpropd  15090  oppcyon  15091
  Copyright terms: Public domain W3C validator