For a short exact sequence $0 \longrightarrow A \overset{i}{\longrightarrow} B\overset{j}{\longrightarrow} C \longrightarrow 0$ of abelian groups the following statements are equivalent:
There is a homomorphism $p : B\to A$ such that $p \circ i = \text{id}_A$.
There is a homomorphism $s : C \to B$ such that $j \circ s = \text{id}_C$
There is an isomorphism $B \cong A \oplus C$.
I am trying to prove that $1 \implies 3$ and $2 \implies 3$ and afterwards that $3 \implies 1$ and $3 \implies 2$.
I'm stuck in the first part i.e. $1 \implies 3$. Suppose that $1$ is true, then there exists $p : B \to A$ such that $p \circ i = \text{id}_A$. I now tried to define $$\varphi : B \to A \oplus C, \ b \mapsto (p(b), j(b))$$ and an inverse as $$\varphi^{-1}: A \oplus C \to B, (a,c) \mapsto i(a).$$ What I got is that $$\varphi(\varphi^{-1}(a,c)) = \varphi(i(a))= (p(i(a)), j(i(a))) = (a, j(i(a))) \ne \text{id}_{A \oplus B}$$ and that $$\varphi^{-1}(\varphi(b))=\varphi^{-1}(p(b), j(b)) = i(p(b)) \ne \text{id}_B.$$
So I think that I've defined the inverse wrong here, but I couldn't think of any other candidates for it. Is there some other way to define it?