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

Theorem funcid 13995
Description: A functor maps each identity to the corresponding identity in the target category. (Contributed by Mario Carneiro, 2-Jan-2017.)
Hypotheses
Ref Expression
funcid.b  |-  B  =  ( Base `  D
)
funcid.1  |-  .1.  =  ( Id `  D )
funcid.i  |-  I  =  ( Id `  E
)
funcid.f  |-  ( ph  ->  F ( D  Func  E ) G )
funcid.x  |-  ( ph  ->  X  e.  B )
Assertion
Ref Expression
funcid  |-  ( ph  ->  ( ( X G X ) `  (  .1.  `  X ) )  =  ( I `  ( F `  X ) ) )

Proof of Theorem funcid
Dummy variables  m  n  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 funcid.x . 2  |-  ( ph  ->  X  e.  B )
2 funcid.f . . . . 5  |-  ( ph  ->  F ( D  Func  E ) G )
3 funcid.b . . . . . 6  |-  B  =  ( Base `  D
)
4 eqid 2388 . . . . . 6  |-  ( Base `  E )  =  (
Base `  E )
5 eqid 2388 . . . . . 6  |-  (  Hom  `  D )  =  (  Hom  `  D )
6 eqid 2388 . . . . . 6  |-  (  Hom  `  E )  =  (  Hom  `  E )
7 funcid.1 . . . . . 6  |-  .1.  =  ( Id `  D )
8 funcid.i . . . . . 6  |-  I  =  ( Id `  E
)
9 eqid 2388 . . . . . 6  |-  (comp `  D )  =  (comp `  D )
10 eqid 2388 . . . . . 6  |-  (comp `  E )  =  (comp `  E )
11 df-br 4155 . . . . . . . . 9  |-  ( F ( D  Func  E
) G  <->  <. F ,  G >.  e.  ( D 
Func  E ) )
122, 11sylib 189 . . . . . . . 8  |-  ( ph  -> 
<. F ,  G >.  e.  ( D  Func  E
) )
13 funcrcl 13988 . . . . . . . 8  |-  ( <. F ,  G >.  e.  ( D  Func  E
)  ->  ( D  e.  Cat  /\  E  e. 
Cat ) )
1412, 13syl 16 . . . . . . 7  |-  ( ph  ->  ( D  e.  Cat  /\  E  e.  Cat )
)
1514simpld 446 . . . . . 6  |-  ( ph  ->  D  e.  Cat )
1614simprd 450 . . . . . 6  |-  ( ph  ->  E  e.  Cat )
173, 4, 5, 6, 7, 8, 9, 10, 15, 16isfunc 13989 . . . . 5  |-  ( ph  ->  ( F ( D 
Func  E ) G  <->  ( F : B --> ( Base `  E
)  /\  G  e.  X_ z  e.  ( B  X.  B ) ( ( ( F `  ( 1st `  z ) ) (  Hom  `  E
) ( F `  ( 2nd `  z ) ) )  ^m  (
(  Hom  `  D ) `
 z ) )  /\  A. x  e.  B  ( ( ( x G x ) `
 (  .1.  `  x ) )  =  ( I `  ( F `  x )
)  /\  A. y  e.  B  A. z  e.  B  A. m  e.  ( x (  Hom  `  D ) y ) A. n  e.  ( y (  Hom  `  D
) z ) ( ( x G z ) `  ( n ( <. x ,  y
>. (comp `  D )
z ) m ) )  =  ( ( ( y G z ) `  n ) ( <. ( F `  x ) ,  ( F `  y )
>. (comp `  E )
( F `  z
) ) ( ( x G y ) `
 m ) ) ) ) ) )
182, 17mpbid 202 . . . 4  |-  ( ph  ->  ( F : B --> ( Base `  E )  /\  G  e.  X_ z  e.  ( B  X.  B
) ( ( ( F `  ( 1st `  z ) ) (  Hom  `  E )
( F `  ( 2nd `  z ) ) )  ^m  ( (  Hom  `  D ) `  z ) )  /\  A. x  e.  B  ( ( ( x G x ) `  (  .1.  `  x ) )  =  ( I `  ( F `  x ) )  /\  A. y  e.  B  A. z  e.  B  A. m  e.  ( x (  Hom  `  D ) y ) A. n  e.  ( y (  Hom  `  D
) z ) ( ( x G z ) `  ( n ( <. x ,  y
>. (comp `  D )
z ) m ) )  =  ( ( ( y G z ) `  n ) ( <. ( F `  x ) ,  ( F `  y )
>. (comp `  E )
( F `  z
) ) ( ( x G y ) `
 m ) ) ) ) )
1918simp3d 971 . . 3  |-  ( ph  ->  A. x  e.  B  ( ( ( x G x ) `  (  .1.  `  x )
)  =  ( I `
 ( F `  x ) )  /\  A. y  e.  B  A. z  e.  B  A. m  e.  ( x
(  Hom  `  D ) y ) A. n  e.  ( y (  Hom  `  D ) z ) ( ( x G z ) `  (
n ( <. x ,  y >. (comp `  D ) z ) m ) )  =  ( ( ( y G z ) `  n ) ( <.
( F `  x
) ,  ( F `
 y ) >.
(comp `  E )
( F `  z
) ) ( ( x G y ) `
 m ) ) ) )
