The homotopy extension property

Jeffery MensahAugust 9, 2025~2500 words

In this post, we discuss equivalent characterizations of the homotopy extension property of a topological pair (X,A)(X, A), which states that a homotopy between two maps from AA to any target space YY can be extended to the entire space given prescribed "initial data" on XX. In the preliminary chapter of Hatcher's Algebraic Topology, an equivalent characterization is given for pairs where AA is closed in terms of the existence of a certain retract. In the appendix, a more general proof of this characterization due to Strøm is given which removes this restriction on the pair.

We provide a similar proof of this characterization and specifically investigate the case where AA is not necessarily closed, determining an additional necessary condition on the pair for the homotopy extension property to hold. To begin, we recall the definition of the property.

Definition. Let (X,A)Top2(X, A) \in \mathbf{Top}_2 be a pair of topological spaces. We say (X,A)(X, A) has the homotopy extension property if for any space YY and map f ⁣:XYf \colon X \to Y, a homotopy H ⁣:A×[0,1]YH \colon A \times [0, 1] \to Y of fAf|_A can be extended to a homotopy H~ ⁣:X×[0,1]Y\widetilde{H} \colon X \times [0, 1] \to Y of ff.

The data given in the above definition consists two pieces: a map f ⁣:XYf \colon X \to Y and a homotopy H ⁣:A×[0,1]YH \colon A \times [0, 1] \to Y which agrees with ff after making the identification AA×{0}A \cong A \times \{0\}. By forming the pushout, we may combine this data to obtain a single continuous map XA(A×I)YX \cup_A (A \times I) \to Y. Similarly, the inclusion XX×IX \to X \times I given by x(x,0)x \mapsto (x, 0) and the inclusion A×IX×IA \times I \to X \times I make the diagram

commute, which by the universal property produces a map j ⁣:XA(A×I)X×Ij \colon X \cup_A (A \times I) \to X \times I which is injective and has image (X×{0})(A×I)(X \times \{0\}) \cup (A \times I). With these observations, one may rephrase the homotopy extension property for the pair (X,A)(X, A) in terms of the pushout.

Proposition. A pair (X,A)Top2(X, A) \in \mathbf{Top}_2 has the homotopy extension property if and only if for any space YY and map ϕ ⁣:XA(A×I)Y\phi \colon X \cup_A (A \times I) \to Y, there exists a map H~ ⁣:X×IY\widetilde{H} \colon X \times I \to Y such that ϕ=H~j\phi = \widetilde{H} \circ j.

As one might expect, this also gives an equivalent characterization of the homotopy extension property purely in terms of the map jj.

Proposition. A pair (X,A)Top2(X, A) \in \mathbf{Top}_2 has the homotopy extension property if and only if j ⁣:XA(A×I)X×Ij \colon X \cup_A (A \times I) \to X \times I has a continuous left inverse.

Proof. First, suppose that the pair (X,A)(X, A) has the homotopy extension property. Applying the previous proposition to Y=XA(A×I){Y = X \cup_A (A \times I)} and ϕ=id\phi = \mathrm{id}, we find that there exists a map H~\widetilde{H} such that id=H~j\mathrm{id} = \widetilde{H} \circ j. Thus, jj has a continuous left inverse.

Conversely, suppose jj has a continuous left inverse, kk. Given a space YY and map ϕ ⁣:XA(A×I)Y\phi \colon X \cup_A (A \times I) \to Y, let H~=ϕk\widetilde{H} = \phi \circ k. Then ϕ=H~j\phi = \widetilde{H} \circ j, so the homotopy extension property holds.

\blacksquare

As noted before, the map jj has image T=(X×{0})(A×I)T = (X \times \{0\}) \cup (A \times I), so if a continuous left inverse kk to jj exists, the composition jk ⁣:X×IX×Ij \circ k \colon X \times I \to X \times I is a retract to the subspace TT, which gives us a necessary condition for the homotopy extension property to hold. It turns out the existence of a retract is also sufficient, but proving this requires a small amount of work. We first prove this under a mild hypothesis on AA, and then examine what happens if this hypothesis does not hold.

Proposition. Let (X,A)Top2(X, A) \in \mathbf{Top}_2 and let AA be closed. If there exists a retract r ⁣:X×I(X×{0})A×Ir \colon X \times I \to (X \times \{0\}) \cup A \times I, then the pair has the homotopy extension property.

Proof. We recall the pasting lemma, which states that if a space YY is the union of two closed subspaces UU and VV, then YUUVVY \cong U \cup_{U \cap V} V. Clearly, this is the case in Set\mathbf{Set}, and given another space ZZ and maps f ⁣:UZf \colon U \to Z and g ⁣:VZg \colon V \to Z which agree on the intersection, the induced pushout map fUVgf \cup_{U \cap V} g is continuous: for every closed set WZW \subseteq Z,

