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

Theorem prfval 15001
Description: Value of the pairing functor. (Contributed by Mario Carneiro, 12-Jan-2017.)
Hypotheses
Ref Expression
prfval.k  |-  P  =  ( F ⟨,⟩F  G )
prfval.b  |-  B  =  ( Base `  C
)
prfval.h  |-  H  =  ( Hom  `  C
)
prfval.c  |-  ( ph  ->  F  e.  ( C 
Func  D ) )
prfval.d  |-  ( ph  ->  G  e.  ( C 
Func  E ) )
Assertion
Ref Expression
prfval  |-  ( ph  ->  P  =  <. (
x  e.  B  |->  <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. ) ,  ( x  e.  B , 
y  e.  B  |->  ( h  e.  ( x H y )  |->  <.
( ( x ( 2nd `  F ) y ) `  h
) ,  ( ( x ( 2nd `  G
) y ) `  h ) >. )
) >. )
Distinct variable groups:    x, h, y, B    x, C, y   
h, F, x, y    ph, h, x, y    x, D, y    h, G, x, y    h, H, x, y
Allowed substitution hints:    C( h)    D( h)    P( x, y, h)    E( x, y, h)

Proof of Theorem prfval
Dummy variables  f 
b  g are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 prfval.k . 2  |-  P  =  ( F ⟨,⟩F  G )
2 df-prf 14977 . . . 4  |- ⟨,⟩F  =  ( f  e. 
_V ,  g  e. 
_V  |->  [_ dom  ( 1st `  f )  /  b ]_ <. ( x  e.  b  |->  <. ( ( 1st `  f ) `  x
) ,  ( ( 1st `  g ) `
 x ) >.
) ,  ( x  e.  b ,  y  e.  b  |->  ( h  e.  dom  ( x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )
) >. )
32a1i 11 . . 3  |-  ( ph  -> ⟨,⟩F  =  ( f  e.  _V ,  g  e.  _V  |->  [_
dom  ( 1st `  f
)  /  b ]_ <. ( x  e.  b 
|->  <. ( ( 1st `  f ) `  x
) ,  ( ( 1st `  g ) `
 x ) >.
) ,  ( x  e.  b ,  y  e.  b  |->  ( h  e.  dom  ( x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )
) >. ) )
4 fvex 5696 . . . . . 6  |-  ( 1st `  f )  e.  _V
54dmex 6506 . . . . 5  |-  dom  ( 1st `  f )  e. 
_V
65a1i 11 . . . 4  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  dom  ( 1st `  f
)  e.  _V )
7 simprl 755 . . . . . . 7  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  -> 
f  =  F )
87fveq2d 5690 . . . . . 6  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  -> 
( 1st `  f
)  =  ( 1st `  F ) )
98dmeqd 5037 . . . . 5  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  dom  ( 1st `  f
)  =  dom  ( 1st `  F ) )
10 prfval.b . . . . . . . 8  |-  B  =  ( Base `  C
)
11 eqid 2438 . . . . . . . 8  |-  ( Base `  D )  =  (
Base `  D )
12 relfunc 14764 . . . . . . . . 9  |-  Rel  ( C  Func  D )
13 prfval.c . . . . . . . . 9  |-  ( ph  ->  F  e.  ( C 
Func  D ) )
14 1st2ndbr 6618 . . . . . . . . 9  |-  ( ( Rel  ( C  Func  D )  /\  F  e.  ( C  Func  D
) )  ->  ( 1st `  F ) ( C  Func  D )
( 2nd `  F
) )
1512, 13, 14sylancr 663 . . . . . . . 8  |-  ( ph  ->  ( 1st `  F
) ( C  Func  D ) ( 2nd `  F
) )
1610, 11, 15funcf1 14768 . . . . . . 7  |-  ( ph  ->  ( 1st `  F
) : B --> ( Base `  D ) )
17 fdm 5558 . . . . . . 7  |-  ( ( 1st `  F ) : B --> ( Base `  D )  ->  dom  ( 1st `  F )  =  B )
1816, 17syl 16 . . . . . 6  |-  ( ph  ->  dom  ( 1st `  F
)  =  B )
1918adantr 465 . . . . 5  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  dom  ( 1st `  F
)  =  B )
209, 19eqtrd 2470 . . . 4  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  dom  ( 1st `  f
)  =  B )
21 simpr 461 . . . . . 6  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  b  =  B )
22 simplrl 759 . . . . . . . . 9  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  f  =  F )
2322fveq2d 5690 . . . . . . . 8  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  ( 1st `  f )  =  ( 1st `  F
) )
2423fveq1d 5688 . . . . . . 7  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
( 1st `  f
) `  x )  =  ( ( 1st `  F ) `  x
) )
25 simplrr 760 . . . . . . . . 9  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  g  =  G )
2625fveq2d 5690 . . . . . . . 8  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  ( 1st `  g )  =  ( 1st `  G
) )
2726fveq1d 5688 . . . . . . 7  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
( 1st `  g
) `  x )  =  ( ( 1st `  G ) `  x
) )
2824, 27opeq12d 4062 . . . . . 6  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  <. (
( 1st `  f
) `  x ) ,  ( ( 1st `  g ) `  x
) >.  =  <. (
( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. )
2921, 28mpteq12dv 4365 . . . . 5  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
x  e.  b  |->  <.
( ( 1st `  f
) `  x ) ,  ( ( 1st `  g ) `  x
) >. )  =  ( x  e.  B  |->  <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. ) )
30 eqidd 2439 . . . . . . 7  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
h  e.  dom  (
x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )  =  ( h  e. 
dom  ( x ( 2nd `  f ) y )  |->  <. (
( x ( 2nd `  f ) y ) `
 h ) ,  ( ( x ( 2nd `  g ) y ) `  h
) >. ) )
3121, 21, 30mpt2eq123dv 6143 . . . . . 6  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
x  e.  b ,  y  e.  b  |->  ( h  e.  dom  (
x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )
)  =  ( x  e.  B ,  y  e.  B  |->  ( h  e.  dom  ( x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )
) )
3222ad2antrr 725 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  f  =  F )
3332fveq2d 5690 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  ( 2nd `  f )  =  ( 2nd `  F
) )
3433oveqd 6103 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  (
x ( 2nd `  f
) y )  =  ( x ( 2nd `  F ) y ) )
3534dmeqd 5037 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  dom  ( x ( 2nd `  f ) y )  =  dom  ( x ( 2nd `  F
) y ) )
36 prfval.h . . . . . . . . . . . 12  |-  H  =  ( Hom  `  C
)
37 eqid 2438 . . . . . . . . . . . 12  |-  ( Hom  `  D )  =  ( Hom  `  D )
3815ad4antr 731 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  ( 1st `  F ) ( C  Func  D )
( 2nd `  F
) )
39 simplr 754 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  x  e.  B )
40 simpr 461 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  y  e.  B )
4110, 36, 37, 38, 39, 40funcf2 14770 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  (
x ( 2nd `  F
) y ) : ( x H y ) --> ( ( ( 1st `  F ) `
 x ) ( Hom  `  D )
