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

Theorem yon2 17127
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 2760 . . . . . . . . 9 (oppCat‘𝐶) = (oppCat‘𝐶)
4 eqid 2760 . . . . . . . . 9 (HomF‘(oppCat‘𝐶)) = (HomF‘(oppCat‘𝐶))
51, 2, 3, 4yonval 17122 . . . . . . . 8 (𝜑𝑌 = (⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))
65fveq2d 6357 . . . . . . 7 (𝜑 → (2nd𝑌) = (2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶)))))
76oveqd 6831 . . . . . 6 (𝜑 → (𝑋(2nd𝑌)𝑍) = (𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍))
87fveq1d 6355 . . . . 5 (𝜑 → ((𝑋(2nd𝑌)𝑍)‘𝐹) = ((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹))
98fveq1d 6355 . . . 4 (𝜑 → (((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊) = (((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹)‘𝑊))
10 eqid 2760 . . . . 5 (⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))) = (⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶)))
11 yon11.b . . . . 5 𝐵 = (Base‘𝐶)
123oppccat 16603 . . . . . 6 (𝐶 ∈ Cat → (oppCat‘𝐶) ∈ Cat)
132, 12syl 17 . . . . 5 (𝜑 → (oppCat‘𝐶) ∈ Cat)
14 eqid 2760 . . . . . 6 (SetCat‘ran (Homf𝐶)) = (SetCat‘ran (Homf𝐶))
15 fvex 6363 . . . . . . . 8 (Homf𝐶) ∈ V
1615rnex 7266 . . . . . . 7 ran (Homf𝐶) ∈ V
1716a1i 11 . . . . . 6 (𝜑 → ran (Homf𝐶) ∈ V)
18 ssid 3765 . . . . . . 7 ran (Homf𝐶) ⊆ ran (Homf𝐶)
1918a1i 11 . . . . . 6 (𝜑 → ran (Homf𝐶) ⊆ ran (Homf𝐶))
203, 4, 14, 2, 17, 19oppchofcl 17121 . . . . 5 (𝜑 → (HomF‘(oppCat‘𝐶)) ∈ ((𝐶 ×c (oppCat‘𝐶)) Func (SetCat‘ran (Homf𝐶))))
213, 11oppcbas 16599 . . . . 5 𝐵 = (Base‘(oppCat‘𝐶))
22 yon11.h . . . . 5 𝐻 = (Hom ‘𝐶)
23 eqid 2760 . . . . 5 (Id‘(oppCat‘𝐶)) = (Id‘(oppCat‘𝐶))
24 yon11.p . . . . 5 (𝜑𝑋𝐵)
25 yon11.z . . . . 5 (𝜑𝑍𝐵)
26 yon2.f . . . . 5 (𝜑𝐹 ∈ (𝑋𝐻𝑍))
27 eqid 2760 . . . . 5 ((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹) = ((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹)
28 yon12.w . . . . 5 (𝜑𝑊𝐵)
2910, 11, 2, 13, 20, 21, 22, 23, 24, 25, 26, 27, 28curf2val 17091 . . . 4 (𝜑 → (((𝑋(2nd ‘(⟨𝐶, (oppCat‘𝐶)⟩ curryF (HomF‘(oppCat‘𝐶))))𝑍)‘𝐹)‘𝑊) = (𝐹(⟨𝑋, 𝑊⟩(2nd ‘(HomF‘(oppCat‘𝐶)))⟨𝑍, 𝑊⟩)((Id‘(oppCat‘𝐶))‘𝑊)))
309, 29eqtrd 2794 . . 3 (𝜑 → (((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊) = (𝐹(⟨𝑋, 𝑊⟩(2nd ‘(HomF‘(oppCat‘𝐶)))⟨𝑍, 𝑊⟩)((Id‘(oppCat‘𝐶))‘𝑊)))
3130fveq1d 6355 . 2 (𝜑 → ((((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊)‘𝐺) = ((𝐹(⟨𝑋, 𝑊⟩(2nd ‘(HomF‘(oppCat‘𝐶)))⟨𝑍, 𝑊⟩)((Id‘(oppCat‘𝐶))‘𝑊))‘𝐺))
32 eqid 2760 . . 3 (Hom ‘(oppCat‘𝐶)) = (Hom ‘(oppCat‘𝐶))
33 eqid 2760 . . 3 (comp‘(oppCat‘𝐶)) = (comp‘(oppCat‘𝐶))
3422, 3oppchom 16596 . . . 4 (𝑍(Hom ‘(oppCat‘𝐶))𝑋) = (𝑋𝐻𝑍)
3526, 34syl6eleqr 2850 . . 3 (𝜑𝐹 ∈ (𝑍(Hom ‘(oppCat‘𝐶))𝑋))
3621, 32, 23, 13, 28catidcl 16564 . . 3 (𝜑 → ((Id‘(oppCat‘𝐶))‘𝑊) ∈ (𝑊(Hom ‘(oppCat‘𝐶))𝑊))
37 yon2.g . . . 4 (𝜑𝐺 ∈ (𝑊𝐻𝑋))
3822, 3oppchom 16596 . . . 4 (𝑋(Hom ‘(oppCat‘𝐶))𝑊) = (𝑊𝐻𝑋)
3937, 38syl6eleqr 2850 . . 3 (𝜑𝐺 ∈ (𝑋(Hom ‘(oppCat‘𝐶))𝑊))
404, 13, 21, 32, 24, 28, 25, 28, 33, 35, 36, 39hof2 17118 . 2 (𝜑 → ((𝐹(⟨𝑋, 𝑊⟩(2nd ‘(HomF‘(oppCat‘𝐶)))⟨𝑍, 𝑊⟩)((Id‘(oppCat‘𝐶))‘𝑊))‘𝐺) = ((((Id‘(oppCat‘𝐶))‘𝑊)(⟨𝑋, 𝑊⟩(comp‘(oppCat‘𝐶))𝑊)𝐺)(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹))
4121, 32, 23, 13, 24, 33, 28, 39catlid 16565 . . . 4 (𝜑 → (((Id‘(oppCat‘𝐶))‘𝑊)(⟨𝑋, 𝑊⟩(comp‘(oppCat‘𝐶))𝑊)𝐺) = 𝐺)
4241oveq1d 6829 . . 3 (𝜑 → ((((Id‘(oppCat‘𝐶))‘𝑊)(⟨𝑋, 𝑊⟩(comp‘(oppCat‘𝐶))𝑊)𝐺)(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹) = (𝐺(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹))
43 yon12.x . . . 4 · = (comp‘𝐶)
4411, 43, 3, 25, 24, 28oppcco 16598 . . 3 (𝜑 → (𝐺(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹) = (𝐹(⟨𝑊, 𝑋· 𝑍)𝐺))
4542, 44eqtrd 2794 . 2 (𝜑 → ((((Id‘(oppCat‘𝐶))‘𝑊)(⟨𝑋, 𝑊⟩(comp‘(oppCat‘𝐶))𝑊)𝐺)(⟨𝑍, 𝑋⟩(comp‘(oppCat‘𝐶))𝑊)𝐹) = (𝐹(⟨𝑊, 𝑋· 𝑍)𝐺))
4631, 40, 453eqtrd 2798 1 (𝜑 → ((((𝑋(2nd𝑌)𝑍)‘𝐹)‘𝑊)‘𝐺) = (𝐹(⟨𝑊, 𝑋· 𝑍)𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1632  wcel 2139  Vcvv 3340  wss 3715  cop 4327  ran crn 5267  cfv 6049  (class class class)co 6814  2nd c2nd 7333  Basecbs 16079  Hom chom 16174  compcco 16175  Catccat 16546  Idccid 16547  Homf chomf 16548  oppCatcoppc 16592  SetCatcsetc 16946   curryF ccurf 17071  HomFchof 17109  Yoncyon 17110
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1988  ax-6 2054  ax-7 2090  ax-8 2141  ax-9 2148  ax-10 2168  ax-11 2183  ax-12 2196  ax-13 2391  ax-ext 2740  ax-rep 4923  ax-sep 4933  ax-nul 4941  ax-pow 4992  ax-pr 5055  ax-un 7115  ax-cnex 10204  ax-resscn 10205  ax-1cn 10206  ax-icn 10207  ax-addcl 10208  ax-addrcl 10209  ax-mulcl 10210  ax-mulrcl 10211  ax-mulcom 10212  ax-addass 10213  ax-mulass 10214  ax-distr 10215  ax-i2m1 10216  ax-1ne0 10217  ax-1rid 10218  ax-rnegex 10219  ax-rrecex 10220  ax-cnre 10221  ax-pre-lttri 10222  ax-pre-lttrn 10223  ax-pre-ltadd 10224  ax-pre-mulgt0 10225
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-fal 1638  df-ex 1854  df-nf 1859  df-sb 2047  df-eu 2611  df-mo 2612  df-clab 2747  df-cleq 2753  df-clel 2756  df-nfc 2891  df-ne 2933  df-nel 3036  df-ral 3055  df-rex 3056  df-reu 3057  df-rmo 3058  df-rab 3059  df-v 3342  df-sbc 3577  df-csb 3675  df-dif 3718  df-un 3720  df-in 3722  df-ss 3729  df-pss 3731  df-nul 4059  df-if 4231  df-pw 4304  df-sn 4322  df-pr 4324  df-tp 4326  df-op 4328  df-uni 4589  df-int 4628  df-iun 4674  df-br 4805  df-opab 4865  df-mpt 4882  df-tr 4905  df-id 5174  df-eprel 5179  df-po 5187  df-so 5188  df-fr 5225  df-we 5227  df-xp 5272  df-rel 5273  df-cnv 5274  df-co 5275  df-dm 5276  df-rn 5277  df-res 5278  df-ima 5279  df-pred 5841  df-ord 5887  df-on 5888  df-lim 5889  df-suc 5890  df-iota 6012  df-fun 6051  df-fn 6052  df-f 6053  df-f1 6054  df-fo 6055  df-f1o 6056  df-fv 6057  df-riota 6775  df-ov 6817  df-oprab 6818  df-mpt2 6819  df-om 7232  df-1st 7334  df-2nd 7335  df-tpos 7522  df-wrecs 7577  df-recs 7638  df-rdg 7676  df-1o 7730  df-oadd 7734  df-er 7913  df-map 8027  df-ixp 8077  df-en 8124  df-dom 8125  df-sdom 8126  df-fin 8127  df-pnf 10288  df-mnf 10289  df-xr 10290  df-ltxr 10291  df-le 10292  df-sub 10480  df-neg 10481  df-nn 11233  df-2 11291  df-3 11292  df-4 11293  df-5 11294  df-6 11295  df-7 11296  df-8 11297  df-9 11298  df-n0 11505  df-z 11590  df-dec 11706  df-uz 11900  df-fz 12540  df-struct 16081  df-ndx 16082  df-slot 16083  df-base 16085  df-sets 16086  df-hom 16188  df-cco 16189  df-cat 16550  df-cid 16551  df-homf 16552  df-comf 16553  df-oppc 16593  df-func 16739  df-setc 16947  df-xpc 17033  df-curf 17075  df-hof 17111  df-yon 17112
This theorem is referenced by:  yonedalem3b  17140  yonffthlem  17143
  Copyright terms: Public domain W3C validator