Macaulay2 » Documentation
Packages » PALPInterface :: weightSystemPolytope
next | previous | forward | backward | up | index | toc

weightSystemPolytope -- the polytope of a weight system, computed from the definition

Description

For a weight system $q$ of degree $d = \sum q_i$, this is $\Delta(q) = \{x : \sum q_i x_i = 0, \ x_i \ge -1\}$, returned in a basis of the lattice $\ker(q) \cap \mathbb{Z}^{n+1}$ so that it is full dimensional. For a combined weight system, the condition $\sum_i q_{ji} x_i = 0$ is imposed for every row $j$; see WeightSystem.

i1 : P = weightSystemPolytope {10, 1, 2, 3, 4}

o1 = P

o1 : Polyhedron
i2 : dim P

o2 = 3
i3 : isReflexive P

o3 = true
i4 : vertices P

o4 = | -1 0  -1 2  0  0 2 |
     | 0  -1 1  -1 0  0 4 |
     | 0  0  0  -2 -1 1 3 |

              3       7
o4 : Matrix QQ  <-- QQ

Nothing here calls PALP, so this is a way of checking PALP's answer against the definition. The two agree:

i5 : ws = {30, 4, 4, 6, 7, 9};
i6 : assert(palpNormalForm lift(vertices weightSystemPolytope ws, ZZ)
         == palpNormalForm weightSystemVertices ws)

Note that $\Delta(q)$ is in general only a rational polytope: setting every coordinate but the $j$-th to $-1$ gives the vertex $(d - q_j)/q_j$, which is an integer only when $q_j$ divides $d$. What is returned, and what PALP reports, is the convex hull of its lattice points.

i7 : ws = {10, 1, 2, 3, 4};
i8 : numColumns vertices weightSystemPolytope ws

o8 = 7

A combined weight system: the (3,3) hypersurfaces in $\mathbb{P}^2 \times \mathbb{P}^2$, whose polytope is the product of two triangles, of dimension $6 - 2 = 4$.

i9 : P = weightSystemPolytope {3,1,1,1,0,0,0, 3,0,0,0,1,1,1}

o9 = P

o9 : Polyhedron
i10 : dim P

o10 = 4
i11 : isReflexive P

o11 = true
i12 : assert(palpNormalForm lift(vertices P, ZZ)
          == palpNormalForm weightSystemVertices {3,1,1,1,0,0,0, 3,0,0,0,1,1,1})

Caveat

This finds every lattice point of $\Delta(q)$ and takes their convex hull, so it can be very slow: for $\{9, 1, 1, 1, 1, 1, 1, 1, 1, 1\}$, in dimension eight with 24310 lattice points, it takes over a minute, against a fraction of a second for weightSystemVertices. It is mainly useful for checking that weightSystemVertices, that is, palpMVertices on a weight system, is correct.

See also

Ways to use weightSystemPolytope:

  • weightSystemPolytope(List)
  • weightSystemPolytope(WeightSystem)

For the programmer

The object weightSystemPolytope is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:2389:0.