representationWeights(rho)Let $\rho: \mathfrak{g} \rightarrow \mathfrak{gl}(V)$ be a Lie algebra representation.
This function first checks that for the Cartan subalgebra elements $H_i$ in the basis of $\mathfrak{g}$, the image $\rho(H_i)$ is a diagonal matrix. If not, this function returns an error that the basis of $V$ in use is not an eigenbasis for the Cartan subalgebra. Otherwise, this function returns the list of weights of these basis elements, which are obtained from the diagonal entries of the matrices $\rho(H_i)$.
In the example below, we compute the weights of the Gelfand-Tsetlin basis for the adjoint representation of $sl_3$.
|
|
|
|
|
|
We can check that this agrees with the weight of the Gelfand-Tsetlin pattern labelling each basis element.
|
|
Right now, the entries of L3 are just lists. We turn them into objects of type GTPattern, and then get their weights.
|
|
Finally, we check that this agrees with the weight diagram of V.
|
|
|
The object representationWeights is a method function.
The source of this document is in LieAlgebraRepresentations/documentation.m2:1763:0.