`weyl/text/branch` := TEXT(`    `,
`FUNCTION:  branch - restrict representations to reductive subalgebras`,`    `,
`CALLING SEQUENCE:  branch(v,J,R);`,
`                   branch(v,J,R,<option>);`,`    `,
`PARAMETERS:  R = a crystallographic root system data structure`,
`             v = a dominant integral weight (linear combin. of e1,e2,...)`,
`             J = a list or set of integers in the range 1..n (n = rank(R))`,
`      <option> = one of the names 'klimyk' or 'mchain'`,`   `,`SYNOPSIS:   `,
`  In a crystallographic root system R, weights are represented as rational`,
`  linear combinations of the standard orthonormal basis e1,e2,... A weight`,
`  v is integral if it is in the integer span of the fundamental weights`,
`  (i.e., weight_coords(v,R) is integral), and it is dominant if it is in`,
`  the nonnegative span of the fundamental weights. The irreducible finite-`,
`  dimensional representations ("irreps") of LieAlg(R) are indexed by`,
`  dominant integral weights.`,`   `,
`  If v is a dominant integral weight and J is a list or set of distinct`,
`  integers in the range 1..n (where n = rank(R)), branch(v,J,R) computes`,
`  the irreducible multiplicities that occur when the irrep indexed by v is`,
`  restricted to the (reductive) subalgebra of LieAlg(R) generated by a`,
`  Cartan subalgebra of LieAlg(R) and the root subspaces corresponding to`,
`  the simple roots indexed by J. The output is expressed as a linear`,
`  combination of the form m1*X[w1] + m2*X[w2] + ... , where w1,w2,... are`,
`  the weight coordinates of the highest weights of the irreducible summands`,
`  that occur, and m1,m2,... are their multiplicities.`,`   `,
`  Note that the highest weights of the irreducible summands that occur will`,
`  be dominant relative to the parabolic subsystem indexed by J, but not`,
`  necessarily dominant relative to J, so the terms X[..] that appear may`,
`  have negative coordinates in the positions not indexed by J.`,`   `,
`  In the extreme case J={}, computing branch(v,J,R) amounts to restricting`,
`  the irrep indexed by v to a Cartan subalgebra, and the coefficients in`,
`  the expansion are weight multiplicities. This is similar to computing`,
`  weight_mults(v,R), except that the latter uses a faster algorithm and`,
`  expresses the result in a compact form involving only dominant weights.`,
`   `,
`  An optional fourth argument may be used to specify one of two available`,
`  algorithms for computing branching multiplicities:`,`   `,
`  'klimyk' (the default)`,
`    This algorithm is based on the Brauer-Klimyk Rule, and entails an`,
`    efficient search through the set of distinct weights that occur in the`,
`    irrep indexed by v. It has negligible space requirements, and is most`,
`    effective in the classical cases (types A-B-C-D) and in low rank.`,
`    The running time is nearly independent of J, and is largely a function`,
`    of the size of the search space; i.e., the sum of the terms in`,
`    map(orbit_size,weight_sys(v,R),R).`,`        `,`  'mchain'   `,
`    The Minuscule Chain algorithm entails an efficient search through the`,
`    crystal graph for the irrep indexed by v. The graph is embedded in a`,
`    product of minuscule or quasi-minuscule graphs (a "minuscule chain").`,
`    The algorithm has minimal space requirements, and the running time is`,
`    bounded by a factor proportional to the sum of the multiplicities in`,
`    the output. However, the proportion can vary drastically according to`,
`    how well the algorithm prunes the search tree.`,`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,`  w:=weights(F4);`,
`  branch(w[1],{1,2,3},F4);          yields`,
`                                     X[1,0,0,0] + X[0,1,0,-1] + X[1,0,0,-1]`,
`  w:=weights(A3); v:=2*w[1]+w[3];`,
`  branch(v,[2,3],A3,'mchain');      yields`,
`         X[2,0,1] + X[-2,2,1] + X[-1,1,0] + X[-3,2,0] + X[0,1,1] + X[1,0,0]`,
`    `,`SEE ALSO:  tensor, weight_mults, weights, coxeter[structure]`):

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