Macaulay2 » Documentation
Packages » PALPInterface :: Lattice polytopes in PALP
next | previous | forward | backward | up | index | toc

Lattice polytopes in PALP -- how polytopes are given to PALP, and the M and N lattices

Giving a polytope

The functions of this package take a polytope in one of two forms.

  • a matrix over the integers, with the polytope as the convex hull of its columns: they must include its vertices, but may include other points of the polytope, and may repeat;
  • a weight system, or a combined weight system, as a list of integers or a WeightSystem, which stands for its polytope $\Delta(q)$.

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).

The M and N lattices

$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^*$.

i1 : needsPackage "NormalToricVarieties"

o1 = NormalToricVarieties

o1 : Package
i2 : ws = {10, 1, 2, 3, 4};
i3 : V = normalToricVariety convexHull palpMVertices ws;
i4 : set rays V === set entries transpose palpNVertices ws

o4 = true

M and N in this package

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.

i5 : A = palpNVertices ws;

              3       6
o5 : Matrix ZZ  <-- ZZ
i6 : set entries transpose palpNVertices A === set entries transpose palpMVertices ws

o6 = true

The duals of polytopes that are not reflexive are not lattice polytopes, and the functions requiring the dual return null in this case.

i7 : palpNVertices matrix{{1,0,0,-1},{0,1,0,-1},{0,0,1,-2}} === null

o7 = true

See also


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