degreesRing L
degreesMonoid L
degreesRing n
degreesMonoid n
These functions produce either a monoid of Laurent monomials or Laurent polynomial ring $A$ in n variables, where n is the length of the list L, which is typically a heft vector. Each monomial in the output corresponds to a degree vector for a ring with heft vector L or degree length n and no heft vector.
When a list is given, the variables of the output have degrees given by the elements of L and weights are the negative of the degrees. When an integer is given, then the number of variables is n, the degrees are all {}, and the weights are all 1.


The monomial ordering used in the degrees ring is RevLex so the polynomials in it will be displayed with the smallest exponents first, because such polynomials are often used as Hilbert series.
Assign the degrees ring to a global variable or call use(Monoid) to assign the indeterminates of the ring or monoid to global variables.




