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

Theorem subccocl 14034
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 2435 . . . . 5  |-  (  Homf  `  C )  =  (  Homf 
`  C )
3 eqid 2435 . . . . 5  |-  ( Id
`  C )  =  ( Id `  C
)
4 subccocl.o . . . . 5  |-  .x.  =  (comp `  C )
5 subcrcl 14008 . . . . . 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 14028 . . . 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 6091 . . . . . . . 8  |-  ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y
)  /\  z  =  Z )  ->  (
x J y )  =  ( X J Y ) )
2117, 20eleqtrrd 2512 . . . . . . 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 6091 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  ->  (
y J z )  =  ( Y J Z ) )
2723, 26eleqtrrd 2512 . . . . . . . 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 3984 . . . . . . . . . . 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 6091 . . . . . . . . . 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 6094 . . . . . . . . 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 6091 . . . . . . . . 9  |-  ( ( ( ( ( (
ph  /\  x  =  X )  /\  y  =  Y )  /\  z  =  Z )  /\  f  =  F )  /\  g  =  G )  ->  (
x J z )  =  ( X J Z ) )
3735, 36eleq12d 2503 . . . . . . . 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 3047 . . . . . . 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 3045 . . . . . 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 3045 . . . . 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 3045 . . . 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 3045 . 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 1652    e. wcel 1725   A.wral 2697   <.cop 3809   class class class wbr 4204    X. cxp 4868    Fn wfn 5441   ` cfv 5446  (class class class)co 6073  compcco 13533   Catccat 13881   Idccid 13882    Homf chomf 13883    C_cat cssc 13999  Subcatcsubc 14001
This theorem is referenced by:  subccatid  14035  funcres  14085
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-rep 4312  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-ral 2702  df-rex 2703  df-reu 2704  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-nul 3621  df-if 3732  df-pw 3793  df-sn 3812  df-pr 3813  df-op 3815  df-uni 4008  df-iun 4087  df-br 4205  df-opab 4259  df-mpt 4260  df-id 4490  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-pm 7013  df-ixp 7056  df-ssc 14002  df-subc 14004
  Copyright terms: Public domain W3C validator