( ( 1st `  F
) `  y )
) )
42 fdm 5558 . . . . . . . . . . 11  |-  ( ( x ( 2nd `  F
) y ) : ( x H y ) --> ( ( ( 1st `  F ) `
 x ) ( Hom  `  D )
( ( 1st `  F
) `  y )
)  ->  dom  ( x ( 2nd `  F
) y )  =  ( x H y ) )
4341, 42syl 16 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  dom  ( x ( 2nd `  F ) y )  =  ( x H y ) )
4435, 43eqtrd 2470 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  dom  ( x ( 2nd `  f ) y )  =  ( x H y ) )
4534fveq1d 5688 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  (
( x ( 2nd `  f ) y ) `
 h )  =  ( ( x ( 2nd `  F ) y ) `  h
) )
4625ad2antrr 725 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  g  =  G )
4746fveq2d 5690 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  ( 2nd `  g )  =  ( 2nd `  G
) )
4847oveqd 6103 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  (
x ( 2nd `  g
) y )  =  ( x ( 2nd `  G ) y ) )
4948fveq1d 5688 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  (
( x ( 2nd `  g ) y ) `
 h )  =  ( ( x ( 2nd `  G ) y ) `  h
) )
5045, 49opeq12d 4062 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  <. (
( x ( 2nd `  f ) y ) `
 h ) ,  ( ( x ( 2nd `  g ) y ) `  h
) >.  =  <. (
( x ( 2nd `  F ) y ) `
 h ) ,  ( ( x ( 2nd `  G ) y ) `  h
) >. )
5144, 50mpteq12dv 4365 . . . . . . . 8  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  (
h  e.  dom  (
x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )  =  ( h  e.  ( x H y )  |->  <. ( ( x ( 2nd `  F
) y ) `  h ) ,  ( ( x ( 2nd `  G ) y ) `
 h ) >.
) )
52513impa 1182 . . . . . . 7  |-  ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B  /\  y  e.  B )  ->  (
h  e.  dom  (
x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )  =  ( h  e.  ( x H y )  |->  <. ( ( x ( 2nd `  F
) y ) `  h ) ,  ( ( x ( 2nd `  G ) y ) `
 h ) >.
) )
5352mpt2eq3dva 6145 . . . . . 6  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
x  e.  B , 
y  e.  B  |->  ( h  e.  dom  (
x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )
)  =  ( x  e.  B ,  y  e.  B  |->  ( h  e.  ( x H y )  |->  <. (
( x ( 2nd `  F ) y ) `
 h ) ,  ( ( x ( 2nd `  G ) y ) `  h
) >. ) ) )
5431, 53eqtrd 2470 . . . . 5  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
x  e.  b ,  y  e.  b  |->  ( h  e.  dom  (
x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )
)  =  ( x  e.  B ,  y  e.  B  |->  ( h  e.  ( x H y )  |->  <. (
( x ( 2nd `  F ) y ) `
 h ) ,  ( ( x ( 2nd `  G ) y ) `  h
) >. ) ) )
5529, 54opeq12d 4062 . . . 4  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  <. (
x  e.  b  |->  <.
( ( 1st `  f
) `  x ) ,  ( ( 1st `  g ) `  x
) >. ) ,  ( x  e.  b ,  y  e.  b  |->  ( h  e.  dom  (
x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )
) >.  =  <. (
x  e.  B  |->  <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. ) ,  ( x  e.  B , 
y  e.  B  |->  ( h  e.  ( x H y )  |->  <.
( ( x ( 2nd `  F ) y ) `  h
) ,  ( ( x ( 2nd `  G
) y ) `  h ) >. )
) >. )
566, 20, 55csbied2 3310 . . 3  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  [_ dom  ( 1st `  f
)  /  b ]_ <. ( x  e.  b 
|->  <. ( ( 1st `  f ) `  x
) ,  ( ( 1st `  g ) `
 x ) >.
) ,  ( x  e.  b ,  y  e.  b  |->  ( h  e.  dom  ( x ( 2nd `  f
) y )  |->  <.
( ( x ( 2nd `  f ) y ) `  h
) ,  ( ( x ( 2nd `  g
) y ) `  h ) >. )
) >.  =  <. (
x  e.  B  |->  <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. ) ,  ( x  e.  B , 
y  e.  B  |->  ( h  e.  ( x H y )  |->  <.
( ( x ( 2nd `  F ) y ) `  h
) ,  ( ( x ( 2nd `  G
) y ) `  h ) >. )
) >. )
57 elex 2976 . . . 4  |-  ( F  e.  ( C  Func  D )  ->  F  e.  _V )
5813, 57syl 16 . . 3  |-  ( ph  ->  F  e.  _V )
59 prfval.d . . . 4  |-  ( ph  ->  G  e.  ( C 
Func  E ) )
60 elex 2976 . . . 4  |-  ( G  e.  ( C  Func  E )  ->  G  e.  _V )
6159, 60syl 16 . . 3  |-  ( ph  ->  G  e.  _V )
62 opex 4551 . . . 4  |-  <. (
x  e.  B  |->  <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. ) ,  ( x  e.  B , 
y  e.  B  |->  ( h  e.  ( x H y )  |->  <.
( ( x ( 2nd `  F ) y ) `  h
) ,  ( ( x ( 2nd `  G
) y ) `  h ) >. )
) >.  e.  _V
6362a1i 11 . . 3  |-  ( ph  -> 
<. ( x  e.  B  |-> 
<. ( ( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. ) ,  ( x  e.  B , 
y  e.  B  |->  ( h  e.  ( x H y )  |->  <.
( ( x ( 2nd `  F ) y ) `  h
) ,  ( ( x ( 2nd `  G
) y ) `  h ) >. )
) >.  e.  _V )
643, 56, 58, 61, 63ovmpt2d 6213 . 2  |-  ( ph  ->  ( F ⟨,⟩F  G )  =  <. ( x  e.  B  |->  <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. ) ,  ( x  e.  B , 
y  e.  B  |->  ( h  e.  ( x H y )  |->  <.
( ( x ( 2nd `  F ) y ) `  h
) ,  ( ( x ( 2nd `  G
) y ) `  h ) >. )
) >. )
651, 64syl5eq 2482 1  |-  ( ph  ->  P  =  <. (
x  e.  B  |->  <.
( ( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. ) ,  ( x  e.  B , 
y  e.  B  |->  ( h  e.  ( x H y )  |->  <.
( ( x ( 2nd `  F ) y ) `  h
) ,  ( ( x ( 2nd `  G
) y ) `  h ) >. )
) >. )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    = wceq 1369    e. wcel 1756   _Vcvv 2967   [_csb 3283   <.cop 3878   class class class wbr 4287    e. cmpt 4345   dom cdm 4835   Rel wrel 4840   -->wf 5409   ` cfv 5413  (class class class)co 6086    e. cmpt2 6088   1stc1st 6570   2ndc2nd 6571   Basecbs 14166   Hom chom 14241    Func cfunc 14756   ⟨,⟩F cprf 14973
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 2419  ax-rep 4398  ax-sep 4408  ax-nul 4416  ax-pow 4465  ax-pr 4526  ax-un 6367
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 2256  df-mo 2257  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-ral 2715  df-rex 2716  df-reu 2717  df-rab 2719  df-v 2969  df-sbc 3182  df-csb 3284  df-dif 3326  df-un 3328  df-in 3330  df-ss 3337  df-nul 3633  df-if 3787  df-pw 3857  df-sn 3873  df-pr 3875  df-op 3879  df-uni 4087  df-iun 4168  df-br 4288  df-opab 4346  df-mpt 4347  df-id 4631  df-xp 4841  df-rel 4842  df-cnv 4843  df-co 4844  df-dm 4845  df-rn 4846  df-res 4847  df-ima 4848  df-iota 5376  df-fun 5415  df-fn 5416  df-f 5417  df-f1 5418  df-fo 5419  df-f1o 5420  df-fv 5421  df-ov 6089  df-oprab 6090  df-mpt2 6091  df-1st 6572  df-2nd 6573  df-map 7208  df-ixp 7256  df-func 14760  df-prf 14977
This theorem is referenced by:  prf1  15002  prf2fval  15003  prfcl  15005  prf1st  15006  prf2nd  15007  1st2ndprf  15008
  Copyright terms: Public domain W3C validator