Macaulay2 » Documentation
Packages » GroebnerStrata :: findWeightConstraints
next | previous | forward | backward | up | index | toc

findWeightConstraints -- returns a matrix of weight constraints

Synopsis

Description

i1 : R = ZZ/32003[a,b,c, d];
i2 : M = ideal (a^2, a*b, b^2);

o2 : Ideal of R
i3 : L = smallerMonomials M;
i4 : mat = findWeightConstraints(M,L)

o4 = | 1  2  2  1  2  2  2  0  1  1  0  1  1  1  -1 0  0  -1 0  0  0  |
     | 0  -1 0  0  -1 0  0  1  0  1  1  0  1  1  2  1  2  2  1  2  2  |
     | -1 -1 -2 0  0  -1 0  -1 -1 -2 0  0  -1 0  -1 -1 -2 0  0  -1 0  |
     | 0  0  0  -1 -1 -1 -2 0  0  0  -1 -1 -1 -2 0  0  0  -1 -1 -1 -2 |

              4       21
o4 : Matrix ZZ  <-- ZZ
i5 : needsPackage "Polyhedra"

o5 = Polyhedra

o5 : Package
i6 : needsPackage "FourTiTwo"

o6 = FourTiTwo

o6 : Package
i7 : dualCone posHull (-mat)

o7 = Cone{...2...}

o7 : Cone
i8 : rays oo

o8 = | 0 0 0  0 |
     | 0 0 -1 1 |
     | 1 0 1  2 |
     | 0 1 1  2 |

              4       4
o8 : Matrix ZZ  <-- ZZ
i9 : posHull mat -- seems wrong?

o9 = Cone{...1...}

o9 : Cone
i10 : coneFromHData transpose mat

o10 = Cone{...1...}

o10 : Cone
i11 : rays mat

o11 = 0

               1
o11 : Matrix ZZ  <-- 0
i12 : findWeightVector(M,L)

o12 = ({2, 2, 1, 1}, {1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1,
      -----------------------------------------------------------------------
      1, 2, 2})

o12 : Sequence

TO BE FINISHED!! Note that the first generator listed for $M$ is $a^2$, and the first corresponding standard monomial is $a*c$. The difference of these two monomials exponent vectors is $(1,0,-1,0)$. This vector dotted with the weight vector $(2,2,1,1)$ gives the value $1$, which is the first value in the second list.

Note that the desired term ordering, and hence weight vector, may not exist. In this case, null is returned.

i13 : M = ideal"ab"

o13 = ideal(a*b)

o13 : Ideal of R
i14 : L1 = standardMonomials M

         2   2             2                  2
o14 = {{a , b , a*c, b*c, c , a*d, b*d, c*d, d }}

o14 : List
i15 : findWeightVector(M,L1)

This command is used in the groebnerFamily routine.

See also

Ways to use findWeightConstraints:

For the programmer

The object findWeightConstraints is a method function.