Let $X, Y$ be topological spaces, $A\subseteq X$ and $f:A\to Y$ a (continuous) map. Denote $X\cup_f Y=(X\sqcup Y)/\sim,$ where $\sim$ is an equivalence relation generated by $a\sim f(a).$
Let $A\hookrightarrow X$ be a cofibration and consider a map $f: A\to Y.$ Show that $Y\hookrightarrow X\cup_f Y$ is also a cofibration.
I think it is easy, but I'm missing something. Firstly, I tried to prove it from the definition, so I draw some diagrams, but I failed to lift $A\hookrightarrow X$ to $Y\hookrightarrow X\cup_f Y$ using $f$. Then I tried to use the theorem which says $(X, A)$ has homotopy extension property iff $X\times\{0\}\cup A\times I$ is a retract of $X\times I$, but unfortunately, I tried to fit it on wrong spaces. Eventually, I tried to define a retraction $R: (X\cup_f Y)\times I\to(X\cup_f Y)\times\{0\}\cup Y\times I$ using the retraction $r: X\times I\to X\times\{0\}\cup A\times I$ and a (continuous) map $F:X\to Y$ such that $F|_A=f$, but once again I failed to manage it.
- Please, give just a hint (if possible).
- Is $Y$ in fact a subspace of $X\cup_f Y$? [Edit: the question is answered here apparently.]
- If I have a continuous map $f: A\to Y, A\subseteq X$, can I extend it in general to a continuous $F: X\to Y, F|_A=f$?