A = cartanAffineA nReturns the Cartan matrix of the untwisted affine Kac-Moody algebra $A_n^{(1)}$, whose Dynkin diagram is an $(n+1)$-cycle for $n\geq 2$ and the special two-node diagram $[[2,-2],[-2,2]]$ for $n=1$. In traditional notation, $\alpha_0$ is at matrix position $0$ and $\alpha_1,\ldots,\alpha_n$ occupy positions $1,\ldots,n$. The displayed node numbers are one larger, so the affine node is labeled $1$ by dynkinDiagram.
|
|
|
|
The two matrices are $A_1^{(1)}$ and $A_3^{(1)}$, of sizes $2$ and $4$. In the first, the off-diagonal entries are both $-2$; in the second, the four simple roots form the displayed cycle. The final output confirms that the four-node matrix is affine.
The null root $\delta = \alpha_0 + \alpha_1 + \cdots + \alpha_n$ (with coefficients $(1,1,\ldots,1)$) generates the one-dimensional radical of the Cartan matrix, consistent with the affine type:
|
|
|
|
The untwisted affinization coincides with cartanExtendUntwisted applied to the corresponding finite type, so one obtains $A_n^{(1)}$ from $\mathfrak{sl}_{n+1}$ in a natural way:
|
|
The object cartanAffineA 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:3527:0.