The following is from some study material I was provided. I will interject at the parts that have stumped me.
Theorem
Let < be a monomial order on the polynomial ring K[X].
Let ⟨0⟩ ≠ I ⊂ K[X] be an ideal.
Let {g1, g2, ..., gs} be the Gröbner basis of I with respect to <.
Then:
I = ⟨g1, g2, ..., gs⟩.
Proof
By assumption, {g1, g2, ..., gs} is the Gröbner basis of I with respect to <.
Hence one has:
⟨in<(g1), in<(g2), ..., in<(g2)⟩ = in<(I).
Now we prove I = ⟨g1, g2, ..., gs⟩.
In general, ⟨g1, g2, ..., gs⟩ ⊂ I holds since g1, g2, ..., gs ∈ I. Hence it is enough to show that I ⊂ ⟨g1, g2, ..., gs⟩.
Let 0 ≠ f ∈ I be a polynomial.
Then in<(f) ∈ in<(I).
Hence there exists an integer 1 ≦ i ≦ s and a monomial w such that in<(f) = w・in<(gi).
Then in<(f) = in<(wgi) by virtue of [lemma discussed earlier in the study material].
The initial term of f is of the form c・in< and the initial term of wgi is of the form ci・in<(wgi), where 0 ≠ c, ci ∈ K.
Now we let
f(1) := ci・f - c・wgi.
Then one has f(1) ∈ I since I is an ideal and f, gi ⊂ ⟨g1, g2, ..., gs⟩ ∈ I.
Moreover, if f(1) = 0, then f = (c/ciwgi ∈ ⟨gi⟩ ⊂ ⟨g1, g2, ..., gs⟩ and I ⊂ ⟨g1, g2, ..., gs⟩.
My first problem
I can't quite follow the last step. How does proving that one element f of I is also an element of the ideal ⟨g1, g2, ..., gs⟩ prove that all elements of the I are contained in ⟨g1, g2, ..., gs⟩?
Back to the proof
Assume that f(1) ≠ 0.
Then one has in<(f(1)) < in<(f) and we can take a polynomial f(2) ∈ I by using the same technique as we used for making f(1).
If f(2) = 0, then f(1) ∈ ⟨g1, g2, ..., gs⟩ and f ∈ ⟨g1, g2, ..., gs⟩.
Assume that f(2) ≠ 0.
Then one has in<(f(2)) < in<(f(1)).
In general, in the case that f(k-1) ≠ 0, then we can take a polynomial f(k) ∈ I by using the same technique as we used for making f(k-1).
If f(k) = 0, then f(1), f(2), ..., f(k) ∈ ⟨g1, g2, ..., gs⟩.
Hence one has f ∈ ⟨g1, g2, ..., gs⟩.
Thus it is enough to show that there exists an integer k ≧ 1 such that f(k) = 0.
Suppose that f(k) ≠ 0 for all k ≧ 1.
Then the infinite sequence of monomials
in<(f) > in<(f(1)) > ... > in<(f(k)) > ...
arises. However, this contradicts the statement of [another lemma discussed outside of this text].
Therefore it follows that there exists an integer k ≧ 1 such that _f(k) = 0.
My second problem
How exactly are f(2) onwards defined? Is it like f(2) := ci・f(1) - c・wgi, in which the parameters c, i, and w are all the same as for f(1)?
Note that $f$ was taken to be an arbitrary (nonzero) element of $I$ (= every element of $I$ can be taken). Proving set inclusion $A \subset B$ amounts to showing that every element of $A$ also lies in $B$. Zero is in $I$ by definition.
One takes the initial term $T_1$ of $f^{(1)}$ and finds an element $g_i$ of the Groebner basis with an initial term $T_1'$ that divides $T_1$. Then one multiplies $g_i$ by a certain monomial $m_i$ and a coefficient $\alpha_i$ so the result's initial term is exactly equal to $T_1$. Then $f^{(2)} = f^{(1)} - \alpha_i m_i g_i$ only contains terms that are strictly smaller than $T_1$.