`weyl/text/tensor` := TEXT(`    `,
`FUNCTION:  tensor - decompose tensor products of representations`,`    `,
`CALLING SEQUENCE:  tensor(u,v,R);`,
`                   tensor(u,v,R,<option>);`,`    `,
`PARAMETERS:  R  = a crystallographic root system data structure`,
`            u,v = dominant integral weights (linear combins. of e1,e2,...)`,
`       <option> = one of the names 'klimyk', 'mchain', or 'qtensor'`,`   `,
`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 u and v are dominant integral weights, tensor(u,v,R) computes the`,
`  multiplicities in the irreducible decomposition of the tensor product of`,
`  the irreps indexed by u and v. 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 dominant weights indexing the irreps that`,
`  occur in the tensor product, and m1,m2,... are their multiplicities.`,`   `,
`  An optional fourth argument may be used to specify one of three available`,
`  algorithms for computing tensor product 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 u. 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 v, 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(u,R),R).`,`     `,`  'mchain'   `,
`    The Minuscule Chain algorithm entails an efficient search through the`,
`    crystal graph for the irrep indexed by u. 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. If the irrep indexed`,
`    by v is significantly smaller than that of u, faster results will be`,
`    obtained by interchanging u and v.`,`   `,`  'qtensor'`,
`    This algorithm uses q-specializations and interpolation methods to`,
`    compute tensor product multiplicities. It is most effective in the`,
`    exceptional cases, especially E6, E7, and E8, and least effective`,
`    in the type A cases. The main computational bottleneck amounts to`,
`    generating and solving a linear system whose dimension is roughly the`,
`    number of distinct irreducible constituents in the tensor product.`,
`    In particular, the space requirements will grow with both u and v,`,
`    and interchanging u and v will not affect the performance.`,`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,`  w:=weights(G2);`,
`  tensor(w[2],w[2],G2);                 yields`,
`                                 X[0,2] + X[3,0] + X[0,1] + X[2,0] + X[0,0]`,
`  w:=weights(A3); u:=2*w[1]; v:=w[1]+w[3];`,
`  tensor(u,v,A3,'mchain');              yields`,
`                                  X[3,0,1] + X[1,1,1] + X[2,0,0] + X[0,1,0]`,
`  w:=weights(F4);`,`  tensor(w[1],w[4],F4,'qtensor');       yields`,
`                                    X[1,0,0,1] + X[0,1,0,0] + X[1,0,0,0]`,
`    `,`SEE ALSO:  branch, toM, toX, weight_mults, weights, coxeter[structure]`
):

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