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

Theorem coapm 18246
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 2761 . . . . . 6 (comp‘𝐶) = (comp‘𝐶)
41, 2, 3coafval 18239 . . . . 5 · = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩)
54mpofun 7544 . . . 4 Fun ·
6 funfn 6570 . . . 4 (Fun · ↔ · Fn dom · )
75, 6mpbi 233 . . 3 · Fn dom ·
81, 2dmcoass 18241 . . . . . . . . 9 dom · ⊆ (𝐴 × 𝐴)
98sseli 3927 . . . . . . . 8 (𝑧 ∈ dom · → 𝑧 ∈ (𝐴 × 𝐴))
10 1st2nd2 8040 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐴) → 𝑧 = ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
119, 10syl 18 . . . . . . 7 (𝑧 ∈ dom · → 𝑧 = ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
1211fveq2d 6889 . . . . . 6 (𝑧 ∈ dom · → ( · ‘𝑧) = ( · ‘⟨(1st ‘𝑧), (2nd ‘𝑧)⟩))
13 df-ov 7423 . . . . . 6 ((1st ‘𝑧) · (2nd ‘𝑧)) = ( · ‘⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
1412, 13eqtr4di 2814 . . . . 5 (𝑧 ∈ dom · → ( · ‘𝑧) = ((1st ‘𝑧) · (2nd ‘𝑧)))
15 eqid 2761 . . . . . . 7 (Homa‘𝐶) = (Homa‘𝐶)
162, 15homarw 18221 . . . . . 6 ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))) ⊆ 𝐴
17 id 23 . . . . . . . . . . . . 13 (𝑧 ∈ dom · → 𝑧 ∈ dom · )
1811, 17eqeltrrd 2862 . . . . . . . . . . . 12 (𝑧 ∈ dom · → ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩ ∈ dom · )
19 df-br 5104 . . . . . . . . . . . 12 ((1st ‘𝑧)dom · (2nd ‘𝑧) ↔ ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩ ∈ dom · )
2018, 19sylibr 237 . . . . . . . . . . 11 (𝑧 ∈ dom · → (1st ‘𝑧)dom · (2nd ‘𝑧))
211, 2eldmcoa 18240 . . . . . . . . . . 11 ((1st ‘𝑧)dom · (2nd ‘𝑧) ↔ ((2nd ‘𝑧) ∈ 𝐴 ∧ (1st ‘𝑧) ∈ 𝐴 ∧ (coda‘(2nd ‘𝑧)) = (doma‘(1st ‘𝑧))))
2220, 21sylib 221 . . . . . . . . . 10 (𝑧 ∈ dom · → ((2nd ‘𝑧) ∈ 𝐴 ∧ (1st ‘𝑧) ∈ 𝐴 ∧ (coda‘(2nd ‘𝑧)) = (doma‘(1st ‘𝑧))))
2322simp1d 1160 . . . . . . . . 9 (𝑧 ∈ dom · → (2nd ‘𝑧) ∈ 𝐴)
242, 15arwhoma 18220 . . . . . . . . 9 ((2nd ‘𝑧) ∈ 𝐴 → (2nd ‘𝑧) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(2nd ‘𝑧))))
2523, 24syl 18 . . . . . . . 8 (𝑧 ∈ dom · → (2nd ‘𝑧) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(2nd ‘𝑧))))
2622simp3d 1162 . . . . . . . . 9 (𝑧 ∈ dom · → (coda‘(2nd ‘𝑧)) = (doma‘(1st ‘𝑧)))
2726oveq2d 7436 . . . . . . . 8 (𝑧 ∈ dom · → ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(2nd ‘𝑧))) = ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(doma‘(1st ‘𝑧))))
2825, 27eleqtrd 2863 . . . . . . 7 (𝑧 ∈ dom · → (2nd ‘𝑧) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(doma‘(1st ‘𝑧))))
2922simp2d 1161 . . . . . . . 8 (𝑧 ∈ dom · → (1st ‘𝑧) ∈ 𝐴)
302, 15arwhoma 18220 . . . . . . . 8 ((1st ‘𝑧) ∈ 𝐴 → (1st ‘𝑧) ∈ ((doma‘(1st ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
3129, 30syl 18 . . . . . . 7 (𝑧 ∈ dom · → (1st ‘𝑧) ∈ ((doma‘(1st ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
321, 15, 28, 31coahom 18245 . . . . . 6 (𝑧 ∈ dom · → ((1st ‘𝑧) · (2nd ‘𝑧)) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
3316, 32sselid 3929 . . . . 5 (𝑧 ∈ dom · → ((1st ‘𝑧) · (2nd ‘𝑧)) ∈ 𝐴)
3414, 33eqeltrd 2861 . . . 4 (𝑧 ∈ dom · → ( · ‘𝑧) ∈ 𝐴)
3534rgen 3079 . . 3 ∀𝑧 ∈ dom · ( · ‘𝑧) ∈ 𝐴
36 ffnfv 7119 . . 3 ( · :dom · ⟶𝐴 ↔ ( · Fn dom · ∧ ∀𝑧 ∈ dom · ( · ‘𝑧) ∈ 𝐴))
377, 35, 36mpbir2an 724 . 2 · :dom · ⟶𝐴
382fvexi 6899 . . 3 𝐴 ∈ V
3938, 38xpex 7767 . . 3 (𝐴 × 𝐴) ∈ V
4038, 39elpm2 8902 . 2 ( · ∈ (𝐴 ↑pm (𝐴 × 𝐴)) ↔ ( · :dom · ⟶𝐴 ∧ dom · ⊆ (𝐴 × 𝐴)))
4137, 8, 40mpbir2an 724 1 · ∈ (𝐴 ↑pm (𝐴 × 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ w3a 1103   = wceq 1570   ∈ wcel 2145  ∀wral 3077  {crab 3413   ⊆ wss 3899  ⟨cop 4590  ⟨cotp 4592   class class class wbr 5103   × cxp 5649  dom cdm 5651  Fun wfun 6532   Fn wfn 6533  ⟶wf 6534  ‘cfv 6538  (class class class)co 7420  1st c1st 7999  2nd c2nd 8000   ↑pm cpm 8848  compcco 17440  domacdoma 18195  codaccoda 18196  Arrowcarw 18197  Homachoma 18198  compaccoa 18229
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-ot 4593  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-1st 8001  df-2nd 8002  df-pm 8850  df-cat 17842  df-doma 18199  df-coda 18200  df-homa 18201  df-arw 18202  df-coa 18231
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator