Previously: Subfunctor Classifier.
We are used to thinking of a mapping as either being invertible or not. It’s a yes or no question. A mapping between sets is invertible if it’s both injective and surjective. It means that it never merges two elements into one, and it covers the whole target set.
But if you are willing to look closer, the failures of invertibility are a whole fascinating area of research. Things get a lot more interesting if you consider mapping between topological spaces, which have to skillfully navigate around various holes and tears in the target space, and shrink or glue together parts of the source space. I will be glossing over some of the topological considerations, concentrating on the big-picture intuitions (both culinary and cinematographic).
Fibrations
In what follows, we’ll be considering a function . We’ll call
a projection from the total set
to the base set
.
Let’s start by considering the first reason for a failure of invertibility: multiple elements being mapped into one. Even though we can’t invert such a mapping, we can use it to fibrate the source .
To each element we’ll assign a fiber, the set of elements of
that are mapped to
. By abuse of notation, we call such a fiber
:
For some ‘s, this set may be empty
; for others, it may contain lots elements.
Notice that is an isomorphism if and only if every fiber is a singleton set. This property gives rise to a very useful definition of equivalence in homotopy type theory, where we ask for every fiber to be contractible.
A set-theoretic union of all fibers reconstructs the total set .
Things get more interesting when we move to topological spaces and continuous functions. To begin with, we can define a path in as a continuous mapping from the unit interval
to
.
We can then ask if it’s possible to lift this path to , that is to construct
that lies above
. To do this, we pick the starting point
that lies above the starting point of
, that is
.
This setup can be summarized in the commuting square:
The lifting is then the diagonal arrow that makes both triangles commute:
It’s helpful to imagine a path as a trajectory of a point moving through a topological space. The parameter is then interpreted as time.
In homotopy theory we generalize this idea to the movement, or deformation, of arbitrary shapes, not just points.
If we describe such a shape as the image of some topological space , its deformation is a mapping
. Such potentially “fat” paths are called homotopies. In particular, if we replace
by a single point, we recover our “thin” paths.
A homotopy lifting property is expressed as the existence of the diagonal function in this commuting square, such that the resulting triangles commute:
In other words, given a homotopy of the shape
in the base, and an embedding
of this shape in
above
, we can construct a homotopy in
whose projection is
.
Cofibrations
In category theory, every construction has its dual, which is obtained by reversing all the arrows. In topology, there is an analogous relation called the Eckmann-Hilton duality. Besides reversing the arrows, it also dualizes products to exponentials (using the currying adjunction), and injections to surjections.
When dualizing the homotopy lifting diagram, we replace the trivial injection of into
by a surjection
of the exponential
onto
. Here,
is the set of functions
, or the path space of
. The surjection
maps every path
to its starting point by evaluating it at zero. (The evaluation map
is continuous in the compact-open topology of
.)
The homotopy lifting property is thus dualized to the homotopy extension property:
Corresponding to the fibration that deals with the failure of the injectivity of , the homotopy extension property deals with the failure of the surjectivity of
.
If the mapping has the extension property for all topological spaces
, it is called a cofibration.
Intuitively, a cofibration is an embedding of in
such that any “spaghettification” of
, that is embedding it in the path space
, can be extended to a spaghettification of
.
plays the role of an ambient space where these operations can be visualized. Later we’ll see how to construct a minimal such ambient space called a mapping cylinder.
Let’s deconstruct the meaning of the outer commuting square.
embeds
into
.
further embeds
into
, and we end up with the embedding of
inside
given by
.
embeds
into the path space of
(the dotted paths below).
The commuting condition for this square means that the starting points of all these paths, the result of applying to each of them, coincide with the embedding of
into
given by
. It’s like extruding a bunch of spaghetti, each strand corresponding to a point in
.
With this setup, we postulate the existence of the diagonal mapping that makes the two triangles commute. In other words,
is mapped to a family of paths in
which, when restricted to the image of
coincide with the original mapping
.
The spaghetti extruded through the shape contain the spaghetti extruded through the
shape.
Another intuitive description of this situation uses the idea of homotopy as animation. The strands of spaghetti become trajectories of particles.
We start by setting up the initial scene. We embed in the big space
using
.
We have the embedding , which induces the embedding of
into
:
Then we animate the embedding of using the homotopy
The initial frame of this animation is given by :
We say that is a cofibration if every such animation can be extended to the bigger animation:
whose starting frame is given by :
.
The commuting condition (for the lower triangle) means that the two animations coincide for all and
:
Just like a fiber is an epitome of non-injectiveness, one can define a cofiber as an epitome of non-surjectiveness. It’s essentially the part of that is not covered by
.
As a topological space it’s the result of shrinking the image of inside
to a point (the resulting topology is called the quotient topology).
Notice that, unlike with fibers, there is just one cofiber for a given cofibration (up to homotopy equivalence).
Lifting Property
A category theorist looking at the two diagrams that define, respectively, homotopy lifting and extension, will immediately ignore all the superfluous details. She will turn the second diagram upside down and merge it with the first diagram to get:
This is how we read the new diagram: If for any morphisms and
that make the outer square commute, there exist a diagonal morphism
that makes the two triangles commute, then we say that
has the left lifting property with respect to
. Equivalently,
has the right lifting property with respect to
.
Or we can say that the two morphisms are orthogonal to each other.
The motivation for this nomenclature is interesting. In the category of sets, the archetypal non-surjective function is the “absurd” (or, in set notation,
). It turns out that all surjective functions are its right liftings. In other words, all surjections are right-orthogonal to the simplest non-surjective function.
Indeed, the function at the bottom picks an element
. Similarly, the diagonal function picks an element
. The commuting triangle tells us that for every
there exists an
such that
.
Similarly, we can show that all injective functions are orthogonal to the archetypal non-injective function (or
).
Indeed, assume that maps two different elements
to a single element
. We could then pick
such that
and
. The diagonal
can map
to either
or
but not both, so we couldn’t make the upper triangle commute.
Incidentally, injections are also right-orthogonal to the archetypal non-injection.
Next: (Weak) Homotopy Equivalences.













