Cyclotomic KLR calculator · type $A_N$
Compute in a cyclotomic quotient $R^\Lambda_\alpha$ of the KLR algebra of type $A_N$: the normal form of an element in the PBW monomials $y_1^{a_1}\cdots y_n^{a_n}\psi_{\hat w}e(\mathbf{i})$, or its expansion in the graded cellular basis $\{\psi_{\mathfrak{s}\mathfrak{t}}\}$ of Hu–Mathas. Products are stacked: $ab$ is $a$ on top of $b$, and $e(\mathbf{i})$ records the labels at the bottom.
The algebra $R^\Lambda_\alpha$
Conventions
Let $I = \{1,\dots,N\}$ be the vertices of $A_N$, with $i$ and $j$ joined iff $|i-j| = 1$. Let $\alpha = \sum_{i \in I} c_i\alpha_i$ with $c_i \in \mathbb{Z}_{\geq 0}$, of height $n = \sum_i c_i$, and let $I^\alpha$ be the set of sequences $\mathbf{i} = (i_1,\dots,i_n)$ in which each $i$ occurs $c_i$ times. The KLR algebra $R_\alpha$ over $\mathbb{Q}$ is generated by idempotents $e(\mathbf{i})$ ($\mathbf{i} \in I^\alpha$), dots $y_1,\dots,y_n$ and crossings $\psi_1,\dots,\psi_{n-1}$, subject to the following relations for all $\mathbf{i}, \mathbf{j} \in I^\alpha$ ($s_r\mathbf{i}$ swaps the entries $r$ and $r+1$):
Grading: $\deg e(\mathbf{i}) = 0$, $\deg y_re(\mathbf{i}) = 2$ and $\deg \psi_re(\mathbf{i}) = -a_{i_ri_{r+1}}$, where $a_{ii} = 2$, $a_{ij} = -1$ if $|i-j| = 1$ and $a_{ij} = 0$ otherwise. Brundan–Kleshchev and Hu–Mathas use $\varepsilon = -1$ and $Q_{i,i+1}(u,v) = v - u$ (the button above); Hase-Liu–Zhou use $\varepsilon = +1$ and $Q_{i,i+1}(u,v) = u - v$.
PBW basis: the elements $y_1^{a_1}\cdots y_n^{a_n}\psi_{\hat w}e(\mathbf{i})$ with $a \in \mathbb{Z}_{\geq 0}^n$, $w \in S_n$, $\mathbf{i} \in I^\alpha$ form a basis of $R_\alpha$ (Khovanov–Lauda, Rouquier). Here $\hat w$ is the lexicographically smallest reduced word of $w$, read left to right (top to bottom); for $S_3$ these are $1, s_1, s_2, s_1s_2, s_2s_1, s_1s_2s_1$.
The cyclotomic quotient and the Hu–Mathas basis
The quotient. Let $\Lambda = \sum_{i \in I}\omega_i\Lambda_i$ with $\omega_i \in \mathbb{Z}_{\geq 0}$, not all $0$, of level $\ell = \sum_i \omega_i$; here $(\Lambda_i,\alpha_j) = \delta_{ij}$. The cyclotomic quotient is $R^\Lambda_\alpha = R_\alpha/I^\Lambda_\alpha$, where $I^\Lambda_\alpha$ is the two-sided ideal generated by the elements $y_1^{(\Lambda,\alpha_{i_1})}e(\mathbf{i}) = y_1^{\omega_{i_1}}e(\mathbf{i})$, $\mathbf{i} \in I^\alpha$. It is a finite-dimensional graded algebra.
Multicharge, multipartitions, residues. A multicharge for $\Lambda$ is a sequence $\kappa = (\kappa_1,\dots,\kappa_\ell)$ in which each $i \in I$ occurs $\omega_i$ times, so that $\Lambda = \Lambda_{\kappa_1} + \cdots + \Lambda_{\kappa_\ell}$; it is taken in increasing or decreasing order, or as entered. An $\ell$-multipartition $\lambda = (\lambda^{(1)},\dots,\lambda^{(\ell)})$ is a sequence of partitions. Its nodes are the triples $(r,c,k)$ with $1 \leq c \leq \lambda^{(k)}_r$: row $r$ and column $c$ of the $k$-th Young diagram, drawn in English notation. The residue of $(r,c,k)$ is $\kappa_k + c - r$. A node $B$ is below a node $A$ if $B$ lies in a later component than $A$, or in the same component and a lower row; above is the reverse. The multipartitions that matter are those of content $\alpha$: for each $i$, exactly $c_i$ nodes have residue $i$ (so every residue lies in $I$). The dominance order is $\lambda \trianglerighteq \mu$ iff $|\lambda^{(1)}| + \cdots + |\lambda^{(k-1)}| + \lambda^{(k)}_1 + \cdots + \lambda^{(k)}_r \geq |\mu^{(1)}| + \cdots + |\mu^{(k-1)}| + \mu^{(k)}_1 + \cdots + \mu^{(k)}_r$ for all $k$ and $r$.
Tableaux and degrees. A standard $\lambda$-tableau $\mathfrak{t}$ fills the nodes of $\lambda$ with $1,\dots,n$, increasing along the rows and down the columns of each component; $\operatorname{Std}(\lambda)$ is the set of them. The residue sequence of $\mathfrak{t}$ is $\mathbf{i}^{\mathfrak{t}} = (\operatorname{res}\mathfrak{t}^{-1}(1),\dots,\operatorname{res}\mathfrak{t}^{-1}(n))$, and $\mathfrak{t}{\downarrow}k$ is the subtableau of the entries $1,\dots,k$. For a multipartition $\mu$ and a removable node $A$ of $\mu$ of residue $i$, let $d_A(\mu)$ be the number of addable nodes of $\mu$ of residue $i$ below $A$ minus the number of removable nodes of $\mu$ of residue $i$ below $A$, and let $d^A(\mu)$ be the same count with “above”. The degree and codegree of $\mathfrak{t}$ (Brundan–Kleshchev–Wang) are $\deg\mathfrak{t} = \sum_{k=1}^n d_{\mathfrak{t}^{-1}(k)}\bigl(\operatorname{Shape}(\mathfrak{t}{\downarrow}k)\bigr)$ and $\operatorname{codeg}\mathfrak{t} = \sum_{k=1}^n d^{\mathfrak{t}^{-1}(k)}\bigl(\operatorname{Shape}(\mathfrak{t}{\downarrow}k)\bigr)$.
The basis $\psi_{\mathfrak{s}\mathfrak{t}}$ (J. Hu and A. Mathas, Graded cellular bases for the cyclotomic Khovanov–Lauda–Rouquier algebras of type A, Adv. Math. 225 (2010), arXiv:0907.2985). Let $\mathfrak{t}^\lambda$ be the standard tableau with $1,\dots,n$ entered in order along the rows of $\lambda^{(1)}$, then along the rows of $\lambda^{(2)}$, and so on, let $\mathbf{i}^\lambda = \mathbf{i}^{\mathfrak{t}^\lambda}$ and $e_\lambda = e(\mathbf{i}^\lambda)$. Put $y_\lambda = y_1^{a_1}\cdots y_n^{a_n}$, where $a_k$ is the number of addable nodes of $\operatorname{Shape}(\mathfrak{t}^\lambda{\downarrow}k)$ of residue $i^\lambda_k$ below $(\mathfrak{t}^\lambda)^{-1}(k)$. For $\mathfrak{t} \in \operatorname{Std}(\lambda)$ let $d(\mathfrak{t}) \in S_n$ be the permutation with $\mathfrak{t} = \mathfrak{t}^\lambda d(\mathfrak{t})$, where $S_n$ acts on the right on the entries of tableaux. Write $d(\mathfrak{t}) = s_{r_1}\cdots s_{r_k}$ for the reduced expression whose sequence $(r_1,\dots,r_k)$ is lexicographically smallest (or largest, as selected), and put $\psi_{d(\mathfrak{t})} = \psi_{r_1}\cdots\psi_{r_k}$. Then $$\psi_{\mathfrak{s}\mathfrak{t}} = \psi_{d(\mathfrak{s})}^{*}\, e_\lambda\, y_\lambda\, \psi_{d(\mathfrak{t})} \qquad (\mathfrak{s},\mathfrak{t} \in \operatorname{Std}(\lambda)),$$ where $*$ is the anti-involution of $R_\alpha$ that fixes every generator (it reads words backwards); Hu–Mathas write $\psi_{d(\mathfrak{s})^{-1}}$ for $\psi_{d(\mathfrak{s})}^{*}$. In the diagram of $\psi_{d(\mathfrak{t})}e(\mathbf{i}^{\mathfrak{t}})$ the strand of each node $A$ runs from position $\mathfrak{t}(A)$ at the bottom to position $\mathfrak{t}^\lambda(A)$ at the top; the bottom labels of $\psi_{\mathfrak{s}\mathfrak{t}}$ are $\mathbf{i}^{\mathfrak{t}}$ and its top labels $\mathbf{i}^{\mathfrak{s}}$.
Theorem (Hu–Mathas). The elements $\psi_{\mathfrak{s}\mathfrak{t}}$, for $\lambda$ an $\ell$-multipartition of content $\alpha$ and $\mathfrak{s},\mathfrak{t} \in \operatorname{Std}(\lambda)$, form a graded cellular basis of $R^\Lambda_\alpha$: $\deg\psi_{\mathfrak{s}\mathfrak{t}} = \deg\mathfrak{s} + \deg\mathfrak{t}$, $\psi_{\mathfrak{s}\mathfrak{t}}^* = \psi_{\mathfrak{t}\mathfrak{s}}$, and for every $\lambda$ the span $R^{\rhd\lambda}$ of the $\psi_{\mathfrak{u}\mathfrak{v}}$ of shape $\mu \rhd \lambda$ is a two-sided ideal, and for every $a \in R^\Lambda_\alpha$, $\psi_{\mathfrak{s}\mathfrak{t}}a \equiv \sum_{\mathfrak{v} \in \operatorname{Std}(\lambda)} r_{\mathfrak{t}\mathfrak{v}}(a)\,\psi_{\mathfrak{s}\mathfrak{v}}$ modulo $R^{\rhd\lambda}$, with $r_{\mathfrak{t}\mathfrak{v}}(a)$ independent of $\mathfrak{s}$ (and, applying $*$, symmetrically for $a\psi_{\mathfrak{s}\mathfrak{t}}$). Hu–Mathas state this for the quiver of type $A_\infty$ (their $e = 0$; residues in $\mathbb{Z}$); $R_\alpha$ and its cyclotomic relations only involve the vertices in the support of $\alpha$, so for $A_N$ it applies verbatim.
The dual basis $\psi'_{\mathfrak{s}\mathfrak{t}}$ (Hu–Mathas, §6). Let $\mathfrak{t}_\lambda$ be the standard tableau with $1,\dots,n$ entered in order down the columns of $\lambda^{(\ell)}$, then down the columns of $\lambda^{(\ell-1)}$, and so on, let $\mathbf{i}_\lambda = \mathbf{i}^{\mathfrak{t}_\lambda}$ and $e'_\lambda = e(\mathbf{i}_\lambda)$, let $y'_\lambda = y_1^{a'_1}\cdots y_n^{a'_n}$ with $a'_k$ the number of addable nodes of $\operatorname{Shape}(\mathfrak{t}_\lambda{\downarrow}k)$ of residue $(\mathbf{i}_\lambda)_k$ above $\mathfrak{t}_\lambda^{-1}(k)$, and let $\mathfrak{t} = \mathfrak{t}_\lambda d'(\mathfrak{t})$, with $\psi_{d'(\mathfrak{t})}$ defined from a reduced expression as before. Then the elements $\psi'_{\mathfrak{s}\mathfrak{t}} = \psi_{d'(\mathfrak{s})}^{*}\,e'_\lambda\,y'_\lambda\,\psi_{d'(\mathfrak{t})}$ form a graded cellular basis of $R^\Lambda_\alpha$ for the reversed dominance order, with $\deg\psi'_{\mathfrak{s}\mathfrak{t}} = \operatorname{codeg}\mathfrak{s} + \operatorname{codeg}\mathfrak{t}$.
Graded dimensions. Hence $\dim_q e(\mathbf{j})R^\Lambda_\alpha e(\mathbf{i}) = \sum_\lambda \sum q^{\deg\mathfrak{s}+\deg\mathfrak{t}}$, the inner sum over $\mathfrak{s},\mathfrak{t} \in \operatorname{Std}(\lambda)$ with $\mathbf{i}^{\mathfrak{s}} = \mathbf{j}$ and $\mathbf{i}^{\mathfrak{t}} = \mathbf{i}$, where $\dim_q V = \sum_d \dim(V_d)\,q^d$. In particular $e(\mathbf{i}) \neq 0$ in $R^\Lambda_\alpha$ iff $\mathbf{i}$ is the residue sequence of a standard tableau. The cell module of $\lambda$ has graded dimension $\sum_{\mathfrak{t} \in \operatorname{Std}(\lambda)} q^{\deg\mathfrak{t}}$ (for $\psi'$: $q^{\operatorname{codeg}\mathfrak{t}}$).
Order of the cells. The page lists multipartitions, and groups the terms of an expansion, in a total order refining the cell order, largest first: $\lambda$ comes before $\mu$ if the sequence of partial sums $|\lambda^{(1)}| + \cdots + |\lambda^{(k-1)}| + \lambda^{(k)}_1 + \cdots + \lambda^{(k)}_r$ (for $k = 1,\dots,\ell$ and $r = 1, 2, \dots$, with at least one $r$ per component) is lexicographically larger than that of $\mu$. For $\psi'$ the order is reversed.
Other sign conventions. Hu–Mathas use the relations of Brundan–Kleshchev. Every other choice of $\varepsilon$ and $Q$ offered here is related to these by an isomorphism sending each $e(\mathbf{i})$, $y_re(\mathbf{i})$ and $\psi_re(\mathbf{i})$ to $\pm$ itself (for instance $y_r \mapsto -y_r$ changes the sign of $\varepsilon$ and of $Q$). Such an isomorphism maps the cyclotomic ideal to itself and each $\psi_{\mathfrak{s}\mathfrak{t}}$ to $\pm\psi_{\mathfrak{s}\mathfrak{t}}$, so the same definitions give a graded cellular basis in every convention, and normal forms change only by signs.
How the normal form is computed
Normal form. Every graded piece $e(\mathbf{j})(R_\alpha)_De(\mathbf{i})$ of $R_\alpha$ is finite-dimensional, with basis the PBW monomials $y^a\psi_{\hat w}e(\mathbf{i})$ of degree $D$ with top labels $\mathbf{j}$. These are totally ordered: $y^a\psi_{\hat w}e(\mathbf{i}) > y^b\psi_{\hat v}e(\mathbf{i})$ if $a_1 + \cdots + a_n > b_1 + \cdots + b_n$; or these sums are equal and $a > b$ lexicographically (comparing $a_1$ and $b_1$ first); or $a = b$ and $\ell(w) > \ell(v)$; or $a = b$, $\ell(w) = \ell(v)$ and $\hat w > \hat v$ lexicographically. A monomial is standard if it is not the largest monomial of an element of $I^\Lambda_\alpha$. The standard monomials of a piece map to a basis of the corresponding piece of $R^\Lambda_\alpha$, so their number equals the number of $\psi_{\mathfrak{s}\mathfrak{t}}$ in it. The PBW normal form of $x \in R_\alpha$ is the unique linear combination of standard monomials congruent to $x$ modulo $I^\Lambda_\alpha$. Two elements of $R_\alpha$ have the same image in $R^\Lambda_\alpha$ iff they have the same normal form; in particular $x = 0$ in $R^\Lambda_\alpha$ iff its normal form is $0$. The coefficients are rational numbers.
The ideal in a graded piece. For $\mathbf{k} \in I^\alpha$ let $Y_{\mathbf{k}} = y_1^{\omega_{k_1}}e(\mathbf{k})R_\alpha$. This right ideal is spanned by the PBW monomials with top labels $\mathbf{k}$ and $a_1 \geq \omega_{k_1}$. As $R_\alpha$ has the basis $\psi_{\hat p}\,y^be(\mathbf{k})$ (crossings above dots) and $y^bY_{\mathbf{k}} \subseteq Y_{\mathbf{k}}$, we have $I^\Lambda_\alpha = \sum_{p,\mathbf{k}}\psi_{\hat p}Y_{\mathbf{k}}$. Factor $p = dq$ with $q$ fixing $1$, $d = s_{m-1}\cdots s_1$ for some $m$, and $\ell(p) = \ell(d) + \ell(q)$. The crossings of $\psi_{\hat q}$ avoid the first strand, so $\psi_{\hat q}Y_{\mathbf{k}} \subseteq Y_{q\mathbf{k}}$; and passing between two reduced words of $p$ only adds terms with fewer crossings. By induction on $\ell(p)$, $$I^\Lambda_\alpha = \sum_{m=1}^{n}\ \sum_{\mathbf{k} \in I^\alpha}\psi_{m-1}\psi_{m-2}\cdots\psi_1\,Y_{\mathbf{k}}.$$ So $e(\mathbf{j})(I^\Lambda_\alpha)_De(\mathbf{i})$ is spanned by the products $\psi_{m-1}\cdots\psi_1\,b$ with $1 \leq m \leq n$, where $b$ runs over the PBW monomials of $e(\mathbf{k})R_\alpha e(\mathbf{i})$ of degree $D - \deg(\psi_{m-1}\cdots\psi_1e(\mathbf{k}))$ with $a_1 \geq \omega_{j_m}$, and $\mathbf{k} = (j_m, j_1, \dots, j_{m-1}, j_{m+1}, \dots, j_n)$.
Certificate. The page rewrites these products in the PBW basis, one at a time, and adds them to an echelon form over $\mathbb{Q}$ whose pivots are largest monomials, kept fully reduced. It stops when the rank reaches $\dim e(\mathbf{j})(R_\alpha)_De(\mathbf{i}) - h$, where $h$ is the number of $\psi_{\mathfrak{s}\mathfrak{t}}$ of degree $D$ with $\mathbf{i}^{\mathfrak{s}} = \mathbf{j}$ and $\mathbf{i}^{\mathfrak{t}} = \mathbf{i}$. By the Hu–Mathas theorem $h$ is the dimension of this piece of $R^\Lambda_\alpha$, so at that point the echelon form spans the whole ideal piece, and its pivots are exactly the non-standard monomials. The normal form of $x$ is what remains after reducing $x$ by the echelon form. The certificate below each answer lists these dimensions for every graded piece involved.
The Hu–Mathas expansion. In each graded piece, every $\psi_{\mathfrak{s}\mathfrak{t}}$ of that piece is expanded in the PBW basis of $R_\alpha$ and reduced to normal form, and the square linear system $\sum c_{\mathfrak{s}\mathfrak{t}}\operatorname{NF}(\psi_{\mathfrak{s}\mathfrak{t}}) = \operatorname{NF}(x)$ is solved over $\mathbb{Q}$ in the coordinates of the standard monomials. The page checks that the system is nonsingular, i.e. that these $\psi_{\mathfrak{s}\mathfrak{t}}$ are linearly independent modulo $I^\Lambda_\alpha$.
Tests. The engine behind this page was checked by a test suite. For sixteen small algebras (heights 1 to 4, levels 1 to 3), in four sign conventions and for both bases, it checks in every graded piece in degrees $-8$ to $10$ that the span of all the products $\psi_{m-1}\cdots\psi_1b$ above has dimension $\dim e(\mathbf{j})(R_\alpha)_De(\mathbf{i}) - h$, so the Hu–Mathas count is matched without stopping early; that the $\psi_{\mathfrak{s}\mathfrak{t}}$ are linearly independent modulo the ideal; and that $\psi_{\mathfrak{s}\mathfrak{t}}$ has degree $\deg\mathfrak{s}+\deg\mathfrak{t}$. For six algebras of height 3 or 4 it also checks the cellularity property for every product of a generator with a basis element (in two sign conventions, in both bases and for both choices of reduced expressions), and $\operatorname{NF}(gb) = \operatorname{NF}(g\operatorname{NF}(b))$ for every generator $g$ and a sample of PBW monomials $b$. Known cases agree: for instance $\dim R^{3\Lambda_1}_{2\alpha_1} = 12 = (2!)^2\binom{3}{2}$, as for the cyclotomic nil-Hecke algebra, which is a matrix algebra over the cohomology of a Grassmannian.
Size limits
The height of $\alpha$ is limited to 14 and the level of $\Lambda$ to 8, and the multipartitions of content $\alpha$ may have at most 40000 standard tableaux in total. Normal forms are computed in graded pieces of $R_\alpha$ of dimension at most 20000; the input is first rewritten in the PBW basis of $R_\alpha$, with at most 50 million rewriting steps. Computations run in the background, the page stays usable, and the Stop button ends a computation. Graded pieces already computed are remembered, so further elements of the same algebra are faster. For example, on 6 strands, graded pieces of dimension about 1500 and about 12000 took about 0.3 and 6 seconds respectively. Two things grow fast. A graded piece has a basis indexed by pairs (permutation, dot monomial), so its dimension grows roughly like $n!$ times a polynomial in $D$. And on many strands the products $\psi_{m-1}\cdots\psi_1b$ and the elements $\psi_{\mathfrak{s}\mathfrak{t}}$ have many terms in the PBW basis, because a dot passing a crossing of two equal labels creates a correction term.
Input syntax
- Dots:
y1,y_1,y_{12},x1(the same). Crossings:psi1,psi_1,ψ1,\psi_{1},tau1. - Idempotents:
e(1,2,1),e(121),e_{121}; separate labels by commas when $N \geq 10$. Each must have content $\alpha$. - Integer coefficients,
+,-, optional*, powers^kand parentheses, e.g.(psi1 + 2 y2)^2 e(1,1,2). - Every product must contain an idempotent; it fixes the labels at its height, so
psi1 e(1,2) psi1is $\psi_1e(1,2)\psi_1 = \psi_1^2e(2,1)$. - $\Lambda$ and $\alpha$: multiplicities such as
2,1, or sums such as2L1+L2and2a1+a2(alsoΛ1,\Lambda_1,α1). - The page address records the input and the conventions, so a computation can be shared by its link.