nLab
homotopy inverse

Let be the relation of being homotopic (for example between morphisms in the category Top). Let f:XY and g:YX be two morphisms. We say that g is a left homotopy inverse to f or that f is a right homotopy inverse to g if gfid X. A homotopy inverse of f is a map which is simultaneously a left and a right homotopy inverse to f.

f is said to be a homotopy equivalence if it has a left and a right homotopy inverse. In that case we can choose the left and right homotopy inverses of f to be equal. To show this denote by g L the left and by g R the right homotopy inverse of f. Then

g Lg L(fg R)=(g Lf)g Rg R.g_L \sim g_L\circ (f\circ g_R) = (g_L\circ f)\circ g_R \sim g_R.

Hence

fg Lfg Rid X,f\circ g_L\sim f\circ g_R\sim id_X,

therefore g L is not only a left, but also a right, homotopy inverse to f.

This makes sense in any category equipped with an equivalence relation , which is compatible with the composition (and with the equality of morphisms).