Macaulay2 » Documentation
Packages » InvariantRing :: invariants(PermutationAction)
next | previous | forward | backward | up | index | toc

invariants(PermutationAction) -- computes the generating invariants of a permutation action

Description

This function is provided by the package InvariantRing.

It implements Göbel's method for computing invariants of permutation actions, which says the generating invariants are the orbit sums of special monomials together with the product of the variables; for more details, see Section 2.3.2 in https://fragandi.github.io/M2forall/ch-invarianttheory.html or Chapter 4 of M. D. Neusel, Invariant theory, AMS 2007. This method outputs a minimal generating set.

The following example computes a minimal set of generating invariants for the defining permutation action of the symmetric group $\mathfrak{S}_4$. The generating permutations can be entered as one-line notation arrays or lists of cycles arrays as in permutationMatrix, and are stored in one-line notation.

i1 : R = QQ[x_1..x_4]

o1 = R

o1 : PolynomialRing
i2 : P = permutationAction({{[1,2]},[2,3,4,1]}, R)

o2 = R <- <[2, 1, 3, 4], [2, 3, 4, 1]>

o2 : PermutationAction
i3 : elapsedTime netList invariants P
 -- .00984783s elapsed

     +---------------------------------------------------------------------------------------------------------+
o3 = |x  + x  + x  + x                                                                                         |
     | 1    2    3    4                                                                                        |
     +---------------------------------------------------------------------------------------------------------+
     |x x  + x x  + x x  + x x  + x x  + x x                                                                   |
     | 1 2    1 3    2 3    1 4    2 4    3 4                                                                  |
     +---------------------------------------------------------------------------------------------------------+
     | 2        2    2      2        2      2    2      2      2        2      2      2                        |
     |x x  + x x  + x x  + x x  + x x  + x x  + x x  + x x  + x x  + x x  + x x  + x x                         |
     | 1 2    1 2    1 3    2 3    1 3    2 3    1 4    2 4    3 4    1 4    2 4    3 4                        |
     +---------------------------------------------------------------------------------------------------------+
     | 2          2          2    2          2      2        2          2        2          2        2        2|
     |x x x  + x x x  + x x x  + x x x  + x x x  + x x x  + x x x  + x x x  + x x x  + x x x  + x x x  + x x x |
     | 1 2 3    1 2 3    1 2 3    1 2 4    1 2 4    1 3 4    2 3 4    1 3 4    2 3 4    1 2 4    1 3 4    2 3 4|
     +---------------------------------------------------------------------------------------------------------+

One can use the default method for finite group actions by passing the option Strategy=>"King" or the linear algebra method by passing the option Strategy=>"LinearAlgebra". However, Göbel's method should generally be much faster. Note that using different strategies may lead to different sets of generating invariants.

i4 : elapsedTime netList invariants(P,Strategy=>"King")
 -- .306795s elapsed

     +-----------------+
o4 = |x  + x  + x  + x |
     | 1    2    3    4|
     +-----------------+
     | 2    2    2    2|
     |x  + x  + x  + x |
     | 1    2    3    4|
     +-----------------+
     | 3    3    3    3|
     |x  + x  + x  + x |
     | 1    2    3    4|
     +-----------------+
     | 4    4    4    4|
     |x  + x  + x  + x |
     | 1    2    3    4|
     +-----------------+

See also

Ways to use this method:


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