Categories
In mathematics, a category is a collection of objects and arrows between them that can be composed and have identities. Specifically, a category C consists of a class Ob(C) whose elements are objects, and for each pair (A,B) of objects a set Hom_C(A,B) of morphisms from A to B. For any object A there is an identity morphism id_A in Hom(A,A). If f in Hom(A,B) and g in Hom(B,C) then the composite g∘f is in Hom(A,C). Composition is associative, and identities act as neutral elements: id_B∘f = f and g∘id_B = g.
Examples: The category Set has objects sets and morphisms functions; Grp has groups and group homomorphisms;
In category theory, a functor F from C to D assigns to each object an object F(A)
Categories can be equivalent or isomorphic; equivalence relaxes isomorphism of categories to being full, faithful, and
Many constructions generalize familiar set-based notions: limits and colimits, with products and coproducts as basic examples,