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

palpIsReflexive -- whether PALP considers a polytope reflexive

Description

A polytope is reflexive exactly when its dual is a lattice polytope, so this is true exactly when palpNVertices gives an answer rather than null.

The summary from palpInfo answers the same question, with an N field for a reflexive polytope and an F field for one that is not. It is the slower route, because it counts the lattice points of the dual: in dimension eight it takes some seconds, against some milliseconds for this function.

i1 : palpIsReflexive {10, 1, 2, 3, 4}

o1 = true
i2 : palpIsReflexive matrix{{1,0,0,-1},{0,1,0,-1},{0,0,1,-1}}

o2 = true

The second polytope below is canonical -- its only interior lattice point is the origin -- but it is not reflexive. It is the fan polytope of the weighted projective space $P(1,1,1,2)$, and a simplex of this shape is reflexive exactly when every weight divides the sum of the weights.

i3 : M = matrix{{1,0,0,-1},{0,1,0,-1},{0,0,1,-2}}

o3 = | 1 0 0 -1 |
     | 0 1 0 -1 |
     | 0 0 1 -2 |

              3       4
o3 : Matrix ZZ  <-- ZZ
i4 : palpIsReflexive M

o4 = false
i5 : isReflexive convexHull M

o5 = false
i6 : interiorLatticePoints convexHull M

o6 = {0}

o6 : List

Caveat

This agrees with isReflexive, but goes through PALP rather than computing the dual in Macaulay2.

See also

Ways to use palpIsReflexive:

  • palpIsReflexive(List)
  • palpIsReflexive(Matrix)
  • palpIsReflexive(WeightSystem)

For the programmer

The object palpIsReflexive is a method function.


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