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

Theorem cmpmor 25975
Description: The composite of two morphisms is a morphism. (Contributed by FL, 8-Nov-2013.)
Assertion
Ref Expression
cmpmor  |-  ( U  e.  Univ  ->  ran  ( ro SetCat `  U )  C_  ( Morphism SetCat `  U )
)

Proof of Theorem cmpmor
Dummy variables  x  a  b are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 cmpmorfun 25971 . . 3  |-  ( U  e.  Univ  ->  Fun  ( ro SetCat `  U )
)
2 cmppar2 25972 . . 3  |-  ( U  e.  Univ  ->  dom  ( ro SetCat `  U )  =  { <. a ,  b
>.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  (
( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) } )
3 df-fn 5258 . . 3  |-  ( ( ro SetCat `  U )  Fn  { <. a ,  b
>.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  (
( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) }  <->  ( Fun  ( ro SetCat `  U )  /\  dom  ( ro SetCat `  U )  =  { <. a ,  b >.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  (
( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) } ) )
41, 2, 3sylanbrc 645 . 2  |-  ( U  e.  Univ  ->  ( ro SetCat `
 U )  Fn 
{ <. a ,  b
>.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  (
( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) } )
5 elopab 4272 . . . . 5  |-  ( x  e.  { <. a ,  b >.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) }  <->  E. a E. b ( x  = 
<. a ,  b >.  /\  ( a  e.  (
Morphism
SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  (
( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) ) )
6 domcatval 25930 . . . . . . . . . . . . . 14  |-  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )
)  ->  ( ( dom
SetCat `  U ) `  a )  =  ( ( 1st  o.  1st ) `  a )
)
763adant3 975 . . . . . . . . . . . . 13  |-  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( dom SetCat `  U
) `  a )  =  ( ( 1st 
o.  1st ) `  a
) )
8 codcatval 25936 . . . . . . . . . . . . . 14  |-  ( ( U  e.  Univ  /\  b  e.  ( Morphism SetCat `  U )
)  ->  ( ( cod
SetCat `  U ) `  b )  =  ( ( 2nd  o.  1st ) `  b )
)
983adant2 974 . . . . . . . . . . . . 13  |-  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( cod SetCat `  U
) `  b )  =  ( ( 2nd 
o.  1st ) `  b
) )
10 eqtr 2300 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( dom SetCat `  U
) `  a )  =  ( ( 1st 
o.  1st ) `  a
)  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd  o.  1st ) `  b )
)  ->  ( ( dom
SetCat `  U ) `  a )  =  ( ( 2nd  o.  1st ) `  b )
)
11 eqtr 2300 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( ( dom SetCat `  U
) `  a )  =  ( ( 2nd 
o.  1st ) `  b
)  /\  ( ( 2nd  o.  1st ) `  b )  =  ( ( cod SetCat `  U
) `  b )
)  ->  ( ( dom
SetCat `  U ) `  a )  =  ( ( cod SetCat `  U
) `  b )
)
12 df-ov 5861 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( a ( ro SetCat `  U
) b )  =  ( ( ro SetCat `  U ) `  <. a ,  b >. )
13 eqid 2283 . . . . . . . . . . . . . . . . . . . . . . . . 25  |-  ( ro SetCat `
 U )  =  ( ro SetCat `  U
)
1413rocatval 25959 . . . . . . . . . . . . . . . . . . . . . . . 24  |-  ( ( U  e.  Univ  /\  (
a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )
)  /\  ( ( dom
SetCat `  U ) `  a )  =  ( ( cod SetCat `  U
) `  b )
)  ->  ( a
( ro SetCat `  U
) b )  e.  ( Morphism SetCat `  U )
)
15143expa 1151 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( ( ( U  e.  Univ  /\  ( a  e.  (
Morphism
SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) ) )  /\  ( ( dom SetCat `
 U ) `  a )  =  ( ( cod SetCat `  U
) `  b )
)  ->  ( a
( ro SetCat `  U
) b )  e.  ( Morphism SetCat `  U )
)
1612, 15syl5eqelr 2368 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( ( ( U  e.  Univ  /\  ( a  e.  (
Morphism
SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) ) )  /\  ( ( dom SetCat `
 U ) `  a )  =  ( ( cod SetCat `  U
) `  b )
)  ->  ( ( ro SetCat `  U ) `  <. a ,  b
>. )  e.  ( Morphism SetCat `  U ) )
1716exp42 594 . . . . . . . . . . . . . . . . . . . . 21  |-  ( U  e.  Univ  ->  ( a  e.  ( Morphism SetCat `  U
)  ->  ( b  e.  ( Morphism SetCat `  U )  ->  ( ( ( dom SetCat `
 U ) `  a )  =  ( ( cod SetCat `  U
) `  b )  ->  ( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) ) ) )
18173imp 1145 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ( dom SetCat `
 U ) `  a )  =  ( ( cod SetCat `  U
) `  b )  ->  ( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) )
1911, 18syl5com 26 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ( dom SetCat `  U
) `  a )  =  ( ( 2nd 
o.  1st ) `  b
)  /\  ( ( 2nd  o.  1st ) `  b )  =  ( ( cod SetCat `  U
) `  b )
)  ->  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) )
2019expcom 424 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( 2nd  o.  1st ) `  b )  =  ( ( cod SetCat `
 U ) `  b )  ->  (
( ( dom SetCat `  U
) `  a )  =  ( ( 2nd 
o.  1st ) `  b
)  ->  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) ) )
2120eqcoms 2286 . . . . . . . . . . . . . . . . 17  |-  ( ( ( cod SetCat `  U
) `  b )  =  ( ( 2nd 
o.  1st ) `  b
)  ->  ( (
( dom SetCat `  U
) `  a )  =  ( ( 2nd 
o.  1st ) `  b
)  ->  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) ) )
2221com3l 75 . . . . . . . . . . . . . . . 16  |-  ( ( ( dom SetCat `  U
) `  a )  =  ( ( 2nd 
o.  1st ) `  b
)  ->  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ( cod SetCat `
 U ) `  b )  =  ( ( 2nd  o.  1st ) `  b )  ->  ( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) ) )
