`coxeter/text/perm_rep` := TEXT(`    `,
`FUNCTION:  perm_rep - permutation representation of a Coxeter group`,`    `,
`CALLING SEQUENCE:  perm_rep(R);    perm_rep(R,'gap');`,
`                   perm_rep(J,R);  perm_rep(J,R,'gap');`,`    `,
`PARAMETERS:  R = a root system data structure`,
`             J = a list or set of integers in the range 1..n (n = rank(R))`,
`   `,`SYNOPSIS:   `,
`  perm_rep(R) returns the permutation representation of W(R) on cosets`,
`  of the parabolic subgroup generated by all but the last of the simple`,
`  reflections, where "last" is determined by the ordering of base(R).`,
`  This representation is faithful if and only if R is irreducible.`,`   `,
`  More generally, if J is any list or set of distinct integers in the range`,
`  from 1 to n (where n = rank(R)), then perm_rep(J,R) returns the`,
`  permutation representation of W(R) on cosets of the parabolic subgroup`,
`  generated by the simple reflections indexed by J.`,`   `,
`  The output is expressed as a "permgroup" (see group[permgroup]). More`,
`  specifically, the result returned is an unevaluated procedure call`,
`                permgroup(m, {s1=<perm1>, s2=<perm2>,...})`,
`  where m is the degree of the permutation representation, and the`,
`  expression <perm_i> is a permutation of the integers 1,...,m in disjoint`,
`  cycle format that describes the action of the i-th simple reflection.`,
`  For a description of disjoint cycle format, see group[permgroup].`,`   `,
`  If the last argument is the name 'gap', then the output is a sequence of`,
`  commands that define the permutation group in the GAP language. For more`,
`  information about GAP, see <http://www.ccs.neu.edu/mirrors/GAP/NEU/>.`,`   `
,`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,`  perm_rep(B3);            yields  `,
`                permgroup(6,{s1=[[3,4]],s2=[[2,3],[4,5]],s3=[[1,2],[5,6]]})`,
`  perm_rep({1,3},A3);      yields`,
`          permgroup(6,{s1=[[2,3],[4,5]],s2=[[1,2],[5,6]],s3=[[2,4],[3,5]]})`,
`  # a non-faithful permrep`,
`  perm_rep(A3*G2);         yields       permgroup(6,{s1=[],s2=[],s3=[],`,
`                                  s4=[[2,3],[4,5]],s5=[[1,2],[3,4],[5,6]]})`,
`  # a faithful permrep`,
`  pg:=perm_rep({1,2,4},A3*G2); with(group,grouporder);`,
`  grouporder(pg);          yields                      288`,`    `,
`SEE ALSO:  base, multperm, perm2word, perm_char, presentation, stab_chain,`,
`           structure, group[permgroup], group[permrep]`):

if `+`(0)=0 then # Maple V.4 or later
  print(INTERFACE_HELP(insert, topic=`coxeter/perm_rep`,
  helpfile=HomeLib, text=`coxeter/text/perm_rep`))
elif ceil(0)=0 then # Maple V.2 or V.3
  `help/coxeter/text/perm_rep`:=`coxeter/text/perm_rep`:
  save `help/coxeter/text/perm_rep`, cat(HomeLib,`/help/coxeter/text/perm_rep.m`);
fi:
