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

Theorem coapm 18325
Description: Composition of arrows is a partial binary operation on arrows. (Contributed by Mario Carneiro, 11-Jan-2017.)
Hypotheses
Ref Expression
coapm.o · = (compa‘𝐶)
coapm.a 𝐴 = (Arrow‘𝐶)
Assertion
Ref Expression
coapm · ∈ (𝐴 ↑pm (𝐴 × 𝐴))

Proof of Theorem coapm
Dummy variables 𝑓 𝑔 ℎ 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 coapm.o . . . . . 6 · = (compa‘𝐶)
2 coapm.a . . . . . 6 𝐴 = (Arrow‘𝐶)
3 eqid 2774 . . . . . 6 (comp‘𝐶) = (comp‘𝐶)
41, 2, 3coafval 18318 . . . . 5 · = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩)
54mpofun 7594 . . . 4 Fun ·
6 funfn 6611 . . . 4 (Fun · ↔ · Fn dom · )
75, 6mpbi 233 . . 3 · Fn dom ·
81, 2dmcoass 18320 . . . . . . . . 9 dom · ⊆ (𝐴 × 𝐴)
98sseli 3916 . . . . . . . 8 (𝑧 ∈ dom · → 𝑧 ∈ (𝐴 × 𝐴))
10 1st2nd2 8093 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐴) → 𝑧 = ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
119, 10syl 18 . . . . . . 7 (𝑧 ∈ dom · → 𝑧 = ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
1211fveq2d 6938 . . . . . 6 (𝑧 ∈ dom · → ( · ‘𝑧) = ( · ‘⟨(1st ‘𝑧), (2nd ‘𝑧)⟩))
13 df-ov 7473 . . . . . 6 ((1st ‘𝑧) · (2nd ‘𝑧)) = ( · ‘⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
1412, 13eqtr4di 2827 . . . . 5 (𝑧 ∈ dom · → ( · ‘𝑧) = ((1st ‘𝑧) · (2nd ‘𝑧)))
15 eqid 2774 . . . . . . 7 (Homa‘𝐶) = (Homa‘𝐶)
162, 15homarw 18300 . . . . . 6 ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))) ⊆ 𝐴
17 id 23 . . . . . . . . . . . . 13 (𝑧 ∈ dom · → 𝑧 ∈ dom · )
1811, 17eqeltrrd 2876 . . . . . . . . . . . 12 (𝑧 ∈ dom · → ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩ ∈ dom · )
19 df-br 5117 . . . . . . . . . . . 12 ((1st ‘𝑧)dom · (2nd ‘𝑧) ↔ ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩ ∈ dom · )
2018, 19sylibr 237 . . . . . . . . . . 11 (𝑧 ∈ dom · → (1st ‘𝑧)dom · (2nd ‘𝑧))
211, 2eldmcoa 18319 . . . . . . . . . . 11 ((1st ‘𝑧)dom · (2nd ‘𝑧) ↔ ((2nd ‘𝑧) ∈ 𝐴 ∧ (1st ‘𝑧) ∈ 𝐴 ∧ (coda‘(2nd ‘𝑧)) = (doma‘(1st ‘𝑧))))
2220, 21sylib 221 . . . . . . . . . 10 (𝑧 ∈ dom · → ((2nd ‘𝑧) ∈ 𝐴 ∧ (1st ‘𝑧) ∈ 𝐴 ∧ (coda‘(2nd ‘𝑧)) = (doma‘(1st ‘𝑧))))
2322simp1d 1161 . . . . . . . . 9 (𝑧 ∈ dom · → (2nd ‘𝑧) ∈ 𝐴)
242, 15arwhoma 18299 . . . . . . . . 9 ((2nd ‘𝑧) ∈ 𝐴 → (2nd ‘𝑧) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(2nd ‘𝑧))))
2523, 24syl 18 . . . . . . . 8 (𝑧 ∈ dom · → (2nd ‘𝑧) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(2nd ‘𝑧))))
2622simp3d 1163 . . . . . . . . 9 (𝑧 ∈ dom · → (coda‘(2nd ‘𝑧)) = (doma‘(1st ‘𝑧)))
2726oveq2d 7486 . . . . . . . 8 (𝑧 ∈ dom · → ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(2nd ‘𝑧))) = ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(doma‘(1st ‘𝑧))))
2825, 27eleqtrd 2877 . . . . . . 7 (𝑧 ∈ dom · → (2nd ‘𝑧) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(doma‘(1st ‘𝑧))))
2922simp2d 1162 . . . . . . . 8 (𝑧 ∈ dom · → (1st ‘𝑧) ∈ 𝐴)
302, 15arwhoma 18299 . . . . . . . 8 ((1st ‘𝑧) ∈ 𝐴 → (1st ‘𝑧) ∈ ((doma‘(1st ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
3129, 30syl 18 . . . . . . 7 (𝑧 ∈ dom · → (1st ‘𝑧) ∈ ((doma‘(1st ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
321, 15, 28, 31coahom 18324 . . . . . 6 (𝑧 ∈ dom · → ((1st ‘𝑧) · (2nd ‘𝑧)) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
3316, 32sselid 3918 . . . . 5 (𝑧 ∈ dom · → ((1st ‘𝑧) · (2nd ‘𝑧)) ∈ 𝐴)
3414, 33eqeltrd 2875 . . . 4 (𝑧 ∈ dom · → ( · ‘𝑧) ∈ 𝐴)
3534rgen 3093 . . 3 ∀𝑧 ∈ dom · ( · ‘𝑧) ∈ 𝐴
36 ffnfv 7169 . . 3 ( · :dom · ⟶𝐴 ↔ ( · Fn dom · ∧ ∀𝑧 ∈ dom · ( · ‘𝑧) ∈ 𝐴))
377, 35, 36mpbir2an 724 . 2 · :dom · ⟶𝐴
382fvexi 6948 . . 3 𝐴 ∈ V
3938, 38xpex 7818 . . 3 (𝐴 × 𝐴) ∈ V
4038, 39elpm2 8959 . 2 ( · ∈ (𝐴 ↑pm (𝐴 × 𝐴)) ↔ ( · :dom · ⟶𝐴 ∧ dom · ⊆ (𝐴 × 𝐴)))
4137, 8, 40mpbir2an 724 1 · ∈ (𝐴 ↑pm (𝐴 × 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ w3a 1104   = wceq 1572   ∈ wcel 2156  ∀wral 3091  {crab 3423   ⊆ wss 3907  ⟨cop 4848  ⟨cotp 4871   class class class wbr 5116   × cxp 5664  dom cdm 5666  Fun wfun 6573   Fn wfn 6574  ⟶wf 6575  ‘cfv 6579  (class class class)co 7470  1st c1st 8052  2nd c2nd 8053   ↑pm cpm 8905  compcco 17509  domacdoma 18274  codaccoda 18275  Arrowcarw 18276  Homachoma 18277  compaccoa 18308
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7802
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-ot 4872  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-ov 7473  df-oprab 7474  df-mpo 7475  df-1st 8054  df-2nd 8055  df-pm 8907  df-cat 17921  df-doma 18278  df-coda 18279  df-homa 18280  df-arw 18281  df-coa 18310
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator