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

Theorem arwass 18301
Description: Associativity of composition in a category using arrow notation. (Contributed by Mario Carneiro, 11-Jan-2017.)
Hypotheses
Ref Expression
arwlid.h 𝐻 = (Homa‘𝐶)
arwlid.o · = (compa‘𝐶)
arwlid.a 1 = (Ida‘𝐶)
arwlid.f (𝜑 → 𝐹 ∈ (𝑋𝐻𝑌))
arwass.g (𝜑 → 𝐺 ∈ (𝑌𝐻𝑍))
arwass.k (𝜑 → 𝐾 ∈ (𝑍𝐻𝑊))
Assertion
Ref Expression
arwass (𝜑 → ((𝐾 · 𝐺) · 𝐹) = (𝐾 · (𝐺 · 𝐹)))

Proof of Theorem arwass
StepHypRef Expression
1 eqid 2766 . . . . 5 (Base‘𝐶) = (Base‘𝐶)
2 eqid 2766 . . . . 5 (Hom ‘𝐶) = (Hom ‘𝐶)
3 eqid 2766 . . . . 5 (comp‘𝐶) = (comp‘𝐶)
4 arwlid.f . . . . . 6 (𝜑 → 𝐹 ∈ (𝑋𝐻𝑌))
5 arwlid.h . . . . . . 7 𝐻 = (Homa‘𝐶)
65homarcl 18255 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → 𝐶 ∈ Cat)
74, 6syl 18 . . . . 5 (𝜑 → 𝐶 ∈ Cat)
85, 1homarcl2 18262 . . . . . . 7 (𝐹 ∈ (𝑋𝐻𝑌) → (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶)))
94, 8syl 18 . . . . . 6 (𝜑 → (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶)))
109simpld 500 . . . . 5 (𝜑 → 𝑋 ∈ (Base‘𝐶))
119simprd 501 . . . . 5 (𝜑 → 𝑌 ∈ (Base‘𝐶))
12 arwass.k . . . . . . 7 (𝜑 → 𝐾 ∈ (𝑍𝐻𝑊))
135, 1homarcl2 18262 . . . . . . 7 (𝐾 ∈ (𝑍𝐻𝑊) → (𝑍 ∈ (Base‘𝐶) ∧ 𝑊 ∈ (Base‘𝐶)))
1412, 13syl 18 . . . . . 6 (𝜑 → (𝑍 ∈ (Base‘𝐶) ∧ 𝑊 ∈ (Base‘𝐶)))
1514simpld 500 . . . . 5 (𝜑 → 𝑍 ∈ (Base‘𝐶))
165, 2homahom 18266 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → (2nd ‘𝐹) ∈ (𝑋(Hom ‘𝐶)𝑌))
174, 16syl 18 . . . . 5 (𝜑 → (2nd ‘𝐹) ∈ (𝑋(Hom ‘𝐶)𝑌))
18 arwass.g . . . . . 6 (𝜑 → 𝐺 ∈ (𝑌𝐻𝑍))
195, 2homahom 18266 . . . . . 6 (𝐺 ∈ (𝑌𝐻𝑍) → (2nd ‘𝐺) ∈ (𝑌(Hom ‘𝐶)𝑍))
2018, 19syl 18 . . . . 5 (𝜑 → (2nd ‘𝐺) ∈ (𝑌(Hom ‘𝐶)𝑍))
2114simprd 501 . . . . 5 (𝜑 → 𝑊 ∈ (Base‘𝐶))
225, 2homahom 18266 . . . . . 6 (𝐾 ∈ (𝑍𝐻𝑊) → (2nd ‘𝐾) ∈ (𝑍(Hom ‘𝐶)𝑊))
2312, 22syl 18 . . . . 5 (𝜑 → (2nd ‘𝐾) ∈ (𝑍(Hom ‘𝐶)𝑊))
241, 2, 3, 7, 10, 11, 15, 17, 20, 21, 23catass 17912 . . . 4 (𝜑 → (((2nd ‘𝐾)(⟨𝑌, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹)) = ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)((2nd ‘𝐺)(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑍)(2nd ‘𝐹))))
25 arwlid.o . . . . . 6 · = (compa‘𝐶)
2625, 5, 18, 12, 3coa2 18296 . . . . 5 (𝜑 → (2nd ‘(𝐾 · 𝐺)) = ((2nd ‘𝐾)(⟨𝑌, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘𝐺)))
2726oveq1d 7465 . . . 4 (𝜑 → ((2nd ‘(𝐾 · 𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹)) = (((2nd ‘𝐾)(⟨𝑌, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹)))
2825, 5, 4, 18, 3coa2 18296 . . . . 5 (𝜑 → (2nd ‘(𝐺 · 𝐹)) = ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑍)(2nd ‘𝐹)))
2928oveq2d 7466 . . . 4 (𝜑 → ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘(𝐺 · 𝐹))) = ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)((2nd ‘𝐺)(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑍)(2nd ‘𝐹))))
3024, 27, 293eqtr4d 2811 . . 3 (𝜑 → ((2nd ‘(𝐾 · 𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹)) = ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘(𝐺 · 𝐹))))
3130oteq3d 4869 . 2 (𝜑 → ⟨𝑋, 𝑊, ((2nd ‘(𝐾 · 𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹))⟩ = ⟨𝑋, 𝑊, ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘(𝐺 · 𝐹)))⟩)
3225, 5, 18, 12coahom 18297 . . 3 (𝜑 → (𝐾 · 𝐺) ∈ (𝑌𝐻𝑊))
3325, 5, 4, 32, 3coaval 18295 . 2 (𝜑 → ((𝐾 · 𝐺) · 𝐹) = ⟨𝑋, 𝑊, ((2nd ‘(𝐾 · 𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹))⟩)
3425, 5, 4, 18coahom 18297 . . 3 (𝜑 → (𝐺 · 𝐹) ∈ (𝑋𝐻𝑍))
3525, 5, 34, 12, 3coaval 18295 . 2 (𝜑 → (𝐾 · (𝐺 · 𝐹)) = ⟨𝑋, 𝑊, ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘(𝐺 · 𝐹)))⟩)
3631, 33, 353eqtr4d 2811 1 (𝜑 → ((𝐾 · 𝐺) · 𝐹) = (𝐾 · (𝐺 · 𝐹)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2150  ⟨cop 4839  ⟨cotp 4862  ‘cfv 6565  (class class class)co 7450  2nd c2nd 8033  Basecbs 17433  Hom chom 17485  compcco 17486  Catccat 17890  Homachoma 18250  Idacida 18280  compaccoa 18281
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782
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 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-ral 3084  df-rex 3094  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-ot 4863  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-id 5552  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-ov 7453  df-oprab 7454  df-mpo 7455  df-1st 8034  df-2nd 8035  df-cat 17894  df-doma 18251  df-coda 18252  df-homa 18253  df-arw 18254  df-coa 18283
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator