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

Theorem prfval 14288
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 14264 . . . 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 5734 . . . . . 6  |-  ( 1st `  f )  e.  _V
54dmex 5124 . . . . 5  |-  dom  ( 1st `  f )  e. 
_V
65a1i 11 . . . 4  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  dom  ( 1st `  f
)  e.  _V )
7 simprl 733 . . . . . . 7  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  -> 
f  =  F )
87fveq2d 5724 . . . . . 6  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  -> 
( 1st `  f
)  =  ( 1st `  F ) )
98dmeqd 5064 . . . . 5  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  dom  ( 1st `  f
)  =  dom  ( 1st `  F ) )
10 prfval.b . . . . . . . 8  |-  B  =  ( Base `  C
)
11 eqid 2435 . . . . . . . 8  |-  ( Base `  D )  =  (
Base `  D )
12 relfunc 14051 . . . . . . . . 9  |-  Rel  ( C  Func  D )
13 prfval.c . . . . . . . . 9  |-  ( ph  ->  F  e.  ( C 
Func  D ) )
14 1st2ndbr 6388 . . . . . . . . 9  |-  ( ( Rel  ( C  Func  D )  /\  F  e.  ( C  Func  D
) )  ->  ( 1st `  F ) ( C  Func  D )
( 2nd `  F
) )
1512, 13, 14sylancr 645 . . . . . . . 8  |-  ( ph  ->  ( 1st `  F
) ( C  Func  D ) ( 2nd `  F
) )
1610, 11, 15funcf1 14055 . . . . . . 7  |-  ( ph  ->  ( 1st `  F
) : B --> ( Base `  D ) )
17 fdm 5587 . . . . . . 7  |-  ( ( 1st `  F ) : B --> ( Base `  D )  ->  dom  ( 1st `  F )  =  B )
1816, 17syl 16 . . . . . 6  |-  ( ph  ->  dom  ( 1st `  F
)  =  B )
1918adantr 452 . . . . 5  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  dom  ( 1st `  F
)  =  B )
209, 19eqtrd 2467 . . . 4  |-  ( (
ph  /\  ( f  =  F  /\  g  =  G ) )  ->  dom  ( 1st `  f
)  =  B )
21 simpr 448 . . . . . 6  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  b  =  B )
22 simplrl 737 . . . . . . . . 9  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  f  =  F )
2322fveq2d 5724 . . . . . . . 8  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  ( 1st `  f )  =  ( 1st `  F
) )
2423fveq1d 5722 . . . . . . 7  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
( 1st `  f
) `  x )  =  ( ( 1st `  F ) `  x
) )
25 simplrr 738 . . . . . . . . 9  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  g  =  G )
2625fveq2d 5724 . . . . . . . 8  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  ( 1st `  g )  =  ( 1st `  G
) )
2726fveq1d 5722 . . . . . . 7  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  (
( 1st `  g
) `  x )  =  ( ( 1st `  G ) `  x
) )
2824, 27opeq12d 3984 . . . . . 6  |-  ( ( ( ph  /\  (
f  =  F  /\  g  =  G )
)  /\  b  =  B )  ->  <. (
( 1st `  f
) `  x ) ,  ( ( 1st `  g ) `  x
) >.  =  <. (
( 1st `  F
) `  x ) ,  ( ( 1st `  G ) `  x
) >. )
2921, 28mpteq12dv 4279 . . . . 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 2436 . . . . . . 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 6128 . . . . . 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 707 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  f  =  F )
3332fveq2d 5724 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  ( 2nd `  f )  =  ( 2nd `  F
) )
3433oveqd 6090 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  (
x ( 2nd `  f
) y )  =  ( x ( 2nd `  F ) y ) )
3534dmeqd 5064 . . . . . . . . . 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 2435 . . . . . . . . . . . 12  |-  (  Hom  `  D )  =  (  Hom  `  D )
3815ad4antr 713 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  ( 1st `  F ) ( C  Func  D )
( 2nd `  F
) )
39 simplr 732 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  x  e.  B )
40 simpr 448 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  y  e.  B )
4110, 36, 37, 38, 39, 40funcf2 14057 . . . . . . . . . . 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 5587 . . . . . . . . . . 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 2467 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  dom  ( x ( 2nd `  f ) y )  =  ( x H y ) )
4534fveq1d 5722 . . . . . . . . . 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 707 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  g  =  G )
4746fveq2d 5724 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  ( 2nd `  g )  =  ( 2nd `  G
) )
4847oveqd 6090 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  ( f  =  F  /\  g  =  G ) )  /\  b  =  B )  /\  x  e.  B )  /\  y  e.  B )  ->  (
x ( 2nd `  g
) y )  =  ( x ( 2nd `  G ) y ) )
4948fveq1d 5722 . . . . . . . . . 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 3984 . . . . . . . . 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 4279 . . . . . . . 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 1148 . . . . . . 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 6130 . . . . . 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 2467 . . . . 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 3984 . . . 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 3286 . . 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 2956 . . . 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 2956 . . . 4  |-  ( G  e.  ( C  Func  E )  ->  G  e.  _V )
6159, 60syl 16 . . 3  |-  ( ph  ->  G  e.  _V )
62 opex 4419 . . . 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 6193 . 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 2479 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 set class
Syntax hints:    -> wi 4    /\ wa 359    = wceq 1652    e. wcel 1725   _Vcvv 2948   [_csb 3243   <.cop 3809   class class class wbr 4204    e. cmpt 4258   dom cdm 4870   Rel wrel 4875   -->wf 5442   ` cfv 5446  (class class class)co 6073    e. cmpt2 6075   1stc1st 6339   2ndc2nd 6340   Basecbs 13461    Hom chom 13532    Func cfunc 14043   ⟨,⟩F cprf 14260
This theorem is referenced by:  prf1  14289  prf2fval  14290  prfcl  14292  prf1st  14293  prf2nd  14294  1st2ndprf  14295
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-rep 4312  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-ral 2702  df-rex 2703  df-reu 2704  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-nul 3621  df-if 3732  df-pw 3793  df-sn 3812  df-pr 3813  df-op 3815  df-uni 4008  df-iun 4087  df-br 4205  df-opab 4259  df-mpt 4260  df-id 4490  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-1st 6341  df-2nd 6342  df-map 7012  df-ixp 7056  df-func 14047  df-prf 14264
  Copyright terms: Public domain W3C validator