Computing basis of local artinian ring as a vector space.
Given a local artinian ring A with residue field C, we know two facts:
1) The ring A is isomorphic as a C-algebra to C[x1,…,xn]/(f1(x1,…,xn),…,fm(x1,…,xn)) where fi are some polynomials in the variables x1,…,xn.
2) There exists a collection of monomials Mt for t=1,…,l in the variables x1,…,xn such that A is isomorphic to a vector space over C with basis {M1,…,Ml}.
My question is if there is a way to move from 1 to 2 in Sage. In other words, if I write down a finitely generated C-algebra A, then by checking that dim A = 0, I will know that A is artinian. Is there some function in Sage which will find a (ordered) basis for A as a vector space when dimA=0?
I suppose that this is an easy question. One can just compute the groebner basis for the extension of (x1,…,xn) in A and then use singular to find the monomial ideal.