perm.spad line 1 [edit on github]
PermutationCategory provides a categorical environment for subgroups of bijections of a set (i.e. permutations)
p < q is an order relation on permutations. Note: this order is only total if and only if S is totally ordered or S is finite.
cycle(ls) coerces a cycle ls, i.e. a list with not repetitions to a permutation, which maps ls.i to ls.i+1, indices modulo the length of the list. Error: if repetitions occur.
cycles(lls) coerces a list list of cycles lls to a permutation, each cycle being a list with not repetitions, is coerced to the permutation, which maps ls.i to ls.i+1, indices modulo the length of the list, then these permutations are multiplied. Error: if repetitions occur in one cycle.
elt(p, el) returns the image of el under the permutation p.
eval(p, el) returns the image of el under the permutation p.
orbit(p, el) returns the orbit of el under the permutation p, i.e. the set which is given by applications of the powers of p to el.