Category theory: abstracting mathematical construction (essay)

From Objective Mathematics
Revision as of 00:49, 15 May 2025 by Lfox (talk | contribs)
Jump to navigation Jump to search

Definition. A category consists[note 1] of the following data:

  1. A class[note 2] , called the "objects" of the category
  2. For any two objects , a set , called the "morphisms from to ." We take to be a statement which means the exact same thing as the statement .
  3. For any two morphisms and , a function
    which we call "composition." That is, we can compose and to get an element ,

subject to the following conditions:

  1. For any object , there exists an "identity" morphism , satisfying for any and for any .
  2. Composition is associative: .

One example of a category---the example, in fact---is , the category of sets. The objects of are sets, the morphisms of are functions, and composition of morphisms of is composition of functions: The identity morphism of a set is the function which does nothing.

Another example of a category is "the discrete category with 2 elements," which I shall call . The objects are a set consisting of 2 elements (for concreteness we could take where and ).[note 3] The morphisms of are the identity elements, and nothing else. More formally, we have, , and .

Another example of a category is the category of groups. Here, the objects are groups, and the morphisms are group homomorphisms.

Another example of a category is the (naive) category of topological spaces. Here, the objects are topological spaces, and the morphisms are continuous maps.

We could go on like this ad infinitum. There are a huge variety of mathematical objects that form categories. Rings, graphs, vector spaces, representations, the points of the sphere, the open subsets of the plane, the natural numbers, and even categories themselves. In fact, every mathematical object forms a category,[note 4] though perhaps not in an interesting sense. Part of modern mathematical folklore is that you should always "categorify" whatever mathematical objects it is that you are working with, i.e. you should find a way to define everything in a category-theoretic way.

Note that the definition I gave of categories is set theoretic. Shea has informed me that category theory can be taken as foundational, see e.g. [TODO]. I have never studied Lawvere's formalism, but I can provide a couple insights about it nonetheless. 1) This formalism is not mainstream at all; few of the mathematicians using category theory know it. 2) When it comes to actually proving things, set theory is much easier than category theory. It has been my experience that even the most routine, "obvious" things can become very difficult to prove when phrased categorically (there is a reason for that, which I will get to later). When mathematicians want to understand a category, they often embed it into the category of sets and try to understand it there (see "Yoneda embedding").

Functors

Let's suppose I'm doing some construction. Like

Notes

  1. In the literature this is called a "locally small" category.
  2. A class is just another word for a set. In conventional mathematics, we aren't allowed to use the word "set" here, because for many categories it would give rise to a Russell's paradox. I think that Russell's paradox only arises in situations where we aren't being careful about our what math refers to in reality, but that discussion would take us too far afield.
  3. I don't like this approach to sets. I think sets should contain actual existents. But I won't fight that battle today.
  4. Indeed, suppose that some "thing" in mathematics is defined as , where is a set and is a structure (I won't define what a "structure" is; see Bourbaki for that. But think about it as an additional set. [TODO look up]). We get a category of "things" for free. The objects of are "thing"s, and a morphism is an isomorphism of sets, such that: the structure living over that you get when you transport by , is equal to , or in symbols