In category theory, a category is Cartesian closed if, roughly speaking, any morphism defined on a product of two objects can be naturally identified with a morphism defined on one of the factors. These categories are particularly important in mathematical logic and the theory of programming, in that their internal language is the simply typed lambda calculus. They are generalized by closed monoidal categories, whose internal language, linear type systems, are suitable for both quantum and classical computation.
Etymology Named after René Descartes (1596–1650), French philosopher, mathematician, and scientist, whose formulation of analytic geometry gave rise to the concept of Cartesian product, which was later generalized to the notion of categorical product.
Definition The category C is called Cartesian closed if it satisfies the following three properties:
It has a terminal object. Any two objects X and Y of C have a product X×Y in C. Any two objects Y and Z of C have an exponential ZY in C. The first two conditions can be combined to the single requirement that any finite (possibly empty) family of objects of C admit a product in C, because of the natural associativity of the categorical product and because the empty product in a category is the terminal object of that category. The third condition is equivalent to the requirement that the functor –×Y (i.e. the functor from C to C that maps objects X to X×Y and morphisms φ to φ × idY) has a right adjoint, usually denoted –Y, for all objects Y in C. For locally small categories, this can be expressed by the existence of a bijection between the hom-sets Hom(X×Y,Z)≅Hom(X,ZY) which is natural in X, Y, and Z. Take care to note that a Cartesian closed category need not have finite limits; only finite products are guaranteed. If a category has the property that all its slice categories are Cartesian closed, then it is called locally cartesian closed. Note that if C is locally Cartesian closed, it need not actually be Cartesian closed; that happens if and only if C has a terminal object.
Basic constructions
Evaluation For each object Y, the counit of the exponential adjunction is a natural transformation evY,Z:ZY×Y→Z called the (internal) evaluation map. More generally, we can construct the partial application map as the composite papplyX,Y,Z:ZX×Y×X≅(ZY)X×X→evX,ZYZY. In the particular case of the category Set, these reduce to the ordinary operations: evY,Z(f,y)=f(y).
Composition Evaluating the exponential in one argument at a morphism p : X → Y gives morphisms pZ:XZ→YZ,Zp:ZY→ZX, corresponding to the operation of composition with p. Alternate notations for the operation pZ include p* and p∘-. Alternate notations for the operation Zp include p* and -∘p. Evaluation maps can be chained as ZY×YX×X→id×evX,YZY×Y→evY,ZZ the corresponding arrow under the exponential adjunction cX,Y,Z:ZY×YX→ZX is called the (internal) composition map. In the particular case of the category Set, this is the ordinary composition operation: cX,Y,Z(g,f)=g∘f.
Sections For a morphism p:X → Y, suppose the following pullback square exists, which defines the subobject of XY corresponding to maps whose composite with p is the identity: ΓY(p)→XY↓↓1→YY where the arrow on the right is pY and the arrow on the bottom corresponds to the identity on Y. Then ΓY(p) is called the object of sections of p. It is often abbreviated as ΓY(X). If ΓY(p) exists for every morphism p with codomain Y, then it can be assembled into a functor ΓY : C/Y → C on the slice category, which is right adjoint to a variant of the product functor: homC/Y(X×Y→π2Y,Z→pY)≅homC(X,ΓY(p)). The exponential by Y can be expressed in terms of sections: ZY≅ΓY(Z×Y→π2Y).
Examples Examples of Cartesian closed categories include:
… excerpt ends here. Continue reading the full article.