P = weightSystemPolytope qFor 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.
|
|
|
|
Nothing here calls PALP, so this is a way of checking PALP's answer against the definition. The two agree:
|
|
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.
|
|
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$.
|
|
|
|
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.
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.