41.01.02 · category-theory / categories-functors-natural-transformations

Natural Transformations, Functor Categories, and Equivalence of Categories

shipped3 tiersLean: none

Anchor (Master): Mac Lane 1998 *Categories for the Working Mathematician* 2e (Springer GTM 5) Ch. I-II, IV in full (the interchange law, $[\mathcal{C},\mathcal{D}]$, comma categories, equivalence and skeleton); Eilenberg-Mac Lane 1945 *General theory of natural equivalences*; Kelly 1982 *Basic Concepts of Enriched Category Theory*; Borceux 1994 *Handbook of Categorical Algebra 1* (Cambridge) Ch. 1, 3

Intuition Beginner

A functor translates one category into another: it carries objects to objects and arrows to arrows. Once you have two such translations running side by side, a new question appears. Suppose two functors both send a category into the same target. Is there a way to slide from the output of the first translation to the output of the second, object by object, that respects all the arrows? That coordinated sliding is a natural transformation. It is a single rule that, at every object at once, nudges the first functor's answer over to the second functor's answer.

The word that matters is "coordinated". You are not allowed to make a separate, unrelated choice at each object. The choices must fit together so that following an arrow and then sliding gives the same result as sliding and then following the arrow. When that compatibility holds for every arrow, the family of slides is called natural. The slogan from the founders of the subject was that a construction is natural when it does not depend on arbitrary choices — when it works the same way everywhere.

Here is the everyday picture. A finite list can be reversed. Reversing a list of numbers, then adding one to each, gives the same outcome as adding one to each and then reversing. The "add one" step is an arrow; "reverse" is the family of slides. Because the order does not matter, reversal is natural. That order-does-not-matter property, drawn as a square that closes up, is the whole idea.

Visual Beginner

Picture two parallel filmstrips. The top strip is what functor produces; the bottom strip is what functor produces. For each object you draw a vertical connector — an arrow pointing from the top frame down to the bottom frame. That vertical connector is one component of the natural transformation.

Now follow any horizontal arrow on the top strip from one frame to the next. There is a matching horizontal arrow on the bottom strip. Going right-then-down must equal going down-then-right. Every little rectangle you can form this way closes up: the two paths around it agree.

feature a functor a natural transformation between two functors
connects one category to another one functor to another (same source and target)
made of a target object and arrow for each input one vertical arrow (component) per object
must respect composition and identities every naturality square must close up
reversible case an isomorphism of categories a natural isomorphism (every component reversible)

The picture says the vertical arrows are not independent decorations. They are tied together by the requirement that every rectangle commutes. That single requirement is what earns the family the name natural.

Worked example Beginner

Work with finite-dimensional real vector spaces and linear maps. To each space attach its double dual , the space of functions on functions on . There is a standard rule that sends a vector in to the gadget "feed me a function and I hand back its value at ". Call this rule , a linear map from to .

Step 1. Fix a concrete space, . A vector is a pair, say . Then is the operation that takes any linear function on and returns the number .

Step 2. Take a linear map to a second space, , say the map that swaps coordinates, . There are two routes from to the double dual of the target. Route A: first apply , then push forward by . Route B: first apply to get , then apply .

Step 3. Check the two routes agree on a sample function . Route B gives evaluated at , which is . Route A pushes forward by ; pushing forward feeds through first, giving . The two answers match.

What this tells us: the map into the double dual is the same whether you transform first or embed first. No basis was chosen anywhere. That basis-free agreement, holding for every space and every map at once, is exactly what makes a natural transformation — the original example that the inventors of the subject built the definition to capture.

Check your understanding Beginner

Formal definition Intermediate+

Let be functors. A natural transformation assigns to each object of a morphism in , its component at , such that for every morphism in the naturality square

commutes, that is [Mac Lane 1998]. A natural transformation all of whose components are isomorphisms is a natural isomorphism, written ; the componentwise inverses then satisfy naturality and give an inverse transformation. Notation introduced here ( for natural transformations, for composition, for a component) is recorded in _meta/NOTATION.md.

The double-dual embedding is a natural transformation on finite-dimensional vector spaces, and a natural isomorphism there; on all vector spaces it remains natural but ceases to be an isomorphism. The determinant is a natural transformation between functors from commutative rings to groups, since commutes with ring homomorphisms applied entrywise. Abelianization gives the unit of the free-abelian-quotient construction, natural in . The Hurewicz map is natural in the space.

