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

Theorem coapm 18261
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 2763 . . . . . 6 (comp‘𝐶) = (comp‘𝐶)
41, 2, 3coafval 18254 . . . . 5 · = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩)
54mpofun 7554 . . . 4 Fun ·
6 funfn 6579 . . . 4 (Fun · ↔ · Fn dom · )
75, 6mpbi 233 . . 3 · Fn dom ·
81, 2dmcoass 18256 . . . . . . . . 9 dom · ⊆ (𝐴 × 𝐴)
98sseli 3909 . . . . . . . 8 (𝑧 ∈ dom · → 𝑧 ∈ (𝐴 × 𝐴))
10 1st2nd2 8050 . . . . . . . 8 (𝑧 ∈ (𝐴 × 𝐴) → 𝑧 = ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
119, 10syl 18 . . . . . . 7 (𝑧 ∈ dom · → 𝑧 = ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
1211fveq2d 6900 . . . . . 6 (𝑧 ∈ dom · → ( · ‘𝑧) = ( · ‘⟨(1st ‘𝑧), (2nd ‘𝑧)⟩))
13 df-ov 7433 . . . . . 6 ((1st ‘𝑧) · (2nd ‘𝑧)) = ( · ‘⟨(1st ‘𝑧), (2nd ‘𝑧)⟩)
1412, 13eqtr4di 2816 . . . . 5 (𝑧 ∈ dom · → ( · ‘𝑧) = ((1st ‘𝑧) · (2nd ‘𝑧)))
15 eqid 2763 . . . . . . 7 (Homa‘𝐶) = (Homa‘𝐶)
162, 15homarw 18236 . . . . . 6 ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))) ⊆ 𝐴
17 id 23 . . . . . . . . . . . . 13 (𝑧 ∈ dom · → 𝑧 ∈ dom · )
1811, 17eqeltrrd 2865 . . . . . . . . . . . 12 (𝑧 ∈ dom · → ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩ ∈ dom · )
19 df-br 5107 . . . . . . . . . . . 12 ((1st ‘𝑧)dom · (2nd ‘𝑧) ↔ ⟨(1st ‘𝑧), (2nd ‘𝑧)⟩ ∈ dom · )
2018, 19sylibr 237 . . . . . . . . . . 11 (𝑧 ∈ dom · → (1st ‘𝑧)dom · (2nd ‘𝑧))
211, 2eldmcoa 18255 . . . . . . . . . . 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 18235 . . . . . . . . 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 7446 . . . . . . . 8 (𝑧 ∈ dom · → ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(2nd ‘𝑧))) = ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(doma‘(1st ‘𝑧))))
2825, 27eleqtrd 2866 . . . . . . 7 (𝑧 ∈ dom · → (2nd ‘𝑧) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(doma‘(1st ‘𝑧))))
2922simp2d 1161 . . . . . . . 8 (𝑧 ∈ dom · → (1st ‘𝑧) ∈ 𝐴)
302, 15arwhoma 18235 . . . . . . . 8 ((1st ‘𝑧) ∈ 𝐴 → (1st ‘𝑧) ∈ ((doma‘(1st ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
3129, 30syl 18 . . . . . . 7 (𝑧 ∈ dom · → (1st ‘𝑧) ∈ ((doma‘(1st ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
321, 15, 28, 31coahom 18260 . . . . . 6 (𝑧 ∈ dom · → ((1st ‘𝑧) · (2nd ‘𝑧)) ∈ ((doma‘(2nd ‘𝑧))(Homa‘𝐶)(coda‘(1st ‘𝑧))))
3316, 32sselid 3911 . . . . 5 (𝑧 ∈ dom · → ((1st ‘𝑧) · (2nd ‘𝑧)) ∈ 𝐴)
3414, 33eqeltrd 2864 . . . 4 (𝑧 ∈ dom · → ( · ‘𝑧) ∈ 𝐴)
3534rgen 3082 . . 3 ∀𝑧 ∈ dom · ( · ‘𝑧) ∈ 𝐴
36 ffnfv 7130 . . 3 ( · :dom · ⟶𝐴 ↔ ( · Fn dom · ∧ ∀𝑧 ∈ dom · ( · ‘𝑧) ∈ 𝐴))
377, 35, 36mpbir2an 724 . 2 · :dom · ⟶𝐴
382fvexi 6910 . . 3 𝐴 ∈ V
3938, 38xpex 7777 . . 3 (𝐴 × 𝐴) ∈ V
4038, 39elpm2 8916 . 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 1569   ∈ wcel 2146  ∀wral 3080  {crab 3416   ⊆ wss 3900  ⟨cop 4838  ⟨cotp 4861   class class class wbr 5106   × cxp 5653  dom cdm 5655  Fun wfun 6541   Fn wfn 6542  ⟶wf 6543  ‘cfv 6547  (class class class)co 7430  1st c1st 8009  2nd c2nd 8010   ↑pm cpm 8862  compcco 17455  domacdoma 18210  codaccoda 18211  Arrowcarw 18212  Homachoma 18213  compaccoa 18244
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7761
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-ot 4862  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6501  df-fun 6549  df-fn 6550  df-f 6551  df-f1 6552  df-fo 6553  df-f1o 6554  df-fv 6555  df-ov 7433  df-oprab 7434  df-mpo 7435  df-1st 8011  df-2nd 8012  df-pm 8864  df-cat 17857  df-doma 18214  df-coda 18215  df-homa 18216  df-arw 18217  df-coa 18246
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator