A = cartanA nReturns the Cartan matrix of the simple Lie algebra $\mathfrak{sl}_n$ of type $A_{n-1}$. The diagonal entries are $2$, the two off-diagonals along the tridiagonal are $-1$, and all other entries are zero.
|
|
The matrix is the Cartan matrix of $\mathfrak{sl}_4$, of rank $3$. Its two adjacent off-diagonal entries $-1$ give the chain $1$--$2$--$3$ displayed by the diagram. Row $i$, column $j$ records $\langle\alpha_j,\alpha_i^\vee\rangle$.
The object cartanA is a function closure.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:3003:0.