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

Theorem yoneda 18282
Description: The Yoneda Lemma. There is a natural isomorphism between the functors 𝑍 and 𝐸, where 𝑍(𝐹, 𝑋) is the natural transformations from Yon(𝑋) = Hom ( βˆ’ , 𝑋) to 𝐹, and 𝐸(𝐹, 𝑋) = 𝐹(𝑋) is the evaluation functor. Here we need two universes to state the claim: the smaller universe π‘ˆ is used for forming the functor category 𝑄 = 𝐢 op β†’ SetCat(π‘ˆ), which itself does not (necessarily) live in π‘ˆ but instead is an element of the larger universe 𝑉. (If π‘ˆ is a Grothendieck universe, then it will be closed under this "presheaf" operation, and so we can set π‘ˆ = 𝑉 in this case.) (Contributed by Mario Carneiro, 29-Jan-2017.)
Hypotheses
Ref Expression
yoneda.y π‘Œ = (Yonβ€˜πΆ)
yoneda.b 𝐡 = (Baseβ€˜πΆ)
yoneda.1 1 = (Idβ€˜πΆ)
yoneda.o 𝑂 = (oppCatβ€˜πΆ)
yoneda.s 𝑆 = (SetCatβ€˜π‘ˆ)
yoneda.t 𝑇 = (SetCatβ€˜π‘‰)
yoneda.q 𝑄 = (𝑂 FuncCat 𝑆)
yoneda.h 𝐻 = (HomFβ€˜π‘„)
yoneda.r 𝑅 = ((𝑄 Γ—c 𝑂) FuncCat 𝑇)
yoneda.e 𝐸 = (𝑂 evalF 𝑆)
yoneda.z 𝑍 = (𝐻 ∘func ((⟨(1st β€˜π‘Œ), tpos (2nd β€˜π‘Œ)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)))
yoneda.c (πœ‘ β†’ 𝐢 ∈ Cat)
yoneda.w (πœ‘ β†’ 𝑉 ∈ π‘Š)
yoneda.u (πœ‘ β†’ ran (Homf β€˜πΆ) βŠ† π‘ˆ)
yoneda.v (πœ‘ β†’ (ran (Homf β€˜π‘„) βˆͺ π‘ˆ) βŠ† 𝑉)
yoneda.m 𝑀 = (𝑓 ∈ (𝑂 Func 𝑆), π‘₯ ∈ 𝐡 ↦ (π‘Ž ∈ (((1st β€˜π‘Œ)β€˜π‘₯)(𝑂 Nat 𝑆)𝑓) ↦ ((π‘Žβ€˜π‘₯)β€˜( 1 β€˜π‘₯))))
yoneda.i 𝐼 = (Isoβ€˜π‘…)
Assertion
Ref Expression
yoneda (πœ‘ β†’ 𝑀 ∈ (𝑍𝐼𝐸))
Distinct variable groups:   𝑓,π‘Ž,π‘₯, 1   𝐢,π‘Ž,𝑓,π‘₯   𝐸,π‘Ž,𝑓   𝐡,π‘Ž,𝑓,π‘₯   𝑂,π‘Ž,𝑓,π‘₯   𝑆,π‘Ž,𝑓,π‘₯   𝑄,π‘Ž,𝑓,π‘₯   𝑇,𝑓   πœ‘,π‘Ž,𝑓,π‘₯   π‘Œ,π‘Ž,𝑓,π‘₯   𝑍,π‘Ž,𝑓,π‘₯
Allowed substitution hints:   𝑅(π‘₯,𝑓,π‘Ž)   𝑇(π‘₯,π‘Ž)   π‘ˆ(π‘₯,𝑓,π‘Ž)   𝐸(π‘₯)   𝐻(π‘₯,𝑓,π‘Ž)   𝐼(π‘₯,𝑓,π‘Ž)   𝑀(π‘₯,𝑓,π‘Ž)   𝑉(π‘₯,𝑓,π‘Ž)   π‘Š(π‘₯,𝑓,π‘Ž)

