d = weylDimension(A, lambda)d = weylDimension(A, lambda, WeightFormat => fmt)Computes the dimension by the Weyl dimension formula $$\dim V(\lambda) = \prod_{\alpha > 0} \frac{(\lambda+\rho,\alpha)}{(\rho,\alpha)},$$ where the product runs over positive roots and $\rho$ is the Weyl vector. The invariant form is the symmetrized Cartan form.
|
|
|
The answers are $8$, $6$, and $248$: the dimensions of the $A_2$ adjoint representation, $\bigwedge^2\mathbb C^4$ in type $A_3$, and the $E_8$ adjoint representation. The input tuples are highest-weight Dynkin labels, so each output is the dimension of one irreducible module, not its number of distinct weights.
The same weights may be specified as partitions by setting WeightFormat => "Partition". For instance, the adjoint of $\mathfrak{sl}_4$ has partition $(2,1,1,0)$ (Dynkin $(1,0,1)$), the spin representation of $\mathfrak{so}_7$ has partition $(1/2,1/2,1/2)$ (Dynkin $(0,0,1)$), and the two half-spin representations of $\mathfrak{so}_8$ have partitions $(1/2,1/2,1/2,\pm 1/2)$:
|
|
|
|
The object weylDimension is a method function with options.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:5422:0.