(fUVg)1(W)=f1(W)g1(W),(f \cup_{U \cap V} g)^{-1}(W) = f^{-1}(W) \cup g^{-1}(W),

which is closed in YY, implying YY is also the pushout in Top\mathbf{Top}. To apply the lemma, note that A×IA \times I and X×{0}{X \times \{0\}} are both closed in X×IX \times I, so

(X×{0})(A×I)(X×{0})A×{0}(A×I)XA(A×I),(X \times \{0\}) \cup (A \times I) \cong (X \times \{0\}) \cup_{A \times \{0\}} (A \times I) \cong X \cup_{A} (A \times I),

where the first isomorphism is set-theoretically the identity and the second is via the map (x,0)x(x, 0) \mapsto x. Post-composing these isomorphisms with the retract rr yields a left inverse to j ⁣:XA(A×I)X×Ij \colon X \cup_{A} (A \times I) \to X \times I. Thus, the homotopy extension property holds.

\blacksquare

Note that the hypothesis that AA is closed is automatically satisfied if XX is Hausdorff. Indeed, (X×{0})(A×I)(X \times \{0\}) \cup (A \times I) must be a closed subspace of X×IX \times I, since it is equal to the equalizer eq(id,r)={(x,t)=r(x,t)}\mathrm{eq}(\mathrm{id}, r) = \{(x, t) = r(x, t)\} and the product X×IX \times I is also Hausdorff. Taking a slice (say, t=1t = 1) shows that AA must be closed.

In the "pathological" case in where AA is not closed, XX cannot be Hausdorff, so there exists a pair of points in XX which are not Hausdorff-separable. As it turns out, the "frontier" frX(A)=defclX(A)A\mathrm{fr}_X(A) \overset{\text{def}}{=} \mathrm{cl}_X(A) - A solely consists of such points, which yields a necessary condition for a retract to exist.

Proposition. Let (X,A)Top2(X, A) \in \mathbf{Top}_2 and T=(X×{0})A×IT = (X \times \{0\}) \cup A \times I. If there exists a retract r ⁣:X×ITr \colon X \times I \to T, then every point bfrX(A)b \in \mathrm{fr}_X(A) is Hausdorff-inseparable from some point aAa \in A (depending on bb).

Proof. Let πX ⁣:X×IX\pi_X \colon X \times I \to X be the projection onto XX and let r~=πXr\widetilde{r} = \pi_X \circ r. Fix some t(0,1]t \in (0, 1] and define r~t ⁣:XX\widetilde{r}_t \colon X \to X by xr~(x,t)x \mapsto \widetilde{r}(x, t). Since rA×Ir|_{A \times I} is the identity, r~tA=id\widetilde{r}_{t}|_{A} = \mathrm{id} as well. Furthermore,

r(frX(A)×{t})clX×I(A×{t})T=(clX(A)×{t})T=A×{t},r\big(\mathrm{fr}_X(A) \times \{t\}\big) \subseteq \mathrm{cl}_{X \times I}\big(A \times \{t\}\big) \cap T = \big(\mathrm{cl}_{X}(A) \times \{t\}\big) \cap T = A \times \{t\},

so r~t\widetilde{r}_t sends the frontier frX(A)\mathrm{fr}_X(A) into AA. Let bfrX(A)b \in \mathrm{fr}_X(A), and a=r~t(b)Aa = \widetilde{r}_t(b) \in A; we show that aa and bb are inseparable. To this end, let UU and VV be open sets containing aa and bb respectively. Then W=Vr~t1(U)W = V \cap \widetilde{r}_t^{-1}(U) is a nonempty open set containing bb, which implies WAW \cap A \neq \varnothing, since bb is a limit point of AA. Thus,

WA=V(r~t1(U)A)=Vr~tA1(U)VU,\varnothing \subsetneq W \cap A = V \cap \big(\widetilde{r}_t^{-1}(U) \cap A\big) = V \cap \widetilde{r}_t|_{A}^{-1}(U) \subseteq V \cap U,

so aa and bb are inseparable.

\blacksquare

For the sake of visualization, we give an example of a pair (X,A)(X, A) satisfying the hypotheses of the previous proposition, where AA is not closed. Before doing so, we make some qualitative remarks on the pair which will motivate the subsequent construction. Note that if xx is a frontier point, then the path α(s)=r~(x,s)\alpha(s) = \widetilde{r}(x, s) lies in AA for s(0,1]s \in (0, 1]. Fix some t(0,1]t \in (0, 1] and let β=r~tα\beta = \widetilde{r}_t \circ \alpha. Then α(0,1]=β(0,1]\alpha|_{(0, 1]} = \beta|_{(0, 1]}, but β(0)=α(t)\beta(0) = \alpha(t). If the path α\alpha were injective, this would imply the image of the path could be set-theoretically identified with the unit interval. Transporting the subspace topology on the path to the interval therefore yields a topology τ\tau on [0,1][0,1] with the property that the maps

