Macaulay2 » Documentation
Packages » PALPInterface :: weightSystemVertices
next | previous | forward | backward | up | index | toc

weightSystemVertices -- the vertices of the polytope of a weight system

Description

This is the same as palpMVertices applied to a weight system.

i1 : ws = {3402, 40, 41, 486, 1134, 1701}

o1 = {3402, 40, 41, 486, 1134, 1701}

o1 : List
i2 : V = weightSystemVertices ws

o2 = | 0  2  1  1  -1 |
     | -1 -1 6  -1 -1 |
     | -1 -1 -1 2  -1 |
     | -1 -1 -1 -1 1  |

              4       5
o2 : Matrix ZZ  <-- ZZ
i3 : P = convexHull V

o3 = P

o3 : Polyhedron
i4 : assert isReflexive P
i5 : assert(dim P == 4)

Combined weight systems are accepted as well.

i6 : weightSystemVertices {3,1,1,1,0,0,0, 3,0,0,0,1,1,1}

o6 = | -1 2  -1 -1 2  -1 -1 2  -1 |
     | -1 -1 2  -1 -1 2  -1 -1 2  |
     | -1 -1 -1 2  2  2  -1 -1 -1 |
     | -1 -1 -1 -1 -1 -1 2  2  2  |

              4       9
o6 : Matrix ZZ  <-- ZZ

Caveat

If $q$ is not IP, that is, if $\Delta(q)$ has no interior lattice point, then $\Delta(q)$ can fail to be full dimensional: for $\{7, 2, 2, 3\}$ it is a segment in a lattice of rank 2. PALP does not detect this, and gives the vertices of the segment. The weight systems from weightSystems are all IP, so this does not arise for them.

A weight system with just two weights describes a polytope of dimension one, on which PALP aborts, so that case is refused here. Give the polytope as a matrix instead: the one dimensional reflexive polytope is matrix{{1,-1}}.

See also

Ways to use weightSystemVertices:

  • weightSystemVertices(List)
  • weightSystemVertices(WeightSystem)

For the programmer

The object weightSystemVertices is a method function.


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