Definition (vertical composition). Given and between functors , their vertical composite has components . The identity natural transformation has components .

Definition (horizontal composition and whiskering). Given for and for , the horizontal composite has component at given by either equal path around the square below, . When one of the two is an identity transformation the operation is whiskering: has components , and has components .

Definition (functor category). For categories (small) and , the functor category (also or ) has functors as objects and natural transformations as morphisms, composed vertically; the identity on is . An isomorphism in is precisely a natural isomorphism. A presheaf category is the special case .

Definition (equivalence of categories). A functor is an equivalence if there is a functor (a quasi-inverse) together with natural isomorphisms and . Equivalence is weaker than isomorphism of categories, which would demand and on the nose; equivalence allows them only up to natural isomorphism, so it ignores the distinction between isomorphic objects.

Definition (comma category). Given functors and , the comma category has objects the triples with in , in , and in ; a morphism is a pair with . Taking recovers the slice over an object ; taking recovers the coslice ; taking with both functors the identity recovers the arrow category .

Definition (category of elements). For a presheaf , the category of elements (the Grothendieck construction) has objects the pairs with in and ; a morphism is a morphism in with . The forgetful functor exhibits a discrete fibration over .

Counterexamples to common slips Intermediate+

  • A family of isomorphisms need not be natural. Every finite-dimensional vector space is isomorphic to its single dual , but no choice of isomorphisms is natural in : any such family forces a choice of inner product or basis, and the naturality square fails for a generic linear map. Naturality is a genuine constraint, not a free consequence of pointwise isomorphism.

  • Equivalence is not isomorphism of categories. The category of finite-dimensional vector spaces is equivalent to its skeleton with one object per dimension, but it is not isomorphic to it: the original has a proper class of objects while the skeleton has countably many, so no bijection on objects exists. Equivalence permits collapsing isomorphic objects; isomorphism forbids it.

  • The comma category depends on the functors, not just the categories. Writing without naming and is meaningless: changing either functor changes which triples exist. The slice and coslice are the special cases where one functor lands on a single chosen object.

Key theorem with proof Intermediate+

The signature result is the characterisation of equivalences without reference to an explicit quasi-inverse.

Theorem (characterisation of equivalences). A functor is an equivalence of categories if and only if is full, faithful, and essentially surjective [Mac Lane 1998]. The construction of a quasi-inverse from the second condition uses the axiom of choice.

Proof. () Suppose is an equivalence with quasi-inverse and natural isomorphisms , . Essentially surjective: for any object of , is an isomorphism, so is isomorphic to . Faithful: if for then ; the naturality of gives . The same argument with shows is faithful. Full: given , set . Naturality of at reads , and since is invertible, . As is faithful, , so is full.

() Suppose is full, faithful, and essentially surjective. For each object of choose an object of and an isomorphism ; this is the one appeal to choice. Extend to morphisms: for the composite is, by fullness and faithfulness of , equal to for a unique ; set . Uniqueness forces and , so is a functor, and is natural by construction with invertible components, hence a natural isomorphism. For : each is an isomorphism between values of , so by fullness and faithfulness equals for a unique isomorphism . Naturality of follows from naturality of together with faithfulness of . Thus is a quasi-inverse and is an equivalence.

Bridge. This theorem builds toward every structural comparison made later by exhibiting an equivalence, and it appears again in 41.04.02, where the Yoneda embedding is shown full and faithful and the question of essential surjectivity becomes the representability problem. The foundational reason the trichotomy suffices is that fullness and faithfulness let an isomorphism between images be pulled back to a unique isomorphism upstream, so the quasi-inverse is forced on morphisms once chosen on objects; the central insight is that the only genuinely free datum is the choice in each isomorphism class, which is exactly where the axiom of choice enters. This is exactly the mechanism by which a category and its skeleton are equivalent, and putting these together shows equivalence is the correct notion of sameness — coarser than isomorphism of categories, fine enough to preserve every property stated in the categorical language, and the bridge from the duality of 41.01.01 to the universal constructions that follow, since limits, colimits, and adjoints are all defined only up to the natural isomorphism this theorem trades in.

Exercises Intermediate+

Advanced results Master

