ModernMath

LogicArtificialis

65 Representable functors and the Yoneda lemmaTag 600U

In the tree of ModernMath: ModernMath › 18-XX Category theory; homological algebra › 18Axx General theory of categories and functors › 18A40 Adjoint functors (universal constructions, reflective subcategories, Kan extensions, etc.), the subject of its primary MSC2020 code; its secondary code 18A25 Functor categories, comma categories is a cross-reference. Show it in the tree and the cross-reference graph.

An object of a category is determined, up to a unique isomorphism, by the morphisms into it, or by the morphisms out of it. The Yoneda lemma makes this precise: the natural transformations out of a represented functor \(\mathcal{C}(c,-)\) are the elements of their target at \(c\). Universal properties, such as those of free objects, tensor products and the limits of Section 66, are statements that certain functors are representable.

Definition 65.1 Representable functor Tag 600V

Let \(\mathcal{C}\) be locally small. A functor \(F\colon \mathcal{C}\to \mathbf{Set}\) (respectively, \(F\colon \mathcal{C}^{\mathrm{op}}\to \mathbf{Set}\)) is representable if it is naturally isomorphic to \(\mathcal{C}(c,-)\) (respectively, \(\mathcal{C}(-,c)\)) for some object \(c\); a representation of \(F\) is such an object \(c\) together with a specified natural isomorphism [ 229 , Definition 2.1.4 ] . A presheaf on a category \(\mathcal{C}\) is a functor \(\mathcal{C}^{\mathrm{op}}\to \mathbf{Set}\) [ 229 , p. 222 ] .

The identity functor of \(\mathbf{Set}\) is represented by a one-point set; the forgetful functor from groups to sets is represented by \(\mathbb {Z}\), since a homomorphism \(\mathbb {Z}\to G\) is determined by the image of \(1\); and the forgetful functor from unital rings to sets is represented by the polynomial ring \(\mathbb {Z}[x]\) [ 229 , Example 2.1.5 ] . A locally small category has a terminal object if and only if the constant functor \(\mathcal{C}^{\mathrm{op}}\to \mathbf{Set}\) with value a one-point set is representable [ 229 , p. 51 ] .

Theorem 65.3 Yoneda lemma CertifiedTag 600X

Let \(\mathcal{C}\) be a locally small category, \(F\colon \mathcal{C}\to \mathbf{Set}\) a functor and \(c\) an object of \(\mathcal{C}\). The map

\[ \mathrm{Nat}(\mathcal{C}(c,-),F)\to Fc,\qquad \alpha \mapsto \alpha _c(1_c), \]

is a bijection, natural in \(c\) and in \(F\); its inverse sends \(x\in Fc\) to the natural transformation whose component at \(d\) is \(f\mapsto Ff(x)\) [ 229 , Theorem 2.2.4 ] . Dually, natural transformations \(\mathcal{C}(-,c)\Rightarrow F\) to a functor \(F\colon \mathcal{C}^{\mathrm{op}} \to \mathbf{Set}\) correspond to the elements of \(Fc\) [ 229 , Exercise 2.2.i ] . Riehl notes that the lemma first appeared in print in a paper of Grothendieck [ 229 , p. 57, footnote 7 ] .

Proof ▼

Write \(\Phi (\alpha )=\alpha _c(1_c)\) and, for \(x\in Fc\), define \(\Psi (x)_d\colon \mathcal{C}(c,d)\to Fd\) by \(\Psi (x)_d(f)=Ff(x)\). For \(g\colon d\to e\) and \(f\in \mathcal{C}(c,d)\) one has \(\Psi (x)_e(gf)=F(gf)(x)= Fg(Ff(x))\), so \(\Psi (x)\) is natural, and \(\Phi \Psi (x)=F(1_c)(x)=x\). Conversely, if \(\alpha \) is natural, then for \(f\colon c\to d\) naturality applied to \(1_c\in \mathcal{C}(c,c)\) gives \(\alpha _d(f)=Ff(\alpha _c(1_c))\), that is, \(\Psi \Phi (\alpha )=\alpha \) [ 229 , proof of Theorem 2.2.4 ] . The naturality of the bijection in \(c\) and in \(F\) is checked in the same way.

Corollary 65.4 Yoneda embedding PublishedTag 600Y

For a locally small category \(\mathcal{C}\), the functors \(y\colon \mathcal{C}\to \mathbf{Set}^{\mathcal{C}^{\mathrm{op}}}\), \(c\mapsto \mathcal{C}(-,c)\), and \(\mathcal{C}^{\mathrm{op}}\to \mathbf{Set}^{\mathcal{C}}\), \(c\mapsto \mathcal{C}(c,-)\), are fully faithful embeddings: every natural transformation \(\mathcal{C}(-,c)\Rightarrow \mathcal{C}(-,d)\) is composition with a unique morphism \(c\to d\) [ 229 , Corollary 2.2.8 ] .

Proof ▼

By Theorem 65.3, applied to the functor \(F=\mathcal{C}(-,d)\), the natural transformations \(\mathcal{C}(-,c)\Rightarrow \mathcal{C}(-,d)\) correspond to elements of \(\mathcal{C}(c,d)\), and the transformation corresponding to \(f\colon c\to d\) is composition with \(f\) [ 229 , proof of Corollary 2.2.8 ] .

Corollary 65.5 PublishedTag 600Z

If two objects \(x\) and \(y\) of a locally small category represent the same functor, then they are isomorphic, and there is a unique isomorphism between them compatible with the two representations [ 229 , Proposition 2.3.1 and p. 62 ] .

Proof ▼

The composite of the two representations is a natural isomorphism \(\mathcal{C}(-,x)\Rightarrow \mathcal{C}(-,y)\) (or between the covariant represented functors). By Corollary 65.4 it is composition with a unique morphism \(x\to y\), which is an isomorphism because a fully faithful functor reflects isomorphisms (Definition 62.5).

Corollary 65.6 PublishedTag 6010

Any two terminal objects of a category are isomorphic by a unique isomorphism, and so are any two initial objects [ 229 , Corollary 2.3.2 ] .

Definition 65.7 Universal element Tag 6011

A universal property of an object \(c\) is a representable functor \(F\) together with a universal element \(x\in Fc\) that defines, through the Yoneda lemma, a natural isomorphism \(\mathcal{C}(c,-)\cong F\) or \(\mathcal{C}(-,c)\cong F\) [ 229 , Definition 2.3.3 ] . For instance, \(x\in \mathbb {Z}[x]\) is the universal element of the forgetful functor from unital rings to sets, and a ring homomorphism \(\mathbb {Z}[x]\to R\) corresponds to its value at \(x\) [ 229 , Example 2.3.4 ] . The category of elements of a functor \(F\colon \mathcal{C}\to \mathbf{Set}\) has as objects the pairs \((c,x)\) with \(x\in Fc\) and as morphisms \((c,x)\to (c',x')\) the morphisms \(f\colon c\to c'\) with \(Ff(x)=x'\); the functor \(F\) is representable if and only if its category of elements has an initial object, and dually a contravariant functor is representable if and only if its category of elements has a terminal object [ 229 , Definition 2.4.1 and Proposition 2.4.8 ] .

Corollary 65.8 Cayley’s theorem PublishedTag 6012

Every group \(G\) is isomorphic to a subgroup of a group of permutations: the Yoneda embedding of the one-object category \(BG\) identifies \(G\) with the group of \(G\)-equivariant automorphisms of the right \(G\)-set \(G\), which act by left multiplication [ 229 , Corollary 2.2.10 ] .