consider $f = xy + z^3$ and $z^2 -3z$ with Lex ordering (x>y>z). Then the S-polynomial of $f$ and $g$ is:
$S(f,g) = xyz^2 + z^5 -xyz^2 - 3xyz = z^5 - 3xyz$.
An S-polynomial is supposed to cancel leading terms. Can someone please clarify what this means?
The leading terms of $f$ and $g$ are: $LT(f) = xy$ and $LT(g) = z^2$. Do the mean neither leading term is the leading term of the S-polynomial or do they mean neither leading term is expressed in the S-polynomial explicitly?
If its the latter, then is this modified expression of the definition also an S-polynomial?
$S'(f,g) = xyz^2 + z^5 -xyz^2 - 3xyz = xyz^2 + z^5 + xyz^2 + 3xyz $ ?