Theorem (interchange law). For categories , functors and natural transformations , in and , in , the two compositions satisfy $$ (\beta'\cdot\beta)(\alpha'\cdot\alpha) = (\beta'\alpha')\cdot(\beta*\alpha). $$ Both sides are natural transformations , and the identity says that horizontal and vertical composition commute. The proof is the naturality square of at the morphism , read componentwise: each component of either side equals after using functoriality of and naturality of to slide the components past one another. The interchange law is exactly the coherence that makes a strict -category: objects are small categories, -morphisms are functors, -morphisms are natural transformations, with the two composites of -cells governed by this single equation.

Theorem (functor categories inherit structure). If has all limits of a given shape, so does , computed pointwise: , with the universal property checked component by component. In particular presheaf categories are complete and cocomplete, since is. Natural transformations between such limits are determined by their components, so the evaluation functors jointly reflect and preserve the pointwise structure.

Theorem (skeleton and the role of choice). Every category has a skeleton : a full subcategory containing exactly one object from each isomorphism class, and the inclusion is an equivalence. Constructing the skeleton selects a representative per class, an appeal to the axiom of choice; conversely, the statement "every fully faithful essentially surjective functor is an equivalence" is equivalent over to a choice principle. Two categories are equivalent if and only if their skeletons are isomorphic, so equivalence classes of categories are isomorphism classes of skeletons.

Theorem (category of elements as a comma category; the Grothendieck construction). For a presheaf , the category of elements satisfies , the comma category of the Yoneda embedding over the object . The forgetful functor is a discrete fibration, and is recovered as the presheaf of fibres. The general Grothendieck construction upgrades a functor into a fibration over , the indexed-versus-fibred-category equivalence that organises descent and stack theory.

Synthesis. Putting these together, natural transformations are the -cells that turn from a category into a -category, and the interchange law is the single coherence that makes the two ways of composing them agree. The foundational reason the functor category behaves so well is that everything in it is checked pointwise: limits, isomorphisms, and naturality all reduce to the target object by object, which is exactly why presheaf categories inherit completeness for free and why the Yoneda machinery of 41.04.02 lives there. This generalises the duality of 41.01.01: where duality came from the involution , equivalence comes from allowing identities only up to natural isomorphism, and the central insight is that the correct notion of sameness for categories is the one that ignores the difference between isomorphic objects — the skeleton makes this precise and exposes where the axiom of choice is spent. The bridge is that equivalence, comma categories, and the category of elements are all assembled from the same primitive, the natural transformation: limits and colimits in 41.02.01 are defined up to the natural isomorphisms catalogued here, adjunctions in 41.03.01 are pairs of natural transformations (unit and counit) subject to the triangle identities, and the Yoneda embedding in 41.04.02 is full and faithful precisely because natural transformations between representables are computed by this same pointwise discipline.

Full proof set Master

Proposition 1 (vertical composition is associative and unital; is a category). Vertical composition of natural transformations is associative, has the identity transformations as units, and produces a category .

Proof. For , , , the component of at is and of is ; these agree by associativity in . The composite is natural: pasting the naturality squares of and along their shared edge gives the square for . The identity with components satisfies componentwise. Hence functors and natural transformations form a category.

Proposition 2 (whiskering associates with composition). For functors , a transformation , and functors , , one has as transformations .

Proof. The component of at an object of is . Applying gives component for . The component of at an object of is , and post-whiskering by evaluates at , giving . The components coincide, and naturality of each side was established by Exercise 3 and its mirror.

Proposition 3 (the interchange law). With notation as in the Advanced-results statement, $(\beta'\cdot\beta)(\alpha'\cdot\alpha)=(\beta'\alpha')\cdot(\beta\alpha)$.*

Proof. It suffices to treat the basic case for , and verify the two definitions of agree, then assemble. Fix . Naturality of at the morphism reads ; this is the common value defining . For the interchange identity, expand the left side at : has component the common value of and its transpose. Expand the right side: vertical composition of after . Using functoriality of and naturality of at to commute past , both expansions reduce to . The components agree for all , so the transformations are equal.

Proposition 4 (pointwise limits in functor categories). If has limits of shape , then has them, and they are computed pointwise.

Proof. Let be a diagram, so each is a functor and each arrow of gives a natural transformation. For each object of form the limit in , with limiting cone . For a morphism , the maps form a cone over the diagram at , inducing a unique ; functoriality of follows from uniqueness. The are natural by construction, and given any cone in over its components factor uniquely through each , the factorisations assembling into a natural transformation by uniqueness. So with the is the limit, computed pointwise.

