# The Unapologetic Mathematician

## Product categories

Often we’ll need to think about functors of more than one variable. When we deal with functions on sets we talk about product sets to handle this. So, naturally, we’ll use product categories here.

Given categories $\mathcal{C}$ and $\mathcal{D}$ we define the product category $\mathcal{C}\times\mathcal{D}$ like we did the direct product of groups and other such algebraic gadgets. We need a category with “projection functors” $\Pi_\mathcal{C}$ and $\Pi_\mathcal{D}$ onto the two categories we start with, and we use a universal property like we did for groups.

Explicitly, we define ${\rm Ob}(\mathcal{C}\times\mathcal{D})={\rm Ob}(\mathcal{C})\times{\rm Ob}(\mathcal{D})$, and ${\rm Mor}(\mathcal{C}\times\mathcal{D})={\rm Mor}(\mathcal{C})\times{\rm Mor}(\mathcal{D})$. The source of a pair of morphisms is the pair of objects obtained by taking the source of each morphism, and similarly for the target. Compositions and identities are also defined component-by-component. This shows that such product categories actually do exist.

Now we can define functors of two variables like $F:\mathcal{A}\times\mathcal{B}\rightarrow\mathcal{C}$. Similarly we can keep going and take the product of three categories (how well is this defined?) and use it to define functors of three variables, and so on.

Notice that morphisms coming from $\mathcal{C}$ and from $\mathcal{D}$ “commute”, in the sense that $(f,1_D)\circ(1_C,g)=(f,g)=(1_C,g)\circ(f,1_D)$. This comes in handy when we’re dealing with functors of more than one variable. Let’s say we’ve got a construction we want to prove is a functor of two variables: $F:\mathcal{A}\times\mathcal{B}\rightarrow\mathcal{C}$. First we define its value on pairs of objects: $F(A,B)$. Then we define its value on morphisms from one of the input categories at a time: $F(f,1_B)$ and $F(1_A,g)$. Now we check that these two commute: $F(f,1_B)\circ F(1_A,g)=F(1_A,g)\circ F(f,1_B)$. This gives us the value of $F(f,g)$. Finally we check functoriality in each variable: $F(f_2,1_B)\circ F(f_1,1_B)=F(f_2\circ f_1,1_B)$ and $F(1_A,g_2)\circ F(1_A,g_1)=F(1_A,g_2\circ g_1)$. This tells us that
$F(f_2,g_2)\circ F(f_1,g_1)=F(f_2,1_B)\circ F(1_A,g_2)\circ F(f_1,1_B)\circ F(1_A,g_1)=$
$F(f_2,1_B)\circ F(f_1,1_B)\circ F(1_A,g_2)\circ F(1_A,g_1)=F(f_2\circ f_1,1_B)\circ F(1_A,g_2\circ g_1)=$
$F(f_2\circ f_1,g_2\circ g_1)$

To sum this up, a construction going from any number of categories to another is a functor of the product category if and only if it is functorial in each variable and the images of morphisms from distinct input categories all commute. By “functorial in each variable”, I mean that if you pick any objects to stick in all variables of the construction but one, then what’s left is a functor of the remaining variable.

If this seems confusing, don’t worry. We’ll be back soon enough with examples that illustrate how it shows up in practice.

### Like this:

Posted by John Armstrong | Category theory

## 3 Comments	»

1. [...] Enriched Categorical Constructions We’re going to need to talk about enriched functors with more than one variable, so we’re going to need an enriched analogue of the product of two categories. [...]

Pingback by | August 27, 2007 | Reply

2. “Similarly we can keep going and take the product of three categories (how well is this defined?) and use it to define functors of three variables, and so on.”

Any more details on this?

Comment by D L Childs | February 1, 2008 | Reply

3. Generally it works the same way as direct products of three or more groups do, as discussed in the prior link. As in that case, we could parenthesize our product in two different ways: $(\mathcal{C}_1\times\mathcal{C}_2)\times\mathcal{C}_3$ and $\mathcal{C}_1\times(\mathcal{C}_2\times\mathcal{C}_3)$. The results are not identical because they have different sets of objects. But are the isomorphic (by a unique isomorphism) or merely equivalent (by a unique equivalence)? I’ll leave that to you.

Comment by | February 1, 2008 | Reply

« Previous | Next »

## About this weblog

This is mainly an expository blath, with occasional high-level excursions, humorous observations, rants, and musings. The main-line exposition should be accessible to the “Generally Interested Lay Audience”, as long as you trace the links back towards the basics. Check the sidebar for specific topics (under “Categories”).

I’m in the process of tweaking some aspects of the site to make it easier to refer back to older topics, so try to make the best of it for now.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 24, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.923018217086792, "perplexity_flag": "head"}