I have a permutation $x=(3,4)(5,7)(6,8)(9,12)(10,13)(11,14)$ that acts on the set of [1,2,3...14] points and have another permutation $x'=(1,4)(5,6)(7,8)...(24,27)$ that acts on the set of 27 points. I want to multiply both permutations $x$ and $x'$ but use different labelling, otherwise the same labelled permutations will be multiplied what will not give me the required solution.
My question is how can I change the labelling of permutations in GAP, i.e if $x$ is a permutation of degree $m$ and $x'$ is permutation of degree $n$ then $x*x'$ will give me permutation of degree $m+n$.
How can I do this in GAP?
You can't change that to replace the built-in multiplication. But you may look at GAP functions
ListPerm,PermListand other function documented in the same manual section. Using them, you can convert permutations to lists, then modify them following any logic that you may wish to implement, and then create a new permutation from that. For example,If by any chance you are thinking about direct products of permutation groups, there should another way of doing this. Observe the following behaviour:
Acting points of the 2nd group were "shifted" automatically. Thus, for the same permutations as above, you may have:
Note that the answer is different from my example above since GAP picked up more efficient permutation representation for the direct product of the two groups, acting just on 20 points. If you will construct a direct product of $S_{14}$ and $S_{27}$, then it will act on 4 points and the resulting permutation will be exactly the same as in the first example:
I guess in your case G and H will be some larger groups where you take
aandbfrom, not cyclic withaandbas generators, but they need not to be full symmetric groups. Also, may be worth to experiment which approach will demonstrate better performance.Hope this helps!