Weight refinements of monomial orders #
A nonnegative integral weight compares exponents only partially: distinct monomials can
have the same weight. MonomialOrder.weightRefinement breaks these ties with a given
monomial order. The resulting order is again a native MonomialOrder, even with zero
weights and infinitely many variables. It can therefore be used with polynomial division
and Gröbner bases, while retaining the maximal-weight convention for initial forms.
The construction embeds exponents into the lexicographic product of their weight and their original ordered exponent. Both factors are well ordered.
References #
- Sturmfels, Gröbner Bases and Convex Polytopes, Chapter 1.
Compare nonnegative integral weights first, breaking ties using m.
Instances For
The weak comparison in a weight refinement.
The strict comparison in a weight refinement.
A comparison in the refined order never decreases weight.
A strict weight comparison is a strict comparison in the refined order.
Equal-weight monomials are compared by the original order.
Equal-weight monomials are strictly compared by the original order.
Zero weight leaves all weak comparisons unchanged.
Zero weight leaves all strict comparisons unchanged.
The refined order compares variables by weight, retaining m to break ties.