Thursday, May 15, 2014

Pullbacks : pairing and matching

The prerequisite to read and understand most, if not all, of this top directory
is no more than a basic knowledge of sets and functions.
Example of a pullback
Here is a simple, elementary example of a pullback:
Suppose you have a set of men and a set of women, each with a political preference.

This situation can be expressed mathematically by
three sets, named Men, Women, and Parties,
connected by two functions,
named PolPref-Men and PolPref-Women (for Political Preference),
with a common target, Parties, but with sources Men and Women.
This situation is called, by categorists, a cospan in the category of sets,
and is usually represented most compactly in one or another of the two one-line formats,
which differ only in where the names of the functions are placed:
PolPref-Men PolPref-Women Men ------------> Parties <-------------- Women PolPref-Men: Men --------> Parties <-------- Women :PolPref-Women
but in preparation for the next step may be drawn as an angle:
Men Women \ / PolPref-Men \ / PolPref-Women \ / _| |_ Parties
You want to construct
a set of all pairs of men and women who have the same political preference.
That is called by categorists the pullback (@ncatlab, @Wikipedia)
(sometimes called "fibered product")
of the above diagram,
and is commonly denoted, for the situation above, as Men ×Parties Women,
and diagrammed as follows:
Men ×Parties Women / \ / \ / \ |_ _| Men Women \ / PolPref-Men \ / PolPref-Women \ / _| |_ Parties ,
where the arrows from Men ×Parties Women are the evident projections.
The general case
For the general case (at least in the category of sets),
we replace the specific sets mentioned above by names representing arbitrary sets:
X ×Z Y / \ / \ / \ |_ _| X Y \ / f \ / g \ / _| |_ Z
Some remarks on terminology

Two arrows that have the same source, such as the top two in the above diagram,
are called a span,
which is a special case of a cone,
which is any number (including, as a very special case, zero)
of arrows having a common source.
In both category theory and graph theory the common vertex is called the source.
(However, in category theory it has been common to call it the domain of the arrow,
based on the case of a function in the category of sets.)

Two arrows that have the same target, such as the bottom two in the above diagram,
are called a cospan (pronounced "co-span"),
which is a special case of a cocone,
which is any number (including, as a very special case, zero)
of arrows having a common target.
In category theory the common vertex is called the target
(or sometimes the codomain,
based on the case of a function in the category of sets).
In graph theory the common vertex is called the sink.

(As to the usefulness of the "span/cospan" terminology,
here is an example of its use in a more complex situation:
Cospans and spans of graphs:
a categorical algebra for the sequential and parallel composition of discrete systems

by L. de Francesco Albasini, N. Sabadini, R.F.C. Walters.)

Constructions of pullbacks
There are three valid and useful ways to construct the pullback.
In the first way, we first form the cartesian product set Men × Women,
then apply the comprehension principle to form the subset
{ (man, woman) ∈ Men × Women : PolPref(man) = PolPref(woman) }
Here "man" and "woman" are variables ranging over, respectively,
the sets Men and Women.
The second way is to form the triple cartesian product set Men × Parties × Women,
then to take the subset of that defined by
{ (man, party, woman) ∈ Men × Parties × Women : PolPref(man) = party = PolPref(woman) }
In the third way, the fibered product,
for each party ∈ Parties we form the subsets { man ∈ Men : PolPref(man) = party } and { woman ∈ Women : PolPref(woman) = party },
i.e. the fibers of PolPref : Men ----> Parties and PolPref : Women ----> Parties over party,
then take the cartesian product of those subsets.
After this is done for each party ∈ Parties
we take the sum (coproduct or disjoint union) of the cartesian products.
The kernel pair: when the two arrows of a cospan are equal
An important special case of the pullback is when
the two arrows that make up the cospan are equal.
Suppose, for example, we start with
PolPref-Men PolPref-Men Men ------------> Parties <------------ Men
to form
Men ×Parties Men / \ / \ / \ |_ _| Men Men \ / PolPref-Men \ / PolPref-Men \ / _| |_ Parties ,

This is usually called by categorists the kernel pair,
although G.M. Kelly called it in a 1969 paper the discriminant.
Why it's called "pullback" and aligning the diagram horizontally and vertically

Drawing the pullback diagram as a diamond balanced on its lowest vertex
is useful in emphasizing that
the two arrows of the cospan play an equal role in defining the pullback, due to that facts that the binary cartesian product is pseudo-symmetric
(i.e., A × B is not equal to B × A, but isomorphic (or bijective)),
while equality is symmetric.
However, in some cases
the arrows play different roles before the pullback is created.
In particular, it often desired to view one of the arrows as being fixed,
while the other arrow is allowed to vary.
To emphasize those different roles,
and also to make drawing such diagrams a lot easier :-)
it is customary in most mathematical writing
to draw the pullback square with horizontal and vertical sides,
rather than sloping sides.
It is often the case that the arrow at the bottom of the square is viewed as fixed,
while the right arrow is viewed as varying.

Here is an example,
where we also use symbols intended to represent arbitrary sets and functions,
not those in the specific example presented above.
(The diagram is presented first using my home-brew HTML format, then using the American Mathematical Society's amsmath cd package.)

X ×Y B --------> B | | | | g | | V V X -------------> Y f

\begin{equation}\begin{CD} X \times_Y B @>>> B\\ @VVV @VVgV\\ X @>>f> Y\\ \end{CD}\end{equation}

Here $f$ is viewed as a fixed arrow,
while $B \xrightarrow{g} Y$ varies over all the arrows into $Y$,
(called "objects over $Y$").
It is this point of view that caused the construction to be called “pullback”:
it “pulls-back” {objects over $Y$} to {objects over $X$}.


For a result about pullbacks which is used repeatedly in both the theory and applications of categories, see “The Pullback Lemma”.

No comments:

Post a Comment