Category

From Cattheory
Revision as of 23:25, 9 December 2008 by Vipul (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Definition

A category C is the following data:

  • Objects: A collection ObC of objects.
  • Morphisms: For any objects A,B∈ObC, a collection C(A,B) of morphisms. Every element in C(A,B) is termed a morphism from A (i.e., with source or domain A) to B (i.e., with target or co-domain B). The morphism sets for different pairs of objects are disjoint. Note that f∈C(A,B) is also written as f:A→B. The collection C(A,B) is sometimes also denoted HomC(A,B) or simply Hom(A,B).
  • Identity morphism: For every object A∈ObC, a distinguished morphism idA∈C(A,A). This is called the identity morphism of A.
  • Composition rule: For A,B,C∈ObC, a map, called composition of morphisms, from C(B,C)×C(A,B) to C(A,C). This map is denoted by ∘.

satisfying the following compatibility conditions:

  • Associativity of composition: For A,B,C,D∈ObC, with f∈C(A,B),g∈C(B,C),h∈C(C,D), we have h∘(g∘f)=(h∘g)∘f.
  • Identity behaves as an identity: For A,B∈ObC, with f∈C(A,B), we have f∘idA=idB∘f=f.

The collections of objects and morphisms need not be sets. If the collection of objects is a set, and the collection of morphisms between any two objects is a set, the category is termed a small category. If the collection of morphisms between any two objects is a set, the category is termed a locally small category.