Users' Mathboxes Mathbox for Frédéric Liné < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  cmpmorass Unicode version

Theorem cmpmorass 26069
Description: Associativity of composition in category Set. (Contributed by FL, 7-Nov-2013.)
Hypotheses
Ref Expression
cmp2morpcatt.1  |-  O  =  ( ro SetCat `  U
)
cmp2morpcatt.2  |- .Morphism  =  ( Morphism SetCat `  U )
cmp2morpcatt.3  |- .dom  =  ( dom SetCat `  U
)
cmp2morpcatt.4  |- .cod  =  ( cod SetCat `  U
)
Assertion
Ref Expression
cmpmorass  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  ( C O ( B O A ) )  =  ( ( C O B ) O A ) )

Proof of Theorem cmpmorass
StepHypRef Expression
1 simp1 955 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  U  e.  Univ )
2 simp23 990 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  C  e. .Morphism  )
3 simp22 989 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  B  e. .Morphism  )
4 simp21 988 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  A  e. .Morphism  )
5 simp3r 984 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (.dom  `  B )  =  (.cod  `  A ) )
6 cmp2morpcatt.1 . . . . 5  |-  O  =  ( ro SetCat `  U
)
7 cmp2morpcatt.2 . . . . 5  |- .Morphism  =  ( Morphism SetCat `  U )
8 cmp2morpcatt.3 . . . . 5  |- .dom  =  ( dom SetCat `  U
)
9 cmp2morpcatt.4 . . . . 5  |- .cod  =  ( cod SetCat `  U
)
106, 7, 8, 9rocatval2 26063 . . . 4  |-  ( ( U  e.  Univ  /\  ( B  e. .Morphism  /\  A  e. .Morphism  )  /\  (.dom  `  B )  =  (.cod  `  A ) )  ->  ( B O A )  e. .Morphism  )
111, 3, 4, 5, 10syl121anc 1187 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  ( B O A )  e. .Morphism  )
12 simp3l 983 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (.dom  `  C )  =  (.cod  `  B ) )
136, 7, 8, 9cmp2morpcod 26068 . . . . 5  |-  ( ( U  e.  Univ  /\  ( B  e. .Morphism  /\  A  e. .Morphism  )  /\  (.dom  `  B )  =  (.cod  `  A ) )  ->  (.cod  `  ( B O A ) )  =  (.cod  `  B ) )
141, 3, 4, 5, 13syl121anc 1187 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (.cod  `  ( B O A ) )  =  (.cod  `  B ) )
1512, 14eqtr4d 2331 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (.dom  `  C )  =  (.cod  `  ( B O A ) ) )
16 eqid 2296 . . . 4  |-  ( graph SetCat `  U )  =  (
graph SetCat `  U )
176, 7, 8, 9, 16cmp2morpcatt 26065 . . 3  |-  ( ( U  e.  Univ  /\  ( C  e. .Morphism  /\  ( B O A )  e. .Morphism  )  /\  (.dom  `  C )  =  (.cod  `  ( B O A ) ) )  ->  ( C O ( B O A ) )  = 
<. <. (.dom  `  ( B O A ) ) ,  (.cod  `  C ) >. ,  ( ( ( graph SetCat `  U
) `  C )  o.  ( ( graph SetCat `  U
) `  ( B O A ) ) )
>. )
181, 2, 11, 15, 17syl121anc 1187 . 2  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  ( C O ( B O A ) )  = 
<. <. (.dom  `  ( B O A ) ) ,  (.cod  `  C ) >. ,  ( ( ( graph SetCat `  U
) `  C )  o.  ( ( graph SetCat `  U
) `  ( B O A ) ) )
>. )
196, 7, 8, 9cmp2morpdom 26067 . . . . 5  |-  ( ( U  e.  Univ  /\  ( B  e. .Morphism  /\  A  e. .Morphism  )  /\  (.dom  `  B )  =  (.cod  `  A ) )  ->  (.dom  `  ( B O A ) )  =  (.dom  `  A ) )
201, 3, 4, 5, 19syl121anc 1187 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (.dom  `  ( B O A ) )  =  (.dom  `  A ) )
2120opeq1d 3818 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  <. (.dom  `  ( B O A ) ) ,  (.cod  `  C )
>.  =  <. (.dom  `  A ) ,  (.cod  `  C )
>. )
226, 7, 8, 9, 16cmp2morpgrp 26066 . . . . 5  |-  ( ( U  e.  Univ  /\  ( B  e. .Morphism  /\  A  e. .Morphism  )  /\  (.dom  `  B )  =  (.cod  `  A ) )  ->  ( ( graph
SetCat `  U ) `  ( B O A ) )  =  ( ( ( graph SetCat `  U ) `  B )  o.  (
( graph SetCat `  U ) `  A ) ) )
231, 3, 4, 5, 22syl121anc 1187 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (
( graph SetCat `  U ) `  ( B O A ) )  =  ( ( ( graph SetCat `  U
) `  B )  o.  ( ( graph SetCat `  U
) `  A )
) )
2423coeq2d 4862 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (
( ( graph SetCat `  U
) `  C )  o.  ( ( graph SetCat `  U
) `  ( B O A ) ) )  =  ( ( (
graph SetCat `  U ) `  C )  o.  (
( ( graph SetCat `  U
) `  B )  o.  ( ( graph SetCat `  U
) `  A )
) ) )
2521, 24opeq12d 3820 . 2  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  <. <. (.dom  `  ( B O A ) ) ,  (.cod  `  C )
>. ,  ( (
( graph SetCat `  U ) `  C )  o.  (
( graph SetCat `  U ) `  ( B O A ) ) ) >.  =  <. <. (.dom  `  A ) ,  (.cod  `  C )
>. ,  ( (
( graph SetCat `  U ) `  C )  o.  (
( ( graph SetCat `  U
) `  B )  o.  ( ( graph SetCat `  U
) `  A )
) ) >. )
266, 7, 8, 9cmp2morpcod 26068 . . . . . . 7  |-  ( ( U  e.  Univ  /\  ( C  e. .Morphism  /\  B  e. .Morphism  )  /\  (.dom  `  C )  =  (.cod  `  B ) )  ->  (.cod  `  ( C O B ) )  =  (.cod  `  C ) )
2726eqcomd 2301 . . . . . 6  |-  ( ( U  e.  Univ  /\  ( C  e. .Morphism  /\  B  e. .Morphism  )  /\  (.dom  `  C )  =  (.cod  `  B ) )  ->  (.cod  `  C )  =  (.cod  `  ( C O B ) ) )
281, 2, 3, 12, 27syl121anc 1187 . . . . 5  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (.cod  `  C )  =  (.cod  `  ( C O B ) ) )
2928opeq2d 3819 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  <. (.dom  `  A ) ,  (.cod  `  C )
>.  =  <. (.dom  `  A ) ,  (.cod  `  ( C O B ) )
>. )
306, 7, 8, 9, 16cmp2morpgrp 26066 . . . . . . 7  |-  ( ( U  e.  Univ  /\  ( C  e. .Morphism  /\  B  e. .Morphism  )  /\  (.dom  `  C )  =  (.cod  `  B ) )  ->  ( ( graph
SetCat `  U ) `  ( C O B ) )  =  ( ( ( graph SetCat `  U ) `  C )  o.  (
( graph SetCat `  U ) `  B ) ) )
311, 2, 3, 12, 30syl121anc 1187 . . . . . 6  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (
( graph SetCat `  U ) `  ( C O B ) )  =  ( ( ( graph SetCat `  U
) `  C )  o.  ( ( graph SetCat `  U
) `  B )
) )
3231eqcomd 2301 . . . . 5  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (
( ( graph SetCat `  U
) `  C )  o.  ( ( graph SetCat `  U
) `  B )
)  =  ( (
graph SetCat `  U ) `  ( C O B ) ) )
3332coeq1d 4861 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (
( ( ( graph SetCat `  U ) `  C
)  o.  ( (
graph SetCat `  U ) `  B ) )  o.  ( ( graph SetCat `  U
) `  A )
)  =  ( ( ( graph SetCat `  U ) `  ( C O B ) )  o.  (
( graph SetCat `  U ) `  A ) ) )
3429, 33opeq12d 3820 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  <. <. (.dom  `  A ) ,  (.cod  `  C )
>. ,  ( (
( ( graph SetCat `  U
) `  C )  o.  ( ( graph SetCat `  U
) `  B )
)  o.  ( (
graph SetCat `  U ) `  A ) ) >.  =  <. <. (.dom  `  A ) ,  (.cod  `  ( C O B ) )
>. ,  ( (
( graph SetCat `  U ) `  ( C O B ) )  o.  (
( graph SetCat `  U ) `  A ) ) >.
)
35 coass 5207 . . . . . 6  |-  ( ( ( ( graph SetCat `  U
) `  C )  o.  ( ( graph SetCat `  U
) `  B )
)  o.  ( (
graph SetCat `  U ) `  A ) )  =  ( ( ( graph SetCat `  U ) `  C
)  o.  ( ( ( graph SetCat `  U ) `  B )  o.  (
( graph SetCat `  U ) `  A ) ) )
3635eqcomi 2300 . . . . 5  |-  ( ( ( graph SetCat `  U ) `  C )  o.  (
( ( graph SetCat `  U
) `  B )  o.  ( ( graph SetCat `  U
) `  A )
) )  =  ( ( ( ( graph SetCat `  U ) `  C
)  o.  ( (
graph SetCat `  U ) `  B ) )  o.  ( ( graph SetCat `  U
) `  A )
)
3736a1i 10 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (
( ( graph SetCat `  U
) `  C )  o.  ( ( ( graph SetCat `  U ) `  B
)  o.  ( (
graph SetCat `  U ) `  A ) ) )  =  ( ( ( ( graph SetCat `  U ) `  C )  o.  (
( graph SetCat `  U ) `  B ) )  o.  ( ( graph SetCat `  U
) `  A )
) )
3837opeq2d 3819 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  <. <. (.dom  `  A ) ,  (.cod  `  C )
>. ,  ( (
( graph SetCat `  U ) `  C )  o.  (
( ( graph SetCat `  U
) `  B )  o.  ( ( graph SetCat `  U
) `  A )
) ) >.  =  <. <.
(.dom  `  A
) ,  (.cod  `  C ) >. ,  ( ( ( ( graph SetCat `  U ) `  C
)  o.  ( (
graph SetCat `  U ) `  B ) )  o.  ( ( graph SetCat `  U
) `  A )
) >. )
396, 7, 8, 9rocatval2 26063 . . . . 5  |-  ( ( U  e.  Univ  /\  ( C  e. .Morphism  /\  B  e. .Morphism  )  /\  (.dom  `  C )  =  (.cod  `  B ) )  ->  ( C O B )  e. .Morphism  )
401, 2, 3, 12, 39syl121anc 1187 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  ( C O B )  e. .Morphism  )
416, 7, 8, 9cmp2morpdom 26067 . . . . . 6  |-  ( ( U  e.  Univ  /\  ( C  e. .Morphism  /\  B  e. .Morphism  )  /\  (.dom  `  C )  =  (.cod  `  B ) )  ->  (.dom  `  ( C O B ) )  =  (.dom  `  B ) )
421, 2, 3, 12, 41syl121anc 1187 . . . . 5  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (.dom  `  ( C O B ) )  =  (.dom  `  B ) )
4342, 5eqtrd 2328 . . . 4  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (.dom  `  ( C O B ) )  =  (.cod  `  A ) )
446, 7, 8, 9, 16cmp2morpcatt 26065 . . . 4  |-  ( ( U  e.  Univ  /\  (
( C O B )  e. .Morphism  /\  A  e. .Morphism  )  /\  (.dom  `  ( C O B ) )  =  (.cod  `  A ) )  -> 
( ( C O B ) O A )  =  <. <. (.dom  `  A ) ,  (.cod  `  ( C O B ) )
>. ,  ( (
( graph SetCat `  U ) `  ( C O B ) )  o.  (
( graph SetCat `  U ) `  A ) ) >.
)
451, 40, 4, 43, 44syl121anc 1187 . . 3  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  (
( C O B ) O A )  =  <. <. (.dom  `  A ) ,  (.cod  `  ( C O B ) )
>. ,  ( (
( graph SetCat `  U ) `  ( C O B ) )  o.  (
( graph SetCat `  U ) `  A ) ) >.
)
4634, 38, 453eqtr4d 2338 . 2  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  <. <. (.dom  `  A ) ,  (.cod  `  C )
>. ,  ( (
( graph SetCat `  U ) `  C )  o.  (
( ( graph SetCat `  U
) `  B )  o.  ( ( graph SetCat `  U
) `  A )
) ) >.  =  ( ( C O B ) O A ) )
4718, 25, 463eqtrd 2332 1  |-  ( ( U  e.  Univ  /\  ( A  e. .Morphism  /\  B  e. .Morphism  /\  C  e. .Morphism  )  /\  ( (.dom  `  C )  =  (.cod  `  B )  /\  (.dom  `  B )  =  (.cod  `  A ) ) )  ->  ( C O ( B O A ) )  =  ( ( C O B ) O A ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    /\ w3a 934    = wceq 1632    e. wcel 1696   <.cop 3656    o. ccom 4709   ` cfv 5271  (class class class)co 5874   Univcgru 8428   Morphism SetCatccmrcase 26013   dom
SetCatcdomcase 26022   graph SetCatcgraphcase 26024   cod
SetCatccodcase 26035   ro SetCatcrocase 26058
This theorem is referenced by:  setiscat  26082
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-rep 4147  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-ral 2561  df-rex 2562  df-reu 2563  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-op 3662  df-uni 3844  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-id 4325  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139  df-map 6790  df-morcatset 26014  df-domcatset 26023  df-graphcatset 26025  df-codcatset 26036  df-rocatset 26059
  Copyright terms: Public domain W3C validator