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

Theorem evlfval 16857
Description: Value of the evaluation functor. (Contributed by Mario Carneiro, 12-Jan-2017.)
Hypotheses
Ref Expression
evlfval.e  |-  E  =  ( C evalF  D )
evlfval.c  |-  ( ph  ->  C  e.  Cat )
evlfval.d  |-  ( ph  ->  D  e.  Cat )
evlfval.b  |-  B  =  ( Base `  C
)
evlfval.h  |-  H  =  ( Hom  `  C
)
evlfval.o  |-  .x.  =  (comp `  D )
evlfval.n  |-  N  =  ( C Nat  D )
Assertion
Ref Expression
evlfval  |-  ( ph  ->  E  =  <. (
f  e.  ( C 
Func  D ) ,  x  e.  B  |->  ( ( 1st `  f ) `
 x ) ) ,  ( x  e.  ( ( C  Func  D )  X.  B ) ,  y  e.  ( ( C  Func  D
)  X.  B ) 
|->  [_ ( 1st `  x
)  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
>. )
Distinct variable groups:    f, a,
g, m, n, x, y, C    D, a,
f, g, m, n, x, y    g, H, m, n, x, y    N, a, g, m, n, x, y    ph, a,
f, g, m, n, x, y    .x. , a,
g, m, n, x, y    x, B, y
Allowed substitution hints:    B( f, g, m, n, a)    .x. ( f)    E( x, y, f, g, m, n, a)    H( f, a)    N( f)

