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

palpIsCanonical -- whether the origin is the only interior lattice point of a polytope

Description

A reflexive polytope is canonical, and a canonical polytope is IP, but neither converse holds. The fan polytope of the weighted projective space $P(1,1,1,2)$ is canonical but not reflexive, while the simplex below it is IP but has a second interior lattice point.

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

o1 = | 1 0 0 -1 |
     | 0 1 0 -1 |
     | 0 0 1 -2 |

              3       4
o1 : Matrix ZZ  <-- ZZ
i2 : palpIsCanonical M, palpIsReflexive M

o2 = (true, false)

o2 : Sequence
i3 : S = matrix{{2,0,0,-1},{0,1,0,-1},{0,0,1,-1}}

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

              3       4
o3 : Matrix ZZ  <-- ZZ
i4 : palpIsIP S, palpIsCanonical S

o4 = (true, false)

o4 : Sequence
i5 : interiorLatticePoints convexHull S

o5 = {0, | 1 |}
         | 0 |
         | 0 |

o5 : List

For a single weight system, IP and canonical are the same: an interior lattice point $m$ of $\Delta(q)$ has every $m_i \ge 0$ and $\sum q_i m_i = 0$, so it is the origin. In dimension five many of these are not reflexive.

i6 : L = weightSystems(5, Degrees => 10);
i7 : #L, #select(L, palpIsReflexive), #select(L, palpIsCanonical)

o7 = (5, 4, 5)

o7 : Sequence

Caveat

Some authors also require the vertices of a canonical Fano polytope to be primitive lattice vectors; this does not check that. When the polytope is not reflexive this counts its lattice points, which can be slow in high dimension. interiorLatticePoints convexHull A, from interiorLatticePoints, answers the same question without PALP.

See also

Ways to use palpIsCanonical:

  • palpIsCanonical(List)
  • palpIsCanonical(Matrix)
  • palpIsCanonical(WeightSystem)

For the programmer

The object palpIsCanonical is a method function.


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