Yoneda’s lemma as an identification of form and function: the case study of polynomials
What's new 2023-08-25
As someone who had a relatively light graduate education in algebra, the import of Yoneda’s lemma in category theory has always eluded me somewhat; the statement and proof are simple enough, but definitely have the “abstract nonsense” flavor that one often ascribes to this part of mathematics, and I struggled to connect it to the more grounded forms of intuition, such as those based on concrete examples, that I was more comfortable with. There is a popular MathOverflow post devoted to this question, with many answers that were helpful to me, but I still felt vaguely dissatisfied. However, recently when pondering the very concrete concept of a polynomial, I managed to accidentally stumble upon a special case of Yoneda’s lemma in action, which clarified this lemma conceptually for me. In the end it was a very simple observation (and would be extremely pedestrian to anyone who works in an algebraic field of mathematics), but as I found this helpful to a non-algebraist such as myself, and I thought I would share it here in case others similarly find it helpful.
In algebra we see a distinction between a polynomial form (also known as a formal polynomial), and a polynomial function, although this distinction is often elided in more concrete applications. A polynomial form in, say, one variable with integer coefficients, is a formal expression of the form
A polynomial form can be interpreted in any ring
(even non-commutative ones) to create a polynomial function
, defined by the formula
- (i) The linear forms
and
are distinct as polynomial forms, but agree when interpreted in the ring
, since
for all
.
- (ii) Similarly, if
is a prime, then the degree one form
and the degree
form
are distinct as polynomial forms (and in particular have distinct degrees), but agree when interpreted in the ring
, thanks to Fermat’s little theorem.
- (iii) The polynomial form
has no roots when interpreted in the reals
, but has roots when interpreted in the complex numbers
. Similarly, the linear form
has no roots when interpreted in the integers
, but has roots when interpreted in the rationals
.
The above examples show that if one only interprets polynomial forms in a specific ring , then some information about the polynomial could be lost (and some features of the polynomial, such as roots, may be “invisible” to that interpretation). But this turns out not to be the case if one considers interpretations in all rings simultaneously, as we shall now discuss.
If are two different rings, then the polynomial functions
and
arising from interpreting a polynomial form
in these two rings are, strictly speaking, different functions. However, they are often closely related to each other. For instance, if
is a subring of
, then
agrees with the restriction of
to
. More generally, if there is a ring homomorphism
from
to
, then
and
are intertwined by the relation
What was surprising to me (as someone who had not internalized the Yoneda lemma) was that the converse statement was true: if one had a function associated to every ring
that obeyed the intertwining relation
We have thus created an identification of form and function: polynomial forms are in one-to-one correspondence with families of functions
obeying the intertwining relation (4). But this identification can be interpreted as a special case of the Yoneda lemma, as follows. There are two categories in play here: the category
of rings (where the morphisms are ring homomorphisms), and the category
of sets (where the morphisms are arbitrary functions). There is an obvious forgetful functor
between these two categories that takes a ring and removes all of the algebraic structure, leaving behind just the underlying set. A collection
of functions (i.e.,
-morphisms) for each
in
that obeys the intertwining relation (4) is precisely the same thing as a natural transformation from the forgetful functor
to itself. So we have identified formal polynomials in
as a set with natural endomorphisms of the forgetful functor:
What does this have to do with Yoneda’s lemma? Well, remember that every element of a ring
came with an evaluation homomorphism
. Conversely, every homomorphism from
to
will be of the form
for a unique
– indeed,
will just be the image of
under this homomorphism. So the evaluation homomorphism provides a one-to-one correspondence between elements of
, and ring homomorphisms in
. This correspondence is at the level of sets, so this gives the identification