Product (category theory)

From HandWiki
Short description: Generalized object in category theory


In category theory, the product of two (or more) objects in a category is a notion designed to capture the essence behind constructions in other areas of mathematics such as the Cartesian product of sets, the direct product of groups or rings, and the product of topological spaces. Essentially, the product of a family of objects is the "most general" object which admits a morphism to each of the given objects.

Definition

Product of two objects

Fix a category [math]\displaystyle{ C. }[/math] Let [math]\displaystyle{ X_1 }[/math] and [math]\displaystyle{ X_2 }[/math] be objects of [math]\displaystyle{ C. }[/math] A product of [math]\displaystyle{ X_1 }[/math] and [math]\displaystyle{ X_2 }[/math] is an object [math]\displaystyle{ X, }[/math] typically denoted [math]\displaystyle{ X_1 \times X_2, }[/math] equipped with a pair of morphisms [math]\displaystyle{ \pi_1 : X \to X_1, }[/math] [math]\displaystyle{ \pi_2 : X \to X_2 }[/math] satisfying the following universal property:

  • For every object [math]\displaystyle{ Y }[/math] and every pair of morphisms [math]\displaystyle{ f_1 : Y \to X_1, }[/math] [math]\displaystyle{ f_2 : Y \to X_2, }[/math] there exists a unique morphism [math]\displaystyle{ f : Y \to X_1 \times X_2 }[/math] such that the following diagram commutes:
    Universal property of the product

Whether a product exists may depend on [math]\displaystyle{ C }[/math] or on [math]\displaystyle{ X_1 }[/math] and [math]\displaystyle{ X_2. }[/math] If it does exist, it is unique up to canonical isomorphism, because of the universal property, so one may speak of the product. This has the following meaning: if [math]\displaystyle{ X', \pi_1' , \pi_2' }[/math] is another product, there exists a unique isomorphism [math]\displaystyle{ h : X' \to X_1 \times X_2 }[/math] such that [math]\displaystyle{ \pi_1' = \pi_1 \circ h }[/math] and [math]\displaystyle{ \pi_2' = \pi_2 \circ h }[/math].

The morphisms [math]\displaystyle{ \pi_1 }[/math] and [math]\displaystyle{ \pi_2 }[/math] are called the canonical projections or projection morphisms; the letter [math]\displaystyle{ \pi }[/math] (pronounced pi) alliterates with projection. Given [math]\displaystyle{ Y }[/math] and [math]\displaystyle{ f_1, }[/math] [math]\displaystyle{ f_2, }[/math] the unique morphism [math]\displaystyle{ f }[/math] is called the product of morphisms [math]\displaystyle{ f_1 }[/math] and [math]\displaystyle{ f_2 }[/math] and is denoted [math]\displaystyle{ \langle f_1, f_2 \rangle. }[/math]

Product of an arbitrary family

Instead of two objects, we can start with an arbitrary family of objects indexed by a set [math]\displaystyle{ I. }[/math]

Given a family [math]\displaystyle{ \left(X_i\right)_{i \in I} }[/math] of objects, a product of the family is an object [math]\displaystyle{ X }[/math] equipped with morphisms [math]\displaystyle{ \pi_i : X \to X_i, }[/math] satisfying the following universal property:

  • For every object [math]\displaystyle{ Y }[/math] and every [math]\displaystyle{ I }[/math]-indexed family of morphisms [math]\displaystyle{ f_i : Y \to X_i, }[/math] there exists a unique morphism [math]\displaystyle{ f : Y \to X }[/math] such that the following diagrams commute for all [math]\displaystyle{ i \in I: }[/math]
    Universal product of the product

The product is denoted [math]\displaystyle{ \prod_{i \in I} X_i. }[/math] If [math]\displaystyle{ I = \{1, \ldots, n\}, }[/math] then it is denoted [math]\displaystyle{ X_1 \times \cdots \times X_n }[/math] and the product of morphisms is denoted [math]\displaystyle{ \langle f_1, \ldots, f_n \rangle. }[/math]

Equational definition