pt ⁣:([0,1],τstandard)([0,1],τ);pt(s)={tif s=0sif s0p_t \colon ([0, 1], \tau_{\rm standard}) \to ([0, 1], \tau); \quad \quad \quad p_t(s) = \begin{cases} t &\text{if } s = 0 \\ s &\text{if } s \neq 0 \end{cases}

are continuous for all t[0,1]t \in [0, 1]. Here, the domain has the standard topology, and the codomain has topology τ\tau.

Example. Let X=([0,1],τ)X = ([0, 1], \tau) where τ\tau is the initial segment topology τ={,[0,1]}{[0,s)s[0,1]}\,\tau = \big\{\varnothing, [0,1]\big\} \cup \big\{[0, s) \mid s \in [0, 1]\big\}, and let A=(0,1]A = (0, 1]. We define a retract r ⁣:X×I(X×{0})(A×I)r \colon X \times I \to (X \times \{0\}) \cup (A \times I) by

r(s,t)={(t,t)if s=0(s,t)if s0.r(s, t) = \begin{cases} (t, t) &\text{if } s = 0 \\ (s, t) &\text{if } s \neq 0 \end{cases}.

Continuity only needs to be checked for each point on {0}×I\{0\} \times I. Given a point (0,t)(0, t) and basic open neighborhood V=[0,t+ϵ1)×(tϵ2,t+ϵ2)V = [0, t + \epsilon_1) \times (t - \epsilon_2, t + \epsilon_2) of its image, we find a basic open neighborhood UU of (0,t)(0, t) which maps into VV. To do this, take the minimum δ=min(ϵ1,ϵ2)\delta = \min(\epsilon_1, \epsilon_2) and let U=[0,t+δ)×(tδ,t+δ)U = [0, t + \delta) \times (t - \delta, t + \delta).

One easily checks that r(U)Vr(U) \subseteq V, so rr is indeed continuous. Furthermore, one can explicitly verify the statement of the previous proposition: the point 0bdX(A)0 \in \mathrm{bd}_X(A) is Hausdorff-inseparable from every point in AA.

With this picture in mind, we finally remove the condition that AA has to be closed to give a sufficient (and necessary) condition for the homotopy extension property to hold.

Proposition. Let (X,A)Top2(X, A) \in \mathbf{Top}_2 and T=(X×{0})A×IT = (X \times \{0\}) \cup A \times I. If there exists a retract r ⁣:X×ITr \colon X \times I \to T, then (X,A)(X, A) has the homotopy extension property.

Proof. In order to use the previous argument, we show that (X×{0})(A×I)(X×{0})A×{0}(A×I)(X \times \{0\}) \cup (A \times I) \cong (X \times \{0\}) \cup_{A \times \{0\}} (A \times I) via the identity map. Since jj is continuous, the pushout topology is at least as fine as the subspace topology. Thus, we only have to show that the subspace topology is at least as fine as the pushout topology.

Let DTD \subseteq T be closed in the pushout topology; we need to show that it is also closed in the subspace topology. To begin, decompose DD into the subsets D0=D(X{0})D_0 = D \cap (X \cap \{0\}) and DA=D(A×I)D_A = D \cap (A \times I), which are closed in X×{0}X \times \{0\} and A×IA \times I respectively. We show that each term of the closure

clT(D)=clX×I(D)T=(clX×I(D0)T)(clX×I(DA)T)\mathrm{cl}_{T}(D) = \mathrm{cl}_{X \times I}(D) \cap T = \big(\mathrm{cl}_{X \times I}(D_0) \cap T \big) \cup \big(\mathrm{cl}_{X \times I}(D_A) \cap T \big)

is contained in DD.

  1. Since D0D_0 is closed in X×{0}X \hspace{-0.6pt} \times \hspace{-0.6pt} \{0\}, which is closed in X×IX \times I, we have clX×I(D0)=D0\mathrm{cl}_{X \times I}(D_0)\hspace{-0.6pt} = \hspace{-0.6pt} D_0. Thus, the first term lies in DD.

  2. First, write

    clX×I(DA)T=(clX×I(DA)(X×{0}))=def  Z(clX×I(DA)(A×I)).\mathrm{cl}_{X \times I}(D_A) \cap T = \underbrace{\Big(\mathrm{cl}_{X \times I}(D_A) \cap (X \times \{0\})\Big)}_{\overset{\text{def}}{=} \; Z} \cup \Big(\mathrm{cl}_{X \times I}(D_A) \cap (A \times I)\Big).

    Since DAD_A is closed in A×IA \times I, we have clX×I(DA)(A×I)=DA\mathrm{cl}_{X \times I}(D_A) \cap (A \times I) = D_A, so the second term lies in DD. The first term is more difficult to handle; this is where the retract mentioned in the hypotheses is finally used. To begin, note that

    Z=clX×I(DA)(X×{0})clX×I(A×I)(X×{0})=clX(A)×{0},Z = \mathrm{cl}_{X \times I}(D_A) \cap (X \times \{0\}) \subseteq \mathrm{cl}_{X \times I}(A \times I) \cap (X \times \{0\}) = \mathrm{cl}_{X}(A) \times \{0\},

    Furthermore, we also have the inclusion

    Z(A×{0})=clX×I(DA)(A×{0})=clX×I(DA)(A×I)(X×{0})=DA(X×{0})D0.Z \cap (A \times \{0\}) = \mathrm{cl}_{X \times I}(D_A) \cap (A \times \{0\}) = \mathrm{cl}_{X \times I}(D_A) \cap (A \times I) \cap (X \times \{0\}) = D_A \cap (X \times \{0\}) \subseteq D_0.

    As before, let πX ⁣:X×IX\pi_X \colon X \times I \to X be the projection onto XX and define r~=πXr\widetilde{r} = \pi_X \circ r. To use the retract, we define an auxiliary map which "extends" each map xr~(x,s)x \mapsto \widetilde{r}(x, s) to all of X×IX \times I. Specifically, define ρ ⁣:X×I×IX×I\rho \colon X \times I \times I \to X \times I by ρ((x,t),s)=(r~(x,s),t)\rho\big((x, t), s\big) = \big(\widetilde{r}(x, s), t\big). Using ρ\rho and the inclusions above, we show that ZDZ \subseteq D.

    Note that ρDA×I\rho|_{D_A \times I} is just the projection onto the first factor, so ρ(clX×I(DA)×[0,1])clX×I(DA)\rho(\mathrm{cl}_{X \times I}(D_A) \times [0,1]) \subseteq \mathrm{cl}_{X \times I}(D_A). Applying the definition, we also obtain ρ((X×{0})×[0,1])X×{0}\rho\big((X \times \{0\}) \times [0, 1]\big) \subseteq X \times \{0\}. Thus, by taking the intersection and using the fact that ZclX(A)×{0}Z \subseteq \mathrm{cl}_X(A) \times \{0\}, we find

    ρ(Z×(0,1])Zρ(clX(A)×{0}×(0,1])=Z(r~(clX(A)×(0,1])×{0}).\rho\big(Z \times (0, 1]\big) \subseteq Z \cap \rho\big(\mathrm{cl}_X(A) \times \{0\} \times (0, 1]\big) = Z \cap \Big(\widetilde{r}\big(\mathrm{cl}_{X}(A) \times (0, 1]\big) \times\{0\}\Big).

    Since the retract fixes each slice A×{t}A \times \{t\}, we have for all t(0,1]t \in (0, 1],

    r(clX(A)×{t})=r(clX×I(A×{t}))clX×I(A×{t})T=(clX(A)×{t})T=A×{t}.r\big(\mathrm{cl}_{X}(A) \times \{t\}\big) = r\big(\mathrm{cl}_{X \times I}(A \times \{t\})\big) \subseteq \mathrm{cl}_{X \times I}\big(A \times \{t\}\big) \cap T = \big(\mathrm{cl}_{X}(A) \times \{t\}\big) \cap T = A \times \{t\}.

    It follows that ρ(Z×(0,1])Z(A×{0})D0\rho\big(Z \times (0, 1]\big) \subseteq Z \cap (A \times \{0\}) \subseteq D_0. Finally, note that ρZ×{0}\rho|_{Z \times \{0\}} is just the projection onto the first factor, so

    Z=ρ(Z×{0})ρ(Z×[0,1])=ρ(clX×I×I(Z×(0,1]))clX×I(ρ(Z×(0,1]))clX×I(D0)=D0.Z = \rho(Z \times \{0\}) \subseteq \rho\big(Z \times [0, 1]\big) = \rho\Big(\mathrm{cl}_{X \times I \times I}\big(Z \times (0, 1]\big) \Big) \subseteq \mathrm{cl}_{X \times I}\Big(\rho\big(Z \times (0, 1]\big)\Big) \subseteq \mathrm{cl}_{X \times I}(D_0) = D_0.

    Thus ZDZ \subseteq D, so the entire term clX×I(DA)T\mathrm{cl}_{X \times I}(D_A) \cap T lies in DD.

It follows that DD is closed in TT, so the subspace topology is at least as fine the pushout topology. Thus, the two topologies are equal, and the rest of the argument is carried out as before.

\blacksquare