cws = weightSystem qA weight system is a list $\{d, q_0, \ldots, q_n\}$ of positive integers with $d = q_0 + \cdots + q_n$: the degree $d$ followed by the weights $q_i$. A combined weight system is a list of $r \ge 1$ rows $\{d_j, q_{j0}, \ldots, q_{jn}\}$, all of the same length, such that
So a weight system is a combined weight system with one row, and zero weights occur only when there are several rows. The weights need not be coprime: $\{6, 2, 2, 2\}$ is a weight system, and gives the same polytope as $\{3, 1, 1, 1\}$, since the polytope below depends only on the ratios of the weights in each row. These are the inputs PALP accepts, as described in the PALP paper of Kreuzer and Skarke (Comput. Phys. Commun. 157 (2004), arXiv:math/0204356, section 2).
The polytope of a combined weight system is $\Delta(q) = \operatorname{conv}\{ x \in \mathbb{Z}^{n+1} : \sum_i q_{ji} x_i = 0 \text{ for all } j, \ x_i \ge -1 \text{ for all } i \}$, a lattice polytope in the lattice $\{ x \in \mathbb{Z}^{n+1} : \sum_i q_{ji} x_i = 0 \text{ for all } j \}$, of dimension $n + 1 - r$ when the rows are linearly independent. Its lattice points $x$ correspond to the monomials $\prod_i y_i^{x_i + 1}$ in variables $y_0, \ldots, y_n$ of multidegree $(d_1, \ldots, d_r)$, where $y_i$ has multidegree $(q_{1i}, \ldots, q_{ri})$. The weight system is called IP when the origin is an interior point of $\Delta(q)$, and reflexive when $\Delta(q)$ is; see palpIsIP and palpIsReflexive. PALP computes $\Delta(q)$ for every combined weight system, IP or not.
Kreuzer and Skarke's classification papers use a narrower notion, which this package does not impose. There the weights are positive reals summing to 1, the barycentric coordinates of the origin in a simplex of lattice points containing it in its interior, and a combined weight system is the collection of these for several such simplices, with weight 0 on the vertices outside each simplex (Kreuzer-Skarke, Rev. Math. Phys. 14 (2002), arXiv:math/0001106, section 2.2; Skarke, Mod. Phys. Lett. A 11 (1996), arXiv:alg-geom/9603007). Scaled to integers, each such row is a weight system in the sense above.
An object of type WeightSystem is a combined weight system, stored as its list of rows. Two of them are equal, under ==, when they have the same rows.
|
A flat list is split into rows the way PALP splits it: a row is a degree followed by weights adding up to it, zeros that come next still belong to the row, and the next positive number starts a new row. So a later degree may be smaller than the first.
|
|
|
|
The result is checked: each degree is the sum of the weights in its row, the rows have the same length, and every variable has a positive weight in some row (see isWellDefined(WeightSystem)). If not, this is an error, or, with Verify => false, the result is null.
|
|
|
The functions of this package that take a weight system, such as palpMVertices, accept a WeightSystem as well as a List.
|
The object weightSystem 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:2240:0.