Express Groebner basis in terms of original basis
Working with a polynomial ring R, if I have an ideal generated by a set of polynomials fi (taking two for concreteness), I can obtain a Groebner basis gj by the commands
I = R.ideal([f1, f2])
g = I.groebner_basis()
What I want to do is express the Groebner basis in terms of the original basis, i.e. gj=∑iaijfi. How can I accomplish this in Sage? My understanding is that such an expression is calculated implicitly when the Groebner basis is calculated, so perhaps it is possible to recover it directly from the algorithm.