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

Theorem setcco 15284
Description: Composition in the category of sets. (Contributed by Mario Carneiro, 3-Jan-2017.)
Hypotheses
Ref Expression
setcbas.c  |-  C  =  ( SetCat `  U )
setcbas.u  |-  ( ph  ->  U  e.  V )
setcco.o  |-  .x.  =  (comp `  C )
setcco.x  |-  ( ph  ->  X  e.  U )
setcco.y  |-  ( ph  ->  Y  e.  U )
setcco.z  |-  ( ph  ->  Z  e.  U )
setcco.f  |-  ( ph  ->  F : X --> Y )
setcco.g  |-  ( ph  ->  G : Y --> Z )
Assertion
Ref Expression
setcco  |-  ( ph  ->  ( G ( <. X ,  Y >.  .x. 
Z ) F )  =  ( G  o.  F ) )

Proof of Theorem setcco
Dummy variables  f 
g  v  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 setcbas.c . . . 4  |-  C  =  ( SetCat `  U )
2 setcbas.u . . . 4  |-  ( ph  ->  U  e.  V )
3 setcco.o . . . 4  |-  .x.  =  (comp `  C )
41, 2, 3setccofval 15283 . . 3  |-  ( ph  ->  .x.  =  ( v  e.  ( U  X.  U ) ,  z  e.  U  |->  ( g  e.  ( z  ^m  ( 2nd `  v ) ) ,  f  e.  ( ( 2nd `  v
)  ^m  ( 1st `  v ) )  |->  ( g  o.  f ) ) ) )
5 simprr 757 . . . . 5  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  z  =  Z )
6 simprl 756 . . . . . . 7  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  v  =  <. X ,  Y >. )
76fveq2d 5860 . . . . . 6  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  ( 2nd `  v )  =  ( 2nd `  <. X ,  Y >. )
)
8 setcco.x . . . . . . . 8  |-  ( ph  ->  X  e.  U )
9 setcco.y . . . . . . . 8  |-  ( ph  ->  Y  e.  U )
10 op2ndg 6798 . . . . . . . 8  |-  ( ( X  e.  U  /\  Y  e.  U )  ->  ( 2nd `  <. X ,  Y >. )  =  Y )
118, 9, 10syl2anc 661 . . . . . . 7  |-  ( ph  ->  ( 2nd `  <. X ,  Y >. )  =  Y )
1211adantr 465 . . . . . 6  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  ( 2nd `  <. X ,  Y >. )  =  Y )
137, 12eqtrd 2484 . . . . 5  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  ( 2nd `  v )  =  Y )
145, 13oveq12d 6299 . . . 4  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  (
z  ^m  ( 2nd `  v ) )  =  ( Z  ^m  Y
) )
156fveq2d 5860 . . . . . 6  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  ( 1st `  v )  =  ( 1st `  <. X ,  Y >. )
)
16 op1stg 6797 . . . . . . . 8  |-  ( ( X  e.  U  /\  Y  e.  U )  ->  ( 1st `  <. X ,  Y >. )  =  X )
178, 9, 16syl2anc 661 . . . . . . 7  |-  ( ph  ->  ( 1st `  <. X ,  Y >. )  =  X )
1817adantr 465 . . . . . 6  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  ( 1st `  <. X ,  Y >. )  =  X )
1915, 18eqtrd 2484 . . . . 5  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  ( 1st `  v )  =  X )
2013, 19oveq12d 6299 . . . 4  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  (
( 2nd `  v
)  ^m  ( 1st `  v ) )  =  ( Y  ^m  X
) )
21 eqidd 2444 . . . 4  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  (
g  o.  f )  =  ( g  o.  f ) )
2214, 20, 21mpt2eq123dv 6344 . . 3  |-  ( (
ph  /\  ( v  =  <. X ,  Y >.  /\  z  =  Z ) )  ->  (
g  e.  ( z  ^m  ( 2nd `  v
) ) ,  f  e.  ( ( 2nd `  v )  ^m  ( 1st `  v ) ) 
|->  ( g  o.  f
) )  =  ( g  e.  ( Z  ^m  Y ) ,  f  e.  ( Y  ^m  X )  |->  ( g  o.  f ) ) )
23 opelxpi 5021 . . . 4  |-  ( ( X  e.  U  /\  Y  e.  U )  -> 
<. X ,  Y >.  e.  ( U  X.  U
) )
248, 9, 23syl2anc 661 . . 3  |-  ( ph  -> 
<. X ,  Y >.  e.  ( U  X.  U
) )
25 setcco.z . . 3  |-  ( ph  ->  Z  e.  U )
26 ovex 6309 . . . . 5  |-  ( Z  ^m  Y )  e. 
_V
27 ovex 6309 . . . . 5  |-  ( Y  ^m  X )  e. 
_V
2826, 27mpt2ex 6862 . . . 4  |-  ( g  e.  ( Z  ^m  Y ) ,  f  e.  ( Y  ^m  X )  |->  ( g  o.  f ) )  e.  _V
2928a1i 11 . . 3  |-  ( ph  ->  ( g  e.  ( Z  ^m  Y ) ,  f  e.  ( Y  ^m  X ) 
|->  ( g  o.  f
) )  e.  _V )
304, 22, 24, 25, 29ovmpt2d 6415 . 2  |-  ( ph  ->  ( <. X ,  Y >.  .x.  Z )  =  ( g  e.  ( Z  ^m  Y ) ,  f  e.  ( Y  ^m  X ) 
|->  ( g  o.  f
) ) )
31 simprl 756 . . 3  |-  ( (
ph  /\  ( g  =  G  /\  f  =  F ) )  -> 
g  =  G )
32 simprr 757 . . 3  |-  ( (
ph  /\  ( g  =  G  /\  f  =  F ) )  -> 
f  =  F )
3331, 32coeq12d 5157 . 2  |-  ( (
ph  /\  ( g  =  G  /\  f  =  F ) )  -> 
( g  o.  f
)  =  ( G  o.  F ) )
34 setcco.g . . 3  |-  ( ph  ->  G : Y --> Z )
35 elmapg 7435 . . . 4  |-  ( ( Z  e.  U  /\  Y  e.  U )  ->  ( G  e.  ( Z  ^m  Y )  <-> 
G : Y --> Z ) )
3625, 9, 35syl2anc 661 . . 3  |-  ( ph  ->  ( G  e.  ( Z  ^m  Y )  <-> 
G : Y --> Z ) )
3734, 36mpbird 232 . 2  |-  ( ph  ->  G  e.  ( Z  ^m  Y ) )
38 setcco.f . . 3  |-  ( ph  ->  F : X --> Y )
39 elmapg 7435 . . . 4  |-  ( ( Y  e.  U  /\  X  e.  U )  ->  ( F  e.  ( Y  ^m  X )  <-> 
F : X --> Y ) )
409, 8, 39syl2anc 661 . . 3  |-  ( ph  ->  ( F  e.  ( Y  ^m  X )  <-> 
F : X --> Y ) )
4138, 40mpbird 232 . 2  |-  ( ph  ->  F  e.  ( Y  ^m  X ) )
42 coexg 6736 . . 3  |-  ( ( G  e.  ( Z  ^m  Y )  /\  F  e.  ( Y  ^m  X ) )  -> 
( G  o.  F
)  e.  _V )
4337, 41, 42syl2anc 661 . 2  |-  ( ph  ->  ( G  o.  F
)  e.  _V )
4430, 33, 37, 41, 43ovmpt2d 6415 1  |-  ( ph  ->  ( G ( <. X ,  Y >.  .x. 
Z ) F )  =  ( G  o.  F ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1383    e. wcel 1804   _Vcvv 3095   <.cop 4020    X. cxp 4987    o. ccom 4993   -->wf 5574   ` cfv 5578  (class class class)co 6281    |-> cmpt2 6283   1stc1st 6783   2ndc2nd 6784    ^m cmap 7422  compcco 14586   SetCatcsetc 15276
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1605  ax-4 1618  ax-5 1691  ax-6 1734  ax-7 1776  ax-8 1806  ax-9 1808  ax-10 1823  ax-11 1828  ax-12 1840  ax-13 1985  ax-ext 2421  ax-rep 4548  ax-sep 4558  ax-nul 4566  ax-pow 4615  ax-pr 4676  ax-un 6577  ax-cnex 9551  ax-resscn 9552  ax-1cn 9553  ax-icn 9554  ax-addcl 9555  ax-addrcl 9556  ax-mulcl 9557  ax-mulrcl 9558  ax-mulcom 9559  ax-addass 9560  ax-mulass 9561  ax-distr 9562  ax-i2m1 9563  ax-1ne0 9564  ax-1rid 9565  ax-rnegex 9566  ax-rrecex 9567  ax-cnre 9568  ax-pre-lttri 9569  ax-pre-lttrn 9570  ax-pre-ltadd 9571  ax-pre-mulgt0 9572
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 975  df-3an 976  df-tru 1386  df-ex 1600  df-nf 1604  df-sb 1727  df-eu 2272  df-mo 2273  df-clab 2429  df-cleq 2435  df-clel 2438  df-nfc 2593  df-ne 2640  df-nel 2641  df-ral 2798  df-rex 2799  df-reu 2800  df-rab 2802  df-v 3097  df-sbc 3314  df-csb 3421  df-dif 3464  df-un 3466  df-in 3468  df-ss 3475  df-pss 3477  df-nul 3771  df-if 3927  df-pw 3999  df-sn 4015  df-pr 4017  df-tp 4019  df-op 4021  df-uni 4235  df-int 4272  df-iun 4317  df-br 4438  df-opab 4496  df-mpt 4497  df-tr 4531  df-eprel 4781  df-id 4785  df-po 4790  df-so 4791  df-fr 4828  df-we 4830  df-ord 4871  df-on 4872  df-lim 4873  df-suc 4874  df-xp 4995  df-rel 4996  df-cnv 4997  df-co 4998  df-dm 4999  df-rn 5000  df-res 5001  df-ima 5002  df-iota 5541  df-fun 5580  df-fn 5581  df-f 5582  df-f1 5583  df-fo 5584  df-f1o 5585  df-fv 5586  df-riota 6242  df-ov 6284  df-oprab 6285  df-mpt2 6286  df-om 6686  df-1st 6785  df-2nd 6786  df-recs 7044  df-rdg 7078  df-1o 7132  df-oadd 7136  df-er 7313  df-map 7424  df-en 7519  df-dom 7520  df-sdom 7521  df-fin 7522  df-pnf 9633  df-mnf 9634  df-xr 9635  df-ltxr 9636  df-le 9637  df-sub 9812  df-neg 9813  df-nn 10543  df-2 10600  df-3 10601  df-4 10602  df-5 10603  df-6 10604  df-7 10605  df-8 10606  df-9 10607  df-10 10608  df-n0 10802  df-z 10871  df-dec 10985  df-uz 11091  df-fz 11682  df-struct 14511  df-ndx 14512  df-slot 14513  df-base 14514  df-hom 14598  df-cco 14599  df-setc 15277
This theorem is referenced by:  setccatid  15285  setcmon  15288  setcepi  15289  setcsect  15290  resssetc  15293  hofcllem  15401  yonedalem4c  15420  yonedalem3b  15422  yonedainv  15424  funcestrcsetclem9  32503  funcringcsetcOLD2lem9  32589  funcringcsetclem9OLD  32612
  Copyright terms: Public domain W3C validator