Alternatively, the product may be defined through equations. So, for example, for the binary product:

  • Existence of [math]\displaystyle{ f }[/math] is guaranteed by existence of the operation [math]\displaystyle{ \langle \cdot,\cdot \rangle. }[/math]
  • Commutativity of the diagrams above is guaranteed by the equality: for all [math]\displaystyle{ f_1, f_2 }[/math] and all [math]\displaystyle{ i \in \{1, 2\}, }[/math] [math]\displaystyle{ \pi_i \circ \left\langle f_1, f_2 \right\rangle = f_i }[/math]
  • Uniqueness of [math]\displaystyle{ f }[/math] is guaranteed by the equality: for all [math]\displaystyle{ g : Y \to X_1 \times X_2, }[/math] [math]\displaystyle{ \left\langle \pi_1 \circ g, \pi_2 \circ g \right\rangle = g. }[/math][1]

As a limit

The product is a special case of a limit. This may be seen by using a discrete category (a family of objects without any morphisms, other than their identity morphisms) as the diagram required for the definition of the limit. The discrete objects will serve as the index of the components and projections. If we regard this diagram as a functor, it is a functor from the index set [math]\displaystyle{ I }[/math] considered as a discrete category. The definition of the product then coincides with the definition of the limit, [math]\displaystyle{ \{f\}_i }[/math] being a cone and projections being the limit (limiting cone).

Universal property

Just as the limit is a special case of the universal construction, so is the product. Starting with the definition given for the universal property of limits, take [math]\displaystyle{ \mathbf{J} }[/math] as the discrete category with two objects, so that [math]\displaystyle{ \mathbf{C}^{\mathbf{J}} }[/math] is simply the product category [math]\displaystyle{ \mathbf{C} \times \mathbf{C}. }[/math] The diagonal functor [math]\displaystyle{ \Delta : \mathbf{C} \to \mathbf{C} \times \mathbf{C} }[/math] assigns to each object [math]\displaystyle{ X }[/math] the ordered pair [math]\displaystyle{ (X, X) }[/math] and to each morphism [math]\displaystyle{ f }[/math] the pair [math]\displaystyle{ (f, f). }[/math] The product [math]\displaystyle{ X_1 \times X_2 }[/math] in [math]\displaystyle{ C }[/math] is given by a universal morphism from the functor [math]\displaystyle{ \Delta }[/math] to the object [math]\displaystyle{ \left(X_1, X_2\right) }[/math] in [math]\displaystyle{ \mathbf{C} \times \mathbf{C}. }[/math] This universal morphism consists of an object [math]\displaystyle{ X }[/math] of [math]\displaystyle{ C }[/math] and a morphism [math]\displaystyle{ (X, X) \to \left(X_1, X_2\right) }[/math] which contains projections.

Examples

In the category of sets, the product (in the category theoretic sense) is the Cartesian product. Given a family of sets [math]\displaystyle{ X_i }[/math] the product is defined as [math]\displaystyle{ \prod_{i \in I} X_i := \left\{\left(x_i\right)_{i \in I} : x_i \in X_i \text{ for all } i \in I\right\} }[/math] with the canonical projections [math]\displaystyle{ \pi_j : \prod_{i \in I} X_i \to X_j, \quad \pi_j\left(\left(x_i\right)_{i \in I}\right) := x_j. }[/math] Given any set [math]\displaystyle{ Y }[/math] with a family of functions [math]\displaystyle{ f_i : Y \to X_i, }[/math] the universal arrow [math]\displaystyle{ f : Y \to \prod_{i \in I} X_i }[/math] is defined by [math]\displaystyle{ f(y) := \left(f_i(y)\right)_{i \in I}. }[/math]

Other examples:

Discussion

An example in which the product does not exist: In the category of fields, the product [math]\displaystyle{ \Q \times F_p }[/math] does not exist, since there is no field with homomorphisms to both [math]\displaystyle{ \Q }[/math] and [math]\displaystyle{ F_p. }[/math]

Another example: An empty product (that is, [math]\displaystyle{ I }[/math] is the empty set) is the same as a terminal object, and some categories, such as the category of infinite groups, do not have a terminal object: given any infinite group [math]\displaystyle{ G }[/math] there are infinitely many morphisms [math]\displaystyle{ \Z \to G, }[/math] so [math]\displaystyle{ G }[/math] cannot be terminal.

