This page is about homotopy as a transformation. For homotopy sets in homotopy categories, see homotopy (as an operation).
In many categories in which one does homotopy theory, there is a notion of homotopy between morphisms, which is closely related to the higher morphisms in higher category theory. If we regard such a category as a presentation of an -category, then homotopies present the 2-cells in the resulting -category.
If is enriched over Top, then a homotopy in between maps is a map in such that and . In itself this is the classical notion.
If has copowers, then an equivalent definition is a map , while if it has powers, an equivalent definition is a map .
There is a similar definition in a simplicially enriched category, replacing with the 1-simplex , with the caveat that in this case not all simplicial homotopies need be composable even if they match correctly. (This depends on whether or not all (2,1)-horns in the simplicial set, , have fillers.) Likewise in a dg-category we can use the “chain complex interval” to get a notion of chain homotopy.
If is instead a model category, it has an intrinsic notion of homotopy determined by its factorizations.
A path object for an object is a factorization of the diagonal as
where is a weak equivalence.
A cylinder object is a factorization of the codiagonal (or “fold”) as
where is a weak equivalence.
Frequently one asks as well that be a fibration and be a cofibration; we call such paths and cylinders good. Clearly any object has a good path object and a good cylinder object. However, in the usual model structure on topological spaces, the obvious object is a cylinder, but not a good cylinder unless itself is cofibrant.
We think of as an analogue of and as an analogue of . In fact, if is a -enriched model category and is cofibrant, then these powers and copowers are in fact examples of path and cylinder objects. (This works more generally if is a -model category and is a good cylinder object for the cofibrant unit object of .)
Then:
A left homotopy between two morphisms in is a morphism such that
A right homotopy between two morphisms in is a morphism such that
By the above remarks about powers and copowers, it follows that in a -model category, any enriched homotopy between maps is a left homotopy if is cofibrant and a right homotopy if is fibrant. Similar remarks hold for other enrichments.
Path objects and right homotopies also exist in various other situations, for instance, if there is not the full structure of a model category but just of a category of fibrant objects is given. Likewise for cylinder objects and left homotopies in a category of cofibrant objects.
Likewise if there is a cylinder functor, one gets functorially defined cylinder objects.
See the references at homotopy theory and model category.