I am struggling to follow the derivation of the basis vectors of the Krylov subspace starting from 22:27 of this video.
If the next step of a search is given as
$$ x^k = x^{k - 1} + \alpha_{k - 1} r^{k - 1} $$
where $x^{k- 1}$ is the previous step, $r^{k- 1}$ is an orthogonal search direction and $\alpha_{k - 1}$ a constant. It follows that
$$ \begin{equation}\begin{aligned} b - A x^k & = b - A\left(x^{k - 1} + \alpha_{k - 1} r^{k - 1}\right) \\ & = b - A \, x^{k - 1} - \alpha_{k - 1} A \, r^{k - 1} \\ & = r^{k - 1} - \alpha_{k - 1} A \, r^{k - 1} \end{aligned}\end{equation} $$
The second to the last equation is where it to fall apart for me (see 24:42). The sign of the last term changes and the speaker writes
$$ \begin{equation}\begin{aligned} b - A x^k & = b - A x^{k - 1} + \alpha_{k - 1} A \, r^{k - 1} \\ & = r^{k - 1} + \alpha_{k - 1} A \, r^{k - 1} \end{aligned}\end{equation} $$
Subsequently the speaker uses the above equation as follows:
$$ \begin{equation}\begin{aligned} x^{k + 1} & = x^k + \alpha_k r^k \\ & = x^k + \alpha_k \left(b - A x^k\right) \\ & = x^k + \alpha_k \left(r^{k - 1} - \alpha_{k - 1} A \, r^{k - 1} \right) \\ & = x^k + \alpha_k r^{k - 1} - \alpha_k \alpha_{k - 1} A \, r^{k - 1} \end{aligned}\end{equation} $$
And from there makes the leap to write
$$ x^{k + 1} = x^0 + \alpha_1 r^0 + \alpha_2 A \, r^0 + \alpha_3 A^2 \, r^0 + \ldots + \alpha_{k - 1} A^k \, r^0 $$
Now I am lost completely.