a = affineMarks Aav = affineComarks AT = affineTypeData Ddelta = affineNullRoot Dc = affineCentralElement DF = affineFinitePart DF = affineFinitePart(D,node)affineClassicalPart(A,lambda)affineClassicalPart(A,lambda,node)k = affineLevel(A,lambda)d = affineDerivation Dd = affineDerivation(D,node)L = affineWeightFromDynkinLabels(D,lambda,degree)L = affineWeightFromDynkinLabels(D,lambda,degree,d)L = weightFromRealizationCoordinates(D,x)q = affineDegree(L,d)affineCartanA2Twisted naffineCartanAOddTwisted naffineCartanDTwisted naffineCartanE6Twisted()affineCartanD4Twisted()Let $A=(a_{ij})$ be an indecomposable affine generalized Cartan matrix. The package uses $a_{ij}=\langle\alpha_j,\alpha_i^\vee\rangle$. The primitive positive right-kernel vector $a$ and left-kernel vector $a^\vee$ determine \[ Aa=0,\qquad A^{\mathsf T}a^\vee=0,\qquad \delta=\sum_i a_i\alpha_i,\qquad c=\sum_i a_i^\vee\alpha_i^\vee. \] affineMarks and affineComarks return these coefficient lists. Both commands, affineTypeData, and affineFinitePart accept a matrix, Cartan datum, realization, or root datum. affineComarks is the coefficient-list form of the central coroot. affineNullRoot returns its coefficient list for a matrix, Cartan datum, or realization. For a RootDatum, affineNullRoot and affineCentralElement give the null root and central coroot as KMRoot and KMCoroot, respectively, in that datum.
|
|
|
|
|
|
|
|
The diagram displays both positions and root labels. Package positions $1,2,3$ correspond here to the conventional affine indices $0,1,2$. The first tuple is \[ ((1,1,1),(0,0,0),(0,0,0,1),(1,1,1)). \] Thus \[ \delta=\alpha_0+\alpha_1+\alpha_2,\qquad c=\alpha_0^\vee+\alpha_1^\vee+\alpha_2^\vee. \] The coefficients of the KMRoot are not Dynkin labels. Its converted weight has labels $(0,0,0)$ because $\langle\delta,\alpha_i^\vee\rangle=0$ for every $i$, while the nonzero realization vector proves that $\delta$ itself has not been discarded. The two zero matrices verify the right- and left-kernel equations.
affineTypeData recognizes untwisted and twisted affine families up to simultaneous row-and-column permutation. In its output, "rank" means the number of affine Cartan nodes. The more explicit entries "nodeCount", "cartanMatrixRank", "finiteRank", and "corank" distinguish the different ranks. For a specified datum, each distinguished node list also has labels and position-label tables. The "finitePart" is a table containing a Cartan datum, realization, or root datum according to the input; a matrix input gives the finite Cartan matrix and its associated information.
|
|
|
|
The first tuple is (A_2^(1),untwisted,1,3,2,2,1): there are three simple roots, the Cartan matrix and associated finite system both have rank $2$, and the affine corank is $1$. In the cyclic $A_2^{(1)}$ diagram all three nodes are special. A node table contains both "position" and "label", so it remains unambiguous when custom integer labels collide with positions. A bare integer between $1$ and the number of nodes is interpreted as a position. To refer to a custom integer label that occupies another position, use its position-label table, for example an entry of T#"specialNodeRecords".
Two map fields describe recognition after a permutation, in opposite directions: \[ \begin{split} \texttt{canonicalNodeOrder\#(j-1)} &=\text{input position occupied by canonical node }j,\\ \texttt{inputToCanonicalNodeMap\#(i-1)} &=\text{canonical position of input node }i. \end{split} \] The "canonicalNodeRecords" field gives the first map together with labels.
|
|
|
|
|
|
|
The recognized standard affine vertex is input position $2$, with label "affine". Canonical nodes $1,2,3$ occupy input positions $2,3,1$, whereas the inverse map is $(3,1,2)$.
affineFinitePart and affineClassicalPart accept a position, chosen label, or position-label table when a datum is supplied. The former returns a table describing the finite datum; the latter restricts a weight to its derived finite semisimple subalgebra. In a finite RootDatum result, the global form is explicitly unspecified: the affine Cartan matrix alone does not determine the induced finite character lattice. With no selected node, both commands use the recognized standard affine node. A matrix argument takes a node position numbered from $1$. affineClassicalPart accepts (A,lambda) or (A,lambda,node) with a list or one-row or one-column matrix of Dynkin labels; for a KMWeight, use affineClassicalPart lambda or affineClassicalPart(lambda,node). The finite-part table retains the ambient positions in its "nodes" entry and the retained finite Cartan matrix in "cartanMatrix". With a supplied root datum, its "finiteRootDatum" entry is the finite root datum, and a classical-part table also includes the restricted "finiteWeight". A finite realization constructed this way is the standard realization of the retained finite Cartan matrix; it is not presented as a subspace of the ambient affine realization.
|
|
|
|
Deleting the vertex labeled "affine" retains the labels {"left","right"} and restricts $(2,0,1)$ to the finite $A_2$ weight $(0,1)$.
The level is already determined by Dynkin labels: \[ \operatorname{level}(\lambda)=\lambda(c) =\sum_i a_i^\vee \langle\lambda,\alpha_i^\vee\rangle. \] It does not require dominance or make an integrability assertion. Every root has level zero, so level is constant on the weights of a highest-weight module. affineLevel accepts matrix/list data, KMWeight, or KMRoot. In affineLevel(A,lambda) the first argument can also be a Cartan datum, realization, or root datum, and the labels can be a one-row or one-column matrix. The label list always has one rational entry per affine node.
|
The output $(3,3,0)$ verifies the central-pairing formula directly.
Degree requires more information. affineDerivation constructs a complete normalized KMCoweight in a minimal affine realization. For a selected node $i$, it is the row-space representative satisfying \[ \alpha_i(d)=1/a_i,\qquad \alpha_j(d)=0\ (j\ne i),\qquad \delta(d)=1. \] With no node argument, the recognized standard affine node is used. The node may be specified by a position, label, or position-label table. This choice of representative depends on the supplied realization basis. The Cartan matrix alone does not determine a derivation.
|
|
Here the output is ({1,0,0},{0,0,0,1},1), expressing $\alpha_0(d)=1$, $\alpha_1(d)=\alpha_2(d)=0$, and $\delta(d)=1$. A nonstandard chosen node with mark $a_i>1$ receives evaluation $1/a_i$, not $1$.
affineWeightFromDynkinLabels constructs a weight from this choice of derivation. In a minimal affine realization, Dynkin labels together with one prescribed value $\lambda(d)$ determine a unique complete weight. The three-argument form uses affineDerivation; the four-argument form uses an explicitly supplied complete normalized derivation. Construction does not assert dominance, integrality, integration to the selected global form, or integrability.
|
|
|
|
|
The first output gives the realization tuples $(1,0,0,0)$ and $(1,0,0,-1)$, representing $\Lambda_0$ and $\Lambda_0-\delta$. Both weights have Dynkin labels $(1,0,0)$ and level $1$. Their $d$-eigenvalues are $0$ and $-1$. affineDegree returns the value $\mu(d)$; the nonnegative grade of $\mu$ below the chosen highest weight $\Lambda_0$ is instead $\Lambda_0(d)-\mu(d)=1$. This relative grade is also distinct from the root-height Depth used to truncate completed characters.
Normalization does not make the derivation unique. If $d'=d+c$, then \[ \delta(d')=1,\qquad \lambda(d')=\lambda(d)+\lambda(c) =\lambda(d)+\operatorname{level}(\lambda). \] The explicit derivation argument therefore remains mathematically meaningful.
|
|
|
|
The two grouped tuples are $(1,1,0,1,1)$ and $(\mathrm{true},0,-1)$. affineDegree rejects incomplete weights, incomplete derivations, unnormalized derivations, and weights and derivations belonging to different data. It also accepts a KMRoot directly.
affineDerivation and affineWeightFromDynkinLabels require a minimal affine realization of dimension nodeCount+1. In a nonminimal realization, labels and one degree leave further annihilator directions undetermined. Use weightFromRealizationCoordinates with a complete realization-coordinate vector when those additional coordinates have been specified. weightFromRealizationCoordinates requires a root datum and accepts a list or a one-row or one-column matrix with $\dim\mathfrak h$ entries. affineWeightFromDynkinLabels also accepts its Dynkin labels as a one-row or one-column matrix, with one entry per affine node. Neither full-weight construction is available from a Cartan matrix alone, because the realization and its coordinates must be specified.
Twisted type makes the marks/comarks distinction visible.
|
|
|
|
|
The outputs give \[ \delta=\alpha_0+2\alpha_1,\qquad c=2\alpha_0^\vee+\alpha_1^\vee, \] and levels $(2,1,4)$. Thus level uses comarks rather than marks, and it remains defined for a nondominant weight.
A mark-one node need not be special. In type $D_4^{(3)}$ the marks are $(1,1,2)$, the mark-one nodes are $(1,2)$, but only node $1$ belongs to the automorphism orbit of the recognized standard affine node. Every one-node deletion of an indecomposable affine GCM is finite; "connectedFiniteDeletionNodes" records which remain connected, while "specialNodes" records the distinguished orbit. These notions are not synonyms.
|
|
Low-rank coincidences can have more than one valid type name. "type" gives one name, "typeAliases" gives all the recognized names, and "typeIsAmbiguous" indicates whether more than one applies.
|
|
Here the aliases are $B_2^{(1)}$ and $C_2^{(1)}$; neither name should be treated as uniquely intrinsic to this low-rank diagram.
Results for marks, comarks, and affine type are saved during the current Macaulay2 session. Equal Cartan matrices use the same saved results, but each answer uses the labels and realization of the supplied datum. affineStructureCacheInfo counts the saved results, and clearAffineStructureCache clears them. Existing roots, weights, and data remain valid; later calculations compute the results again.
|
|
|
|
|
|
|
|
The output $(0,1,1,1)$ shows that the equal reconstructed matrix uses the same saved affine result.
The commands affineCartanA2Twisted, affineCartanAOddTwisted, affineCartanDTwisted, affineCartanE6Twisted, and affineCartanD4Twisted provide canonical matrices for the twisted families $A_{2n}^{(2)}$, $A_{2n-1}^{(2)}$, $D_{n+1}^{(2)}$, $E_6^{(2)}$, and $D_4^{(3)}$. Their syntax is affineCartanA2Twisted n for $n\geq1$, affineCartanAOddTwisted n and affineCartanDTwisted n for $n\geq2$, and affineCartanE6Twisted() and affineCartanD4Twisted() with no arguments. Each matrix has its standard affine node in the first position. The first three families have $n+1$ nodes; $E_6^{(2)}$ has five, and $D_4^{(3)}$ has three. Marks and level are determined by the Cartan matrix. A degree pairing also requires a realization, a complete weight, and a derivation: weights differing by a multiple of the null root have the same Dynkin labels but can have different degrees.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:10490:0.