We use cookies to distinguish you from other users and to provide you with a better experience on our websites. Close this message to accept cookies or find out how to manage your cookie settings.
To save content items to your account,
please confirm that you agree to abide by our usage policies.
If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account.
Find out more about saving content to .
To save content items to your Kindle, first ensure [email protected]
is added to your Approved Personal Document E-mail List under your Personal Document Settings
on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part
of your Kindle email address below.
Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations.
‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi.
‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
In this chapter we zoom in and look at small examples of mathematical structures that we can express as categories. We start with small drawable examples, that is, finite categories, and also sets expressed as discrete categories. We then move on to monoids expressed as categories with only one object, and unravel that to give the elementary definition of a monoid as a set with structure. We describe the monoid of natural numbers as generated by a single arrow consisting of a non-trivial loop. We explain the “dimension shift” involved in forgetting the single object and focusing on the set of morphisms as the underlying data. We then move on to groups expressed as categories with only one object in which every morphism has an inverse, and then unravel that as an elementary definition. Examples include modular arithmetic and groups of symmetries. We include some broader context about group theory. Finally, we introduce the idea of points and paths in a space, touching on some of the concepts of topology and homotopy, without technicality (we include some technical details in an Appendix).
This chapter eases us from informal ideas into formal mathematics. We motivate that move, develop more formal approaches to structures we’ve already seen, acclimatize ourselves to the formalism, and see what we get out of it. We argue that formal mathematical language and notation are to do with both efficiency and abstraction, as concise notation can help us to package up multiple concepts into a single unit that we can then handle as a new object. One example is repeated addition turning into multiplication, and then repeated multiplication turning into exponentiation. We revisit metrics and express them more formally. We also cover some basic formal logic, which is how formal mathematics is built up securely, including logical implication, converses, and logically equivalent ways of stating them. We also revisit modular arithmetic and show how to express it more formally.
In this chapter we cover the more advanced universal properties of products and coproducts. We define products directly and then show that this is a terminal object in a more complicated category, the category of cones over the pair of objects in question. This enables us to immediately deduce a uniqueness result. We show that, in Set, cartesian products are categorical products, and examine what uniqueness means. We show that, inside a poset expressed as a category, products are given by least upper bounds. We examine products of posets, and show that this gives us the categories of privilege; we also examine products of monoids and of groups. We then define coproducts as the dual concept, before unraveling this to get a direct definition. We show that, in Set, disjoint unions are coproducts, and we mention decategorification and relationship between categorical (co)products and arithmetic. We show that coproducts in posets are greatest lower bounds, and the coproducts of posets work but coproducts of tosets in general do not, and that coproducts of monoids exist but are much harder than products. We briefly mention coproducts of topological spaces and of categories.
An overview of the abstract side of mathematics, to put us in a good state of mind for category theory. It’s important not to be thinking of math in the common narrow way as numbers, equations, and problem-solving. This chapter will still have little formality. We will discuss the fact that abstraction is important because it takes us to a context in which logic works precisely. Math uses logic and abstraction together, which is how arguments are made very rigorous. We will describe the trade-off, which is that we gain rigor but lose details. However, we will also describe how this in turn gains us wider applicability. Other disadvantages include the fact that it can seem hard and remote from real life, but the difficulty in turn means we are stretching our brains, and the remoteness means we can unify a broader range of examples. We will also describe how math turns abstractions into new concepts and studies them carefully, and how abstraction often increases as we progress through math education, but that doesn’t necessarily mean that abstract math is harder. We will also crucially discuss the fact that abstraction can be fun.
In this chapter we finally give the formal definition of a category. We build up to each part of the definition first, also explaining that definitions of abstract mathematical structures often take the form of data, structure, and properties. We start with the data, which is objects and arrows. Then we give the structure, which is composition and identities. We discuss the fact that arrows can be drawn in many different ways while still giving the same abstract structure. We see that identities are a generalization of reflexivity, and composition is a generalization of transitivity. Finally, we give the properties or axioms, which are the unit laws and associativity of composition. We include a brief mention of size issues, and also describe how associativity can be encapsulated geometrically as a tetrahedron. We discuss the idea of drawing diagrams in category theory, in which we omit identities and composites for efficiency, and introduce the notion of commutative diagrams. The chapter concludes with a discussion of the importance of composition in a category.
Some demystification of the letters used in mathematics, including when we tend to use lower case, upper case, blackboard bold, curly, or Greek letters, and when we use particular letters for particular things, or particular types of thing.
This chapter introduces the idea of studying things via their relationships with other things. We start with family relationships and the idea of depicting relationships with arrows, and building up relationships by composition. We revisit some of the concepts already discussed, and reframe them as types of relationship. This includes symmetry, basic arithmetic, and modular arithmetic. We look at the relationships between different types of quadrilateral and explore how depicting the relationships with arrows is more powerful than using a Venn diagram. We explore diagrams of factors, fixing a number n and then drawing a lattice of its factors and factor relationships among them. We show that abstracting from this gives us a lattice of subsets of the prime factors of n and that a further abstraction gives us lattices of subsets of any sets. We show that this further abstraction enables us to include a much wider variety of examples, including an analysis of interactions between people with different types of privilege. The idea is to start seeing relationships as something quite general, and to start seeing how abstraction gives us structures that are more widely applicable.
We end by taking a step back and summing up some of the main principles of category theory, to make sure that the ideas have not been overwhelmed by the details. We begin with the motivations: the purpose of abstraction, and the idea of gaining structural understanding. We then move on to the general process of actually doing category theory, and end with some aspects of its practice: the idea of morphisms, diagrammatic reasoning, coherence, universal properties, structural awareness, and the nuance to be gained from higher dimensions.
In this chapter we look at the concept of morphisms between categories, using the principle of preserving structure. We give the definition in two ways, one for each of our two approaches to defining categories (by homsets or by graphs). We look at functors between small examples of categories, including functors between posets, monoids, and groups, expressed as categories. We consider functors from small drawable categories and show that they produce a diagram of that shape in the target category. We think about the category consisting of a single non-trivial isomorphism, and see that a functor out of it picks out an isomorphism in the target category. We describe free and forgetful functors, including the free monoid functor. We define the concept of functors preserving and reflecting structure, and show that not all functors preserve epics, but they all preserve split epics. We consider whether the above forgetful functors preserve terminal and initial objects. Further topics include the fundamental group functor, and Van Kampen’s theorem reframed as preservation of pushouts under certain circumstances. We introduce contravariant functors.
A first look at relations more abstractly. We begin by thinking about more relaxed notions of equality and observe that, if we relax the notion too much, then we might get some undesirable consequences. This motivates the concepts of reflexivity, symmetry, and transitivity. We’ll explore these properties for various relations, including informal ones such as “is at school with” and “is a friend of”, and then more formal mathematical ones such as “divides” and “is congruent modulo n”. We introduce equivalence relations, which are those satisfying all three properties, and observe that many relations are not equivalence relations but are nonetheless still interesting and worthy of study. This is to motivate the more relaxed axioms for a category. This chapter starts using more formal notation.
In this chapter we formalize the idea of characterizing things by the role they play in context. First we discuss the difference between characterizing something by role and characterizing it by intrinsic characteristic. We consider “extremities” in some of the small drawable categories we’ve seen before, that is, the places where all arrows start or all arrows end. We make this more precise and more formal in the definition of initial objects. We explore what sort of categories do not have initial objects, including those with an infinite string of composable arrows, non-trivial loops, or disconnected parts. We prove that initial objects are unique up to unique isomorphism. We then define terminal objects and explore them analogously, mentioning the fact that this is the dual concept, although duality is discussed more fully in the next chapter. We then examine terminal and initial objects in some of the categories we’ve seen already: sets, posets, monoids, groups, and different categories of privilege. We observe that we can only describe universal properties in context, as something initial in one category may not be initial in another.
Natural transformations are an appropriate notion of relationship between functors, so this chapter gives us our first glimpse of two-dimensional structures. We first give the definition by feeling our way through abstractly, and then by analogy with homotopies. We define identities and composition for natural transformations, and thus define functor categories. We define the category of presheaves on a category as a particular functor category. We show how to use natural transformations to define cones over a diagram formally. We look at isomorphisms in functor categories, and prove that these correspond to componentwise isomorphisms. We show how to read commutative diagrams “dynamically”. We define equivalence of categories via pseudo-inverses, and briefly mention the relationship with pointwise equivalence. We define horizontal composition of natural transformations, and whiskering, and prove the interchange law, so that we are ready for the concept of a 2-category.
We explore other large categories based on the category of sets and functions. We begin with monoids, and think of them as sets with extra structure. We introduce the concept of a structure-preserving function, which in this case gives us the definition of a monoid morphism. We check that we can assemble monoids and their morphisms into a category. We do the analogous construction for groups and group homomorphisms. We consider partially ordered sets and show how the structure-preserving functions in this case are order-preserving functions, and we assemble those into a category. We consider some cases of functions that are not order-preserving, illuminating some antagonism that can arise over the theory of privilege. We present the category of topological spaces and continuous maps. We introduce the idea of assembling categories themselves into a category, beginning to think about the idea of structure-preserving maps for categories. These are called functors, and are covered in full in a later chapter. Finally, we touch on matrices, introducing a category where the objects are natural numbers and a morphism from a to b is an a × b matrix. This concludes the interlude of the book.