L = weightSystems nA weight system is a list $\{d, q_0, \ldots, q_n\}$ of positive integers with $d = q_0 + \cdots + q_n$. The weights $q_i$ are the degrees of the variables $x_0, \ldots, x_n$ of the weighted projective space $\mathbb{P}(q_0, \ldots, q_n)$, and $d$ is the degree of a hypersurface in it. Since the anticanonical class of $\mathbb{P}(q)$ has degree $q_0 + \cdots + q_n$, the condition $d = \sum q_i$ says exactly that such a hypersurface has trivial canonical class.
The polytope of the weight system is the convex hull of the lattice points of $$\Delta(q) = \{x \in \mathbb{R}^{n+1} : q_0 x_0 + \cdots + q_n x_n = 0,\ x_i \ge -1\},$$ which has dimension $n$. Its lattice points correspond one to one to the monomials $x^m$ of degree $d$, by $m = x + (1, \ldots, 1)$. So $\Delta(q) + (1, \ldots, 1)$ is the Newton polytope of a general polynomial of degree $d$, and the origin corresponds to the monomial $x_0 x_1 \cdots x_n$. The weight system is IP if the origin is an interior point of $\Delta(q)$, and those are the ones returned here.
For example, there are 95 IP weight systems of dimension 3, that is, with four weights.
|
|
|
|
For the weight system $\{10, 1, 2, 3, 4\}$, the monomials of degree 10 and the lattice points of the polytope match up.
|
|
|
In dimension at most 4 every IP weight system gives a reflexive polytope, but in dimension 5 that fails.
|
|
|
In dimension 5 and higher many IP weight systems are not reflexive, and functions that need a reflexive polytope, such as palpNefPartitions, return null for them. With Reflexive => true only the reflexive ones are returned. This costs nothing extra, since PALP marks the reflexive ones as it finds them, and it gives the same answer as selecting them with palpIsReflexive.
|
|
|
|
|
Restricting the degree:
|
|
An unbounded range is allowed in dimension at most 4.
|
Combined weight systems. A combined weight system is several weight systems on the same variables, one per row. PALP writes them one after another in a single list, $\{d_1, q_{10}, \ldots, q_{1n}, \ d_2, q_{20}, \ldots, q_{2n}, \ \ldots\}$, and they may also be given as a list of rows, $\{\{d_1, q_{10}, \ldots, q_{1n}\}, \{d_2, q_{20}, \ldots, q_{2n}\}, \ldots\}$. The weights are nonnegative integers, each degree is the sum of the weights in its row, and every variable has a positive weight in some row. The weight of $x_i$ is then the vector $(q_{1i}, \ldots, q_{ki})$, the degree is $(d_1, \ldots, d_k)$, and the polytope, cut out by all $k$ equations, has dimension $n + 1 - k$. For example, the hypersurfaces of bidegree $(3,3)$ in $\mathbb{P}^2 \times \mathbb{P}^2$:
|
|
|
|
|
The rows need not involve disjoint sets of variables. Only the span of the rows matters, so the same polytope can be written with overlapping rows:
|
|
The functions of this package that take a weight system, such as palpMVertices and palpNormalForm, accept combined weight systems too; this function only produces single ones.
PALP's time depends very much on the range. With no upper bound, in dimension at most 4, it lists all weight systems using the algorithm of Kreuzer and Skarke, and discards the degrees below lo afterwards: for dimension 4, that is all 184026 of them, of degrees 5 to 3486, in about three minutes, whatever lo is. With a finite range it searches degree by degree, which is fast for small degrees and slow for large ones: in dimension 4, degrees 5 to 100 take a second or two, degrees 5 to 200 half a minute, and degree 3402 alone more than half an hour. In dimension 5 and higher, PALP requires a finite range.
The object weightSystems is a method function with options.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:2138:0.