nLab
cartesian closed category

Context

Monoidal categories

Category theory

Contents

Definition

A cartesian closed category (sometimes: ccc) is a category with finite products which is closed with respect to its cartesian monoidal structure.

The internal hom [S,X] in a cartesian closed category is often called exponentiation and is denoted Y S.

Examples

Some basic consequences

A category is cartesian closed if it has finite products and if for any two objects X, Y, there is an object Y X (thought of as a “space of maps from X to Y”) such that for any object Z, there is a bijection between the set of maps ZY X and the set of maps Z×XY, and this bijection is natural in Z.

There is an evaluation map ev X,Y:Y X×XY, which by definition is the map corresponding to the identity map Y XY X under the bijection. Using the naturality, it may be shown that the bijection hom(Z,Y X)hom(Z×X,Y) takes a map ϕ:ZY X to the composite

Z×Xϕ×1 XY X×Xev X,YYZ \times X \stackrel{\phi \times 1_X}{\to} Y^X \times X \stackrel{ev_{X, Y}}{\to} Y

and the universal property of Y X may be phrased thus: given any ψ:Z×XY, there exists a unique map ϕ:ZY X for which ψ=ev X,Y(ϕ×1 X).

Taking Z=1 (the terminal object), maps 1Y X (or “points” of Y X) are in bijection with maps Xπ 2 11×XY. So the “underlying set” of Y X, namely hom(1,Y X), is identified with the set of maps from X to Y. Let us denote the point corresponding to f:XY by [f]:1Y X. Then, by definition,

(1×X[f]×1 XY X×Xev X,YY)=(1×Xπ 2XfY)(1 \times X \stackrel{[f] \times 1_X}{\to} Y^X \times X \stackrel{ev_{X, Y}}{\to} Y) = (1 \times X \stackrel{\pi_2}{\to} X \stackrel{f}{\to} Y)

The following lemma says that the internal evaluation map ev X,Y indeed behaves as an evaluation map at the level of underlying sets.

Lemma

Given a map f:XY and a point x:1X, the composite

1[f],xY X×Xev X,YY1 \stackrel{\langle [f], x \rangle}{\to} Y^X \times X \stackrel{ev_{X, Y}}{\to} Y

is the point fx:1Y.

Proof

We have

1[f],xY X×Xev X,YX = 1δ 11×1[f]×xY X×Xev X,YY = 1δ 11×11×x1×X[f]×1 XY X×Xev X,YY = 1δ 11×11×x1×Xπ 2XfY = 1δ 11×1π 21xXfY = 1xXfY\array{ 1 \stackrel{\langle [f], x \rangle}{\to} Y^X \times X \stackrel{ev_{X, Y}}{\to} X & = & 1 \stackrel{\delta_1}{\to} 1 \times 1 \stackrel{[f] \times x}{\to} Y^X \times X \stackrel{ev_{X, Y}}{\to} Y\\ & = & 1 \stackrel{\delta_1}{\to} 1 \times 1 \stackrel{1 \times x}{\to} 1 \times X \stackrel{[f] \times 1_X}{\to} Y^X \times X \stackrel{ev_{X, Y}}{\to} Y\\ & = & 1 \stackrel{\delta_1}{\to} 1 \times 1 \stackrel{1 \times x}{\to} 1 \times X \stackrel{\pi_2}{\to} X \stackrel{f}{\to} Y\\ & = & 1 \stackrel{\delta_1}{\to} 1 \times 1 \stackrel{\pi_2}{\to} 1 \stackrel{x}{\to} X \stackrel{f}{\to} Y\\ & = & 1 \stackrel{x}{\to} X \stackrel{f}{\to} Y }

where the penultimate equation uses naturality of the projection map π 2.

Definition

Internal composition c X,Y,Z:Z Y×Y XZ X is the unique map such that

(Z Y×Y X×Xc×1 XZ X×Xev X,ZZ)=(Z Y×Y X×X1×ev X,YZ Y×Yev Y,ZZ)(Z^Y \times Y^X \times X \stackrel{c \times 1_X}{\to} Z^X \times X \stackrel{ev_{X, Z}}{\to} Z) = (Z^Y \times Y^X \times X \stackrel{1 \times ev_{X, Y}}{\to} Z^Y \times Y \stackrel{ev_{Y, Z}}{\to} Z)

One may show that internal composition behaves as the usual composition at the underlying set level, in that given maps g:YZ, f:XY, we have

(1[g],[f]Z Y×Y Xc X,Y,ZZ X)=[gf]:1Z X(1 \stackrel{\langle [g], [f] \rangle}{\to} Z^Y \times Y^X \stackrel{c_{X, Y, Z}}{\to} Z^X) = [g f]: 1 \to Z^X

Properties

Inheritance by reflective subcategories

In showing that a given category is cartesian closed, the following theorem is often useful (cf. A4.3.1 in the Elephant):

Theorem

If C is cartesian closed, and DC is a reflective subcategory, then the reflector L:CD preserves finite products if and only if D is an exponential ideal (i.e. YD implies Y XD for any XC). In particular, if L preserves finite products, then D is cartesian closed.