Proof (finite bases have equal size)

$B_1$ and $B_2$ are finite. Then we will apply the Steinitz exchange lemma twice: $B_1$ is linearly independent and $B_2$ is a spanning set, so $|B_1|\leq |B_2|$, but also $B_2$ is linearly independent and $B_1$ is a spanning set, so $|B_2| \leq |B_1|$. Therefore $|B_1| = |B_2|$.