Definition (homotopic as paths)
Two paths $γ, γ': [0,1]\to X$ from $x_0\in X$ to $x_1\in X$ are homotopic as paths if they are homotopic relative to $\set{0,1}$. We write $γ\simeq γ'$ as paths from $x_0$ to $x_1$.
Concatenation preserves this property: if $γ_0 \simeq γ_1$ as paths from $x_0$ to $x_1$ and $γ_0' \simeq γ_1'$ as paths from $x_1$ to $x_2$, then $γ_0 \cdot γ_0'\simeq γ_1\cdot γ_1'$ as paths from $x_0$ to $x_2$. (Proof)
Let $γ_0: x_0 \rightsquigarrow x_1$, $γ_1: x_1\rightsquigarrow x_2$, $γ_2: x_2 \rightsquigarrow x_3$ be paths in $X$. Then