`coxeter/text/class_rep` := TEXT(`    `,
`FUNCTION:  class_rep - determine conjugacy class representatives`,`    `,
`CALLING SEQUENCE:  class_rep(w,R);`,`                   class_rep(R);`,`    `,
`PARAMETERS:  R = a root system data structure`,
`             w = a list of integers representing an element of W(R)`,`   `,
`SYNOPSIS:   `,
`  If R is a root system of rank n, elements of the Coxeter group W(R) are`,
`  represented as lists of integers in the range 1..n. The group element`,
`  corresponding to w = [i_1,...,i_l] is the product of the generators`,
`  indexed by i_1,...,i_l. The indexing follows base(R).`,`   `,
`  class_rep(w,R) produces a canonical representative of the conjugacy class`,
`  of W(R) that contains w. Two elements w1 and w2 of W(R) are conjugate if`,
`  and only if class_rep(w1,R) = class_rep(w2,R).`,`   `,
`  class_rep(R) returns the list of canonical representatives for every`,
`  conjugacy class of W(R). The ordering of the list is consistent with the`,
`  ordering used by the functions class_size, cprod, induce, irr_chars,`,
`  perm_char, and restrict. The identity element [] is always first.`,`   `,
`  The conjugacy class representatives for the exceptional groups E-F-H are`,
`  read from prestored lists in the coxeter/lib subdirectory. The lists for`,
`  the remaining irreducible cases are generated "on demand".`,`   `,
`  The algorithm for finding the representative for a particular w proceeds`,
`  by breaking R into irreducible components, and then separately determining`,
`  the canonical representative for each component of w. For types I2 and G2,`,
`  brute force is used. For the groups of type H3 and H4, it uses the`,
`  characteristic polynomial of w. For all other groups, it uses a faithful`,
`  representation of W(R) as a subgroup of a hyperoctahedral group G with the`,
`  property that distinct conjugacy classes of W(R) map to distinct conjugacy`,
`  classes of G. Some extra parity tricks are also necessary to separate`,
`  certain conjugacy classes of type D.`,`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,
`  class_rep([1,2,3,4,3,4,1],A2^2);     yields             [1,3,4]`,
`  w0:=longest_elt(D4);`,
`  class_rep(w0,D4);                    yields    [1,2,3,1,2,3,4,3,1,2,3,4]`,
`  class_rep(I2[5]);                    yields     [[],[1],[1,2],[1,2,1,2]]`,
`    `,
`SEE ALSO:  base, class_size, char_poly, cprod, perm_char, induce, irr_chars,`,
`           restrict, structure`):

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