The commands cartanA, cartanB, cartanC, cartanD, cartanE, cartanF4, cartanG2 build Cartan matrices of the classical and exceptional finite types. Note the offset: cartanA n returns the $(n-1)\times(n-1)$ Cartan matrix of type $A_{n-1}$ (so cartanA 4 is $\mathfrak{sl}_4$, of rank $3$). dynkinDiagram draws the diagram in text; on a multi-edge the arrow points from the long node to the short node:
|
|
|
|
|
|
|
Cartan type, Coxeter numbers, and the Cartan-matrix conditions can be checked across all finite types. For $B_4 = \mathfrak{so}_9$:
|
|
|
|
|
From a finite-type Cartan matrix A one can compute simpleRoots(Matrix), coroots, fundamentalWeights, weylVector (the sum of the fundamental weights, equal in finite type to the half-sum of positive roots, in simple-root coordinates), cartanPositiveRoots, highestRoot(Matrix) (also returned in simple-root coordinates, which is why the highest root of $B_4$ comes out as $(1,2,2,2)$ rather than $(0,1,0,0)$).
|
|
|
|
|
In particular, highestRoot A returns {1,2,2,2}, which means $$\theta=\alpha_1+2\alpha_2+2\alpha_3+2\alpha_4.$$ It is not a highest-weight label. Converting it gives toFundamental(A, highestRoot A) == {0,1,0,0}, the Dynkin labels of the adjoint highest weight.
The rootInnerProduct here is the symmetrized Cartan form $B=DA$. The diagonal symmetrizer $D$ is normalized independently on each connected component by setting its first entry to $1$; consequently $\lVert\alpha_i\rVert^2=2D_{ii}$. This records relative root lengths but does not globally normalize long roots to squared length $2$ (for example, the long $G_2$ roots have squared length $6$):
|
|
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:1036:0.