20 simpl 444 . . . 4  |-  ( ( ( ( x G x ) `  (  .1.  `  x ) )  =  ( I `  ( F `  x ) )  /\  A. y  e.  B  A. z  e.  B  A. m  e.  ( x (  Hom  `  D ) y ) A. n  e.  ( y (  Hom  `  D
) z ) ( ( x G z ) `  ( n ( <. x ,  y
>. (comp `  D )
z ) m ) )  =  ( ( ( y G z ) `  n ) ( <. ( F `  x ) ,  ( F `  y )
>. (comp `  E )
( F `  z
) ) ( ( x G y ) `
 m ) ) )  ->  ( (
x G x ) `
 (  .1.  `  x ) )  =  ( I `  ( F `  x )
) )
2120ralimi 2725 . . 3  |-  ( A. x  e.  B  (
( ( x G x ) `  (  .1.  `  x ) )  =  ( I `  ( F `  x ) )  /\  A. y  e.  B  A. z  e.  B  A. m  e.  ( x (  Hom  `  D ) y ) A. n  e.  ( y (  Hom  `  D
) z ) ( ( x G z ) `  ( n ( <. x ,  y
>. (comp `  D )
z ) m ) )  =  ( ( ( y G z ) `  n ) ( <. ( F `  x ) ,  ( F `  y )
>. (comp `  E )
( F `  z
) ) ( ( x G y ) `
 m ) ) )  ->  A. x  e.  B  ( (
x G x ) `
 (  .1.  `  x ) )  =  ( I `  ( F `  x )
) )
2219, 21syl 16 . 2  |-  ( ph  ->  A. x  e.  B  ( ( x G x ) `  (  .1.  `  x ) )  =  ( I `  ( F `  x ) ) )
23 id 20 . . . . . 6  |-  ( x  =  X  ->  x  =  X )
2423, 23oveq12d 6039 . . . . 5  |-  ( x  =  X  ->  (
x G x )  =  ( X G X ) )
25 fveq2 5669 . . . . 5  |-  ( x  =  X  ->  (  .1.  `  x )  =  (  .1.  `  X
) )
2624, 25fveq12d 5675 . . . 4  |-  ( x  =  X  ->  (
( x G x ) `  (  .1.  `  x ) )  =  ( ( X G X ) `  (  .1.  `  X ) ) )
27 fveq2 5669 . . . . 5  |-  ( x  =  X  ->  ( F `  x )  =  ( F `  X ) )
2827fveq2d 5673 . . . 4  |-  ( x  =  X  ->  (
I `  ( F `  x ) )  =  ( I `  ( F `  X )
) )
2926, 28eqeq12d 2402 . . 3  |-  ( x  =  X  ->  (
( ( x G x ) `  (  .1.  `  x ) )  =  ( I `  ( F `  x ) )  <->  ( ( X G X ) `  (  .1.  `  X )
)  =  ( I `
 ( F `  X ) ) ) )
3029rspcv 2992 . 2  |-  ( X  e.  B  ->  ( A. x  e.  B  ( ( x G x ) `  (  .1.  `  x ) )  =  ( I `  ( F `  x ) )  ->  ( ( X G X ) `  (  .1.  `  X )
)  =  ( I `
 ( F `  X ) ) ) )
311, 22, 30sylc 58 1  |-  ( ph  ->  ( ( X G X ) `  (  .1.  `  X ) )  =  ( I `  ( F `  X ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717   A.wral 2650   <.cop 3761   class class class wbr 4154    X. cxp 4817   -->wf 5391   ` cfv 5395  (class class class)co 6021   1stc1st 6287   2ndc2nd 6288    ^m cmap 6955   X_cixp 7000   Basecbs 13397    Hom chom 13468  compcco 13469   Catccat 13817   Idccid 13818    Func cfunc 13979
This theorem is referenced by:  funcsect  13997  funcoppc  14000  cofucl  14013  funcres  14021  fthsect  14050  catcisolem  14189  prfcl  14228  evlfcl  14247  curf1cl  14253  curfcl  14257  curfuncf  14263  yonedainv  14306
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 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2369  ax-rep 4262  ax-sep 4272  ax-nul 4280  ax-pow 4319  ax-pr 4345  ax-un 4642
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2243  df-mo 2244  df-clab 2375  df-cleq 2381  df-clel 2384  df-nfc 2513  df-ne 2553  df-ral 2655  df-rex 2656  df-reu 2657  df-rab 2659  df-v 2902  df-sbc 3106  df-csb 3196  df-dif 3267  df-un 3269  df-in 3271  df-ss 3278  df-nul 3573  df-if 3684  df-pw 3745  df-sn 3764  df-pr 3765  df-op 3767  df-uni 3959  df-iun 4038  df-br 4155  df-opab 4209  df-mpt 4210  df-id 4440  df-xp 4825  df-rel 4826  df-cnv 4827  df-co 4828  df-dm 4829  df-rn 4830  df-res 4831  df-ima 4832  df-iota 5359  df-fun 5397  df-fn 5398  df-f 5399  df-f1 5400  df-fo 5401  df-f1o 5402  df-fv 5403  df-ov 6024  df-oprab 6025  df-mpt2 6026  df-map 6957  df-ixp 7001  df-func 13983
  Copyright terms: Public domain W3C validator