HookPieri computes the straightening relations of products of hook tableaux, the Pieri maps between hook Schur functors that produce them, the finite hook algebras presented by them, and the determinantal Poincaré series of the accompanying paper Hook algebras and determinantal varieties by Steven V Sam, Keller VandeBogert, and Jerzy Weyman.
Tabloids and straightening. A hook of type $(a,b)$ is the partition $(a+1,1^b)$: $a$ boxes to the right of its corner and $b$ below it. Semistandard fillings of this hook on $1,\ldots,n$ form a basis of the hook Schur functor $\mathbf S_{(a+1,1^b)}(\mathbf k^n)$. A hook tabloid displays a product of hook tableaux by nesting them along the diagonal of one Young diagram.
A HookTabloid is entered by its rows, top row first, through tabloid; every function that takes a tabloid also accepts the list of rows. The main command, hookStraighten, writes a tabloid in the semistandard hook basis (weakly increasing rows and strictly increasing columns) and returns a hash table from semistandard tabloids to coefficients. Here the two diagonal hooks of $T$ are semistandard separately but their product is not. straighteningStep performs one rewrite of the algorithm of Section 6 of the paper; here both terms it produces still need straightening. hookStraighten gives the full normal form, either from $T$ or from this intermediate result.
|
|
|
|
|
|
In the hook algebra, the table firstStep is the relation $$ \begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array} = -2\,\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array} + \begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\end{array}. $$ Neither tableau on the right is semistandard. The table nf gives the completed straightening relation $$ \begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array} = \begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array}. $$ The coefficient of the final tableau is $1$; the last true checks that straightening firstStep gives this same result.
Pieri maps. The relations come from the crossed hook Pieri maps of Section 4 of the paper. For $V=\mathbf k^n$ in characteristic zero and nested hook types $(a,b)$ and $(c,d)$, with $a>c$ and $b>d$, these are the injections $$ \mathbf S_{(c+1,1^b)}(V)\otimes\mathbf S_{(a+1,1^d)}(V) \xrightarrow{\ \varphi\ } \mathbf S_{(a+1,1^b)}(V)\otimes\mathbf S_{(c+1,1^d)}(V). $$ Their images are the linear combinations of hook products that become zero in the hook algebra. pieriMatrix builds the matrix of the map for two hook types on $n$ letters, with its source and target bases of pairs of tabloids stored on the matrix, and pieriImage reads a column as a combination of target pairs.
|
|
|
|
The types {2,2} and {0,0} mean the shapes $(3,1,1)$ and $(1)$, so the matrix above represents $$ \bigwedge^3 V\otimes\operatorname{Sym}^3(V) \xrightarrow{\ \varphi\ } \mathbf S_{(3,1,1)}(V)\otimes V, \qquad V=\mathbf k^3. $$ The output $(18,10,10)$ says there are $18$ target basis vectors and $10$ independent relations; the cokernel is the $8$-dimensional Schur functor $\mathbf S_{(3,2,1)}(\mathbf k^3)$. The last table describes the image of the first source basis vector: three times the displayed target pair. As an element of the relation space, this combination is zero in the hook algebra.
Hook rings and hook algebras. In characteristic zero, the universal hook algebra has the decomposition $$ \mathcal H(V)\cong \bigoplus_{\ell(\lambda)\le\dim V}\mathbf S_\lambda(V), \qquad \deg\mathbf S_\lambda(V)=(r(\lambda),|\lambda|) $$ as a bigraded $\mathrm{GL}(V)$-representation. Here $r(\lambda)$ is the number of diagonal boxes and $|\lambda|$ is the total number of boxes. Its generators are the hook summands $\mathbf S_{(a+1,1^b)}(V)$, of bidegree $(1,a+b+1)$. Multiplying strictly nested hooks (with both arms and legs decreasing) projects onto the Schur functor of their assembled shape; products of nonnested hook types are zero.
In hookRing(n, types) and hookAlgebra(n, types), $n=\dim V$ and types is a list of pairs {arm, leg} specifying a finite set $\mathcal T$ of hook types. The two commands construct, respectively, $$ R_{\mathcal T}=\operatorname{Sym}\!\left( \bigoplus_{(a,b)\in\mathcal T}\mathbf S_{(a+1,1^b)}(V)\right), \qquad A_{\mathcal T}=R_{\mathcal T}/I_{\mathcal T}, $$ where $I_{\mathcal T}$ is the ideal returned by straighteningIdeal. Thus $A_{\mathcal T}$ is the subalgebra of $\mathcal H(V)$ generated by the chosen hook summands. The variables z0, z1, ... index their semistandard basis vectors, and tabloid recovers the tableau of a variable. These are ordinary polynomial and quotient rings of Macaulay2.
In the call below, 3 specifies $V=\mathbb Q^3$ and {{0,0},{1,1},{2,2}} selects the hook shapes $(1)$, $(2,1)$, and $(3,1,1)$. The resulting algebra is graded by the number of hook factors, the first of the two gradings above; in particular, every ring variable has degree $1$, even though these three hook shapes have different sizes.
|
|
|
|
|
|
|
|
The rank-graded pieces in this example are $$ \begin{aligned} A_0&=\mathbb Q,\\ A_1&\cong V\oplus\mathbf S_{(2,1)}(V) \oplus\mathbf S_{(3,1,1)}(V),\\ A_2&\cong\mathbf S_{(2,2)}(V)\oplus\mathbf S_{(3,2,1)}(V) \oplus\mathbf S_{(3,3,2)}(V),\\ A_3&\cong\mathbf S_{(3,3,3)}(V),\qquad A_i=0\ (i>3). \end{aligned} $$ Thus $\dim A_1=3+8+6=17$, $\dim A_2=6+8+3=17$, and $\dim A_3=1$, explaining the Hilbert series $1+17q+17q^2+q^3$. The other number in $(17,136)$ counts the defining quadrics. The displayed relation means $z_4z_{14}=-z_2z_{15}-z_1z_{16}$ in $A$, while $z_0z_{12}$ is the normal form of the earlier tabloid $T$ in $A$. The final true verifies that the quadratic relations form a Gröbner basis in the chosen order.
Fine Segre products. Let $S$ be the polynomial ring on the entries of a generic matrix and $I_r$ its ideal of $r\times r$ minors. The groups $\operatorname{Tor}^S_i(S/I_r,\mathbf k)$ record the generators in the minimal $S$-free resolution of $S/I_r$ and together carry an algebra structure. For the generic determinantal ring the paper degenerates the Tor algebra $\operatorname{Tor}^S(S/I_r,\mathbf k)$ to a Zhang twist of the fine Segre product $A_V \boxtimes A_W$ of two finite hook retracts (Section 7.4.3). fineSegreAlgebra builds that fine Segre product as a quotient ring, exactly as hookAlgebra builds a hook algebra, and fineSegreRing is its ambient polynomial ring. Every variable is a pair of hook tableaux, one from each factor, and tabloid of a variable returns that pair; hookTypes lists the triples of a base hook type with its left and right types, and the variables come in blocks of decreasing base type. For the $2 \times 2$ minors of a $3 \times 3$ matrix the blocks have $9, 8, 8, 9$ variables, indexed by the same pairs of tableaux as $\operatorname{Tor}^S_i(S/I_2,\mathbf k)$ for $i = 3, 2, 2, 1$, whose Betti numbers are $9, 16, 9$, and the single standard quadratic monomial spans $\operatorname{Tor}_4$. relationKind classifies the quadratic monomials: a pair is standard when both factor pairs are semistandard, bad on each side whose factor pair is not, and zero when the base types are not strictly nested; hookRelation is the straightening relation of a bad pair, which reduces to a multiple of the standard monomial or to zero, and in the algebra the products are already reduced.
|
|
|
|
|
|
|
|
|
|
There are $34$ generators and $594$ defining quadrics. The relation $w_1w_{32}+w_0w_{33}$ explains the negative sign in the second product; the third product is zero. The Hilbert variables $T_0,\ldots,T_3$ mark the four listed base hook types. Their coefficients $9,8,8,9$ count the generators in these types, while $T_0T_3$ records the one-dimensional space of quadratic products, spanned by $w_0w_{33}$.
Poincaré series: cubic generic minors. The command genericDetPoincare(n, m, r) concerns $R=S/I_r$, where $S=\operatorname{Sym}(V\otimes W)$, $\dim V=n$, $\dim W=m$, and $I_r$ is generated by the $r\times r$ minors of a generic $n\times m$ matrix. Matrix entries have internal degree one. It returns $$P_R(t,s)=\sum_{i,j} [\operatorname{Tor}^R_i(\mathbf k,\mathbf k)_j]t^i s^j.$$ Brackets denote characters, $t$ records homological degree, and $s$ records internal degree. The examples below have cubic defining equations and are neither Koszul nor Golod; the formula determines their entire residue-field Poincaré series from finite equivariant data over $S$.
The output uses Schur polynomials in two sets of variables: $$\begin{aligned} x_\lambda&=s_\lambda(x_1,\ldots,x_n)=[\mathbf S_\lambda(V)],\\ y_\mu&=s_\mu(y_1,\ldots,y_m)=[\mathbf S_\mu(W)]. \end{aligned}$$ Thus $x_\lambda y_\mu$ denotes $\mathbf S_\lambda(V)\otimes\mathbf S_\mu(W)$; sums with nonnegative coefficients denote direct sums with those multiplicities. The empty partition denotes the trivial character. These alphabets encode representations, not matrix entries. We take the $3\times3$ minors of a generic $5\times5$ matrix: the first two arguments give the matrix dimensions and the third gives the minor size.
|
|
|
|
The two outputs are the numerator and denominator of the numerical series (characters replaced by dimensions and $s=1$): $$P_R(t,1)=\frac{(1+t)^{25}}{D(t)},$$ $$\begin{aligned} D(t)={}&1-100t^2-450t^3-828t^4-700t^5\\ &+700t^7+828t^8+450t^9+100t^{10}-t^{12}. \end{aligned}$$ The Betti numbers are coefficients of the quotient, not coefficients of $D(t)$.
|
|
In betti(P, 4), column $i$ and row $j-i$ give $\dim\operatorname{Tor}^R_i(\mathbf k,\mathbf k)_j$. The column totals $1,25,400,5250,64728$ stop at homological degree four; the resolution continues. The equivariant table explains the first off-diagonal entry explicitly: $$\begin{aligned} \operatorname{Tor}^R_1(\mathbf k,\mathbf k)_1 &\cong V\otimes W,\\ \operatorname{Tor}^R_2(\mathbf k,\mathbf k)_2 &\cong\bigl(\operatorname{Sym}^2V\otimes\bigwedge^2W\bigr) \oplus\bigl(\bigwedge^2V\otimes\operatorname{Sym}^2W\bigr),\\ \operatorname{Tor}^R_2(\mathbf k,\mathbf k)_3 &\cong\bigwedge^3V\otimes\bigwedge^3W. \end{aligned}$$ Here $\dim V=\dim W=5$. The two internal degrees in homological degree two have dimensions $15\cdot10+10\cdot15=300$ and $10\cdot10=100$, respectively. Thus $400=300+100$; the cubic minors supply the second summand, printed in row $1$. Its presence rules out Koszulity.
The finite resolution supplying the formula is a different one: that of $R$ over the polynomial ring $S$.
|
|
This table lists $\operatorname{Tor}^S_i(R,\mathbf k)_j$. For these cubic equations, a strand $d=(j-i)/2$ contributes $$(-1)^d[\operatorname{Tor}^S_i(R,\mathbf k)_{i+2d}] s^{i+2d}t^{i+d}$$ to the equivariant denominator. In particular, column $4$, row $4$ is $$\operatorname{Tor}^S_4(R,\mathbf k)_8 \cong\mathbf S_{(2,2,2,2)}(V) \otimes\mathbf S_{(2,2,2,2)}(W),$$ of dimension $15\cdot15=225$. Its second-strand contribution is $+225s^8t^6$, beyond the first-strand terms of a Golod formula; the test accordingly returns false. Setting $s=1$ hides this particular contribution, since it cancels the first-strand term $-225s^7t^6$.
Cubic symmetric minors. In symDetPoincare(n, r), $r$ is again the minor size, but the matrix is symmetric. Take $$R_{\mathrm{sym}}= \operatorname{Sym}(\operatorname{Sym}^2V)/I_3, \qquad V=\mathbf k^5.$$ There are $15$ degree-one matrix entries. Now only the alphabet $x_\lambda=[\mathbf S_\lambda(V)]$ occurs.
|
|
|
|
|
The numerical fraction is $$P_{R_{\mathrm{sym}}}(t,1)= \frac{(1+t)^{15}} {1-50t^2-175t^3-252t^4-175t^5-50t^6+t^8}.$$ The table gives total Betti numbers $1,15,155,1380,11992$. Its column labeled $2$ separates the $105$ internal-degree-two classes from the $50$ internal-degree-three classes. Keeping their representations:
|
|
The characters $x_{(3,1)}$ in row $0$ and $x_{(2,2,2)}$ in row $1$ mean $$\begin{aligned} \operatorname{Tor}^{R_{\mathrm{sym}}}_2(\mathbf k,\mathbf k)_2 &\cong\mathbf S_{(3,1)}(V),\\ \operatorname{Tor}^{R_{\mathrm{sym}}}_2(\mathbf k,\mathbf k)_3 &\cong\mathbf S_{(2,2,2)}(V). \end{aligned}$$ The latter is the $50$-dimensional space of cubic equations. A later off-diagonal entry is $$\operatorname{Tor}^{R_{\mathrm{sym}}}_4(\mathbf k,\mathbf k)_6 \cong\mathbf S_{(2,2,2)}(V)^{\otimes2}, \qquad\dim=2500.$$ This identifies the representation, not its multiplication in Tor. The positive denominator term $t^8$ comes from $$\operatorname{Tor}^{S}_6(R_{\mathrm{sym}},\mathbf k)_{10} \cong(\det V)^4,\qquad S=\operatorname{Sym}(\operatorname{Sym}^2V).$$ It has strand index $d=(10-6)/2=2$ and contributes $+s^{10}t^8$ after taking dimensions. Again the Golod test returns false.
Cubic Pfaffians and a higher-strand correction. In pfaffianPoincare(n, r), $n$ is the size of the skew-symmetric matrix and $r$ is half the Pfaffian order. Thus (8,3) means the $6\times6$ Pfaffians of an $8\times8$ matrix, not $3\times3$ Pfaffians. Put $$R_{\mathrm{pf}}=S/I_6,\qquad S=\operatorname{Sym}(\bigwedge^2V),\quad V=\mathbf k^8.$$ There are $28$ degree-one matrix entries and $28$ cubic Pfaffians. We retain internal degree in the numerical numerator and denominator:
|
|
|
|
These outputs give $P_{R_{\mathrm{pf}}}(t,s)=(1+st)^{28}/D(t,s)$ after taking dimensions, where $$\begin{aligned} D(t,s)={}&1-28s^3t^2-63s^4t^3-36s^5t^4\\ &+36s^7t^5+63s^8t^6+28s^9t^7-s^{12}t^9. \end{aligned}$$
|
|
The column totals are $1,28,406,4123,33643,240274$. The equivariant output splits $406=378+28$ as $$\begin{aligned} \operatorname{Tor}^{R_{\mathrm{pf}}}_2(\mathbf k,\mathbf k)_2 &\cong\mathbf S_{(2,1,1)}(V),\\ \operatorname{Tor}^{R_{\mathrm{pf}}}_2(\mathbf k,\mathbf k)_3 &\cong\bigwedge^6V. \end{aligned}$$ These are respectively $x_{(2,1,1)}$ in row $0$ and $x_{(1,1,1,1,1,1)}$ in row $1$; the second is the space of cubic Pfaffians. To see information beyond these initial classes, compare with the ambient-ring resolution:
|
|
Column $3$, row $4$ now means $$\operatorname{Tor}^{S}_3(R_{\mathrm{pf}},\mathbf k)_7 \cong\mathbf S_{(2,2,2,2,2,2,2)}(V),\qquad\dim=36.$$ This second-strand term contributes $+36s^7t^5$ to $D$. It is not itself a residue-field Betti number: the denominator must first be inverted. For example, the entry $25444$ in column $5$, row $2$ of betti(Pf, 5) is $$\begin{aligned} \dim\operatorname{Tor}^{R_{\mathrm{pf}}}_5(\mathbf k,\mathbf k)_7 &=[s^7t^5]\frac{(1+st)^{28}}{D(t,s)}\\ &=28\cdot28^2+2\cdot28\cdot63-36=25444. \end{aligned}$$ The $-36$ is precisely the contribution of that higher strand upon inversion. The Golod test returns false, and Koszulity cannot recover this series from the Hilbert series: the displayed residue-field resolution is not linear.
Verifications. The checks that examine a whole shape or ring return a VerificationReport with the verdict at the key "passed" and the counts of the check and the cases it found.
|
|
This check examines the $45$ hook tabloids of shape $(3,2)$ whose individual hooks are semistandard on three letters. Of these, $15$ are already semistandard as whole diagrams. The verdict says every term produced by a rewrite of one of the remaining $30$ strictly decreases the running order; this verifies termination on the tested set, not the theorem for all shapes.
In characteristic zero the straightening relations form a quadratic Gröbner basis, the semistandard hook tabloids are the standard monomials, and the universal hook algebra $\mathcal H(V)$ is Koszul; as a $\mathrm{GL}(V)$-representation it contains every irreducible polynomial representation exactly once. The hook-ring constructors and straightening and Pieri routines accept CoefficientRing => K, with QQ the default. They also support prime fields when the required denominators and elimination matrices remain invertible; see the caveat on hookAlgebra. The Poincaré-series constructors and Frobenius-union routines use rational coefficients.
This documentation describes version 1.0 of HookPieri, released 2026-10-08.
If you have used this package in your research, please cite it as follows:
|
The object HookPieri is a package, defined in HookPieri.m2, with auxiliary files in HookPieri/.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/HookPieri/doc.m2:465:0.