# Homotopy colimit and limit

In mathematics, especially in algebraic topology, the homotopy limit and colimit$^{pg52}$ are variants of the notions of limit and colimit extended to the homotopy category ${\text{Ho}}({\textbf {Top}})$. The main idea is this: if we have a diagram
   $F:I\to {\textbf {Top}}$
considered as an object in the homotopy category of diagrams $F\in {\text{Ho}}({\textbf {Top}}^{I})$, (where the homotopy equivalence of diagrams is considered pointwise), then the homotopy limit and colimits then correspond to the cone and cocone
   ${\begin{aligned}{\underset {\leftarrow I}{\text{Holim}}}(F)&:*\to {\textbf {Top}}\\{\underset {\rightarrow I}{\text{Hocolim}}}(F)&:*\to {\textbf {Top}}\end{aligned}}$
which are objects in the homotopy category ${\text{Ho}}({\textbf {Top}}^{*})$, where $*$ is the category with one object and one morphism. Note this category is equivalent to the standard homotopy category ${\text{Ho}}({\textbf {Top}})$ since the latter homotopy functor category has functors which picks out an object in ${\text{Top}}$ and a natural transformation corresponds to a continuous function of topological spaces. Note this construction can be generalized to model categories, which give techniques for constructing homotopy limits and colimits in terms of other homotopy categories, such as derived categories. Another perspective formalizing these kinds of constructions are derivators$^{pg193}$ which are a new framework for homotopical algebra.

## Introductory examples
### Homotopy pushout

The concept of homotopy colimit$^{pg4-8}$ is a generalization of homotopy pushouts, such as the mapping cylinder used to define a cofibration. This notion is motivated by the following observation: the (ordinary) pushout
    $D^{n}\sqcup _{S^{n-1}}pt$
is the space obtained by contracting the (n−1)-sphere (which is the boundary of the n-dimensional disk) to a single point. This space is homeomorphic to the n-sphere S$^n$. On the other hand, the pushout
    $pt\sqcup _{S^{n-1}}pt$
is a point. Therefore, even though the (contractible) disk D$^n$ was replaced by a point, (which is homotopy equivalent to the disk), the two pushouts are not homotopy (or weakly) equivalent.
Therefore, the pushout is not well-aligned with a principle of homotopy theory, which considers weakly equivalent spaces as carrying the same information: if one (or more) of the spaces used to form the pushout is replaced by a weakly equivalent space, the pushout is not guaranteed to stay weakly equivalent. The homotopy pushout rectifies this defect.
The homotopy pushout of two maps $A\leftarrow B\rightarrow C$ of topological spaces is defined as
    $A\sqcup _{1}B\times [0,1]\sqcup _{0}B\sqcup _{1}B\times [0,1]\sqcup _{0}C$,
i.e., instead of glueing B in both A and C, two copies of a cylinder on B are glued together and their ends are glued to A and C. For example, the homotopy colimit of the diagram (whose maps are projections)
    $X_{0}\leftarrow X_{0}\times X_{1}\rightarrow X_{1}$
is the join $X_{0}*X_{1}$.
It can be shown that the homotopy pushout does not share the defect of the ordinary pushout: replacing A, B and / or C by a homotopic space, the homotopy pushout will also be homotopic. In this sense, the homotopy pushouts treats homotopic spaces as well as the (ordinary) pushout does with homeomorphic spaces.

### Composition of maps

Another useful and motivating examples of a homotopy colimit is constructing models for the homotopy colimit of the diagram
   $A\xrightarrow {f} X\xrightarrow {g} Y$
of topological spaces. There are a number of ways to model this colimit: the first is to consider the space
   $\left[(A\times I)\coprod (X\times I)\coprod Y\right]/\sim$
where $\sim$ is the equivalence relation identifying
   ${\begin{aligned}(a,1)&\sim (f(a),0)\\(x,1)&\sim g(x)\end{aligned}}$
which can pictorially be described as the picture
Because we can similarly interpret the diagram above as the commutative diagram, from properties of categories, we get a commutative diagram
giving a homotopy colimit. We could guess this looks like
but notice we have introduced a new cycle to fill in the new data of the composition. This creates a technical problem which can be solved using simplicial techniques: giving a method for constructing a model for homotopy colimits. The new diagram, forming the homotopy colimit of the composition diagram pictorially is represented as
giving another model of the homotopy colimit which is homotopy equivalent to the original diagram (without the composition of $g\circ f$) given above.

