This theorem claims, that there is a $X'$ which a dual basis of $X$ such that $[x_i, y_i] = \delta_{ij}$ and subsequently dual space is n-dimensional if the space is n-dimensional.
But I am confused at the proof step that, $$0 = \sum _j a_j[x_i, y_j] = \sum _j a_j \delta_j = a_i$$
How did that suddenly become $a_i$, If the proof setup claimed that we choose $\delta_{ij} = 1$ iff $i == j$ otherwise $0$ then I am convinced, but Halmos didn't assume anything about $\delta_{ij}$. I am confused, Can anyone help me here?
In standard notations $\delta_{ij} =1$ if $i=j$ and $0$ if $ i\neq j$.
This notation, called Kronecker delta, has in fact been introduced by Halmos in Section 7 (Bases).