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

Theorem yon2 17511
 Description: Value of the Yoneda embedding at a morphism. (Contributed by Mario Carneiro, 17-Jan-2017.)
Hypotheses
Ref Expression
yon11.y 𝑌 = (Yon‘𝐶)
yon11.b 𝐵 = (Base‘𝐶)
yon11.c (𝜑𝐶 ∈ Cat)
yon11.p (𝜑𝑋𝐵)
yon11.h 𝐻 = (Hom ‘𝐶)
yon11.z (𝜑𝑍𝐵)
yon12.x · = (comp‘𝐶)
yon12.w (𝜑𝑊𝐵)
yon2.f (𝜑𝐹 ∈ (𝑋𝐻𝑍))
yon2.g (𝜑𝐺 ∈ (𝑊𝐻𝑋))
Assertion
Ref Expression
yon2 (𝜑 → ((((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊)‘𝐺) = (𝐹(⟨𝑊, 𝑋· 𝑍)𝐺))

Proof of Theorem yon2
StepHypRef Expression
1 yon11.y . . . . . . . . 9 𝑌 = (Yon‘𝐶)
2 yon11.c . . . . . . . . 9 (𝜑𝐶 ∈ Cat)
3 eqid 2801 . . . . . . . . 9 (oppCat‘𝐶) = (oppCat‘𝐶)
4 eqid 2801 . . . . . . . . 9 (HomF‘(oppCat‘𝐶)) = (HomF‘(oppCat‘𝐶))
51, 2, 3, 4yonval 17506 . . . . . . . 8 (𝜑𝑌 = (⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))
65fveq2d 6653 . . . . . . 7 (𝜑 → (2nd𝑌) = (2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶)))))
76oveqd 7156 . . . . . 6 (𝜑 → (𝑋(2nd𝑌)𝑍) = (𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍))
87fveq1d 6651 . . . . 5 (𝜑 → ((𝑋(2nd𝑌)𝑍)‘𝐹) = ((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹))
98fveq1d 6651 . . . 4 (𝜑 → (((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊) = (((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹)‘𝑊))
10 eqid 2801 . . . . 5 (⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))) = (⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶)))
11 yon11.b . . . . 5 𝐵 = (Base‘𝐶)
123oppccat 16987 . . . . . 6 (𝐶 ∈ Cat → (oppCat‘𝐶) ∈ Cat)
132, 12syl 17 . . . . 5 (𝜑 → (oppCat‘𝐶) ∈ Cat)
14 eqid 2801 . . . . . 6 (SetCat‘ran (Homf𝐶)) = (SetCat‘ran (Homf𝐶))
15 fvex 6662 . . . . . . . 8 (Homf𝐶) ∈ V
1615rnex 7603 . . . . . . 7 ran (Homf𝐶) ∈ V
1716a1i 11 . . . . . 6 (𝜑 → ran (Homf𝐶) ∈ V)
18 ssidd 3941 . . . . . 6 (𝜑 → ran (Homf𝐶) ⊆ ran (Homf𝐶))
193, 4, 14, 2, 17, 18oppchofcl 17505 . . . . 5 (𝜑 → (HomF‘(oppCat‘𝐶)) ∈ ((𝐶 ×c (oppCat‘𝐶)) Func (SetCat‘ran (Homf𝐶))))
203, 11oppcbas 16983 . . . . 5 𝐵 = (Base‘(oppCat‘𝐶))
21 yon11.h . . . . 5 𝐻 = (Hom ‘𝐶)
22 eqid 2801 . . . . 5 (Id‘(oppCat‘𝐶)) = (Id‘(oppCat‘𝐶))
23 yon11.p . . . . 5 (𝜑𝑋𝐵)
24 yon11.z . . . . 5 (𝜑𝑍𝐵)
25 yon2.f . . . . 5 (𝜑𝐹 ∈ (𝑋𝐻𝑍))
26 eqid 2801 . . . . 5 ((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹) = ((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹)
27 yon12.w . . . . 5 (𝜑𝑊𝐵)
2810, 11, 2, 13, 19, 20, 21, 22, 23, 24, 25, 26, 27curf2val 17475 . . . 4 (𝜑 → (((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹)‘𝑊) = (𝐹(⟨𝑋, 𝑊⟩(2nd ‘(HomF‘(oppCat‘𝐶)))⟨𝑍, 𝑊⟩)((Id‘(oppCat‘𝐶))‘𝑊)))
299, 28eqtrd 2836 . . 3 (𝜑 → (((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊) = (𝐹(⟨𝑋, 𝑊⟩(2nd ‘(HomF‘(oppCat‘𝐶)))⟨𝑍, 𝑊⟩)((Id‘(oppCat‘𝐶))‘𝑊)))
3029fveq1d 6651 . 2 (𝜑 → ((((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊)‘𝐺) = ((𝐹(⟨𝑋, 𝑊⟩(2nd ‘(HomF‘(oppCat‘𝐶)))⟨𝑍, 𝑊⟩)((Id‘(oppCat‘𝐶))‘𝑊))‘𝐺))
31 eqid 2801 . . 3 (Hom ‘(oppCat‘𝐶)) = (Hom ‘(oppCat‘𝐶))
32 eqid 2801 . . 3 (comp‘(oppCat‘𝐶)) = (comp‘(oppCat‘𝐶))
3321, 3oppchom 16980 . . . 4 (𝑍(Hom ‘(oppCat‘𝐶))𝑋) = (𝑋𝐻𝑍)
3425, 33eleqtrrdi 2904 . . 3 (𝜑𝐹 ∈ (𝑍(Hom ‘(oppCat‘𝐶))𝑋))
3520, 31, 22, 13, 27catidcl 16948 . . 3 (𝜑 → ((Id‘(oppCat‘𝐶))‘𝑊) ∈ (𝑊(Hom ‘(oppCat‘𝐶))𝑊))
36 yon2.g . . . 4 (𝜑𝐺 ∈ (𝑊𝐻𝑋))
3721, 3oppchom 16980 . . . 4 (𝑋(Hom ‘(oppCat‘𝐶))𝑊) = (𝑊𝐻𝑋)
3836, 37eleqtrrdi 2904 . . 3 (𝜑𝐺 ∈ (𝑋(Hom ‘(oppCat‘𝐶))𝑊))
394, 13, 20, 31, 23, 27, 24, 27, 32, 34, 35, 38hof2 17502 . 2 (𝜑 → ((𝐹(⟨𝑋, 𝑊⟩(2nd ‘(HomF‘(oppCat‘𝐶)))⟨𝑍, 𝑊⟩)((Id‘(oppCat‘𝐶))‘𝑊))‘𝐺) = ((((Id‘(oppCat‘𝐶))‘𝑊)(⟨𝑋, 𝑊⟩(comp‘(oppCat‘𝐶))𝑊)𝐺)(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹))
4020, 31, 22, 13, 23, 32, 27, 38catlid 16949 . . . 4 (𝜑 → (((Id‘(oppCat‘𝐶))‘𝑊)(⟨𝑋, 𝑊⟩(comp‘(oppCat‘𝐶))𝑊)𝐺) = 𝐺)
4140oveq1d 7154 . . 3 (𝜑 → ((((Id‘(oppCat‘𝐶))‘𝑊)(⟨𝑋, 𝑊⟩(comp‘(oppCat‘𝐶))𝑊)𝐺)(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹) = (𝐺(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹))
42 yon12.x . . . 4 · = (comp‘𝐶)
4311, 42, 3, 24, 23, 27oppcco 16982 . . 3 (𝜑 → (𝐺(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹) = (𝐹(⟨𝑊, 𝑋· 𝑍)𝐺))
4441, 43eqtrd 2836 . 2 (𝜑 → ((((Id‘(oppCat‘𝐶))‘𝑊)(⟨𝑋, 𝑊⟩(comp‘(oppCat‘𝐶))𝑊)𝐺)(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹) = (𝐹(⟨𝑊, 𝑋· 𝑍)𝐺))
4530, 39, 443eqtrd 2840 1 (𝜑 → ((((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊)‘𝐺) = (𝐹(⟨𝑊, 𝑋· 𝑍)𝐺))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   = wceq 1538   ∈ wcel 2112  Vcvv 3444  ⟨cop 4534  ran crn 5524  ‘cfv 6328  (class class class)co 7139  2nd c2nd 7674  Basecbs 16478  Hom chom 16571  compcco 16572  Catccat 16930  Idccid 16931  Homf chomf 16932  oppCatcoppc 16976  SetCatcsetc 17330   curryF ccurf 17455  HomFchof 17493  Yoncyon 17494 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2773  ax-rep 5157  ax-sep 5170  ax-nul 5177  ax-pow 5234  ax-pr 5298  ax-un 7445  ax-cnex 10586  ax-resscn 10587  ax-1cn 10588  ax-icn 10589  ax-addcl 10590  ax-addrcl 10591  ax-mulcl 10592  ax-mulrcl 10593  ax-mulcom 10594  ax-addass 10595  ax-mulass 10596  ax-distr 10597  ax-i2m1 10598  ax-1ne0 10599  ax-1rid 10600  ax-rnegex 10601  ax-rrecex 10602  ax-cnre 10603  ax-pre-lttri 10604  ax-pre-lttrn 10605  ax-pre-ltadd 10606  ax-pre-mulgt0 10607 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2601  df-eu 2632  df-clab 2780  df-cleq 2794  df-clel 2873  df-nfc 2941  df-ne 2991  df-nel 3095  df-ral 3114  df-rex 3115  df-reu 3116  df-rmo 3117  df-rab 3118  df-v 3446  df-sbc 3724  df-csb 3832  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-pss 3903  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-tp 4533  df-op 4535  df-uni 4804  df-int 4842  df-iun 4886  df-br 5034  df-opab 5096  df-mpt 5114  df-tr 5140  df-id 5428  df-eprel 5433  df-po 5442  df-so 5443  df-fr 5482  df-we 5484  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-pred 6120  df-ord 6166  df-on 6167  df-lim 6168  df-suc 6169  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-riota 7097  df-ov 7142  df-oprab 7143  df-mpo 7144  df-om 7565  df-1st 7675  df-2nd 7676  df-tpos 7879  df-wrecs 7934  df-recs 7995  df-rdg 8033  df-1o 8089  df-oadd 8093  df-er 8276  df-map 8395  df-ixp 8449  df-en 8497  df-dom 8498  df-sdom 8499  df-fin 8500  df-pnf 10670  df-mnf 10671  df-xr 10672  df-ltxr 10673  df-le 10674  df-sub 10865  df-neg 10866  df-nn 11630  df-2 11692  df-3 11693  df-4 11694  df-5 11695  df-6 11696  df-7 11697  df-8 11698  df-9 11699  df-n0 11890  df-z 11974  df-dec 12091  df-uz 12236  df-fz 12890  df-struct 16480  df-ndx 16481  df-slot 16482  df-base 16484  df-sets 16485  df-hom 16584  df-cco 16585  df-cat 16934  df-cid 16935  df-homf 16936  df-comf 16937  df-oppc 16977  df-func 17123  df-setc 17331  df-xpc 17417  df-curf 17459  df-hof 17495  df-yon 17496 This theorem is referenced by:  yonedalem3b  17524  yonffthlem  17527
 Copyright terms: Public domain W3C validator