I would like to calculate, in GAP, certain permutation actions on matrices. Namely:
- Let $G=S_n$ be the symmetric group of degree $n$ and $\Omega=GL_n(q)$ (or a suitable subset). $G$ acts by conjugation (i.e. $(a,g)\mapsto a^g=g^{-1}ag$. [Compared to original question edited to use an action from the right.]
- Let $G=S_n\times S_n$ and $\Omega$ as before. The action is given by $(a,(g,h))\mapsto h^{-1}ag$.
- Let $G=(S_k\times S_{n-k})\times (S_k\times S_{n-k})$ and $\Omega$ the set of matrices with $0,1$-entries with an action as under 2.
Many Thanks in advance.
You can specify permutation actions by a function in GAP. Since multiplication of matrices with permutations is not defined, it will have to implement the appropriate permutations of rows or columns.
The action then is obtained by either
ActionHomomorphism(the homomorphism) orAction(the permutation group image).The domain can be specified as GAP object, or as list of elements; having nice properties (being sorted, allowing an
Enumerator, ...) can substantially improve performance.Thus for example the first action could be obtained as:
For the second action the extra work is in determining the two parts of a direct product element, which can be done by projections.
In the third case one needs to construct the set of all 0/1 matrices first:
The direct product of symmetric groups is easiest obtained as set stabilizer:
Then the same action function
myact2can be used.