snap = affineRootSnapshot(A, H)snap = affineRootSnapshot(A, H, ImaginaryMultiplicity => m)Use rootSnapshot to find roots without specifying the Cartan type. This function also accepts ImaginaryMultiplicity as a consistency check.
Let $\mathfrak g(A)$ be an affine Kac-Moody algebra with generalized Cartan matrix $A$ of corank $1$. Its positive roots $\Phi^+$ split as $$\Phi^+ \;=\; \Phi^+_{\mathrm{re}} \sqcup \Phi^+_{\mathrm{im}},$$ where $\Phi^+_{\mathrm{re}}$ is the set of real roots (each of multiplicity $1$) and $\Phi^+_{\mathrm{im}} = \{k\delta : k\geq 1\}$ is the set of imaginary roots: positive integer multiples of the minimal null root $\delta$ spanning $\ker A$ in the package's row-coroot convention. In untwisted type every $k\delta$ has multiplicity numrows(A)-1. In twisted type it can vary periodically with $k$ and is computed exactly by Peterson's recursion. Both $\Phi^+_{\mathrm{re}}$ and $\Phi^+_{\mathrm{im}}$ are infinite, so this function lists only those roots of simple-root-height $\leq H$.
The output snap is a RootSnapshot. Its mathematical data fields are:
Reading the output. rootSnapshotByHeight lays out a snapshot as one row per positive root, grouped by height and annotated with real or imaginary:
|
|
|
The table exhibits the classical structure of affine $A_1$. At every odd height $2k+1$, the two real roots $k\delta+\alpha_0=(k+1,k)$ and $k\delta+\alpha_1=(k,k+1)$ appear. Equivalently, the second is $(k+1)\delta-\alpha_0$. At every even height $2k$, the imaginary root $k\delta=(k,k)$ appears with multiplicity $1$.
The real roots, null root, and individual multiplicities can also be read directly:
|
|
|
Thus snap#"delta" prints the row | 1 1 |, meaning $\delta=\alpha_0+\alpha_1$ in conventional affine notation: the two columns remain in Cartan-matrix order. The final coefficient calculation returns $1$, the multiplicity of $2\delta$.
For an affine type of higher rank, say $\widehat{\mathfrak{sl}}_3$, the null root is $\delta = \alpha_0+\alpha_1+\alpha_2$ and imaginary root multiplicities equal $\mathrm{rank}-1 = 2$:
|
|
|
Height bound. Both sets of roots are infinite; larger $H$ includes more roots. For a parabolic decomposition, leviHighestWeights determines a sufficient height from the chosen degree and finite Levi Cartan matrix, so no height bound needs to be supplied separately.
The object affineRootSnapshot 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:7178:0.