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

Theorem coapm 13903
Description: Composition of arrows is a partial binary operation on arrows. (Contributed by Mario Carneiro, 11-Jan-2017.)
Hypotheses
Ref Expression
coapm.o  |-  .x.  =  (compa `  C )
coapm.a  |-  A  =  (Nat `  C )
Assertion
Ref Expression
coapm  |-  .x.  e.  ( A  ^pm  ( A  X.  A ) )

Proof of Theorem coapm
Dummy variables  f 
g  h  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 coapm.o . . . . . 6  |-  .x.  =  (compa `  C )
2 coapm.a . . . . . 6  |-  A  =  (Nat `  C )
3 eqid 2283 . . . . . 6  |-  (comp `  C )  =  (comp `  C )
41, 2, 3coafval 13896 . . . . 5  |-  .x.  =  ( g  e.  A ,  f  e.  { h  e.  A  |  (coda `  h
)  =  (domA `  g ) }  |->  <. (domA `  f ) ,  (coda `  g ) ,  ( ( 2nd `  g
) ( <. (domA `  f ) ,  (domA `  g ) >. (comp `  C ) (coda `  g
) ) ( 2nd `  f ) ) >.
)
54mpt2fun 5946 . . . 4  |-  Fun  .x.
6 funfn 5283 . . . 4  |-  ( Fun 
.x. 
<-> 
.x.  Fn  dom  .x.  )
75, 6mpbi 199 . . 3  |-  .x.  Fn  dom  .x.
81, 2dmcoass 13898 . . . . . . . . 9  |-  dom  .x.  C_  ( A  X.  A
)
98sseli 3176 . . . . . . . 8  |-  ( z  e.  dom  .x.  ->  z  e.  ( A  X.  A ) )
10 1st2nd2 6159 . . . . . . . 8  |-  ( z  e.  ( A  X.  A )  ->  z  =  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )
119, 10syl 15 . . . . . . 7  |-  ( z  e.  dom  .x.  ->  z  =  <. ( 1st `  z
) ,  ( 2nd `  z ) >. )
1211fveq2d 5529 . . . . . 6  |-  ( z  e.  dom  .x.  ->  ( 
.x.  `  z )  =  (  .x.  `  <. ( 1st `  z ) ,  ( 2nd `  z
) >. ) )
13 df-ov 5861 . . . . . 6  |-  ( ( 1st `  z ) 
.x.  ( 2nd `  z
) )  =  ( 
.x.  `  <. ( 1st `  z ) ,  ( 2nd `  z )
>. )
1412, 13syl6eqr 2333 . . . . 5  |-  ( z  e.  dom  .x.  ->  ( 
.x.  `  z )  =  ( ( 1st `  z )  .x.  ( 2nd `  z ) ) )
15 eqid 2283 . . . . . . 7  |-  (Homa `  C
)  =  (Homa `  C
)
162, 15homarw 13878 . . . . . 6  |-  ( (domA `  ( 2nd `  z ) ) (Homa
`  C ) (coda `  ( 1st `  z ) ) )  C_  A
17 id 19 . . . . . . . . . . . . 13  |-  ( z  e.  dom  .x.  ->  z  e.  dom  .x.  )
1811, 17eqeltrrd 2358 . . . . . . . . . . . 12  |-  ( z  e.  dom  .x.  ->  <.
( 1st `  z
) ,  ( 2nd `  z ) >.  e.  dom  .x.  )
19 df-br 4024 . . . . . . . . . . . 12  |-  ( ( 1st `  z ) dom  .x.  ( 2nd `  z )  <->  <. ( 1st `  z ) ,  ( 2nd `  z )
>.  e.  dom  .x.  )
2018, 19sylibr 203 . . . . . . . . . . 11  |-  ( z  e.  dom  .x.  ->  ( 1st `  z ) dom  .x.  ( 2nd `  z ) )
211, 2eldmcoa 13897 . . . . . . . . . . 11  |-  ( ( 1st `  z ) dom  .x.  ( 2nd `  z )  <->  ( ( 2nd `  z )  e.  A  /\  ( 1st `  z )  e.  A  /\  (coda
`  ( 2nd `  z
) )  =  (domA `  ( 1st `  z ) ) ) )
2220, 21sylib 188 . . . . . . . . . 10  |-  ( z  e.  dom  .x.  ->  ( ( 2nd `  z
)  e.  A  /\  ( 1st `  z )  e.  A  /\  (coda `  ( 2nd `  z ) )  =  (domA `  ( 1st `  z
) ) ) )
2322simp1d 967 . . . . . . . . 9  |-  ( z  e.  dom  .x.  ->  ( 2nd `  z )  e.  A )
242, 15arwhoma 13877 . . . . . . . . 9  |-  ( ( 2nd `  z )  e.  A  ->  ( 2nd `  z )  e.  ( (domA `  ( 2nd `  z
) ) (Homa `  C
) (coda
`  ( 2nd `  z
) ) ) )
2523, 24syl 15 . . . . . . . 8  |-  ( z  e.  dom  .x.  ->  ( 2nd `  z )  e.  ( (domA `  ( 2nd `  z ) ) (Homa `  C ) (coda `  ( 2nd `  z ) ) ) )
2622simp3d 969 . . . . . . . . 9  |-  ( z  e.  dom  .x.  ->  (coda `  ( 2nd `  z ) )  =  (domA `  ( 1st `  z ) ) )
2726oveq2d 5874 . . . . . . . 8  |-  ( z  e.  dom  .x.  ->  ( (domA `  ( 2nd `  z ) ) (Homa
`  C ) (coda `  ( 2nd `  z ) ) )  =  ( (domA `  ( 2nd `  z ) ) (Homa
`  C ) (domA `  ( 1st `  z ) ) ) )
2825, 27eleqtrd 2359 . . . . . . 7  |-  ( z  e.  dom  .x.  ->  ( 2nd `  z )  e.  ( (domA `  ( 2nd `  z ) ) (Homa `  C ) (domA `  ( 1st `  z ) ) ) )
2922simp2d 968 . . . . . . . 8  |-  ( z  e.  dom  .x.  ->  ( 1st `  z )  e.  A )
302, 15arwhoma 13877 . . . . . . . 8  |-  ( ( 1st `  z )  e.  A  ->  ( 1st `  z )  e.  ( (domA `  ( 1st `  z
) ) (Homa `  C
) (coda
`  ( 1st `  z
) ) ) )
3129, 30syl 15 . . . . . . 7  |-  ( z  e.  dom  .x.  ->  ( 1st `  z )  e.  ( (domA `  ( 1st `  z ) ) (Homa `  C ) (coda `  ( 1st `  z ) ) ) )
321, 15, 28, 31coahom 13902 . . . . . 6  |-  ( z  e.  dom  .x.  ->  ( ( 1st `  z
)  .x.  ( 2nd `  z ) )  e.  ( (domA `  ( 2nd `  z
) ) (Homa `  C
) (coda
`  ( 1st `  z
) ) ) )
3316, 32sseldi 3178 . . . . 5  |-  ( z  e.  dom  .x.  ->  ( ( 1st `  z
)  .x.  ( 2nd `  z ) )  e.  A )
3414, 33eqeltrd 2357 . . . 4  |-  ( z  e.  dom  .x.  ->  ( 
.x.  `  z )  e.  A )
3534rgen 2608 . . 3  |-  A. z  e.  dom  .x.  (  .x.  `  z )  e.  A
36 ffnfv 5685 . . 3  |-  (  .x.  : dom  .x.  --> A  <->  (  .x.  Fn  dom  .x.  /\  A. z  e.  dom  .x.  (  .x.  `  z )  e.  A
) )
377, 35, 36mpbir2an 886 . 2  |-  .x.  : dom  .x.  --> A
38 fvex 5539 . . . 4  |-  (Nat `  C )  e.  _V
392, 38eqeltri 2353 . . 3  |-  A  e. 
_V
4039, 39xpex 4801 . . 3  |-  ( A  X.  A )  e. 
_V
4139, 40elpm2 6799 . 2  |-  (  .x.  e.  ( A  ^pm  ( A  X.  A ) )  <-> 
(  .x.  : dom  .x.  --> A  /\  dom  .x.  C_  ( A  X.  A ) ) )
4237, 8, 41mpbir2an 886 1  |-  .x.  e.  ( A  ^pm  ( A  X.  A ) )
Colors of variables: wff set class
Syntax hints:    /\ w3a 934    = wceq 1623    e. wcel 1684   A.wral 2543   {crab 2547   _Vcvv 2788    C_ wss 3152   <.cop 3643   <.cotp 3644   class class class wbr 4023    X. cxp 4687   dom cdm 4689   Fun wfun 5249    Fn wfn 5250   -->wf 5251   ` cfv 5255  (class class class)co 5858   1stc1st 6120   2ndc2nd 6121    ^pm cpm 6773  compcco 13220  domAcdoma 13852  codaccoda 13853  Natcarw 13854  Homachoma 13855  compaccoa 13886
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-ot 3650  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-pm 6775  df-cat 13570  df-doma 13856  df-coda 13857  df-homa 13858  df-arw 13859  df-coa 13888
  Copyright terms: Public domain W3C validator