Consider the commutative diagram below with exact rows (from the long exact sequence of homotopy groups) and $f\_1,f\_2,f\_4,f\_5$ bijective ($f\_1,f\_2$ homomorphisms). Does it follow that $f\_3$ is also bijective?


\begin{align}
\matrix{
\pi\_1(A)&\to&\pi\_1(X)&\to&\pi\_1(X,A)&\to&\pi\_0(A)&\to&\pi\_0(X)
\cr \downarrow f\_1&&\downarrow f\_2&&\downarrow f\_3&&\downarrow f\_4&&\downarrow f\_5
\cr\pi\_1(B)&\to&\pi\_1(Y)&\to&\pi\_1(Y,B)&\to&\pi\_0(B)&\to&\pi\_0(Y)}
\end{align}


The usual proof of the five-lemma by diagram chasing makes use of the fact that the consituents are groups and all maps involved are homomorphisms. Since there is no group structure for the six sets on the right ($\pi\_0$ and relative $\pi\_1$), it does not apply.


However, with arguments about connected components and loops/paths, it is easily shown in an analogous diagram-chasing fashion that $f\_3$ has to be surjective. The tricky part seems to be the injectivity (if it works at all): In analogy to the usual five-lemma, one can show that $f\_3[x]=0\Rightarrow[x]=0$, but of course this does not immediately give injectivity due to $f\_3$ only being a map between sets.


Is there a way to show injectivity? If not, is there a counterexample where this adapted five-lemma fails?


Thanks!



Five-lemma for the end of long exact sequences of homotopy groups
This is covered in Exercise 9 in Section 4.1 of [Allen Hatcher's book](http://www.math.cornell.edu/~hatcher/AT/ATpage.html) (page 358). It turns out that if (for all choices of base-points) $f\_1,f\_2,f\_4,$ and $f\_5$ are all bijections then $f\_3$ is a bijection. Note that you can also extend one more term to the right in your diagrams, so that $\pi\_0(X) \rightarrow \pi\_0(X,A) \rightarrow 0$ if you define $\pi\_0(X,A,x\_0) = \pi\_0(X,x\_0)/\pi\_0(A,x\_0)$


