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

Theorem subccocl 13719
Description: A subcategory is closed under composition. (Contributed by Mario Carneiro, 4-Jan-2017.)
Hypotheses
Ref Expression
subcidcl.j  |-  ( ph  ->  J  e.  (Subcat `  C ) )
subcidcl.2  |-  ( ph  ->  J  Fn  ( S  X.  S ) )
subcidcl.x  |-  ( ph  ->  X  e.  S )
subccocl.o  |-  .x.  =  (comp `  C )
subccocl.y  |-  ( ph  ->  Y  e.  S )
subccocl.z  |-  ( ph  ->  Z  e.  S )
subccocl.f  |-  ( ph  ->  F  e.  ( X J Y ) )
subccocl.g  |-  ( ph  ->  G  e.  ( Y J Z ) )
Assertion
Ref Expression
subccocl  |-  ( ph  ->  ( G ( <. X ,  Y >.  .x. 
Z ) F )  e.  ( X J Z ) )

Proof of Theorem subccocl
Dummy variables  f 
g  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 subcidcl.j . . . 4  |-  ( ph  ->  J  e.  (Subcat `  C ) )
2 eqid 2283 . . . . 5  |-  (  Homf  `  C )  =  (  Homf 
`  C )
3 eqid 2283 . . . . 5  |-  ( Id
`  C )  =  ( Id `  C
)
4 subccocl.o . . . . 5  |-  .x.  =  (comp `  C )
5 subcrcl 13693 . . . . . 6  |-  ( J  e.  (Subcat `  C
)  ->  C  e.  Cat )
61, 5syl 15 . . . . 5  |-  ( ph  ->  C  e.  Cat )
7 subcidcl.2 . . . . 5  |-  ( ph  ->  J  Fn  ( S  X.  S ) )
82, 3, 4, 6, 7issubc2 13713 . . . 4  |-  ( ph  ->  ( J  e.  (Subcat `  C )  <->  ( J  C_cat  (  Homf 
`  C )  /\  A. x  e.  S  ( ( ( Id `  C ) `  x
)  e.  ( x J x )  /\  A. y  e.  S  A. z  e.  S  A. f  e.  ( x J y ) A. g  e.  ( y J z ) ( g ( <. x ,  y >.  .x.  z
) f )  e.  ( x J z ) ) ) ) )
91, 8mpbid 201 . . 3  |-  ( ph  ->  ( J  C_cat  (  Homf  `  C )  /\  A. x  e.  S  (
( ( Id `  C ) `  x
)  e.  ( x J x )  /\  A. y  e.  S  A. z  e.  S  A. f  e.  ( x J y ) A. g  e.  ( y J z ) ( g ( <. x ,  y >.  .x.  z
) f )  e.  ( x J z ) ) ) )
109simprd 449 . 2  |-  ( ph  ->  A. x  e.  S  ( ( ( Id
`  C ) `  x )  e.  ( x J x )  /\  A. y  e.  S  A. z  e.  S  A. f  e.  ( x J y ) A. g  e.  ( y J z ) ( g (
<. x ,  y >.  .x.  z ) f )  e.  ( x J z ) ) )
11 subcidcl.x . . 3  |-  ( ph  ->  X  e.  S )
12 subccocl.y . . . . . 6  |-  ( ph  ->  Y  e.  S )
1312adantr 451 . . . . 5  |-  ( (
ph  /\  x  =  X )  ->  Y  e.  S )
14 subccocl.z . . . . . . 7  |-  ( ph  ->  Z  e.  S )
1514ad2antrr 706 . . . . . 6  |-  ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  ->  Z  e.  S )
16 subccocl.f . . . . . . . . 9  |-  ( ph  ->  F  e.  ( X J Y ) )
1716ad3antrrr 710 . . . . . . . 8  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  F  e.  ( X J Y ) )
18 simpllr 735 . . . . . . . . 9  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  x  =  X )
19 simplr 731 . . . . . . . . 9  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  y  =  Y )
2018, 19oveq12d 5876 . . . . . . . 8  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  (
x J y )  =  ( X J Y ) )
2117, 20eleqtrrd 2360 . . . . . . 7  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  F  e.  ( x J y ) )
22 subccocl.g . . . . . . . . . 10  |-  ( ph  ->  G  e.  ( Y J Z ) )
2322ad4antr 712 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  G  e.  ( Y J Z ) )
24 simpllr 735 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  y  =  Y )
25 simplr 731 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  z  =  Z )
2624, 25oveq12d 5876 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  (
y J z )  =  ( Y J Z ) )
2723, 26eleqtrrd 2360 . . . . . . . 8  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  G  e.  ( y J z ) )
28 simp-5r 745 . . . . . . . . . . . 12  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  x  =  X )
29 simp-4r 743 . . . . . . . . . . . 12  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  y  =  Y )
3028, 29opeq12d 3804 . . . . . . . . . . 11  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  <. x ,  y >.  =  <. X ,  Y >. )
31 simpllr 735 . . . . . . . . . . 11  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  z  =  Z )
3230, 31oveq12d 5876 . . . . . . . . . 10  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  ( <. x ,  y >.  .x.  z )  =  (
<. X ,  Y >.  .x. 
Z ) )
33 simpr 447 . . . . . . . . . 10  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  g  =  G )
34 simplr 731 . . . . . . . . . 10  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  f  =  F )
3532, 33, 34oveq123d 5879 . . . . . . . . 9  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  (
g ( <. x ,  y >.  .x.  z
) f )  =  ( G ( <. X ,  Y >.  .x. 
Z ) F ) )
3628, 31oveq12d 5876 . . . . . . . . 9  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  (
x J z )  =  ( X J Z ) )
3735, 36eleq12d 2351 . . . . . . . 8  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  (
( g ( <.
x ,  y >.  .x.  z ) f )  e.  ( x J z )  <->  ( G
( <. X ,  Y >.  .x.  Z ) F )  e.  ( X J Z ) ) )
3827, 37rspcdv 2887 . . . . . . 7  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  ( A. g  e.  (
y J z ) ( g ( <.
x ,  y >.  .x.  z ) f )  e.  ( x J z )  ->  ( G ( <. X ,  Y >.  .x.  Z ) F )  e.  ( X J Z ) ) )
3921, 38rspcimdv 2885 . . . . . 6  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  ( A. f  e.  (
x J y ) A. g  e.  ( y J z ) ( g ( <.
x ,  y >.  .x.  z ) f )  e.  ( x J z )  ->  ( G ( <. X ,  Y >.  .x.  Z ) F )  e.  ( X J Z ) ) )
4015, 39rspcimdv 2885 . . . . 5  |-  ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  ->  ( A. z  e.  S  A. f  e.  (
x J y ) A. g  e.  ( y J z ) ( g ( <.
x ,  y >.  .x.  z ) f )  e.  ( x J z )  ->  ( G ( <. X ,  Y >.  .x.  Z ) F )  e.  ( X J Z ) ) )
4113, 40rspcimdv 2885 . . . 4  |-  ( (
ph  /\  x  =  X )  ->  ( A. y  e.  S  A. z  e.  S  A. f  e.  (
x J y ) A. g  e.  ( y J z ) ( g ( <.
x ,  y >.  .x.  z ) f )  e.  ( x J z )  ->  ( G ( <. X ,  Y >.  .x.  Z ) F )  e.  ( X J Z ) ) )
4241adantld 453 . . 3  |-  ( (
ph  /\  x  =  X )  ->  (
( ( ( Id
`  C ) `  x )  e.  ( x J x )  /\  A. y  e.  S  A. z  e.  S  A. f  e.  ( x J y ) A. g  e.  ( y J z ) ( g (
<. x ,  y >.  .x.  z ) f )  e.  ( x J z ) )  -> 
( G ( <. X ,  Y >.  .x. 
Z ) F )  e.  ( X J Z ) ) )
4311, 42rspcimdv 2885 . 2  |-  ( ph  ->  ( A. x  e.  S  ( ( ( Id `  C ) `
 x )  e.  ( x J x )  /\  A. y  e.  S  A. z  e.  S  A. f  e.  ( x J y ) A. g  e.  ( y J z ) ( g (
<. x ,  y >.  .x.  z ) f )  e.  ( x J z ) )  -> 
( G ( <. X ,  Y >.  .x. 
Z ) F )  e.  ( X J Z ) ) )
4410, 43mpd 14 1  |-  ( ph  ->  ( G ( <. X ,  Y >.  .x. 
Z ) F )  e.  ( X J Z ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1623    e. wcel 1684   A.wral 2543   <.cop 3643   class class class wbr 4023    X. cxp 4687    Fn wfn 5250   ` cfv 5255  (class class class)co 5858  compcco 13220   Catccat 13566   Idccid 13567    Homf chomf 13568    C_cat cssc 13684  Subcatcsubc 13686
This theorem is referenced by:  subccatid  13720  funcres  13770
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-pm 6775  df-ixp 6818  df-ssc 13687  df-subc 13689
  Copyright terms: Public domain W3C validator