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

Theorem subccocl 13962
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 2380 . . . . 5  |-  (  Homf  `  C )  =  (  Homf 
`  C )
3 eqid 2380 . . . . 5  |-  ( Id
`  C )  =  ( Id `  C
)
4 subccocl.o . . . . 5  |-  .x.  =  (comp `  C )
5 subcrcl 13936 . . . . . 6  |-  ( J  e.  (Subcat `  C
)  ->  C  e.  Cat )
61, 5syl 16 . . . . 5  |-  ( ph  ->  C  e.  Cat )
7 subcidcl.2 . . . . 5  |-  ( ph  ->  J  Fn  ( S  X.  S ) )
82, 3, 4, 6, 7issubc2 13956 . . . 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 202 . . 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 450 . 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 452 . . . . 5  |-  ( (
ph  /\  x  =  X )  ->  Y  e.  S )
14 subccocl.z . . . . . . 7  |-  ( ph  ->  Z  e.  S )
1514ad2antrr 707 . . . . . 6  |-  ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  ->  Z  e.  S )
16 subccocl.f . . . . . . . . 9  |-  ( ph  ->  F  e.  ( X J Y ) )
1716ad3antrrr 711 . . . . . . . 8  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  F  e.  ( X J Y ) )
18 simpllr 736 . . . . . . . . 9  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  x  =  X )
19 simplr 732 . . . . . . . . 9  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  y  =  Y )
2018, 19oveq12d 6031 . . . . . . . 8  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  (
x J y )  =  ( X J Y ) )
2117, 20eleqtrrd 2457 . . . . . . 7  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  F  e.  ( x J y ) )
22 subccocl.g . . . . . . . . . 10  |-  ( ph  ->  G  e.  ( Y J Z ) )
2322ad4antr 713 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  G  e.  ( Y J Z ) )
24 simpllr 736 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  y  =  Y )
25 simplr 732 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  z  =  Z )
2624, 25oveq12d 6031 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  (
y J z )  =  ( Y J Z ) )
2723, 26eleqtrrd 2457 . . . . . . . 8  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  G  e.  ( y J z ) )
28 simp-5r 746 . . . . . . . . . . . 12  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  x  =  X )
29 simp-4r 744 . . . . . . . . . . . 12  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  y  =  Y )
3028, 29opeq12d 3927 . . . . . . . . . . 11  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  <. x ,  y >.  =  <. X ,  Y >. )
31 simpllr 736 . . . . . . . . . . 11  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  z  =  Z )
3230, 31oveq12d 6031 . . . . . . . . . 10  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  ( <. x ,  y >.  .x.  z )  =  (
<. X ,  Y >.  .x. 
Z ) )
33 simpr 448 . . . . . . . . . 10  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  g  =  G )
34 simplr 732 . . . . . . . . . 10  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  f  =  F )
3532, 33, 34oveq123d 6034 . . . . . . . . 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 6031 . . . . . . . . 9  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  (
x J z )  =  ( X J Z ) )
3735, 36eleq12d 2448 . . . . . . . 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 2991 . . . . . . 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 2989 . . . . . 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 2989 . . . . 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 2989 . . . 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 454 . . 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 2989 . 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 15 1  |-  ( ph  ->  ( G ( <. X ,  Y >.  .x. 
Z ) F )  e.  ( X J Z ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    = wceq 1649    e. wcel 1717   A.wral 2642   <.cop 3753   class class class wbr 4146    X. cxp 4809    Fn wfn 5382   ` cfv 5387  (class class class)co 6013  compcco 13461   Catccat 13809   Idccid 13810    Homf chomf 13811    C_cat cssc 13927  Subcatcsubc 13929
This theorem is referenced by:  subccatid  13963  funcres  14013
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2361  ax-rep 4254  ax-sep 4264  ax-nul 4272  ax-pow 4311  ax-pr 4337  ax-un 4634
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2235  df-mo 2236  df-clab 2367  df-cleq 2373  df-clel 2376  df-nfc 2505  df-ne 2545  df-ral 2647  df-rex 2648  df-reu 2649  df-rab 2651  df-v 2894  df-sbc 3098  df-csb 3188  df-dif 3259  df-un 3261  df-in 3263  df-ss 3270  df-nul 3565  df-if 3676  df-pw 3737  df-sn 3756  df-pr 3757  df-op 3759  df-uni 3951  df-iun 4030  df-br 4147  df-opab 4201  df-mpt 4202  df-id 4432  df-xp 4817  df-rel 4818  df-cnv 4819  df-co 4820  df-dm 4821  df-rn 4822  df-res 4823  df-ima 4824  df-iota 5351  df-fun 5389  df-fn 5390  df-f 5391  df-f1 5392  df-fo 5393  df-f1o 5394  df-fv 5395  df-ov 6016  df-oprab 6017  df-mpt2 6018  df-pm 6950  df-ixp 6993  df-ssc 13930  df-subc 13932
  Copyright terms: Public domain W3C validator