2310, 22syl 15 . . . . . . . . . . . . . . 15  |-  ( ( ( ( dom SetCat `  U
) `  a )  =  ( ( 1st 
o.  1st ) `  a
)  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd  o.  1st ) `  b )
)  ->  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ( cod SetCat `
 U ) `  b )  =  ( ( 2nd  o.  1st ) `  b )  ->  ( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) ) )
2423ex 423 . . . . . . . . . . . . . 14  |-  ( ( ( dom SetCat `  U
) `  a )  =  ( ( 1st 
o.  1st ) `  a
)  ->  ( (
( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
)  ->  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ( cod SetCat `
 U ) `  b )  =  ( ( 2nd  o.  1st ) `  b )  ->  ( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) ) ) )
2524com24 81 . . . . . . . . . . . . 13  |-  ( ( ( dom SetCat `  U
) `  a )  =  ( ( 1st 
o.  1st ) `  a
)  ->  ( (
( cod SetCat `  U
) `  b )  =  ( ( 2nd 
o.  1st ) `  b
)  ->  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ( 1st 
o.  1st ) `  a
)  =  ( ( 2nd  o.  1st ) `  b )  ->  (
( ro SetCat `  U
) `  <. a ,  b >. )  e.  (
Morphism
SetCat `  U ) ) ) ) )
267, 9, 25sylc 56 . . . . . . . . . . . 12  |-  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( U  e. 
Univ  /\  a  e.  (
Morphism
SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ( 1st 
o.  1st ) `  a
)  =  ( ( 2nd  o.  1st ) `  b )  ->  (
( ro SetCat `  U
) `  <. a ,  b >. )  e.  (
Morphism
SetCat `  U ) ) ) )
2726pm2.43i 43 . . . . . . . . . . 11  |-  ( ( U  e.  Univ  /\  a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U ) )  -> 
( ( ( 1st 
o.  1st ) `  a
)  =  ( ( 2nd  o.  1st ) `  b )  ->  (
( ro SetCat `  U
) `  <. a ,  b >. )  e.  (
Morphism
SetCat `  U ) ) )
28273exp 1150 . . . . . . . . . 10  |-  ( U  e.  Univ  ->  ( a  e.  ( Morphism SetCat `  U
)  ->  ( b  e.  ( Morphism SetCat `  U )  ->  ( ( ( 1st 
o.  1st ) `  a
)  =  ( ( 2nd  o.  1st ) `  b )  ->  (
( ro SetCat `  U
) `  <. a ,  b >. )  e.  (
Morphism
SetCat `  U ) ) ) ) )
2928com4l 78 . . . . . . . . 9  |-  ( a  e.  ( Morphism SetCat `  U
)  ->  ( b  e.  ( Morphism SetCat `  U )  ->  ( ( ( 1st 
o.  1st ) `  a
)  =  ( ( 2nd  o.  1st ) `  b )  ->  ( U  e.  Univ  ->  (
( ro SetCat `  U
) `  <. a ,  b >. )  e.  (
Morphism
SetCat `  U ) ) ) ) )
30293imp 1145 . . . . . . . 8  |-  ( ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) )  ->  ( U  e.  Univ  ->  (
( ro SetCat `  U
) `  <. a ,  b >. )  e.  (
Morphism
SetCat `  U ) ) )
31 fveq2 5525 . . . . . . . . . 10  |-  ( x  =  <. a ,  b
>.  ->  ( ( ro SetCat `
 U ) `  x )  =  ( ( ro SetCat `  U
) `  <. a ,  b >. ) )
3231eleq1d 2349 . . . . . . . . 9  |-  ( x  =  <. a ,  b
>.  ->  ( ( ( ro SetCat `  U ) `  x )  e.  (
Morphism
SetCat `  U )  <->  ( ( ro SetCat `  U ) `  <. a ,  b
>. )  e.  ( Morphism SetCat `  U ) ) )
3332imbi2d 307 . . . . . . . 8  |-  ( x  =  <. a ,  b
>.  ->  ( ( U  e.  Univ  ->  ( ( ro SetCat `  U ) `  x )  e.  (
Morphism
SetCat `  U ) )  <-> 
( U  e.  Univ  -> 
( ( ro SetCat `  U ) `  <. a ,  b >. )  e.  ( Morphism SetCat `  U )
) ) )
3430, 33syl5ibr 212 . . . . . . 7  |-  ( x  =  <. a ,  b
>.  ->  ( ( a  e.  ( Morphism SetCat `  U
)  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) )  ->  ( U  e.  Univ  ->  (
( ro SetCat `  U
) `  x )  e.  ( Morphism SetCat `  U )
) ) )
3534imp 418 . . . . . 6  |-  ( ( x  =  <. a ,  b >.  /\  (
a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) )  -> 
( U  e.  Univ  -> 
( ( ro SetCat `  U ) `  x
)  e.  ( Morphism SetCat `  U ) ) )
3635exlimivv 1667 . . . . 5  |-  ( E. a E. b ( x  =  <. a ,  b >.  /\  (
a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) )  -> 
( U  e.  Univ  -> 
( ( ro SetCat `  U ) `  x
)  e.  ( Morphism SetCat `  U ) ) )
375, 36sylbi 187 . . . 4  |-  ( x  e.  { <. a ,  b >.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) }  ->  ( U  e.  Univ  ->  ( ( ro SetCat `  U
) `  x )  e.  ( Morphism SetCat `  U )
) )
3837com12 27 . . 3  |-  ( U  e.  Univ  ->  ( x  e.  { <. a ,  b >.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) }  ->  ( ( ro SetCat `  U
) `  x )  e.  ( Morphism SetCat `  U )
) )
3938ralrimiv 2625 . 2  |-  ( U  e.  Univ  ->  A. x  e.  { <. a ,  b
>.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  (
( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) }  (
( ro SetCat `  U
) `  x )  e.  ( Morphism SetCat `  U )
)
40 fnfvrnss 5687 . 2  |-  ( ( ( ro SetCat `  U
)  Fn  { <. a ,  b >.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) }  /\  A. x  e.  { <. a ,  b >.  |  ( a  e.  ( Morphism SetCat `  U )  /\  b  e.  ( Morphism SetCat `  U )  /\  ( ( 1st  o.  1st ) `  a )  =  ( ( 2nd 
o.  1st ) `  b
) ) }  (
( ro SetCat `  U
) `  x )  e.  ( Morphism SetCat `  U )
)  ->  ran  ( ro SetCat `
 U )  C_  ( Morphism SetCat `  U )
)
414, 39, 40syl2anc 642 1  |-  ( U  e.  Univ  ->  ran  ( ro SetCat `  U )  C_  ( Morphism SetCat `  U )
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    /\ w3a 934   E.wex 1528    = wceq 1623    e. wcel 1684   A.wral 2543    C_ wss 3152   <.cop 3643   {copab 4076   dom cdm 4689   ran crn 4690    o. ccom 4693   Fun wfun 5249    Fn wfn 5250   ` cfv 5255  (class class class)co 5858   1stc1st 6120   2ndc2nd 6121   Univcgru 8412   Morphism SetCatccmrcase 25910   dom
SetCatcdomcase 25919   cod
SetCatccodcase 25932   ro SetCatcrocase 25955
This theorem is referenced by:  setiscat  25979
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-ral 2548  df-rex 2549  df-reu 2550  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123  df-map 6774  df-morcatset 25911  df-domcatset 25920  df-codcatset 25933  df-rocatset 25956
  Copyright terms: Public domain W3C validator