Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: questions

Topic: Understanding Yoneda lemma


view this post on Zulip Peiyuan Zhu (Nov 08 2022 at 17:43):

How to understand Yoneda Lemma as object are defined by its relations to other objects? For instance, in this statement of the lemma in this blog https://www.math3ma.com/blog/the-yoneda-lemma, where is, mathematically, an object? Is it object XX? But the theorem is about natural transformations and functor of XX, not about object XX itself no? First of all, why natural transformation matters? I can understand functors as analogies but I don't get intuitively what're natural transformations? If the functor of XX a set, then it doesn't say anything about the set itself no? So what does it really say about object XX? Here we're only talking about sets without mentioning their elements, and is this a key point of such construction? image.png

view this post on Zulip Peiyuan Zhu (Nov 08 2022 at 17:48):

Also, how to read this notation image.png

view this post on Zulip Ralph Sarkis (Nov 08 2022 at 18:31):

The notation SetCop\mathsf{Set}^{\mathsf{C}^{\mathrm{op}}} denotes the category of functors from Cop\mathsf{C}^{\mathrm{op}} to Set\mathsf{Set}, also called the category of presheaves on C\mathsf{C}. Its objects are functors F:CopSetF: \mathsf{C}^{\mathrm{op}} \to \mathsf{Set} and the morphisms are natural transformations between these functors (the composition is componentwise, i.e., (ηϕ)X=ηXϕX(\eta \circ \phi)_X = \eta_X \circ \phi_X, it is called the vertical composition of natural transformation). This is one way to understand natural transformations: they are morphisms of functors (where functors are morphisms of categories).

view this post on Zulip Ralph Sarkis (Nov 08 2022 at 18:34):

An important consequence of the Yoneda lemma is that ABA \cong B if and only if Hom(A,)Hom(B,)\mathrm{Hom}(A,-) \cong \mathrm{Hom}(B,-) if and only if Hom(,A)Hom(,B)\mathrm{Hom}(-,A) \cong \mathrm{Hom}(-,B). Does this statement make "objects are defined by their relations to other objects" more evident?

view this post on Zulip Peiyuan Zhu (Nov 08 2022 at 18:51):

I see, so it's commenting from the perspective of equivalence relations (or isomorphism), and the first about outgoing arrows and the second about incoming arrows. But what does "isomorphism" mean here? There exists a bijection? How to prove bijection between categorical objects? I know in set theory you build these bijections, but here I suppose you don't want to refer to the elements and say "for all..."? So the footnote says it's a existence result proved by faithfulness of the functor, which is proved by Yoneda lemma itself.

view this post on Zulip Ralph Sarkis (Nov 08 2022 at 19:29):

We say that two objects AA and BB are isomorphic in C\mathsf{C}, denoted by ABA\cong B, if there is a morphism f:ABf: A \to B in C\mathsf{C} with a two-sided inverse f1:BAf^{-1}:B \to A (it satisfies ff1=idBf \circ f^{-1} = \mathrm{id}_B and f1f=idAf^{-1}\circ f = \mathrm{id}_A), we call such an ff an isomorphism. You can check that isomorphisms in the category of sets are precisely bijections.

In category theory, we do basically everything up to isomorphism, meaning if you are doing something with an object AA, you can replace it with an isomorphic object BB and it will not change the outcome.

The consequence of the Yoneda lemma we are discussing says that AA and BB are the same thing (up to isomorphism) if and only if their viewpoint on all other objects is the same (up to isomorphism).

view this post on Zulip Peiyuan Zhu (Nov 08 2022 at 19:41):

So it's interesting that we're talking about something that like sets but without actually enumerating the elements. That's fascinating.

view this post on Zulip Peiyuan Zhu (Nov 08 2022 at 20:01):

Ralph Sarkis said:

An important consequence of the Yoneda lemma is that ABA \cong B if and only if Hom(A,)Hom(B,)\mathrm{Hom}(A,-) \cong \mathrm{Hom}(B,-) if and only if Hom(,A)Hom(,B)\mathrm{Hom}(-,A) \cong \mathrm{Hom}(-,B). Does this statement make "objects are defined by their relations to other objects" more evident?

Why does the category of sets doesn't appear at all here? I feel a little bit strange. Because that's how we began with. It doesn't matter at all in the result? If so, what's the point of having it?

view this post on Zulip Ralph Sarkis (Nov 08 2022 at 20:08):

The hom functors are valued in Set\mathsf{Set} because for every objects AA and BB, Hom(A,B)\mathrm{Hom}(A,B) is a set. There are so-called enriched versions of the Yoneda lemma that talk about categories where Hom(A,B)\mathrm{Hom}(A,B) is something else than a set, but I don't know any gentle introduction to enriched categories to recommend you. You will need to get really comfortable with basic category theory before moving on.

view this post on Zulip Matteo Capucci (he/him) (Nov 09 2022 at 09:45):

Peiyuan Zhu said:

So it's interesting that we're talking about something that like sets but without actually enumerating the elements. That's fascinating.

You've been succesfully Yoneda-pilled :D