In mathematics, more specifically in category theory, a universal property is a property that characterizes up to an isomorphism the result of some constructions. Thus, universal properties can be used for defining some objects independently from the method chosen for constructing them. For example, the definitions of the integers from the natural numbers, of the rational numbers from the integers, of the real numbers from the rational numbers, and of polynomial rings from the field of their coefficients can all be done in terms of universal properties. In particular, the concept of universal property allows a simple proof that all constructions of real numbers are equivalent: it suffices to prove that they satisfy the same universal property.
Technically, a universal property is defined in terms of categories and functors by means of a universal morphism (see, below). Universal morphisms can also be thought more abstractly as initial or terminal objects of a comma category (see, below).
Universal properties occur almost everywhere in mathematics, and the use of the concept allows the use of general properties of universal properties for easily proving some properties that would need boring verifications otherwise. For example, given a commutative ring, the field of fractions of the quotient ring of by a prime ideal can be identified with the residue field of the localization of at ; that is
Rp/pRp\cong\operatorname{Frac}(R/p)
Other objects that can be defined by universal properties include: all free objects, direct products and direct sums, free groups, free lattices, Grothendieck group, completion of a metric space, completion of a ring, Dedekind–MacNeille completion, product topologies, Stone–Čech compactification, tensor products, inverse limit and direct limit, kernels and cokernels, quotient groups, quotient vector spaces, and other quotient spaces.
Before giving a formal definition of universal properties, we offer some motivation for studying such constructions.
To understand the definition of a universal construction, it is important to look at examples. Universal constructions were not defined out of thin air, but were rather defined after mathematicians began noticing a pattern in many mathematical constructions (see Examples below). Hence, the definition may not make sense to one at first, but will become clear when one reconciles it with concrete examples.
Let
F:l{C}\tol{D}
l{C}
l{D}
X
l{D}
A
A'
l{C}
h:A\toA'
l{C}
Then, the functor
F
A
A'
h
l{C}
F(A)
F(A')
F(h)
l{D}
A universal morphism from
X
F
(A,u:X\toF(A))
l{D}
For any morphism of the form
f:X\toF(A')
l{D}
h:A\toA'
l{C}
We can dualize this categorical concept. A universal morphism from
F
X
(A,u:F(A)\toX)
For any morphism of the form
f:F(A')\toX
l{D}
h:A'\toA
l{C}
Note that in each definition, the arrows are reversed. Both definitions are necessary to describe universal constructions which appear in mathematics; but they also arise due to the inherent duality present in category theory.In either case, we say that the pair
(A,u)
Universal morphisms can be described more concisely as initial and terminal objects in a comma category (i.e. one where morphisms are seen as objects in their own right).
Let
F:l{C}\tol{D}
X
l{D}
(X\downarrowF)
(B,f:X\toF(B))
B
l{C}
(B,f:X\toF(B))
(B',f':X\toF(B'))
h:B\toB'
l{C}
(A,u:X\toF(A))
(X\downarrowF)
(A',f:X\toF(A'))
h:A\toA'
Note that the equality here simply means the diagrams are the same. Also note that the diagram on the right side of the equality is the exact same as the one offered in defining a universal morphism from
X
F
X
F
(X\downarrowF)
Conversely, recall that the comma category
(F\downarrowX)
(B,f:F(B)\toX)
B
l{C}
(B,f:F(B)\toX)
(B',f':F(B')\toX)
h:B\toB'
l{C}
(A,u:F(A)\toX)
(F\downarrowX)
(A',f:F(A')\toX)
h:A'\toA
The diagram on the right side of the equality is the same diagram pictured when defining a universal morphism from
F
X
F
X
(F\downarrowX)
Below are a few examples, to highlight the general idea. The reader can construct numerous other examples by consulting the articles mentioned in the introduction.
Let
l{C}
K
K
l{D}
K
K
U
K
K
V
K
T(V)
“Any linear map from
V
A
T(V)
A
(T(V),i)
i:V\toU(T(V))
V
U
Since this construction works for any vector space
V
T
K
K
T
U
A categorical product can be characterized by a universal construction. For concreteness, one may consider the Cartesian product in Set, the direct product in Grp, or the product topology in Top, where products exist.
Let
X
Y
l{C}
X
Y
X
Y
\pi1
X x Y\toX
\pi2
X x Y\toY
Z
l{C}
f:Z\toX
g:Z\toY
h:Z\toX x Y
f=\pi1\circh
g=\pi2\circh
To understand this characterization as a universal property, take the category
l{D}
l{C} x l{C}
\Delta:l{C}\tol{C} x l{C}
\Delta(X)=(X,X)
\Delta(f:X\toY)=(f,f)
(X x Y,(\pi1,\pi2))
\Delta
(X,Y)
l{C} x l{C}
(f,g)
(Z,Z)
(X,Y)
\Delta(h:Z\toX x Y)=(h,h)
\Delta(Z)=(Z,Z)
\Delta(X x Y)=(X x Y,X x Y)
(\pi1,\pi2)
(\pi1,\pi2)
\pi1(x,y)=x
\pi2(x,y)=y
Z
f,g
h=\langlex,y\rangle(z)=(f(z),g(z))
Categorical products are a particular kind of limit in category theory. One can generalize the above example to arbitrary limits and colimits.
Let
l{J}
l{C}
l{J}
l{C}l{J}
\Delta:l{C}\tol{C}l{J}
N
l{C}
\Delta(N):l{J}\tol{C}
\Delta(N)(X)=N
X
l{J}
\Delta(N)(f)=1N
f:X\toY
l{J}
f:N\toM
l{C}
\Delta(f):\Delta(N)\to\Delta(M)
l{C}l{J
X
l{J}
X
f:N\toM
l{J}
Given a functor
F:l{J}\tol{C}
l{C}l{J}
F
\Delta
F
F
F
\Delta
Defining a quantity does not guarantee its existence. Given a functor
F:l{C}\tol{D}
X
l{D}
X
F
(A,u)
(A',u')
k:A\toA'
u'=F(k)\circu
(A,u')
It is the pair
(A,u)
A
(A,u)
k:A\toA'
(A',u')
u'=F(k)\circu
The definition of a universal morphism can be rephrased in a variety of ways. Let
F:l{C}\tol{D}
X
l{D}
(A,u)
X
F
(A,u)
(X\downarrowF)
(A,F(\bullet)\circu)
Homl{D}(X,F(-))
(F(\bullet)\circu)B:Homl{C
for each object
B
l{C}.
The dual statements are also equivalent:
(A,u)
F
X
(A,u)
(F\downarrowX)
(A,u\circF(\bullet))
Homl{D}(F(-),X)
(u\circF(\bullet))B:Homl{C
for each object
B
l{C}.
Suppose
(A1,u1)
X1
F
(A2,u2)
X2
F
h:X1\toX2
g:A1\toA2
If every object
Xi
l{D}
F
Xi\mapstoAi
h\mapstog
G:l{D}\tol{C}
ui
1l{D}
l{D}
F\circG
(F,G)
G
F
F
G
Similar statements apply to the dual situation of terminal morphisms from
F
X
l{C}
G:l{C}\tol{D}
F
F
G
Indeed, all pairs of adjoint functors arise from universal constructions in this manner. Let
F
G
η
\epsilon
l{C}
l{D}
X
l{C}
(F(X),ηX)
X
G
f:X\toG(Y)
g:F(X)\toY
Y
l{D}
(G(Y),\epsilonY)
F
Y
g:F(X)\toY
f:X\toG(Y)
Universal constructions are more general than adjoint functor pairs: a universal construction is like an optimization problem; it gives rise to an adjoint pair if and only if this problem has a solution for every object of
l{C}
l{D}
Universal properties of various topological constructions were presented by Pierre Samuel in 1948. They were later used extensively by Bourbaki. The closely related concept of adjoint functors was introduced independently by Daniel Kan in 1958.