Proof of Theorem evlfval
Dummy variables  c 
d are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 evlfval.e . 2  |-  E  =  ( C evalF  D )
2 df-evlf 16853 . . . 4  |- evalF  =  ( c  e. 
Cat ,  d  e.  Cat  |->  <. ( f  e.  ( c  Func  d
) ,  x  e.  ( Base `  c
)  |->  ( ( 1st `  f ) `  x
) ) ,  ( x  e.  ( ( c  Func  d )  X.  ( Base `  c
) ) ,  y  e.  ( ( c 
Func  d )  X.  ( Base `  c
) )  |->  [_ ( 1st `  x )  /  m ]_ [_ ( 1st `  y )  /  n ]_ ( a  e.  ( m ( c Nat  d
) n ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  c
) ( 2nd `  y
) )  |->  ( ( a `  ( 2nd `  y ) ) (
<. ( ( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.
(comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) ) ) ) >. )
32a1i 11 . . 3  |-  ( ph  -> evalF  =  ( c  e.  Cat ,  d  e.  Cat  |->  <.
( f  e.  ( c  Func  d ) ,  x  e.  ( Base `  c )  |->  ( ( 1st `  f
) `  x )
) ,  ( x  e.  ( ( c 
Func  d )  X.  ( Base `  c
) ) ,  y  e.  ( ( c 
Func  d )  X.  ( Base `  c
) )  |->  [_ ( 1st `  x )  /  m ]_ [_ ( 1st `  y )  /  n ]_ ( a  e.  ( m ( c Nat  d
) n ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  c
) ( 2nd `  y
) )  |->  ( ( a `  ( 2nd `  y ) ) (
<. ( ( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.
(comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) ) ) ) >. ) )
4 simprl 794 . . . . . 6  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
c  =  C )
5 simprr 796 . . . . . 6  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
d  =  D )
64, 5oveq12d 6668 . . . . 5  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( c  Func  d
)  =  ( C 
Func  D ) )
74fveq2d 6195 . . . . . 6  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( Base `  c )  =  ( Base `  C
) )
8 evlfval.b . . . . . 6  |-  B  =  ( Base `  C
)
97, 8syl6eqr 2674 . . . . 5  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( Base `  c )  =  B )
10 eqidd 2623 . . . . 5  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( ( 1st `  f
) `  x )  =  ( ( 1st `  f ) `  x
) )
116, 9, 10mpt2eq123dv 6717 . . . 4  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( f  e.  ( c  Func  d ) ,  x  e.  ( Base `  c )  |->  ( ( 1st `  f
) `  x )
)  =  ( f  e.  ( C  Func  D ) ,  x  e.  B  |->  ( ( 1st `  f ) `  x
) ) )
126, 9xpeq12d 5140 . . . . 5  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( ( c  Func  d )  X.  ( Base `  c ) )  =  ( ( C  Func  D )  X.  B ) )
134, 5oveq12d 6668 . . . . . . . . . 10  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( c Nat  d )  =  ( C Nat  D
) )
14 evlfval.n . . . . . . . . . 10  |-  N  =  ( C Nat  D )
1513, 14syl6eqr 2674 . . . . . . . . 9  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( c Nat  d )  =  N )
1615oveqd 6667 . . . . . . . 8  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( m ( c Nat  d ) n )  =  ( m N n ) )
174fveq2d 6195 . . . . . . . . . 10  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( Hom  `  c )  =  ( Hom  `  C
) )
18 evlfval.h . . . . . . . . . 10  |-  H  =  ( Hom  `  C
)
1917, 18syl6eqr 2674 . . . . . . . . 9  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( Hom  `  c )  =  H )
2019oveqd 6667 . . . . . . . 8  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( ( 2nd `  x
) ( Hom  `  c
) ( 2nd `  y
) )  =  ( ( 2nd `  x
) H ( 2nd `  y ) ) )
215fveq2d 6195 . . . . . . . . . . 11  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
(comp `  d )  =  (comp `  D )
)
22 evlfval.o . . . . . . . . . . 11  |-  .x.  =  (comp `  D )
2321, 22syl6eqr 2674 . . . . . . . . . 10  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
(comp `  d )  =  .x.  )
2423oveqd 6667 . . . . . . . . 9  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>. (comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) )  =  ( <. (
( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.  .x.  ( ( 1st `  n
) `  ( 2nd `  y ) ) ) )
2524oveqd 6667 . . . . . . . 8  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( ( a `  ( 2nd `  y ) ) ( <. (
( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.
(comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) )  =  ( ( a `  ( 2nd `  y ) ) ( <. (
( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.  .x.  ( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) ) )
2616, 20, 25mpt2eq123dv 6717 . . . . . . 7  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( a  e.  ( m ( c Nat  d
) n ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  c
) ( 2nd `  y
) )  |->  ( ( a `  ( 2nd `  y ) ) (
<. ( ( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.
(comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) ) )  =  ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
2726csbeq2dv 3992 . . . . . 6  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  ->  [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m ( c Nat  d
) n ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  c
) ( 2nd `  y
) )  |->  ( ( a `  ( 2nd `  y ) ) (
<. ( ( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.
(comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) ) )  =  [_ ( 1st `  y )  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
2827csbeq2dv 3992 . . . . 5  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  ->  [_ ( 1st `  x
)  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m ( c Nat  d
) n ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  c
) ( 2nd `  y
) )  |->  ( ( a `  ( 2nd `  y ) ) (
<. ( ( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.
(comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) ) )  =  [_ ( 1st `  x )  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
2912, 12, 28mpt2eq123dv 6717 . . . 4  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  -> 
( x  e.  ( ( c  Func  d
)  X.  ( Base `  c ) ) ,  y  e.  ( ( c  Func  d )  X.  ( Base `  c
) )  |->  [_ ( 1st `  x )  /  m ]_ [_ ( 1st `  y )  /  n ]_ ( a  e.  ( m ( c Nat  d
) n ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  c
) ( 2nd `  y
) )  |->  ( ( a `  ( 2nd `  y ) ) (
<. ( ( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.
(comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) ) ) )  =  ( x  e.  ( ( C 
Func  D )  X.  B
) ,  y  e.  ( ( C  Func  D )  X.  B ) 
|->  [_ ( 1st `  x
)  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) ) )
3011, 29opeq12d 4410 . . 3  |-  ( (
ph  /\  ( c  =  C  /\  d  =  D ) )  ->  <. ( f  e.  ( c  Func  d ) ,  x  e.  ( Base `  c )  |->  ( ( 1st `  f
) `  x )
) ,  ( x  e.  ( ( c 
Func  d )  X.  ( Base `  c
) ) ,  y  e.  ( ( c 
Func  d )  X.  ( Base `  c
) )  |->  [_ ( 1st `  x )  /  m ]_ [_ ( 1st `  y )  /  n ]_ ( a  e.  ( m ( c Nat  d
) n ) ,  g  e.  ( ( 2nd `  x ) ( Hom  `  c
) ( 2nd `  y
) )  |->  ( ( a `  ( 2nd `  y ) ) (
<. ( ( 1st `  m
) `  ( 2nd `  x ) ) ,  ( ( 1st `  m
) `  ( 2nd `  y ) ) >.
(comp `  d )
( ( 1st `  n
) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m ) ( 2nd `  y ) ) `  g ) ) ) ) >.  =  <. ( f  e.  ( C 
Func  D ) ,  x  e.  B  |->  ( ( 1st `  f ) `
 x ) ) ,  ( x  e.  ( ( C  Func  D )  X.  B ) ,  y  e.  ( ( C  Func  D
)  X.  B ) 
|->  [_ ( 1st `  x
)  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
>. )
31 evlfval.c . . 3  |-  ( ph  ->  C  e.  Cat )
32 evlfval.d . . 3  |-  ( ph  ->  D  e.  Cat )
33 opex 4932 . . . 4  |-  <. (
f  e.  ( C 
Func  D ) ,  x  e.  B  |->  ( ( 1st `  f ) `
 x ) ) ,  ( x  e.  ( ( C  Func  D )  X.  B ) ,  y  e.  ( ( C  Func  D
)  X.  B ) 
|->  [_ ( 1st `  x
)  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
>.  e.  _V
3433a1i 11 . . 3  |-  ( ph  -> 
<. ( f  e.  ( C  Func  D ) ,  x  e.  B  |->  ( ( 1st `  f
) `  x )
) ,  ( x  e.  ( ( C 
Func  D )  X.  B
) ,  y  e.  ( ( C  Func  D )  X.  B ) 
|->  [_ ( 1st `  x
)  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
>.  e.  _V )
353, 30, 31, 32, 34ovmpt2d 6788 . 2  |-  ( ph  ->  ( C evalF  D )  =  <. ( f  e.  ( C 
Func  D ) ,  x  e.  B  |->  ( ( 1st `  f ) `
 x ) ) ,  ( x  e.  ( ( C  Func  D )  X.  B ) ,  y  e.  ( ( C  Func  D
)  X.  B ) 
|->  [_ ( 1st `  x
)  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
>. )
361, 35syl5eq 2668 1  |-  ( ph  ->  E  =  <. (
f  e.  ( C 
Func  D ) ,  x  e.  B  |->  ( ( 1st `  f ) `
 x ) ) ,  ( x  e.  ( ( C  Func  D )  X.  B ) ,  y  e.  ( ( C  Func  D
)  X.  B ) 
|->  [_ ( 1st `  x
)  /  m ]_ [_ ( 1st `  y
)  /  n ]_ ( a  e.  ( m N n ) ,  g  e.  ( ( 2nd `  x
) H ( 2nd `  y ) )  |->  ( ( a `  ( 2nd `  y ) ) ( <. ( ( 1st `  m ) `  ( 2nd `  x ) ) ,  ( ( 1st `  m ) `  ( 2nd `  y ) )
>.  .x.  ( ( 1st `  n ) `  ( 2nd `  y ) ) ) ( ( ( 2nd `  x ) ( 2nd `  m
) ( 2nd `  y
) ) `  g
) ) ) )
>. )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 384    = wceq 1483    e. wcel 1990   _Vcvv 3200   [_csb 3533   <.cop 4183    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    Func cfunc 16514   Nat cnat 16601   evalF cevlf 16849
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-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pr 4906
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-ral 2917  df-rex 2918  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-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-br 4654  df-opab 4713  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-iota 5851  df-fun 5890  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-evlf 16853
This theorem is referenced by:  evlf2  16858  evlf1  16860  evlfcl  16862
  Copyright terms: Public domain W3C validator