This is an inofficial mirror of http://metamath.tirix.org for personal testing of a visualizer extension only.
Description: Define the binary product of categories, which has objects for each pair of objects of the factors, and morphisms for each pair of morphisms of the factors. Composition is componentwise. (Contributed by Mario Carneiro, 10-Jan-2017)
| Ref | Expression | ||
|---|---|---|---|
| Assertion | df-xpc | |- Xc. = ( r e. _V , s e. _V |-> [_ ( ( Base ` r ) X. ( Base ` s ) ) / b ]_ [_ ( u e. b , v e. b |-> ( ( ( 1st ` u ) ( Hom ` r ) ( 1st ` v ) ) X. ( ( 2nd ` u ) ( Hom ` s ) ( 2nd ` v ) ) ) ) / h ]_ { <. ( Base ` ndx ) , b >. , <. ( Hom ` ndx ) , h >. , <. ( comp ` ndx ) , ( x e. ( b X. b ) , y e. b |-> ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) ) >. } ) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 0 | cxpc | |- Xc. |
|
| 1 | vr | |- r |
|
| 2 | cvv | |- _V |
|
| 3 | vs | |- s |
|
| 4 | cbs | |- Base |
|
| 5 | 1 | cv | |- r |
| 6 | 5 4 | cfv | |- ( Base ` r ) |
| 7 | 3 | cv | |- s |
| 8 | 7 4 | cfv | |- ( Base ` s ) |
| 9 | 6 8 | cxp | |- ( ( Base ` r ) X. ( Base ` s ) ) |
| 10 | vb | |- b |
|
| 11 | vu | |- u |
|
| 12 | 10 | cv | |- b |
| 13 | vv | |- v |
|
| 14 | c1st | |- 1st |
|
| 15 | 11 | cv | |- u |
| 16 | 15 14 | cfv | |- ( 1st ` u ) |
| 17 | chom | |- Hom |
|
| 18 | 5 17 | cfv | |- ( Hom ` r ) |
| 19 | 13 | cv | |- v |
| 20 | 19 14 | cfv | |- ( 1st ` v ) |
| 21 | 16 20 18 | co | |- ( ( 1st ` u ) ( Hom ` r ) ( 1st ` v ) ) |
| 22 | c2nd | |- 2nd |
|
| 23 | 15 22 | cfv | |- ( 2nd ` u ) |
| 24 | 7 17 | cfv | |- ( Hom ` s ) |
| 25 | 19 22 | cfv | |- ( 2nd ` v ) |
| 26 | 23 25 24 | co | |- ( ( 2nd ` u ) ( Hom ` s ) ( 2nd ` v ) ) |
| 27 | 21 26 | cxp | |- ( ( ( 1st ` u ) ( Hom ` r ) ( 1st ` v ) ) X. ( ( 2nd ` u ) ( Hom ` s ) ( 2nd ` v ) ) ) |
| 28 | 11 13 12 12 27 | cmpo | |- ( u e. b , v e. b |-> ( ( ( 1st ` u ) ( Hom ` r ) ( 1st ` v ) ) X. ( ( 2nd ` u ) ( Hom ` s ) ( 2nd ` v ) ) ) ) |
| 29 | vh | |- h |
|
| 30 | cnx | |- ndx |
|
| 31 | 30 4 | cfv | |- ( Base ` ndx ) |
| 32 | 31 12 | cop | |- <. ( Base ` ndx ) , b >. |
| 33 | 30 17 | cfv | |- ( Hom ` ndx ) |
| 34 | 29 | cv | |- h |
| 35 | 33 34 | cop | |- <. ( Hom ` ndx ) , h >. |
| 36 | cco | |- comp |
|
| 37 | 30 36 | cfv | |- ( comp ` ndx ) |
| 38 | vx | |- x |
|
| 39 | 12 12 | cxp | |- ( b X. b ) |
| 40 | vy | |- y |
|
| 41 | vg | |- g |
|
| 42 | 38 | cv | |- x |
| 43 | 42 22 | cfv | |- ( 2nd ` x ) |
| 44 | 40 | cv | |- y |
| 45 | 43 44 34 | co | |- ( ( 2nd ` x ) h y ) |
| 46 | vf | |- f |
|
| 47 | 42 34 | cfv | |- ( h ` x ) |
| 48 | 41 | cv | |- g |
| 49 | 48 14 | cfv | |- ( 1st ` g ) |
| 50 | 42 14 | cfv | |- ( 1st ` x ) |
| 51 | 50 14 | cfv | |- ( 1st ` ( 1st ` x ) ) |
| 52 | 43 14 | cfv | |- ( 1st ` ( 2nd ` x ) ) |
| 53 | 51 52 | cop | |- <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. |
| 54 | 5 36 | cfv | |- ( comp ` r ) |
| 55 | 44 14 | cfv | |- ( 1st ` y ) |
| 56 | 53 55 54 | co | |- ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) |
| 57 | 46 | cv | |- f |
| 58 | 57 14 | cfv | |- ( 1st ` f ) |
| 59 | 49 58 56 | co | |- ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) |
| 60 | 48 22 | cfv | |- ( 2nd ` g ) |
| 61 | 50 22 | cfv | |- ( 2nd ` ( 1st ` x ) ) |
| 62 | 43 22 | cfv | |- ( 2nd ` ( 2nd ` x ) ) |
| 63 | 61 62 | cop | |- <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. |
| 64 | 7 36 | cfv | |- ( comp ` s ) |
| 65 | 44 22 | cfv | |- ( 2nd ` y ) |
| 66 | 63 65 64 | co | |- ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) |
| 67 | 57 22 | cfv | |- ( 2nd ` f ) |
| 68 | 60 67 66 | co | |- ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) |
| 69 | 59 68 | cop | |- <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. |
| 70 | 41 46 45 47 69 | cmpo | |- ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) |
| 71 | 38 40 39 12 70 | cmpo | |- ( x e. ( b X. b ) , y e. b |-> ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) ) |
| 72 | 37 71 | cop | |- <. ( comp ` ndx ) , ( x e. ( b X. b ) , y e. b |-> ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) ) >. |
| 73 | 32 35 72 | ctp | |- { <. ( Base ` ndx ) , b >. , <. ( Hom ` ndx ) , h >. , <. ( comp ` ndx ) , ( x e. ( b X. b ) , y e. b |-> ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) ) >. } |
| 74 | 29 28 73 | csb | |- [_ ( u e. b , v e. b |-> ( ( ( 1st ` u ) ( Hom ` r ) ( 1st ` v ) ) X. ( ( 2nd ` u ) ( Hom ` s ) ( 2nd ` v ) ) ) ) / h ]_ { <. ( Base ` ndx ) , b >. , <. ( Hom ` ndx ) , h >. , <. ( comp ` ndx ) , ( x e. ( b X. b ) , y e. b |-> ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) ) >. } |
| 75 | 10 9 74 | csb | |- [_ ( ( Base ` r ) X. ( Base ` s ) ) / b ]_ [_ ( u e. b , v e. b |-> ( ( ( 1st ` u ) ( Hom ` r ) ( 1st ` v ) ) X. ( ( 2nd ` u ) ( Hom ` s ) ( 2nd ` v ) ) ) ) / h ]_ { <. ( Base ` ndx ) , b >. , <. ( Hom ` ndx ) , h >. , <. ( comp ` ndx ) , ( x e. ( b X. b ) , y e. b |-> ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) ) >. } |
| 76 | 1 3 2 2 75 | cmpo | |- ( r e. _V , s e. _V |-> [_ ( ( Base ` r ) X. ( Base ` s ) ) / b ]_ [_ ( u e. b , v e. b |-> ( ( ( 1st ` u ) ( Hom ` r ) ( 1st ` v ) ) X. ( ( 2nd ` u ) ( Hom ` s ) ( 2nd ` v ) ) ) ) / h ]_ { <. ( Base ` ndx ) , b >. , <. ( Hom ` ndx ) , h >. , <. ( comp ` ndx ) , ( x e. ( b X. b ) , y e. b |-> ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) ) >. } ) |
| 77 | 0 76 | wceq | |- Xc. = ( r e. _V , s e. _V |-> [_ ( ( Base ` r ) X. ( Base ` s ) ) / b ]_ [_ ( u e. b , v e. b |-> ( ( ( 1st ` u ) ( Hom ` r ) ( 1st ` v ) ) X. ( ( 2nd ` u ) ( Hom ` s ) ( 2nd ` v ) ) ) ) / h ]_ { <. ( Base ` ndx ) , b >. , <. ( Hom ` ndx ) , h >. , <. ( comp ` ndx ) , ( x e. ( b X. b ) , y e. b |-> ( g e. ( ( 2nd ` x ) h y ) , f e. ( h ` x ) |-> <. ( ( 1st ` g ) ( <. ( 1st ` ( 1st ` x ) ) , ( 1st ` ( 2nd ` x ) ) >. ( comp ` r ) ( 1st ` y ) ) ( 1st ` f ) ) , ( ( 2nd ` g ) ( <. ( 2nd ` ( 1st ` x ) ) , ( 2nd ` ( 2nd ` x ) ) >. ( comp ` s ) ( 2nd ` y ) ) ( 2nd ` f ) ) >. ) ) >. } ) |