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

Theorem arwass 18249
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 2760 . . . . 5 (Base‘𝐶) = (Base‘𝐶)
2 eqid 2760 . . . . 5 (Hom ‘𝐶) = (Hom ‘𝐶)
3 eqid 2760 . . . . 5 (comp‘𝐶) = (comp‘𝐶)
4 arwlid.f . . . . . 6 (𝜑 → 𝐹 ∈ (𝑋𝐻𝑌))
5 arwlid.h . . . . . . 7 𝐻 = (Homa‘𝐶)
65homarcl 18203 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → 𝐶 ∈ Cat)
74, 6syl 18 . . . . 5 (𝜑 → 𝐶 ∈ Cat)
85, 1homarcl2 18210 . . . . . . 7 (𝐹 ∈ (𝑋𝐻𝑌) → (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶)))
94, 8syl 18 . . . . . 6 (𝜑 → (𝑋 ∈ (Base‘𝐶) ∧ 𝑌 ∈ (Base‘𝐶)))
109simpld 500 . . . . 5 (𝜑 → 𝑋 ∈ (Base‘𝐶))
119simprd 501 . . . . 5 (𝜑 → 𝑌 ∈ (Base‘𝐶))
12 arwass.k . . . . . . 7 (𝜑 → 𝐾 ∈ (𝑍𝐻𝑊))
135, 1homarcl2 18210 . . . . . . 7 (𝐾 ∈ (𝑍𝐻𝑊) → (𝑍 ∈ (Base‘𝐶) ∧ 𝑊 ∈ (Base‘𝐶)))
1412, 13syl 18 . . . . . 6 (𝜑 → (𝑍 ∈ (Base‘𝐶) ∧ 𝑊 ∈ (Base‘𝐶)))
1514simpld 500 . . . . 5 (𝜑 → 𝑍 ∈ (Base‘𝐶))
165, 2homahom 18214 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → (2nd ‘𝐹) ∈ (𝑋(Hom ‘𝐶)𝑌))
174, 16syl 18 . . . . 5 (𝜑 → (2nd ‘𝐹) ∈ (𝑋(Hom ‘𝐶)𝑌))
18 arwass.g . . . . . 6 (𝜑 → 𝐺 ∈ (𝑌𝐻𝑍))
195, 2homahom 18214 . . . . . 6 (𝐺 ∈ (𝑌𝐻𝑍) → (2nd ‘𝐺) ∈ (𝑌(Hom ‘𝐶)𝑍))
2018, 19syl 18 . . . . 5 (𝜑 → (2nd ‘𝐺) ∈ (𝑌(Hom ‘𝐶)𝑍))
2114simprd 501 . . . . 5 (𝜑 → 𝑊 ∈ (Base‘𝐶))
225, 2homahom 18214 . . . . . 6 (𝐾 ∈ (𝑍𝐻𝑊) → (2nd ‘𝐾) ∈ (𝑍(Hom ‘𝐶)𝑊))
2312, 22syl 18 . . . . 5 (𝜑 → (2nd ‘𝐾) ∈ (𝑍(Hom ‘𝐶)𝑊))
241, 2, 3, 7, 10, 11, 15, 17, 20, 21, 23catass 17860 . . . 4 (𝜑 → (((2nd ‘𝐾)(⟨𝑌, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹)) = ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)((2nd ‘𝐺)(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑍)(2nd ‘𝐹))))
25 arwlid.o . . . . . 6 · = (compa‘𝐶)
2625, 5, 18, 12, 3coa2 18244 . . . . 5 (𝜑 → (2nd ‘(𝐾 · 𝐺)) = ((2nd ‘𝐾)(⟨𝑌, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘𝐺)))
2726oveq1d 7435 . . . 4 (𝜑 → ((2nd ‘(𝐾 · 𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹)) = (((2nd ‘𝐾)(⟨𝑌, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹)))
2825, 5, 4, 18, 3coa2 18244 . . . . 5 (𝜑 → (2nd ‘(𝐺 · 𝐹)) = ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑍)(2nd ‘𝐹)))
2928oveq2d 7436 . . . 4 (𝜑 → ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘(𝐺 · 𝐹))) = ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)((2nd ‘𝐺)(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑍)(2nd ‘𝐹))))
3024, 27, 293eqtr4d 2805 . . 3 (𝜑 → ((2nd ‘(𝐾 · 𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹)) = ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘(𝐺 · 𝐹))))
3130oteq3d 4846 . 2 (𝜑 → ⟨𝑋, 𝑊, ((2nd ‘(𝐾 · 𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹))⟩ = ⟨𝑋, 𝑊, ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘(𝐺 · 𝐹)))⟩)
3225, 5, 18, 12coahom 18245 . . 3 (𝜑 → (𝐾 · 𝐺) ∈ (𝑌𝐻𝑊))
3325, 5, 4, 32, 3coaval 18243 . 2 (𝜑 → ((𝐾 · 𝐺) · 𝐹) = ⟨𝑋, 𝑊, ((2nd ‘(𝐾 · 𝐺))(⟨𝑋, 𝑌⟩(comp‘𝐶)𝑊)(2nd ‘𝐹))⟩)
3425, 5, 4, 18coahom 18245 . . 3 (𝜑 → (𝐺 · 𝐹) ∈ (𝑋𝐻𝑍))
3525, 5, 34, 12, 3coaval 18243 . 2 (𝜑 → (𝐾 · (𝐺 · 𝐹)) = ⟨𝑋, 𝑊, ((2nd ‘𝐾)(⟨𝑋, 𝑍⟩(comp‘𝐶)𝑊)(2nd ‘(𝐺 · 𝐹)))⟩)
3631, 33, 353eqtr4d 2805 1 (𝜑 → ((𝐾 · 𝐺) · 𝐹) = (𝐾 · (𝐺 · 𝐹)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144  ⟨cop 4589  ⟨cotp 4591  ‘cfv 6538  (class class class)co 7420  2nd c2nd 8000  Basecbs 17387  Hom chom 17439  compcco 17440  Catccat 17838  Homachoma 18198  Idacida 18228  compaccoa 18229
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 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7751
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 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-ot 4592  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  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-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