I am having trouble implementing weight orders in SageMath. Suppose we are given the polynomial ring K[x,y,z], and weight vectors w1=(1,2,3),w2=(4,5,6). For exponent vectors a,b, I would like to implement a term order that decides a>b according to:
- w1a>w1b
- w1a=w1b and w2a>w2b
- w1a=w1b and w2a=w2b and a>LEXb, i.e. in case of two ties > defaults to the standard lexicographic term order.
How can I implement such a term order in SageMath?