Collapsing a contractible cofibration (source code)

= Collapsing a contractible cofibration

If $A\subseteq X$ is contractible and $(X,A)$ has the homotopy extension property, the quotient map
$$
q:X\to X/A
$$
is a <homotopy equivalence>. Extend a contraction of $A$ to $X$; its endpoint is constant on $A$ and therefore factors through $q$ to supply a homotopy inverse.