A category consists of
a set of [objects];
for each pair of objects , a set of [morphisms] (or [arrows], or maps) with [domain] and [codomain] (or with [source] and [target] ); when the context is clear, we write or write,
to indicate that ;
for each triples of objects , a [composition law],
when the context is clear, we write for the composite of with ;
for each object , a morphism called the [unit morphism] or the [identity morphism] of ;
such that the following conditions are satisfied:
([associativity law]) for every triple of morphisms , and ;
([the unit law]) for every morphism .
=–
The set of objects of a category is often denoted . When the context is clear, we shall often write instead of ; we shall often denote the set by , and more simply by ( is the set of homomorphisms ). We often use diagrams in category theory. We say that a triangle of arrows commutes if , and that a square of arrows commutes if .
The sets involved in the definition of a category can be small? or large?. A category is said to be locally small if the set is small for every pair of objects . A locally small category is said to be [small] if the is small. A category which is not small is said to be large.
We shall denote by , the category of small sets: an object of this category is a small set and a morphism is a function ; the composition law is the usual composition of functions, and the unit morphisms are the identity functions. The category is large but locally small.
Let be a ring. We shall denote by the category of matrices with coefficients in ; an object of this category is a natural number and a morphism is a matrix with coefficients in ; the composite of a matrix with a matrix is their product ; the unit of is the unit matrix. The category is small.
- groups? as objects, group homomorphisms as morphisms.
- abelian groups? as objects, group homomorphisms as morphisms.
- rings? as objects, ring homomorphisms as morphisms.
- K-vector spaces? as objects, -linear maps as morphisms.
- topological spaces? as objects, continuous maps as morphisms.
- smooth manifolds? as objects, smooth maps as morphisms.
These classical examples are the original motivation for the term “category”: all of the above categories encapsulate one “kind of mathematical structure”. These are often called “concrete” categories (that term also has a technical definition? that these examples all satisfy).
Poset A poset? can be thought of as a category with its elements as objects and one morphism in each if is less than or equal to , but none otherwise.
Monoid A monoid can be thought of as a category with a single object and with . It is sometime useful to distinguish between a monoid and the associated category with a single object by denoting the latter . The category is often called the classifying category of .
The simplicial category has objects the ordered sets for , and for morphisms the order preserving maps .
By convention, we shall put and for every object and arrow . This means that we have
The fact that every category has an opposite is the basis of a fundamental duality principle of category theory. To every statement about the objects and arrows a general category corresponds a dual statement about the objects and arrows of the opposite category. This is analogous to the duality in projective geometrie: to every statement about the points and lines of a projective plane corresponds a dual statement about the points and lines of the dual projective plane .
Let and be two morphisms in a category. If and we say that is the inverse of . The inverse is unique when it exists and we write .
A morphism which admits an inverse is said to be [invertible] , or to be an [isomorphism].
A category is said to be a groupoid if every morphism of is invertible.
An endomorphism of an object is a morphism . The composition law gives the set of endomorphisms the structure of a monoid, the monoid of endomorphisms of .
An automorphism of an object is an endomorphism of which is invertible. The composition law gives the set of automorphisms of the structure of a group, the group of automorphisms of .
An endomorphism is said to be idempotent if .
is true for every pair of morphism .
is true for every pair of morphism . A morphism is epic iff the opposite morphism is monic. Hence the notion of epimorphism is dual to the notion of monomorphism.
Let and be two morphisms in a category. If , we say that is a left inverse of and that is a right inverse of . A morphism which admits a left inverse is monic, it is called a split monomorphism. A morphism which admits a right inverse is epic, it is called a split epimorphism. The notion of split epimorphism is dual to the notion of split monomorphism. A left inverse of a morphism is sometimes called a retraction of , and a right inverse a section.
If , and , then the composite is idempotent.
An idempotent is said to be split if there exists an object together with a pair of morphism and such that and .
A map in the category of sets is invertible iff it is bijective.
An isomorphism in the category of topological spaces is said to be a homeomorphism.
An isomorphism in the category of smooth manifolds is said to be a diffeomorphism.
The isomorphisms in a category form a groupoid with the same objects as . It is the groupoid of isomorphisms of .
An automorphism of a set is often called a permutation. The group of permutations of the set is the symmetric group? of degree .
Let be a ring. In the category of , the group of automorphisms of the object is the general linear group? .
In the category of sets , a map is monic iff it is injective, and it is epic iff it is surjective.
In a poset, every morphism is monic and epic.
Every type of mathematical structure carries with it a notion of isomorphism. Hence the collection of all structures of a given type form a groupoid.
The isomorphisms in a category form a groupoid having the same objects as , the groupoid of isomorphisms of .
A group is essentially a groupoid with a single object. The classifying category of a group is a groupoid with a single object . In fact, groupoids are the many object version of groups.
Two objects and of a category are said to be isomorphic, , if there exists an isomorphism . The relation is symmetric, transitive and reflexive. It is thus an equivalence relation between the objects of . An equivalence class for this equivalence relation is said to be an isomorphism class, or an isomorphism type.
In the category of sets , two sets and are isomorphic iff they have the same cardinality. In fact, the notion of cardinal number as defined by Cantor is an isomorphism class of sets.
Let us denote by the category of ordered sets and order preserving maps. Two ordered sets and are said to have the same order type if they are isomorphic in the category . An ordinal number is defined to be the order type of a well-ordered set.
Let us denote by the category of (left or right) vector spaces over a field . Every -vector space has a basis, and any two basis have the same cardinality. The dimension of is defined to be the cardinality of a basis. Two objects of are isomorphic iff they the same dimension.
Let us denote by the category of algebraically closed field extensions of a commutative field . Every algebraically closed field extension of has a transcendance basis over , and any two basis have the same cardinality. The transcendance dimension of over is defined to be the cardinality of a basis. Two objects of are isomorphic iff they have the same transcendance dimension over .
Prove that a morphism which is left and right invertible is invertible.
Prove that the inverse of a morphism is unique when it exists.
Show that the composite of two isomorphisms and is an isomorphism and that we have .
Show that a category is a groupoid iff every morphism has a left inverse.
Show that the composite of two monomorphisms (resp. epimorphisms) is a monomorphism (resp. an epimorphism).
Show that if the composite of two morphisms and is monic, then then so is . Dually, show that if is epic, then so is .
Show that a morphism which is right invertible is epic, and that a morphism which is left invertible is monic.
Give an example of a morphism in a category which is both monic and epic without been invertible.
Show that if a monomorphism has a right inverse, then it is invertible. Dually, show that if an epimorphism has a left inverse, then it is invertible.
Show that if an idempotent is monic or epic, then it is a unit.