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

palpNormalForm -- the PALP normal form of a lattice polytope

Description

Two lattice polytopes $P$ and $Q$ in $\mathbb{Z}^n$ are equivalent if $Q = g(P)$ for some $g \in GL(n,\mathbb{Z})$; translations are not allowed. The normal form is a matrix of vertices that depends only on the equivalence class, so $P$ and $Q$ are equivalent exactly when palpNormalForm gives the same matrix for both. As for the other functions here, the polytopes must be full dimensional.

i1 : M = palpMVertices {10, 1, 2, 3, 4}

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

              3       7
o1 : Matrix ZZ  <-- ZZ
i2 : palpNormalForm M

o2 = | 1 0 0 0  1  -2 -2 |
     | 0 1 0 0  -1 1  -4 |
     | 0 0 1 -1 0  -2 3  |

              3       7
o2 : Matrix ZZ  <-- ZZ
i3 : A = matrix {{1, -2, 1}, {2, 1, -2}, {-1, 1, 0}}

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

              3       3
o3 : Matrix ZZ  <-- ZZ
i4 : det A

o4 = 1
i5 : assert(palpNormalForm (A * M) == palpNormalForm M)

Two weight systems that give the same polytope:

i6 : palpNormalForm {3402, 40, 41, 486, 1134, 1701}

o6 = | 1 0 0 0 -42 |
     | 0 1 0 0 -28 |
     | 0 0 1 0 -12 |
     | 0 0 0 1 -1  |

              4       5
o6 : Matrix ZZ  <-- ZZ
i7 : palpNormalForm {3486, 41, 42, 498, 1162, 1743}

o7 = | 1 0 0 0 -42 |
     | 0 1 0 0 -28 |
     | 0 0 1 0 -12 |
     | 0 0 0 1 -1  |

              4       5
o7 : Matrix ZZ  <-- ZZ
i8 : assert(oo == ooo)

Caveat

The result is null if PALP printed nothing, which happens for input it declines to treat as a polytope, such as a single point.

See also

Ways to use palpNormalForm:

  • palpNormalForm(List)
  • palpNormalForm(Matrix)
  • palpNormalForm(WeightSystem)

For the programmer

The object palpNormalForm is a method function.


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