Let C\mathcal{C} be a and let

X→fZ←gYX \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:P→X,pY:P→Yp_X:P\to X,\qquad p_Y:P\to Y

such that

f∘pX=g∘pYf\circ p_X = g\circ p_Y

(using ), and satisfying the following universal property:

For any object WW and morphisms u:W→Xu:W\to X, v:W→Yv:W\to Y with f∘u=g∘vf\circ u = g\circ v, there exists a unique morphism ⟨u,v⟩:W→P\langle u,v\rangle:W\to P such that

pX∘⟨u,v⟩=u,pY∘⟨u,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 X→Z←YX\to Z \leftarrow Y.
  • In categories with and , one can realize a pullback as an equalizer of the two maps
    X×Y⇉Z,(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×Y∣f(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:X→Zf:X\to Z and g:Y→Zg:Y\to Z is the subgroup

X×ZY  =  {(x,y)∈X×Y∣f(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}.