Proof of Theorem yoneda
Dummy variables 𝑔 𝑦 𝑒 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 yoneda.r . . 3 𝑅 = ((𝑄 Γ—c 𝑂) FuncCat 𝑇)
21fucbas 17958 . 2 ((𝑄 Γ—c 𝑂) Func 𝑇) = (Baseβ€˜π‘…)
3 eqid 2728 . 2 (Invβ€˜π‘…) = (Invβ€˜π‘…)
4 yoneda.y . . . . . . 7 π‘Œ = (Yonβ€˜πΆ)
5 yoneda.b . . . . . . 7 𝐡 = (Baseβ€˜πΆ)
6 yoneda.1 . . . . . . 7 1 = (Idβ€˜πΆ)
7 yoneda.o . . . . . . 7 𝑂 = (oppCatβ€˜πΆ)
8 yoneda.s . . . . . . 7 𝑆 = (SetCatβ€˜π‘ˆ)
9 yoneda.t . . . . . . 7 𝑇 = (SetCatβ€˜π‘‰)
10 yoneda.q . . . . . . 7 𝑄 = (𝑂 FuncCat 𝑆)
11 yoneda.h . . . . . . 7 𝐻 = (HomFβ€˜π‘„)
12 yoneda.e . . . . . . 7 𝐸 = (𝑂 evalF 𝑆)
13 yoneda.z . . . . . . 7 𝑍 = (𝐻 ∘func ((⟨(1st β€˜π‘Œ), tpos (2nd β€˜π‘Œ)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)))
14 yoneda.c . . . . . . 7 (πœ‘ β†’ 𝐢 ∈ Cat)
15 yoneda.w . . . . . . 7 (πœ‘ β†’ 𝑉 ∈ π‘Š)
16 yoneda.u . . . . . . 7 (πœ‘ β†’ ran (Homf β€˜πΆ) βŠ† π‘ˆ)
17 yoneda.v . . . . . . 7 (πœ‘ β†’ (ran (Homf β€˜π‘„) βˆͺ π‘ˆ) βŠ† 𝑉)
184, 5, 6, 7, 8, 9, 10, 11, 1, 12, 13, 14, 15, 16, 17yonedalem1 18271 . . . . . 6 (πœ‘ β†’ (𝑍 ∈ ((𝑄 Γ—c 𝑂) Func 𝑇) ∧ 𝐸 ∈ ((𝑄 Γ—c 𝑂) Func 𝑇)))
1918simpld 493 . . . . 5 (πœ‘ β†’ 𝑍 ∈ ((𝑄 Γ—c 𝑂) Func 𝑇))
20 funcrcl 17856 . . . . 5 (𝑍 ∈ ((𝑄 Γ—c 𝑂) Func 𝑇) β†’ ((𝑄 Γ—c 𝑂) ∈ Cat ∧ 𝑇 ∈ Cat))
2119, 20syl 17 . . . 4 (πœ‘ β†’ ((𝑄 Γ—c 𝑂) ∈ Cat ∧ 𝑇 ∈ Cat))
2221simpld 493 . . 3 (πœ‘ β†’ (𝑄 Γ—c 𝑂) ∈ Cat)
2321simprd 494 . . 3 (πœ‘ β†’ 𝑇 ∈ Cat)
241, 22, 23fuccat 17969 . 2 (πœ‘ β†’ 𝑅 ∈ Cat)
2518simprd 494 . 2 (πœ‘ β†’ 𝐸 ∈ ((𝑄 Γ—c 𝑂) Func 𝑇))
26 yoneda.i . 2 𝐼 = (Isoβ€˜π‘…)
27 yoneda.m . . 3 𝑀 = (𝑓 ∈ (𝑂 Func 𝑆), π‘₯ ∈ 𝐡 ↦ (π‘Ž ∈ (((1st β€˜π‘Œ)β€˜π‘₯)(𝑂 Nat 𝑆)𝑓) ↦ ((π‘Žβ€˜π‘₯)β€˜( 1 β€˜π‘₯))))
28 eqid 2728 . . 3 (𝑓 ∈ (𝑂 Func 𝑆), π‘₯ ∈ 𝐡 ↦ (𝑒 ∈ ((1st β€˜π‘“)β€˜π‘₯) ↦ (𝑦 ∈ 𝐡 ↦ (𝑔 ∈ (𝑦(Hom β€˜πΆ)π‘₯) ↦ (((π‘₯(2nd β€˜π‘“)𝑦)β€˜π‘”)β€˜π‘’))))) = (𝑓 ∈ (𝑂 Func 𝑆), π‘₯ ∈ 𝐡 ↦ (𝑒 ∈ ((1st β€˜π‘“)β€˜π‘₯) ↦ (𝑦 ∈ 𝐡 ↦ (𝑔 ∈ (𝑦(Hom β€˜πΆ)π‘₯) ↦ (((π‘₯(2nd β€˜π‘“)𝑦)β€˜π‘”)β€˜π‘’)))))
294, 5, 6, 7, 8, 9, 10, 11, 1, 12, 13, 14, 15, 16, 17, 27, 3, 28yonedainv 18280 . 2 (πœ‘ β†’ 𝑀(𝑍(Invβ€˜π‘…)𝐸)(𝑓 ∈ (𝑂 Func 𝑆), π‘₯ ∈ 𝐡 ↦ (𝑒 ∈ ((1st β€˜π‘“)β€˜π‘₯) ↦ (𝑦 ∈ 𝐡 ↦ (𝑔 ∈ (𝑦(Hom β€˜πΆ)π‘₯) ↦ (((π‘₯(2nd β€˜π‘“)𝑦)β€˜π‘”)β€˜π‘’))))))
302, 3, 24, 19, 25, 26, 29inviso1 17756 1 (πœ‘ β†’ 𝑀 ∈ (𝑍𝐼𝐸))
Colors of variables: wff setvar class
Syntax hints:   β†’ wi 4   ∧ wa 394   = wceq 1533   ∈ wcel 2098   βˆͺ cun 3947   βŠ† wss 3949  βŸ¨cop 4638   ↦ cmpt 5235  ran crn 5683  β€˜cfv 6553  (class class class)co 7426   ∈ cmpo 7428  1st c1st 7997  2nd c2nd 7998  tpos ctpos 8237  Basecbs 17187  Hom chom 17251  Catccat 17651  Idccid 17652  Homf chomf 17653  oppCatcoppc 17698  Invcinv 17735  Isociso 17736   Func cfunc 17847   ∘func ccofu 17849   Nat cnat 17938   FuncCat cfuc 17939  SetCatcsetc 18071   Γ—c cxpc 18166   1stF c1stf 18167   2ndF c2ndf 18168   ⟨,⟩F cprf 18169   evalF cevlf 18208  HomFchof 18247  Yoncyon 18248
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1905  ax-6 1963  ax-7 2003  ax-8 2100  ax-9 2108  ax-10 2129  ax-11 2146  ax-12 2166  ax-ext 2699  ax-rep 5289  ax-sep 5303  ax-nul 5310  ax-pow 5369  ax-pr 5433  ax-un 7746  ax-cnex 11202  ax-resscn 11203  ax-1cn 11204  ax-icn 11205  ax-addcl 11206  ax-addrcl 11207  ax-mulcl 11208  ax-mulrcl 11209  ax-mulcom 11210  ax-addass 11211  ax-mulass 11212  ax-distr 11213  ax-i2m1 11214  ax-1ne0 11215  ax-1rid 11216  ax-rnegex 11217  ax-rrecex 11218  ax-cnre 11219  ax-pre-lttri 11220  ax-pre-lttrn 11221  ax-pre-ltadd 11222  ax-pre-mulgt0 11223
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 846  df-3or 1085  df-3an 1086  df-tru 1536  df-fal 1546  df-ex 1774  df-nf 1778  df-sb 2060  df-mo 2529  df-eu 2558  df-clab 2706  df-cleq 2720  df-clel 2806  df-nfc 2881  df-ne 2938  df-nel 3044  df-ral 3059  df-rex 3068  df-rmo 3374  df-reu 3375  df-rab 3431  df-v 3475  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-pss 3968  df-nul 4327  df-if 4533  df-pw 4608  df-sn 4633  df-pr 4635  df-tp 4637  df-op 4639  df-uni 4913  df-iun 5002  df-br 5153  df-opab 5215  df-mpt 5236  df-tr 5270  df-id 5580  df-eprel 5586  df-po 5594  df-so 5595  df-fr 5637  df-we 5639  df-xp 5688  df-rel 5689  df-cnv 5690  df-co 5691  df-dm 5692  df-rn 5693  df-res 5694  df-ima 5695  df-pred 6310  df-ord 6377  df-on 6378  df-lim 6379  df-suc 6380  df-iota 6505  df-fun 6555  df-fn 6556  df-f 6557  df-f1 6558  df-fo 6559  df-f1o 6560  df-fv 6561  df-riota 7382  df-ov 7429  df-oprab 7430  df-mpo 7431  df-om 7877  df-1st 7999  df-2nd 8000  df-tpos 8238  df-frecs 8293  df-wrecs 8324  df-recs 8398  df-rdg 8437  df-1o 8493  df-er 8731  df-map 8853  df-pm 8854  df-ixp 8923  df-en 8971  df-dom 8972  df-sdom 8973  df-fin 8974  df-pnf 11288  df-mnf 11289  df-xr 11290  df-ltxr 11291  df-le 11292  df-sub 11484  df-neg 11485  df-nn 12251  df-2 12313  df-3 12314  df-4 12315  df-5 12316  df-6 12317  df-7 12318  df-8 12319  df-9 12320  df-n0 12511  df-z 12597  df-dec 12716  df-uz 12861  df-fz 13525  df-struct 17123  df-sets 17140  df-slot 17158  df-ndx 17170  df-base 17188  df-ress 17217  df-hom 17264  df-cco 17265  df-cat 17655  df-cid 17656  df-homf 17657  df-comf 17658  df-oppc 17699  df-sect 17737  df-inv 17738  df-iso 17739  df-ssc 17800  df-resc 17801  df-subc 17802  df-func 17851  df-cofu 17853  df-nat 17940  df-fuc 17941  df-setc 18072  df-xpc 18170  df-1stf 18171  df-2ndf 18172  df-prf 18173  df-evlf 18212  df-curf 18213  df-hof 18249  df-yon 18250
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator