nLab
product

Contents

Definition

In a category, a product (also called a cartesian product) of two objects X and Y is an object X×Y equipped with morphisms p:X×YX and q:X×YY, called projections, such that for any object Z equipped with maps f:ZX and g:ZY there exists a unique h:ZX×Y (called the pairing of f and g) such that ph=f and qh=g.

Such a categorical product is equivalently a limit over a diagram of the shape of the category {a,b} with two objects and no non-trivial morphisms.

More generally, for S Set Cat any discrete category, an S-indexed limit is a product of S factors. If S is a finite set we speak of a finite product. Notice that this includes the case of the empty set, the product over which is, if it exists, the terminal object of the category in question.

Properties

General

  • When they exist, products are unique up to unique canonical isomorphism, so we often say “the product.”

  • One can define in a similar way a product of any family of objects. A product of the empty family is a terminal object.

  • A product is a special case of a limit in which the domain category is discrete.

  • A product in C is the same as a coproduct in its opposite category C op.

Relation to type theory

Under the relation between category theory and type theory products in a category correspond to product types in type theory.

type theorycategory theory
syntaxsemantics
natural deductionuniversal construction
product typeproduct
type formationA:TypeB:TypeA×B:TypeA,B𝒞A×B𝒞
term introductiona:Ab:B(a,b):A×B Q a (a,b) b A A×B B
term eliminationt:A×Bp 1(t):At:A×Bp 2(t):B Q t A p 1 A×B p 2 B
computation rulep 1(a,b)=ap 2(a,b)=b Q a (a,b) b A p 1 A×B p 2 B

Examples

Revised on October 23, 2012 12:03:28 by Urs Schreiber (131.174.189.169)