### Mapping telescope

The homotopy colimit of a sequence of spaces
    $X_{1}\to X_{2}\to \cdots ,$
is the mapping telescope. One example computation is taking the homotopy colimit of a sequence of cofibrations. The colimit of$^{pg62}$ this diagram gives a homotopy colimit. This implies we could compute the homotopy colimit of any mapping telescope by replacing the maps with cofibrations.

## General definition
### Homotopy limit

Treating examples such as the mapping telescope and the homotopy pushout on an equal footing can be achieved by considering an I-diagram of spaces, where I is some "indexing" category. This is a functor
    $X:I\to Spaces,$
i.e., to each object i in I, one assigns a space X$_i$ and maps between them, according to the maps in I. The category of such diagrams is denoted Spaces$^I$.
There is a natural functor called the diagonal,
    $\Delta _{0}:Spaces\to Spaces^{I}$
which sends any space X to the diagram which consists of X everywhere (and the identity of X as maps between them). In (ordinary) category theory, the right adjoint to this functor is the limit. The homotopy limit is defined by altering this situation: it is the right adjoint to
    $\Delta :Spaces\to Spaces^{I}$
which sends a space X to the I-diagram which at some object i gives
    $X\times |N(I/i)|$
Here I/i is the slice category (its objects are arrows j → i, where j is any object of I), N is the nerve of this category and |-| is the topological realization of this simplicial set.

### Homotopy colimit

Similarly, one can define a colimit as the left adjoint to the diagonal functor Δ$_0$ given above. To define a homotopy colimit, we must modify Δ$_0$ in a different way. A homotopy colimit can be defined as the left adjoint to a functor Δ : Spaces → Spaces$^I$ where
    Δ(X)(i) = Hom$_{Spaces}$ (|N(I$^{op}$ /i)|, X),
where I$^{op}$ is the opposite category of I. Although this is not the same as the functor Δ above, it does share the property that if the geometric realization of the nerve category (|N(-)|) is replaced with a point space, we recover the original functor Δ$_0$.

## Examples

A homotopy pullback (or homotopy fiber-product) is the dual concept of a homotopy pushout.It satisfies the universal property of a pullback up to homotopy. Concretely, given $f:X\to Z$ and $g:Y\to Z$, it can be constructed as
    $X\times _{Z}^{h}Y:=X\times _{Z}Z^{I}\times _{Z}Y=\{(x,\gamma ,y)|f(x)=\gamma (0),g(y)=\gamma (1)\}.$
For example, the homotopy fiber of $f:X\to Y$ over a point y is the homotopy pullback of $f$ along $y\hookrightarrow Y$. The homotopy pullback of $f$ along the identity is nothing but the mapping path space of $f$.
The universal property of a homotopy pullback yields the natural map $X\times _{Z}Y\to X\times _{Z}^{h}Y$, a special case of a natural map from a limit to a homotopy limit. In the case of a homotopy fiber, this map is an inclusion of a fiber to a homotopy fiber.

## Construction of colimits with simplicial replacements

Given a small category $I$ and a diagram $D:I\to {\textbf {Top}}$, we can construct the homotopy colimit using a simplicial replacement of the diagram. This is a simplicial space, ${\text{srep}}(D)_{\bullet }$ given by the diagram$^{pg16-17}$
where
   ${\text{srep}}(D)_{n}={\underset {i_{0}\leftarrow i_{1}\leftarrow \cdots \leftarrow i_{n}}{\coprod }}D(i_{n})$
given by chains of composable maps in the indexing category $I$. Then, the homotopy colimit of $D$ can be constructed as the geometric realization of this simplicial space, so
   ${\underset {\to }{\text{hocolim}}}D=|{\text{srep}}(D)_{\bullet }|$
Notice that this agrees with the picture given above for the composition diagram of $A\to X\to Y$.

## Relation to the (ordinary) colimit and limit

There is always a map
    $\mathrm {hocolim} X_{i}\to \mathrm {colim} X_{i}.$
Typically, this map is not a weak equivalence. For example, the homotopy pushout encountered above always maps to the ordinary pushout. This map is not typically a weak equivalence, for example the join is not weakly equivalent to the pushout of $X_{0}\leftarrow X_{0}\times X_{1}\rightarrow X_{1}$, which is a point.

## Further examples and applications

Just as limit is used to complete a ring, holim is used to complete a spectrum.