If [math]\displaystyle{ I }[/math] is a set such that all products for families indexed with [math]\displaystyle{ I }[/math] exist, then one can treat each product as a functor [math]\displaystyle{ \mathbf{C}^I \to \mathbf{C}. }[/math][3] How this functor maps objects is obvious. Mapping of morphisms is subtle, because the product of morphisms defined above does not fit. First, consider the binary product functor, which is a bifunctor. For [math]\displaystyle{ f_1 : X_1 \to Y_1, f_2 : X_2 \to Y_2 }[/math] we should find a morphism [math]\displaystyle{ X_1 \times X_2 \to Y_1 \times Y_2. }[/math] We choose [math]\displaystyle{ \left\langle f_1 \circ \pi_1, f_2 \circ \pi_2 \right\rangle. }[/math] This operation on morphisms is called Cartesian product of morphisms.[4] Second, consider the general product functor. For families [math]\displaystyle{ \left\{X\right\}_i, \left\{Y\right\}_i, f_i : X_i \to Y_i }[/math] we should find a morphism [math]\displaystyle{ \prod_{i \in I} X_i \to \prod_{i \in I} Y_i. }[/math] We choose the product of morphisms [math]\displaystyle{ \left\{f_i \circ \pi_i\right\}_i. }[/math]

A category where every finite set of objects has a product is sometimes called a Cartesian category[4] (although some authors use this phrase to mean "a category with all finite limits").

The product is associative. Suppose [math]\displaystyle{ C }[/math] is a Cartesian category, product functors have been chosen as above, and [math]\displaystyle{ 1 }[/math] denotes a terminal object of [math]\displaystyle{ C. }[/math] We then have natural isomorphisms [math]\displaystyle{ X \times (Y \times Z) \simeq (X\times Y) \times Z \simeq X \times Y \times Z, }[/math] [math]\displaystyle{ X \times 1 \simeq 1 \times X \simeq X, }[/math] [math]\displaystyle{ X \times Y \simeq Y \times X. }[/math] These properties are formally similar to those of a commutative monoid; a Cartesian category with its finite products is an example of a symmetric monoidal category.

Distributivity

Main page: Distributive category

For any objects [math]\displaystyle{ X, Y, \text{ and } Z }[/math] of a category with finite products and coproducts, there is a canonical morphism [math]\displaystyle{ X \times Y + X \times Z \to X \times (Y + Z), }[/math] where the plus sign here denotes the coproduct. To see this, note that the universal property of the coproduct [math]\displaystyle{ X \times Y + X \times Z }[/math] guarantees the existence of unique arrows filling out the following diagram (the induced arrows are dashed):

Product-Coproduct Distributivity SVG.svg

The universal property of the product [math]\displaystyle{ X \times (Y + Z) }[/math] then guarantees a unique morphism [math]\displaystyle{ X \times Y + X \times Z \to X \times (Y + Z) }[/math] induced by the dashed arrows in the above diagram. A distributive category is one in which this morphism is actually an isomorphism. Thus in a distributive category, there is the canonical isomorphism [math]\displaystyle{ X\times (Y + Z)\simeq (X\times Y) + (X \times Z). }[/math]

See also

References

  1. Lambek J., Scott P. J. (1988). Introduction to Higher-Order Categorical Logic. Cambridge University Press. p. 304. 
  2. Qiaochu Yuan (June 23, 2012). "Banach spaces (and Lawvere metrics, and closed categories)". https://qchu.wordpress.com/2012/06/23/banach-spaces-and-lawvere-metrics-and-closed-categories/. 
  3. Lane, S. Mac (1988). Categories for the working mathematician (1st ed.). New York: Springer-Verlag. p. 37. ISBN 0-387-90035-7. 
  4. 4.0 4.1 Michael Barr, Charles Wells (1999). Category Theory – Lecture Notes for ESSLLI. p. 62. http://www.let.uu.nl/esslli/Courses/barr/barrwells.ps. 

External links