Let C\mathcal{C} be a and let

XfZgYX \xrightarrow{f} Z \xleftarrow{g} Y

be a cospan of .

A pullback (or fiber product) of (f,g)(f,g) is an object PP together with morphisms

pX:PX,pY:PYp_X:P\to X,\qquad p_Y:P\to Y

such that

fpX=gpYf\circ p_X = g\circ p_Y

(using ), and satisfying the following universal property:

For any object WW and morphisms u:WXu:W\to X, v:WYv:W\to Y with fu=gvf\circ u = g\circ v, there exists a unique morphism u,v:WP\langle u,v\rangle:W\to P such that

pXu,v=u,pYu,v=v.p_X\circ \langle u,v\rangle = u,\qquad p_Y\circ \langle u,v\rangle = v.

When it exists, the pullback is unique up to unique and is often denoted X×ZYX\times_Z Y.

Relationship to other constructions
  • A pullback is a special : it is the limit of the diagram XZYX\to Z \leftarrow Y.
  • In categories with and , one can realize a pullback as an equalizer of the two maps
    X×YZ,(x,y)f(x), (x,y)g(y).X\times Y \rightrightarrows Z,\quad (x,y)\mapsto f(x),\ (x,y)\mapsto g(y).
Examples

Example (Set)

In Set\mathbf{Set}, the pullback is the subset of the

X×Y={(x,y)}X\times Y=\{(x,y)\}

(consisting of ) given by

X×ZY  =  {(x,y)X×Yf(x)=g(y)}.X\times_Z Y \;=\; \{(x,y)\in X\times Y \mid f(x)=g(y)\}.

The maps pX,pYp_X,p_Y are the coordinate projections.

Example (Grp)

In Grp\mathbf{Grp}, the pullback of f:XZf:X\to Z and g:YZg:Y\to Z is the subgroup

X×ZY  =  {(x,y)X×Yf(x)=g(y)},X\times_Z Y \;=\; \{(x,y)\in X\times Y \mid f(x)=g(y)\},

with group operation defined componentwise and projections pX,pYp_X,p_Y.

Example (Top)

In Top\mathbf{Top}, the pullback is the same set-theoretic fiber product as in Set\mathbf{Set}, equipped with the subspace topology inherited from X×YX\times Y (with the product topology). The projections are continuous and satisfy the universal property in Top\mathbf{Top}.