KLR calculator · type $A_N$
Enter a product of generators of the KLR algebra of type $A_N$; it is rewritten in the PBW basis $x_1^{a_1}\cdots x_n^{a_n}\psi_{\hat w}e(\mathbf{i})$: dots on top, crossings below. Products are stacked: $ab$ is $a$ on top of $b$, and $e(\mathbf{i})$ records the labels at the bottom.
Primitive idempotents
For a weight $\alpha$: one primitive idempotent for each indecomposable projective $R_\alpha$-module (one for each root partition of $\alpha$), in the conventions above. Then the complete decomposition of $1$ into pairwise orthogonal primitive idempotents, shown in the PBW basis, in the KLM cellular basis, or through single diagrams $m\cdot\varepsilon_\sigma\cdot n$, as chosen below.
Conventions
Let $I = \{1,\dots,N\}$ be the vertices of $A_N$, with $i$ and $j$ joined iff $|i-j| = 1$. For $\mathbf{i} = (i_1,\dots,i_n) \in I^n$, the algebra is generated by idempotents $e(\mathbf{i})$, dots $x_1,\dots,x_n$ and crossings $\psi_1,\dots,\psi_{n-1}$, subject to the following relations for all $\mathbf{i}, \mathbf{j} \in I^n$ ($s_r\mathbf{i}$ swaps the entries $r$ and $r+1$):
Grading: $\deg e(\mathbf{i}) = 0$, $\deg x_re(\mathbf{i}) = 2$, $\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.
Basis: the elements $x_1^{a_1}\cdots x_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^n$ form a basis (Khovanov–Lauda, Rouquier) once a reduced word $\hat w$ is fixed for every $w$. Here $\hat w$ is the lexicographically smallest reduced word of $w$, read left to right (top to bottom); equivalently $\hat w = c_1c_2\cdots c_{n-1}$ with each $c_k = s_ks_{k-1}\cdots s_{j_k}$ a descending run starting at $k$, possibly empty. For $S_3$ these are $1, s_1, s_2, s_1s_2, s_2s_1, s_1s_2s_1$.
How the reduction works
The input is expanded into words in the generators. Each word is built up from $e(\mathbf{i})$ one generator at a time, from the bottom, and after every step the result is rewritten with these rules until none applies:
- $\psi_rx_s \to x_{s_r(s)}\psi_r$, plus the correction term from the nil-Hecke relation when $s \in \{r, r+1\}$ and $i_r = i_{r+1}$ (dots move up);
- $\psi_r\psi_r \to Q_{i_r,i_{r+1}}(x_r, x_{r+1})$;
- $\psi_b\psi_a \to \psi_a\psi_b$ for $b > a+1$;
- $\psi_{b+1}\psi_b\psi_{b-1}\cdots\psi_c\psi_{b+1} \to \psi_b\psi_{b+1}\psi_b\psi_{b-1}\cdots\psi_c$ plus the braid correction, for $b \geq c$.
Each rule is an identity in the algebra, and each lowers (number of crossings, crossing word in lexicographic order, number of pairs (crossing, dot) with the crossing above the dot) lexicographically, so the process stops. A word to which no rule applies is exactly a basis element $x^a\psi_{\hat w}e(\mathbf{i})$: a word in the $s_r$ avoiding the left-hand sides of rules 2–4 is a product of descending runs with increasing starting letters, i.e. one of the $n!$ words $\hat w$. Since the basis elements are linearly independent, the answer does not depend on the order in which rules are applied.
The optional check applies the input and the output to random vectors $f\,e(\mathbf{i})$ of the faithful polynomial representation $\bigoplus_{\mathbf{i}} \mathbb{Z}[x_1,\dots,x_n]e(\mathbf{i})$, where $x_r$ acts by multiplication and
The KLM affine cellular basis
This follows Kleshchev–Loubert–Miemietz, Affine cellularity of Khovanov–Lauda–Rouquier algebras in type A (arXiv:1210.6542), Theorem 5.21. Write $\alpha(m,n) = \alpha_m + \cdots + \alpha_n$ ($1 \leq m \leq n \leq N$) for the positive roots.
- Order of simple roots, convex order, cuspidal words. KLM order $I = \{1,\dots,N\}$ by $1 < 2 < \cdots < N$, i.e. $\alpha_1 < \alpha_2 < \cdots < \alpha_N$; the other option is $1 > 2 > \cdots > N$. Words in $I$ are compared lexicographically with respect to the chosen order, a proper prefix counting as smaller. The cuspidal word of $\alpha(m,n)$ is $i_{\alpha(m,n)} = (m, m+1, \dots, n)$ for $1 < 2 < \cdots < N$ and $(n, n-1, \dots, m)$ for $1 > 2 > \cdots > N$, and the positive roots are ordered by $\beta < \gamma$ iff $i_\beta < i_\gamma$. Explicitly: $\alpha(m,n) < \alpha(k,l)$ iff $m < k$, or $m = k$ and $n < l$, in the first case; $\alpha(m,n) > \alpha(k,l)$ iff $n < l$, or $n = l$ and $m < k$, in the second. For $N = 2$ this gives $\alpha_1 < \alpha_1+\alpha_2 < \alpha_2$ with $i_{\alpha_1+\alpha_2} = (1,2)$, respectively $\alpha_1 > \alpha_1+\alpha_2 > \alpha_2$ with $i_{\alpha_1+\alpha_2} = (2,1)$. The second datum is the image of KLM's under the diagram automorphism $\sigma\colon i \mapsto N+1-i$, which lifts to an isomorphism $R_\nu \cong R_{\sigma\nu}$ sending each generator to $\pm$ a generator (if $Q_{i,i+1} = \pm(u-v)$: $e(\mathbf{i}) \mapsto e(\sigma\mathbf{i})$, $x_r \mapsto -x_r$, and $\psi_re(\mathbf{i}) \mapsto -\psi_re(\sigma\mathbf{i})$ if $i_r = i_{r+1}$, $\psi_re(\sigma\mathbf{i})$ otherwise; if $Q_{i,i+1} = u+v$: $e(\mathbf{i}) \mapsto e(\sigma\mathbf{i})$, $x_r \mapsto x_r$, $\psi_r \mapsto \psi_r$), so KLM's theorem applies to it. The order on $I$ forces the cuspidal words: with $1 > 2$ but $i_{\alpha_1+\alpha_2} = (1,2)$, both root partitions $\alpha_1\alpha_2$ and $\alpha_1+\alpha_2$ of $\alpha_1+\alpha_2$ would have the word $(1,2)$, and every candidate element of $e(2,1)Re(2,1)$ would have degree $\geq 2$, so $e(2,1)$ would not be in their span. For $N \geq 3$ the order coming from $1 > 2 > \cdots > N$ is not KLM's order reversed: for $N = 3$ it is $\alpha_1 > \alpha(1,2) > \alpha_2 > \alpha(1,3) > \alpha(2,3) > \alpha_3$, while KLM's is $\alpha_1 < \alpha(1,2) < \alpha(1,3) < \alpha_2 < \alpha(2,3) < \alpha_3$.
- Root partitions. $\pi = \beta_1^{p_1}\cdots\beta_s^{p_s}$ with $\beta_1 > \cdots > \beta_s$, $p_k > 0$ and $\sum p_k\beta_k = \nu$. Its word $i_\pi$ is the concatenation of $p_1$ copies of $i_{\beta_1}$, then $p_2$ copies of $i_{\beta_2}$, and so on; root partitions are compared by comparing their words lexicographically (with respect to the chosen order on $I$). Each copy of a cuspidal word occupies a block of consecutive strands.
- Coset representatives. $S_\pi \subseteq S_d$ is the subgroup permuting the strands inside each block, and $S^\pi$ is the set of minimal length left coset representatives of $S_\pi$, i.e. the permutations increasing on every block. For $w \in S^\pi$, $\psi_w$ is the product along the chosen reduced word of $w$, and $\psi_v^\tau$ is the same word read backwards ($\tau$ is the anti-involution fixing all generators).
- Block data. For the $k$-th factor $\beta_k^{p_k}$ (height $h$), $y_{k,s}$ is the dot on the last (KLM) or first strand of the $s$-th $\beta_k$-block, $Y_k = (y_{k,1}, \dots, y_{k,p_k})$, and $\psi_{k,r}$ is the element $\psi_\alpha = (\psi_h\cdots\psi_{2h-1})\cdots(\psi_2\cdots\psi_{h+1})(\psi_1\cdots\psi_h)$ moved to the $r$-th and $(r+1)$-st $\beta_k$-blocks; it exchanges the two blocks. $\psi_{k,w_0}$ is the product of the $\psi_{k,r}$ along $s_1(s_2s_1)\cdots(s_{p-1}\cdots s_1)$, a reduced word for the longest element of $S_{p_k}$.
- The elements. $y_\pi = \prod_k y_{k,2}y_{k,3}^2\cdots y_{k,p_k}^{p_k-1}$ (KLM), or $\prod_k y_{k,1}^{p_k-1}\cdots y_{k,p_k-1}$ with the other option; $\psi_\pi = \prod_k \psi_{k,w_0}$; $e_\pi = \psi_\pi y_\pi e(i_\pi)$ (an idempotent in KLM's conventions; in general $e_\pi^2 = \pm e_\pi$, see below); and $\Lambda_\pi = \bigotimes_k \mathbb{Z}[Y_k]^{S_{p_k}}$, with the chosen $\mathbb{Z}$-basis of each factor (indexed by partitions with at most $p_k$ parts for $s_\lambda$, $m_\lambda$, and with parts at most $p_k$ for $e_\lambda$, $h_\lambda$).
- Theorem (KLM). The elements $\psi_w y_\pi b\, e_\pi \psi_v^\tau$, for $\pi$ a root partition of $\nu$, $w, v \in S^\pi$ and $b$ in a $\mathbb{Z}$-basis of $\Lambda_\pi$, form a $\mathbb{Z}$-basis of $R_\nu$; and for each $\pi$ the span of the elements attached to the $\sigma \geq \pi$ is a two-sided ideal. Results are grouped by $\pi$ and listed with $\pi$ decreasing.
KLM work with $\varepsilon = -1$ and $Q_{i,i+1}(u,v) = u - v$. The other sign conventions offered here are related to these by isomorphisms that send each generator to $\pm$ a generator and each $Y_k$ to $\pm Y_k$, so the same formulas give a basis in every convention (though $e_\pi$ is then idempotent only up to sign). KLM's theorem allows any reduced words and any $\mathbb{Z}$-bases of the $\Lambda_\pi$; the order $1 > 2 > \cdots > N$ is obtained from KLM's by the diagram automorphism, as explained above. The two remaining options (first strands, the reversed staircase) are not covered by KLM's theorem as stated; they were checked by computer in every graded piece of every weight of height $\leq 4$ in $A_2$ and $\leq 3$ in $A_3$, up to three degrees above the minimum. In addition, every graded piece $e(\mathbf{j})Re(\mathbf{i})$ used in a computation is certified on the spot. The page counts the KLM elements of that degree against the dimension of the piece, read off from the PBW basis, and checks that they are linearly independent. It then re-expands the answer in the PBW basis and compares it with the input.
Is $e_\pi$ an idempotent? The factors of $e_\pi$ attached to different $\beta_k^{p_k}$ live on disjoint strands, so they commute and $e_\pi^2 = c\,e_\pi$ with $c$ the product of their signs. The relations depend only on differences of labels, so the sign of $\beta^p$ depends only on $p$ and the height $h$ of $\beta$. For $h = 1$ (the nil-Hecke algebra), $\psi_r$ acts on $\mathbb{Z}[x_1,\dots,x_p]$ by $\varepsilon\partial_r$, where $\partial_rf = (f - s_rf)/(x_r - x_{r+1})$. So $\psi_{w_0}$ acts by $\varepsilon^\ell\partial_{w_0}$ with $\ell = p(p-1)/2$, and $e^2 = \varepsilon^\ell\partial_{w_0}(x^\delta)\,e$. Since $\partial_{w_0}f = \sum_w \operatorname{sgn}(w)\,w(f) / \prod_{i<j}(x_i - x_j)$, we get $\partial_{w_0}(x_1^{p-1}\cdots x_{p-1}) = 1$ and $\partial_{w_0}(x_2x_3^2\cdots x_p^{p-1}) = (-1)^\ell$. The sign is therefore $\varepsilon^\ell$ with the reversed staircase and $(-\varepsilon)^\ell$ with KLM's. For $h \geq 2$ the page computes $e^2$ directly. On at most 8 strands, $e_\pi^2 = \pm e_\pi$ in every convention offered here, and the page flags each $\pi$ with $e_\pi^2 = -e_\pi$. Every $e_\pi$ is an idempotent in KLM's conventions. With the order $1 > 2 > \cdots > N$ and $Q_{i,i+1} = u - v$, every $e_\pi$ on at most 8 strands is an idempotent exactly when $\varepsilon = +1$ and $\delta$ is the reversed staircase (for either choice of block variable). With KLM's other choices instead, $e_{\alpha(1,2)^2}^2 = -e_{\alpha(1,2)^2}$.
Primitive idempotents
For $\alpha = \sum c_i\alpha_i$ the panel returns, for every root partition $\pi$ of $\alpha$, a primitive idempotent $\varepsilon_\pi \in e(i_\pi)R_\alpha e(i_\pi)$ such that $R_\alpha\varepsilon_\pi$ is the indecomposable projective $P(\pi)$ of the cell $\pi$ (up to a grading shift). Different $\pi$ have different words $i_\pi$, so the $\varepsilon_\pi$ are pairwise orthogonal, and every indecomposable projective is isomorphic to exactly one $R_\alpha\varepsilon_\pi$ up to a shift. With “complete decomposition of 1”, every $e(\mathbf{i})$ is then written as a sum of pairwise orthogonal primitive idempotents; together they form a complete set of pairwise orthogonal primitive idempotents with sum $1$. The $\varepsilon_\pi$ are shown in three ways: as a single diagram when they are one (the part coming from a smaller idempotent is shaded in amber; such a diagram is a product of generators, not a basis element), expanded in the PBW basis, and expanded in the KLM cellular basis (the middle part $y_\pi b\, e_\pi$ of each basis element is shaded in blue). The idempotents of the decomposition of $1$ are shown in the form chosen under “show its idempotents as”.
- Nil-Hecke idempotents. For $p$ strands with equal labels, write $\psi_{w_0} = \psi_1(\psi_2\psi_1)\cdots(\psi_{p-1}\cdots\psi_1)$ and $\ell = p(p-1)/2$. The idempotent is $\varepsilon^\ell\psi_{w_0}x_1^{p-1}x_2^{p-2}\cdots x_{p-1}$ (dots bottom left; this is HLZ's $\partial_{w_0}y^\rho$), or $(-\varepsilon)^\ell\psi_{w_0}x_2x_3^2\cdots x_p^{p-1}$ (dots bottom right; KLM's), or the image of one of these under $\tau$ (the same word read backwards, dots on top). For a repeated non-simple root the same is done with blocks of strands, as in KLM's $e_\pi$, with block dots on the strand chosen under “block variable”. The result is the cell idempotent $E_\pi$.
- Construction. Root partitions are processed from the largest cell down. By KLM's theorem, $RE_\pi = P(\pi) \oplus (\text{summands } P(\sigma) \text{ with } \sigma > \pi)$. For each $\sigma > \pi$, the number of summands of $RE_\pi$ isomorphic to $R\varepsilon_\sigma$ is the rank of the pairing $(\varepsilon_\sigma RE_\pi)_{-d} \times (E_\pi R\varepsilon_\sigma)_d \to (\varepsilon_\sigma R\varepsilon_\sigma)_0 = \mathbb{Q}\varepsilon_\sigma$, $(b, a) \mapsto ba$. Dual bases ($b_ka_l = \delta_{kl}\varepsilon_\sigma$) give idempotents $a_kb_k \leq E_\pi$ projecting onto these summands; a unitriangular correction makes all of them exactly orthogonal. Subtracting them from $E_\pi$ leaves a primitive idempotent $\varepsilon'_\pi$ of the cell $\pi$.
- Readable forms. When $E_\pi$ is not itself primitive, the page looks for a divided-power word $\mathbf{j} = j_1^{(p_1)}j_2^{(p_2)}\cdots$ (blocks of equal labels, with the product $\eta = e(\mathbf{j})$ of the nil-Hecke idempotents of its blocks) and for monomials $m \in e(i_\pi)Re(\mathbf{j})$, $n \in e(\mathbf{j})Re(i_\pi)$, fewest letters first, with $\eta nm\eta = c\eta$, $c \neq 0$. Then $\varepsilon_\pi = m\eta n/c$ is an idempotent. It is accepted when $\varepsilon'_\pi\varepsilon_\pi\varepsilon'_\pi = k\varepsilon'_\pi$ and $\varepsilon_\pi\varepsilon'_\pi\varepsilon_\pi = k\varepsilon_\pi$ with $k \neq 0$: then $x = \varepsilon'_\pi\varepsilon_\pi$ and $y = \varepsilon_\pi\varepsilon'_\pi/k$ satisfy $xy = \varepsilon'_\pi$ and $yx = \varepsilon_\pi$, so $R\varepsilon_\pi \cong R\varepsilon'_\pi$. The diagram $m\cdot\eta\cdot n$ is drawn with $\eta$ shaded, followed by a shorter word if the rules $\psi_r\psi_r = 0$ (equal labels), $\psi_r\psi_r = 1$ (labels $i, j$ with $|i-j| > 1$), $\psi_rx_r\psi_r = \varepsilon\psi_r$ and $\psi_rx_{r+1}\psi_r = -\varepsilon\psi_r$ (equal labels) shorten it. For $\alpha = 2\alpha_1+2\alpha_2$ in HLZ's conventions, $\pi = (1)(21)(2)$ gives $\varepsilon_\pi = \psi_1\psi_2\psi_1e(1,2,1,2)$, from $e(2\,1^{(2)}\,2)$, or $\psi_3\psi_2\psi_3e(1,2,1,2)$, from $e(1\,2^{(2)}\,1)$.
- The R3 choice. For a weight on two adjacent labels $j, j+1$, ordered $\alpha_j > \alpha_j+\alpha_{j+1} > \alpha_{j+1}$, the first candidates are Lusztig's tight monomials: for $\pi = \alpha_j^a(\alpha_j+\alpha_{j+1})^k\alpha_{j+1}^b$ they are $(j+1)^{(k)}\,j^{(a+k)}\,(j+1)^{(b)}$ if $a \geq b$ and $j^{(a)}\,(j+1)^{(k+b)}\,j^{(k)}$ if $b \geq a$ (with labels exchanged for the other order). When $a = b$ both exist: “R3 on 121” takes the first, whose equal-label crossings are between $j$-strands, and “R3 on 212” the second. In other cases candidates are ordered by number of blocks, then by the number of crossings needed to turn $\mathbf{j}$ into $i_\pi$, then by this preference. Every candidate is checked as above.
- No divided-power form. Not every indecomposable projective is $Re(\mathbf{j})$ for a divided-power word: for $\alpha_1+3\alpha_2+\alpha_3$ the cell $\alpha(1,2)\alpha_2\alpha(2,3)$ has none (the corresponding canonical basis element of type $A_3$ is not a monomial in divided powers). Then $\varepsilon'_\pi$ is shown as computed.
- Decomposition of 1. For a word $\mathbf{i}$ and a root partition $\sigma$, the summands of $Re(\mathbf{i})$ isomorphic to $R\varepsilon_\sigma$ (up to shifts) are split off by the pairing above with $E = e(\mathbf{i})$: in each degree $d$, monomials $m \in e(\mathbf{i})Re(i_\sigma)$ of degree $d$ and $n \in e(i_\sigma)Re(\mathbf{i})$ of degree $-d$, simplest first, with $b_ka_l = \delta_{kl}\varepsilon_\sigma$ for $a_k = m\varepsilon_\sigma$ and $b_k = \varepsilon_\sigma n/c$, give idempotents $e_k = a_kb_k = m\varepsilon_\sigma n/c$. (When no choice of monomials gives $b_ka_l = \delta_{kl}\varepsilon_\sigma$, $n$ is replaced by a combination of monomials.) The $e_k$ found for all $\sigma$ are orthogonal only modulo the radical: $G_{kl} = b_ka_l$ has $G_{kk} = \varepsilon_{\sigma_k}$, and the other entries lie in the radical. The page then changes one side. Either $a''_l = a_l - \sum_m a''_mb_ma_l$, in an order in which every $m$ with $G_{ml} \neq 0$ comes before $l$, and $f_l = a''_lb_l$, so that $f_l = (1 - \sum_m f_m)\,e_l$; or symmetrically $b''_k = b_k - \sum_l b_ka_lb''_l$ and $f_k = e_k\,(1 - \sum_l f_l)$. (Should the pattern of nonzero $G_{kl}$ contain a cycle, the $b$ side is solved with $G^{-1} = \sum_t (-N)^t$, $N = G - \operatorname{diag}(\varepsilon_{\sigma_k})$ being nilpotent.) In both cases $b''_ka''_l = \delta_{kl}\varepsilon_{\sigma_k}$, so the $f_k$ are pairwise orthogonal idempotents with $Rf_k \cong R\varepsilon_{\sigma_k}$ up to a shift ($x \mapsto xb''_k$ and $y \mapsto ya''_k$ are inverse isomorphisms). For each word the page keeps the side that leaves the most $f_k$ equal to a single diagram; a changed $f_k$ still counts as one when $a''_k = c\,m'\varepsilon_\sigma$ and $b''_k = c'\varepsilon_\sigma n'$ for monomials $m', n'$ (the first 12 are tried). With “single diagrams”, every $f$ is shown either as such a diagram or by the formula above, in terms of the single diagram $e$ and idempotents listed before $f$.
- Graded multiplicities. $Re(\mathbf{i}) \cong \bigoplus_\sigma P(\sigma)^{\oplus \dim_q e(\mathbf{i})L(\sigma)}$. Here $L(\sigma)$ is the self-dual simple module of the cell $\sigma$ and $P(\sigma)$ its projective cover; $\dim_q V = \sum_j \dim(V_j)\,q^j$; and $P^{\oplus \sum a_kq^k} = \bigoplus_k P\langle k\rangle^{\oplus a_k}$, with $M\langle k\rangle_j = M_{j-k}$. The page first computes the characters $\operatorname{ch} L(\sigma) = \sum_{\mathbf{i}} \dim_q(e(\mathbf{i})L(\sigma))\,\mathbf{i}$ from four facts:
- induction of modules is the quantum shuffle product of characters, where shuffling a letter $u$ past a letter $v$ to its left contributes $q^{-(\alpha_u,\alpha_v)}$;
- in type A the cuspidal module $L(\beta)$ is one-dimensional, on the cuspidal word $i_\beta$, and $L(\beta^p) = L(\beta)^{\circ p}\langle p(p-1)/2\rangle$;
- the proper standard module $L(\beta_1^{p_1}) \circ \cdots \circ L(\beta_s^{p_s})$ of $\pi$ has head $L(\pi)$, and its other composition factors are $L(\sigma)\langle k\rangle$ with $\sigma < \pi$ and $k > 0$ (Kleshchev–Ram, Representations of Khovanov–Lauda–Rouquier algebras and combinatorics of Lyndon words; McNamara, Finite dimensional representations of Khovanov–Lauda–Rouquier algebras I: finite type);
- $\operatorname{ch} L(\sigma)$ is bar-invariant ($q \mapsto q^{-1}$), with highest word $i_\sigma$.
- Checks. For every $\varepsilon_\pi$ the page verifies $\varepsilon_\pi^2 = \varepsilon_\pi$, and $(\varepsilon_\pi R\varepsilon_\pi)_d = 0$ for $d < 0$ together with $(\varepsilon_\pi R\varepsilon_\pi)_0 = \mathbb{Q}\varepsilon_\pi$. The latter implies primitivity. Let $f$ be an idempotent of $\varepsilon_\pi R\varepsilon_\pi$. Its degree-0 part $f_0$ is $0$ or $\varepsilon_\pi$. If $f_0 = 0$, the lowest-degree nonzero part $f_d$ ($d > 0$) of $f$ would equal the degree-$d$ part of $f^2$, which is $0$, so $f = 0$; if $f_0 = \varepsilon_\pi$, the same argument applies to $\varepsilon_\pi - f$. In the decomposition of $1$, each listed idempotent $f$ has $Rf \cong R\varepsilon_\sigma$ up to a shift by construction, so it is primitive. The page checks that the idempotents listed under $e(\mathbf{i})$ add up to $e(\mathbf{i})$, which shows that none is missing. The test suite that comes with the page also checks, in small cases, that the idempotents are idempotent, pairwise orthogonal and primitive, that their shifts agree with the characters, and that every displayed formula equals the idempotent it describes.
Size limits
Products are reduced with no fixed bound on the number of strands; a reduction stops after 2 million rewriting steps. The KLM decomposition is limited to 8 strands and to graded pieces $e(\mathbf{j})Re(\mathbf{i})$ of dimension at most 400. Idempotents are computed for height at most 7, and the complete decomposition of $1$ for height at most 6. Weights of height at most 5 take a few seconds. At height 6, $2\alpha_1+2\alpha_2+2\alpha_3$ takes seconds, $3\alpha_1+3\alpha_2$ one to two minutes, and $4\alpha_1+2\alpha_2$ about ten minutes. The computation runs in the background, the page stays usable, and each word of the decomposition is shown as soon as it is done. For such weights some graded pieces exceed the limit of 400, and then the expansion of an idempotent in the cellular basis is not computed (its PBW form always is). Two things grow fast. A graded piece of $e(\mathbf{j})Re(\mathbf{i})$ has a basis indexed by pairs (permutation, dot monomial), so its dimension grows roughly like $d!$ times a polynomial; for $d = 8$ a single piece can have hundreds of elements, and decomposing one element means solving a linear system of that size. And every column of that system is a KLM element $\psi_wy_\pi b\, e_\pi\psi_v^\tau$ written out in the PBW basis, which can have many terms: each time a dot passes a crossing of two equal labels a correction term appears, so for instance squaring the nil-Hecke idempotent on 6 equal strands already takes millions of rewriting steps.
Input syntax
- Dots:
x1,x_1,x_{12},y1. 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$. - Integer coefficients,
+,-, optional*, powers^kand parentheses, e.g.(psi1 + 2 x2)^2 e(1,1). - 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)$. - The page address records the input and conventions, so a computation can be shared by its link.