| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > yoneda | Structured version Visualization version GIF version | ||
| 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.) |
| 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‘𝑅) |
| Ref | Expression |
|---|---|
| yoneda | ⊢ (𝜑 → 𝑀 ∈ (𝑍𝐼𝐸)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | yoneda.r | . . 3 ⊢ 𝑅 = ((𝑄 ×c 𝑂) FuncCat 𝑇) | |
| 2 | 1 | fucbas 17906 | . 2 ⊢ ((𝑄 ×c 𝑂) Func 𝑇) = (Base‘𝑅) |
| 3 | eqid 2729 | . 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 ‘𝑄) ∪ 𝑈) ⊆ 𝑉) | |
| 18 | 4, 5, 6, 7, 8, 9, 10, 11, 1, 12, 13, 14, 15, 16, 17 | yonedalem1 18214 | . . . . . 6 ⊢ (𝜑 → (𝑍 ∈ ((𝑄 ×c 𝑂) Func 𝑇) ∧ 𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑇))) |
| 19 | 18 | simpld 494 | . . . . 5 ⊢ (𝜑 → 𝑍 ∈ ((𝑄 ×c 𝑂) Func 𝑇)) |
| 20 | funcrcl 17806 | . . . . 5 ⊢ (𝑍 ∈ ((𝑄 ×c 𝑂) Func 𝑇) → ((𝑄 ×c 𝑂) ∈ Cat ∧ 𝑇 ∈ Cat)) | |
| 21 | 19, 20 | syl 17 | . . . 4 ⊢ (𝜑 → ((𝑄 ×c 𝑂) ∈ Cat ∧ 𝑇 ∈ Cat)) |
| 22 | 21 | simpld 494 | . . 3 ⊢ (𝜑 → (𝑄 ×c 𝑂) ∈ Cat) |
| 23 | 21 | simprd 495 | . . 3 ⊢ (𝜑 → 𝑇 ∈ Cat) |
| 24 | 1, 22, 23 | fuccat 17916 | . 2 ⊢ (𝜑 → 𝑅 ∈ Cat) |
| 25 | 18 | simprd 495 | . 2 ⊢ (𝜑 → 𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑇)) |
| 26 | yoneda.i | . 2 ⊢ 𝐼 = (Iso‘𝑅) | |
| 27 | yoneda.m | . . 3 ⊢ 𝑀 = (𝑓 ∈ (𝑂 Func 𝑆), 𝑥 ∈ 𝐵 ↦ (𝑎 ∈ (((1st ‘𝑌)‘𝑥)(𝑂 Nat 𝑆)𝑓) ↦ ((𝑎‘𝑥)‘( 1 ‘𝑥)))) | |
| 28 | eqid 2729 | . . 3 ⊢ (𝑓 ∈ (𝑂 Func 𝑆), 𝑥 ∈ 𝐵 ↦ (𝑢 ∈ ((1st ‘𝑓)‘𝑥) ↦ (𝑦 ∈ 𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd ‘𝑓)𝑦)‘𝑔)‘𝑢))))) = (𝑓 ∈ (𝑂 Func 𝑆), 𝑥 ∈ 𝐵 ↦ (𝑢 ∈ ((1st ‘𝑓)‘𝑥) ↦ (𝑦 ∈ 𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd ‘𝑓)𝑦)‘𝑔)‘𝑢))))) | |
| 29 | 4, 5, 6, 7, 8, 9, 10, 11, 1, 12, 13, 14, 15, 16, 17, 27, 3, 28 | yonedainv 18223 | . 2 ⊢ (𝜑 → 𝑀(𝑍(Inv‘𝑅)𝐸)(𝑓 ∈ (𝑂 Func 𝑆), 𝑥 ∈ 𝐵 ↦ (𝑢 ∈ ((1st ‘𝑓)‘𝑥) ↦ (𝑦 ∈ 𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd ‘𝑓)𝑦)‘𝑔)‘𝑢)))))) |
| 30 | 2, 3, 24, 19, 25, 26, 29 | inviso1 17709 | 1 ⊢ (𝜑 → 𝑀 ∈ (𝑍𝐼𝐸)) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 ∧ wa 395 = wceq 1540 ∈ wcel 2109 ∪ cun 3909 ⊆ wss 3911 〈cop 4591 ↦ cmpt 5183 ran crn 5632 ‘cfv 6499 (class class class)co 7369 ∈ cmpo 7371 1st c1st 7945 2nd c2nd 7946 tpos ctpos 8181 Basecbs 17156 Hom chom 17208 Catccat 17606 Idccid 17607 Homf chomf 17608 oppCatcoppc 17653 Invcinv 17688 Isociso 17689 Func cfunc 17797 ∘func ccofu 17799 Nat cnat 17887 FuncCat cfuc 17888 SetCatcsetc 18018 ×c cxpc 18110 1stF c1stf 18111 2ndF c2ndf 18112 〈,〉F cprf 18113 evalF cevlf 18151 HomFchof 18190 Yoncyon 18191 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1795 ax-4 1809 ax-5 1910 ax-6 1967 ax-7 2008 ax-8 2111 ax-9 2119 ax-10 2142 ax-11 2158 ax-12 2178 ax-ext 2701 ax-rep 5229 ax-sep 5246 ax-nul 5256 ax-pow 5315 ax-pr 5382 ax-un 7691 ax-cnex 11102 ax-resscn 11103 ax-1cn 11104 ax-icn 11105 ax-addcl 11106 ax-addrcl 11107 ax-mulcl 11108 ax-mulrcl 11109 ax-mulcom 11110 ax-addass 11111 ax-mulass 11112 ax-distr 11113 ax-i2m1 11114 ax-1ne0 11115 ax-1rid 11116 ax-rnegex 11117 ax-rrecex 11118 ax-cnre 11119 ax-pre-lttri 11120 ax-pre-lttrn 11121 ax-pre-ltadd 11122 ax-pre-mulgt0 11123 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-3or 1087 df-3an 1088 df-tru 1543 df-fal 1553 df-ex 1780 df-nf 1784 df-sb 2066 df-mo 2533 df-eu 2562 df-clab 2708 df-cleq 2721 df-clel 2803 df-nfc 2878 df-ne 2926 df-nel 3030 df-ral 3045 df-rex 3054 df-rmo 3351 df-reu 3352 df-rab 3403 df-v 3446 df-sbc 3751 df-csb 3860 df-dif 3914 df-un 3916 df-in 3918 df-ss 3928 df-pss 3931 df-nul 4293 df-if 4485 df-pw 4561 df-sn 4586 df-pr 4588 df-tp 4590 df-op 4592 df-uni 4868 df-iun 4953 df-br 5103 df-opab 5165 df-mpt 5184 df-tr 5210 df-id 5526 df-eprel 5531 df-po 5539 df-so 5540 df-fr 5584 df-we 5586 df-xp 5637 df-rel 5638 df-cnv 5639 df-co 5640 df-dm 5641 df-rn 5642 df-res 5643 df-ima 5644 df-pred 6262 df-ord 6323 df-on 6324 df-lim 6325 df-suc 6326 df-iota 6452 df-fun 6501 df-fn 6502 df-f 6503 df-f1 6504 df-fo 6505 df-f1o 6506 df-fv 6507 df-riota 7326 df-ov 7372 df-oprab 7373 df-mpo 7374 df-om 7823 df-1st 7947 df-2nd 7948 df-tpos 8182 df-frecs 8237 df-wrecs 8268 df-recs 8317 df-rdg 8355 df-1o 8411 df-er 8648 df-map 8778 df-pm 8779 df-ixp 8848 df-en 8896 df-dom 8897 df-sdom 8898 df-fin 8899 df-pnf 11188 df-mnf 11189 df-xr 11190 df-ltxr 11191 df-le 11192 df-sub 11385 df-neg 11386 df-nn 12165 df-2 12227 df-3 12228 df-4 12229 df-5 12230 df-6 12231 df-7 12232 df-8 12233 df-9 12234 df-n0 12421 df-z 12508 df-dec 12628 df-uz 12772 df-fz 13447 df-struct 17094 df-sets 17111 df-slot 17129 df-ndx 17141 df-base 17157 df-ress 17178 df-hom 17221 df-cco 17222 df-cat 17610 df-cid 17611 df-homf 17612 df-comf 17613 df-oppc 17654 df-sect 17690 df-inv 17691 df-iso 17692 df-ssc 17753 df-resc 17754 df-subc 17755 df-func 17801 df-cofu 17803 df-nat 17889 df-fuc 17890 df-setc 18019 df-xpc 18114 df-1stf 18115 df-2ndf 18116 df-prf 18117 df-evlf 18155 df-curf 18156 df-hof 18192 df-yon 18193 |
| This theorem is referenced by: (None) |
| Copyright terms: Public domain | W3C validator |