@fresh_42 For the other direction, it says:
Assume that for each ##i##, there is some ##i## for which ##x^d_i\in\mathfrak{a}##.
Then, for all ##m_i\geq d_i##,
we have ##x_i^{m_i}=x^{m_i-d_i} x_i^{d_i}\in\mathfrak{a}##.
In particular, take a monomial ##x_1^{m_1}\cdots x_n^{m_n}##.
If there exists at least one ##i## such that ##m_i\geq d_i##,
then ##x_1^{m_1}\cdots x_n^{m_n}\in\mathfrak{a}##.
Now, an element of the quotient has the form ##P=\sum_{m_1,\ldots,m_n\geq 0}a_{m_1,\ldots,m_n} x_1^{m_1}\cdots x_n^{m_n}+\mathfrak{a}.##
As you notice, for all ##Q\in \mathfrak{a}##,
we have ##P+Q+\mathfrak{a}=P+\mathfrak{a}.##
The previous point then shows that ##P=\sum_{m_1\leq d_1-1,\ldots,m_n\leq d_n-1}a_{m_1,\ldots,m_n} x_1^{m_1}\cdots x_n^{m_n}+\mathfrak{a}.##
Hence, the classes ##x_1^{m_1}\cdots x_n^{m_n}, m_i\leq d_i-1##
for all ##i##, span the vector space ##k[x_1,\ldots,x_n]/\mathfrak{a}##.
Since this family is finite, it follows that this vector space is finite dimensional (of dimension ##\leq d_1\cdots d_n##).
Note that we didn't use the fact that ##\mathfrak{a}## is generated by monomials here.
I don't understand the sentence: "The previous point then shows that ##P=\sum_{m_1\leq d_1-1,\ldots,m_n\leq d_n-1}a_{m_1,\ldots,m_n} x_1^{m_1}\cdots x_n^{m_n}+\mathfrak{a}.##
Hence, the classes ##x_1^{m_1}\cdots x_n^{m_n}, m_i\leq d_i-1##
for all ##i##, span the vector space ##k[x_1,\ldots,x_n]/\mathfrak{a}##."
In particular, I am not seeing how the inequalities: ##m_1\leq d_1-1,\ldots,m_n\leq d_n-1##
is arrived at since the author let ##x^{m_i}=x^{m_i-d_i}x^{d_i}##. So ##m_i=m_i-d_i+d_i\geq d_i##.