Connections Master

  • Categories, functors, and duality 41.01.01. This unit is the direct continuation of the functor theory developed there: the faithful/full/essentially-surjective trichotomy introduced in 41.01.01 is assembled here into the characterisation of equivalence, and the opposite category and slice constructions of 41.01.01 reappear as the special comma categories . The duality involution is the degenerate case of the equivalence relation studied here, and the survey 01.02.09 states the natural-transformation definition more briefly within its single-sweep treatment.

  • Limits and colimits 41.02.01. Limits and colimits are defined only up to the natural isomorphisms catalogued in this unit, and Proposition 4 shows functor categories inherit them pointwise — the mechanism by which presheaf categories become complete and cocomplete. The category of elements and the comma categories here are precisely the shapes over which limit and colimit cones are taken, so this unit supplies the -categorical language in which 41.02.01 states universal properties.

  • The Yoneda lemma and representability 41.04.02. The Yoneda lemma computes the natural transformations between a representable functor and an arbitrary presheaf, so it is a theorem about the functor category built here; the Yoneda embedding is full and faithful, hence an equivalence onto its image by the theorem of this unit, and the category of elements is the comma-category presentation that makes representability the existence of a terminal element.

  • Adjunctions 41.03.01. An adjunction is a pair of natural transformations — the unit and counit — subject to the triangle identities, all of which are equations in functor categories defined here. Every equivalence is in particular an adjunction (an adjoint equivalence after adjusting the isomorphisms), so the characterisation theorem of this unit is the entry point to the adjoint-functor theory of 41.03.01.

Historical & philosophical context Master

Natural transformations were the phenomenon that category theory was invented to make precise. In their 1945 paper General theory of natural equivalences [Eilenberg-Mac Lane 1945], Samuel Eilenberg and Saunders Mac Lane set out to define the word "natural" in the statement that a finite-dimensional vector space is naturally isomorphic to its double dual but only unnaturally isomorphic to its single dual. Defining "natural transformation" required first defining functor, and defining functor required first defining category, so the three notions entered the literature in the reverse of their conceptual order. The naturality square — the commuting rectangle that the components must satisfy — is already the central definition of that founding paper.

The functor category and the equivalence of categories belong to the consolidation of the subject in Mac Lane's Categories for the Working Mathematician (1971; 2nd ed. 1998) [Mac Lane 1998], where the interchange law, the -categorical structure of , comma categories, and the characterisation of equivalences by the full-faithful-essentially-surjective trichotomy are organised as standard tools. The Grothendieck construction and the category of elements emerged from Alexander Grothendieck's reworking of algebraic geometry in the early 1960s, where fibred categories over a base encode descent data; the equivalence between indexed categories and fibrations is the structural core of that theory. The dependence of the equivalence characterisation on the axiom of choice was isolated in the categorical-foundations literature and is the reason constructive category theory distinguishes equivalences from adjoint equivalences with specified data.

Bibliography Master

@article{EilenbergMacLane1945,
  author  = {Eilenberg, Samuel and Mac Lane, Saunders},
  title   = {General theory of natural equivalences},
  journal = {Transactions of the American Mathematical Society},
  volume  = {58},
  year    = {1945},
  pages   = {231--294}
}

@book{MacLane1998,
  author    = {Mac Lane, Saunders},
  title     = {Categories for the Working Mathematician},
  edition   = {2},
  publisher = {Springer},
  series    = {Graduate Texts in Mathematics 5},
  year      = {1998}
}

@book{Riehl2016,
  author    = {Riehl, Emily},
  title     = {Category Theory in Context},
  publisher = {Dover},
  year      = {2016}
}

@book{Awodey2010,
  author    = {Awodey, Steve},
  title     = {Category Theory},
  edition   = {2},
  publisher = {Oxford University Press},
  series    = {Oxford Logic Guides 52},
  year      = {2010}
}

@book{Leinster2014,
  author    = {Leinster, Tom},
  title     = {Basic Category Theory},
  publisher = {Cambridge University Press},
  series    = {Cambridge Studies in Advanced Mathematics 143},
  year      = {2014}
}

@book{Kelly1982,
  author    = {Kelly, G. Max},
  title     = {Basic Concepts of Enriched Category Theory},
  publisher = {Cambridge University Press},
  series    = {London Mathematical Society Lecture Note Series 64},
  year      = {1982}
}