How to compute top-degree homogenization of ideal
I am interested in computing the "top-degree homogenization of an ideal", the ideal generated by the top-degree homogeneous components of every element in a polynomial ideal I.
I had previously been (mistakenly) doing:
ideal([f(list(R.gens()) + [0]) for f in I.homogenize().gens()])
which gives the ideal generated by the top-degree homogeneous components of the given generators of I.
This is not the same: consider I=(x2+x,x2+y). The above code would produce (x2), but the top-degree homogenization should contain x−y (as the top-degree component of (x2+x)−(x2+y)).
Are there known techniques for doing this?