The functions of this package take a polytope in one of two forms.
The polytope must be full dimensional: for a matrix, its columns must affinely span the whole space, so there should be more columns than rows. Otherwise these functions give an error. Every set of points they return is encoded as an integer matrix with one point per column.
PALP works with any lattice polytope, but most of what it computes concerns polytopes containing the origin in their interior (IP polytopes), and especially reflexive polytopes. Reflexive polytopes of dimension at most four can be obtained from ReflexivePolytopesDB; in higher dimensions, weight systems are the usual way of producing them (see weightSystems).
$M$ and $N$ are two lattices of the same rank $d$, dual to each other, with the pairing $\langle m, n \rangle$; both are $\mathbb{Z}^d$ in coordinates. The (polar) dual of a polytope $P$ in $M_{\mathbb{R}}$ is $$P^* = \{ n \in N_{\mathbb{R}} : \langle m, n \rangle \ge -1 \text{ for all } m \in P \}.$$ $P$ is reflexive when $P^*$ is again a lattice polytope; then $P^{**} = P$, so $P$ and $P^*$ determine each other, and either one can be the polytope that is given.
In toric geometry, a polytope $\Delta$ in $M_{\mathbb{R}}$ describes a projective toric variety $V$ and an ample divisor on it: its lattice points are the monomials, the sections of the divisor. The fan of $V$ lives in $N_{\mathbb{R}}$. When $\Delta$ is reflexive, the divisor is the anticanonical divisor, and the rays of the fan are the vertices of $\Delta^*$.
|
|
|
|
In the names palpMVertices, palpMPoints, palpNVertices and palpNPoints, "M" refers to the input polytope and "N" to its dual, which is a lattice polytope only when the input is reflexive. A weight system gives the polytope $\Delta(q)$ in $M$. A matrix is read as a polytope in $M$ by these functions, but as the polytope $\Delta^*$ in $N$ by palpNefPartitions, since a nef partition is a partition of the rays of the fan.
So, given the vertices of a reflexive polytope in $N$, its dual in $M$ is found with palpNVertices: the dual of the dual is the polytope one started with.
|
|
The duals of polytopes that are not reflexive are not lattice polytopes, and the functions requiring the dual return null in this case.
|
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:1612:0.