`weyl/text/weyl_dim` := TEXT(`    `,
`FUNCTION:  weyl_dim - dimension of an irreducible representation`,`    `,
`CALLING SEQUENCE:  weyl_dim(v,R);`,`                   weyl_dim(v,R,q);`,
`    `,`PARAMETERS:  R = a crystallographic root system data structure`,
`             v = a dominant integral weight (linear combin. of e1,e2,...)`,
`             q = (optional) a variable or expression`,`   `,`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 weight vector (not necessarily  dominant or integral),`,
`  weyl_dim(v,R) returns the Weyl product`,`   `,
`                                iprod(r,v+rho(R))`,
`                           prod -----------------,`,
`                            r    iprod(r,rho(R))`,`   `,
`  where r ranges over pos_roots(R). If v is dominant integral, this is`,
`  the dimension of the irrep of LieAlg(R) indexed by v.`,`   `,
`  If a third argument q is present, then the result is a "q-analogue" of`,
`  the Weyl dimension formula; namely,`,`   `,
`           -iprod(co_rho(R),v)        1-q^iprod(cr,v+rho(R))`,
`          q                    * prod ----------------------,`,
`                                  r    1-q^iprod(cr,rho(R))  `,`   `,
`  where cr = 2*r/iprod(r,r) denotes the co-root corresponding to r. This`,
`  may be viewed as a formal substitution of q^co_rho(R) into the character`,
`  of the representation indexed by v. As a formal series in q^(1/2), the`,
`  coefficients represent weight multiplicities for the principal embedding`,
`  of sl(2) in LieAlg(R).`,`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,
`  weyl_dim(weights(F4)[2],F4);    yields                273`,
`  w:=weights(C2); v:=expand(a*w[1]+b*w[2]);`,
`  normal(weyl_dim(v,C2));         yields  1/6*(1+a)*(1+b)*(2+a+b)*(3+2*a+b)`,
`  weyl_dim(2*e2+e1,B2,q);         yields   q^(-5)*(1-q^7)*(1-q^5)/(1-q)^2`,
`    `,`SEE ALSO:  co_rho, rho, weight_coords, weights, coxeter[base],`,
`           coxeter[iprod], coxeter[pos_roots], coxeter[structure]`):

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