Macaulay2 » Documentation
Packages » HookPieri :: Examples from the paper
next | previous | forward | backward | up | index | toc

Examples from the paper -- computations from Hook algebras and determinantal varieties

This node reproduces, in the order in which they appear, the worked examples of the paper Hook algebras and determinantal varieties by Steven V Sam, Keller VandeBogert, and Jerzy Weyman that can be computed with the package. Section and example numbers refer to that paper. Direct computations of Koszul cycles and their products in the determinantal Tor algebras are outside the scope of this tutorial.

Example 1.1.2: the Poincaré series of cubic generic minors. Let $S=\mathbb Q[x_{ij}:1\le i,j\le5]$ with each entry of degree one, and $R=S/I_3$, where $I_3$ is generated by the $3\times3$ minors. This example computes $P_R(t)=\sum_i\dim\operatorname{Tor}^R_i(\mathbb Q,\mathbb Q)t^i$. dimensionSpecialization returns its numerator and denominator as an ordered pair. The theorem's formula is $(1+t)^{25}/(1-100t^2-450t^3-828t^4-700t^5+700t^7+828t^8+450t^9+100t^{10}-t^{12})$:

i1 : L = dimensionSpecialization genericDetPoincare(5,5,3);
i2 : factor L#0

            25
o2 = (t + 1)

o2 : Expression of class Product
i3 : L#1

        12       10       9       8       7       5       4       3       2
o3 = - t   + 100t   + 450t  + 828t  + 700t  - 700t  - 828t  - 450t  - 100t  +
     ------------------------------------------------------------------------
     1

o3 : QQ[s, t]

The expansion $1+25t+400t^2+5250t^3+64728t^4+779530t^5+9361100t^6+\cdots$ of the introduction, and the Betti table of the residue field:

i4 : poincareSeriesTruncation(genericDetPoincare(5,5,3), 6)

             6          5         4        3       2
o4 = 9361100t  + 779530t  + 64728t  + 5250t  + 400t  + 25t + 1

o4 : QQ[s, t]
i5 : betti(genericDetPoincare(5,5,3), 4)

            0  1   2    3     4
o5 = total: 1 25 400 5250 64728
         0: 1 25 300 2300 12650
         1: .  . 100 2950 42078
         2: .  .   .    . 10000

o5 : BettiTally

Example 1.1.3: the strand-graded Betti table. This is the resolution of $R$ over the polynomial ring $S$, not the residue-field resolution in the preceding example: its entries are $\beta^S_{i,j}(R)= \dim\operatorname{Tor}^S_i(R,\mathbb Q)_j$. Rows are indexed by $j-i$, columns by homological degree $i$; the first strand (row $j-i=2$) has total dimension $2303$, the number of minimal generators of the Koszul homology algebra by Theorem 1.1.4. The keys of the Betti table are the triples $(i,\{j\},j)$ of Macaulay2.

i6 : B = strandBettiTable genericDetPoincare(5,5,3)

            0   1   2   3   4   5   6   7   8 9
o6 = total: 1 100 450 828 925 925 828 450 100 1
         0: 1   .   .   .   .   .   .   .   . .
         1: .   .   .   .   .   .   .   .   . .
         2: . 100 450 828 700 225   .   .   . .
         3: .   .   .   .   .   .   .   .   . .
         4: .   .   .   . 225 700 828 450 100 .
         5: .   .   .   .   .   .   .   .   . .
         6: .   .   .   .   .   .   .   .   . 1

o6 : BettiTally
i7 : sum apply(select(keys B, k -> k#2 - k#0 == 2), k -> B#k)

o7 = 2303

Section 1.2: the Frobenius union of two hooks. The hook Pieri injection for the types $(1,1)$ and $(0,0)$ on three letters is the first map in the exact sequence $$0\longrightarrow\bigwedge^2V\otimes\operatorname{Sym}^2V \longrightarrow\mathbf S_{(2,1)}(V)\otimes V \longrightarrow\mathbf S_{(2,2)}(V)\longrightarrow0, \qquad V=\mathbb Q^3.$$ It has cokernel of dimension $6=\dim\mathbf S_{(2,2)}(\mathbf k^3)$, and the projection onto the Frobenius union has rank $6$:

i8 : D = pieriMatrix({1,1},{0,0},3);

              24       18
o8 : Matrix QQ   <-- QQ
i9 : (numRows D, numColumns D, rank D)

o9 = (24, 18, 18)

o9 : Sequence
i10 : rank frobeniusUnionMatrix({1,1},{0,0},3)

o10 = 6

Thus the first matrix has size $24\times18$ and rank $18$; the second map has rank $6$, accounting for all $24$ target dimensions. A hook type $(a,b)$ specifies the arm and leg lengths, hence the partition $(a+1,1^b)$.

Example 1.2.2: a finite hook algebra. Take $V=\mathbb Q^3$ and the hook types $(0,0)$, $(1,1)$, and $(2,2)$. The algebra $A$ is a quotient of a polynomial ring in $17$ variables, one for each semistandard hook tableau of the three types ($3+8+6$), by $136$ quadratic relations, and its Hilbert series is $1+17q+17q^2+q^3$:

i11 : A = hookAlgebra(3, {{0,0},{1,1},{2,2}});
i12 : numgens A, numgens ideal A

o12 = (17, 136)

o12 : Sequence
i13 : hookBasis A

       +-+-+-+  +-+-+-+  +-+-+-+  +-+-+-+  +-+-+-+  +-+-+-+  +-+-+  +-+-+ 
o13 = {|1|1|1|, |1|1|2|, |1|1|3|, |1|2|2|, |1|2|3|, |1|3|3|, |1|1|, |1|2|,
       |2| | |  |2| | |  |2| | |  |2| | |  |2| | |  |2| | |  |2| |  |2| | 
       |3| | |  |3| | |  |3| | |  |3| | |  |3| | |  |3| | |  +-+-+  +-+-+ 
       +-+-+-+  +-+-+-+  +-+-+-+  +-+-+-+  +-+-+-+  +-+-+-+
      -----------------------------------------------------------------------
      +-+-+  +-+-+  +-+-+  +-+-+  +-+-+  +-+-+  +-+  +-+  +-+
      |1|3|, |1|1|, |1|2|, |1|3|, |2|2|, |2|3|, |1|, |2|, |3|}
      |2| |  |3| |  |3| |  |3| |  |3| |  |3| |  +-+  +-+  +-+
      +-+-+  +-+-+  +-+-+  +-+-+  +-+-+  +-+-+

o13 : List
i14 : reduceHilbert hilbertSeries A

                   2    3
      1 + 17T + 17T  + T
o14 = -------------------
               1

o14 : Expression of class Divide

The relations form a quadratic Gröbner basis, with the semistandard hook tabloids as standard monomials, and the unique rank three standard monomial spans the degree three component:

i15 : hasQuadraticGroebnerBasis A

o15 = true
i16 : hilbertFunction(3, A)

o16 = 1

The straightening relation displayed in the paper, with the $(2,2)$-type hook in blue and the $(0,0)$-type hook in green, $$\begin{array}{l}\fcolorbox{black}{#b8c8f0}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{#b8c8f0}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{#b8c8f0}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{#b8c8f0}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{#a8e8a8}{\phantom{|}1\phantom{|}}\\[-2pt]\fcolorbox{black}{#b8c8f0}{\phantom{|}3\phantom{|}}\end{array} = -\begin{array}{l}\fcolorbox{black}{#b8c8f0}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{#b8c8f0}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{#b8c8f0}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{#b8c8f0}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{#a8e8a8}{\phantom{|}2\phantom{|}}\\[-2pt] \fcolorbox{black}{#b8c8f0}{\phantom{|}3\phantom{|}}\end{array} - \begin{array}{l}\fcolorbox{black}{#b8c8f0}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{#b8c8f0}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{#b8c8f0}{\phantom{|}2\phantom{|}}\\[-2pt] \fcolorbox{black}{#b8c8f0}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{#a8e8a8}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{#b8c8f0}{\phantom{|}3\phantom{|}}\end{array},$$ is the product of the $(2,2)$-type generator $z_4$ with the $(0,0)$-type generator $z_{14}$: in the quotient ring this nonstandard product is rewritten as minus the sum of the two standard products $z_2z_{15}$ and $z_1z_{16}$, which are themselves already in normal form. hookRelation returns the stored relation of the pair as an element of the hook ring.

i17 : (tabloid A_4, tabloid A_14)

       +-+-+-+  +-+
o17 = (|1|2|3|, |1|)
       |2| | |  +-+
       |3| | |
       +-+-+-+

o17 : Sequence
i18 : use A;
i19 : z4*z14

o19 = - z2*z15 - z1*z16

o19 : A
i20 : z2*z15

o20 = z2*z15

o20 : A
i21 : z4*z14 + z2*z15 + z1*z16 == 0

o21 = true
i22 : hookRelation(A, 4, 14)

o22 = z4*z14 + z2*z15 + z1*z16

o22 : QQ[z0, z1, z2, z3, z4, z5, z6, z7, z8, z9, z10, z11, z12, z13, z14, z15, z16]

The same relation, read off by the straightening algorithm on the tabloid rather than in the algebra, and the normal form of the tabloid as an element of the algebra:

i23 : T = tabloid {{1,2,3},{2,1},{3}}

      +-+-+-+
o23 = |1|2|3|
      |2|1| |
      |3| | |
      +-+-+-+

o23 : HookTabloid
i24 : hookStraighten T

                +-+-+-+
o24 = HashTable{|1|1|2| => -1}
                |2|3| |
                |3| | |
                +-+-+-+
                +-+-+-+
                |1|1|3| => -1
                |2|2| |
                |3| | |
                +-+-+-+

o24 : HashTable
i25 : hookStraighten(T, A)

o25 = - z2*z15 - z1*z16

o25 : A

Section 2.1: Frobenius coordinates. If $d$ is the number of diagonal boxes of $\lambda$, its Frobenius coordinates are $(a_1,\ldots,a_d\mid b_1,\ldots,b_d)$, where $a_i=\lambda_i-i$ and $b_i=\lambda'_i-i$ count the arm and leg boxes of its $i$th diagonal hook. The partition $(4,3,2)$ has rank $2$ and Frobenius coordinates $(3,1\mid2,1)$:

i26 : lam = {4,3,2}; d = frobeniusRank lam;
i28 : colLen = i -> #select(lam, x -> x > i);
i29 : (apply(d, i -> lam#i-i-1), apply(d, i -> colLen(i)-i-1))

o29 = ({3, 1}, {2, 1})

o29 : Sequence

The partitions $(2)$ and $(2,1)$ are not mergeable (their arm lengths coincide), so the hook algebra generated by their two types has no elements of rank two:

i30 : reduceHilbert hilbertSeries hookAlgebra(3, {{1,0},{1,1}})

      1 + 14T
o30 = -------
         1

o30 : Expression of class Divide

Section 3.1: semistandard hook tabloids. Semistandard means rows weakly increase and columns strictly increase. This is a condition on the whole diagram, not just on each diagonal hook separately. The tabloids $\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{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\end{array}$ and $\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\end{array}$ are semistandard, and $\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\end{array}$ is not:

i31 : (isHookSemistandard {{1,1,2},{2,3},{4}}, isHookSemistandard {{1,3},{2,4}}, isHookSemistandard {{1,3},{2,2}})

o31 = (true, true, false)

o31 : Sequence
i32 : hookStraighten {{1,3},{2,2}}

                +-+-+
o32 = HashTable{|1|2| => -1}
                |2|3|
                +-+-+

o32 : HashTable

Section 3.2: running vectors and the running partial order. For $T=\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{|}3\phantom{|}}\end{array}$ and $U=\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\end{array}$ of type $((2,1),(0,0))$, the running vectors in the coordinates $q=1,2,3$ are those of the paper's table, indexed by the running indices $(t,s)$ of the shape. Each coordinate counts entries at most $q$ in the corresponding running region, defined on the runningVectors page. Their last disagreement is at the index $(1,2)$ where $V_{1,2}(U)\le V_{1,2}(T)$, and hence $T\preceq_{\mathrm{run}}U$:

i33 : runningIndices {3,2}

o33 = {{1, 0}, {1, 1}, {1, 2}, {2, 0}}

o33 : List
i34 : runningVectors {{1,1,2},{2,3}}

o34 = {{1, 2, 2}, {2, 3, 3}, {2, 4, 4}, {2, 4, 5}}

o34 : List
i35 : runningVectors {{1,1,3},{2,2}}

o35 = {{1, 2, 2}, {2, 3, 3}, {2, 3, 4}, {2, 4, 5}}

o35 : List
i36 : runningCompare({{1,1,2},{2,3}}, {{1,1,3},{2,2}})

o36 = <

o36 : Keyword
i37 : runningCompare({{1,1,2},{2,3}}, {{1,1,3},{2,2}}, Verbose => true)
runningCompare: the last disagreement is at the running index (t,s) = {1, 2}
    V(T) = {2, 4, 4}
    V(U) = {2, 3, 4}
    V(U) <= V(T) coordinatewise, so T < U

o37 = <

o37 : Keyword

Every step of the straightening algorithm decreases this order; verifyTriangularity checks it on the hookwise semistandard fillings of the specified shape and finite alphabet:

i38 : (verifyTriangularity({3,2}, 3))#"passed"

o38 = true

The paper's term order refines this partial order; the verification of the compiled order against the running vectors on the finite hook algebra of Example 1.2.2 reports no mismatches:

i39 : verifyPaperOrder A

      +-----------------+------------------------------------------------------------------+
o39 = |strictComparisons|1557                                                              |
      +-----------------+------------------------------------------------------------------+
      |paperTies        |0                                                                 |
      +-----------------+------------------------------------------------------------------+
      |mismatches       |0                                                                 |
      +-----------------+------------------------------------------------------------------+
      |firstMismatch    |none                                                              |
      +-----------------+------------------------------------------------------------------+
      |passed           |true                                                              |
      +-----------------+------------------------------------------------------------------+
      |conclusion       |the compiled monomial order agrees with the running order on every|
      |                 |strict comparison                                                 |
      +-----------------+------------------------------------------------------------------+

o39 : VerificationReport

Remark 3.2.2: the naive Garnir lift fails. For the hook types $(2,1)>(0,0)$ with $\dim V=3$, the tabloid $\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\end{array}$ is a counterexample: the true projection sends $z_T\otimes e_2$ to $-\tfrac12\,v_{T'}$ with $T=\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\end{array}$ and $T'=\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{|}3\phantom{|}}\end{array}$ (in the package's normalization, $-2/9$ divided by the universal scalar $4/9$), whereas the types $(1,1)>(0,0)$ are consistent. verifyGarnirLift examines every tabloid of the nest shape and records a counterexample:

i40 : G = verifyGarnirLift({2,1},{0,0},3);
i41 : G#"passed"

o41 = false
i42 : G#"universalScalar"

      4
o42 = -
      9

o42 : QQ
i43 : m = G#"minimalCounterexample";
i44 : (m#"tabloid", m#"T1", m#"T2")

       +-+-+-+  +-+-+-+  +-+
o44 = (|0|1|2|, |0|1|2|, |1|)
       |1|1| |  |1| | |  +-+
       +-+-+-+  +-+-+-+

o44 : Sequence
i45 : m#"actualMu"

                +-+-+-+      2
o45 = HashTable{|0|1|1| => - -}
                |1|2| |      9
                +-+-+-+

o45 : HashTable
i46 : m#"straightening"

o46 = HashTable{}

o46 : HashTable
i47 : (verifyGarnirLift({1,1},{0,0},3))#"passed"

o47 = true

verifyGarnirLift uses the letters $0,\ldots,n-1$: the tabloid in m#"tabloid" is the filling displayed above after subtracting $1$ from every entry. The empty straightening table records that this tabloid is zero in the Schur functor.

Section 4: a hook Schur functor basis element. In $T_I^\alpha$, the subscript $I$ lists the full column, including the corner, and the exponent vector $\alpha$ specifies the multiplicities in the row tail. In the later examples a word in the superscript instead lists the row-tail entries themselves. $T^{(0,1,0,1,0)}_{\{1,3,5\}}$ is the semistandard hook tableau $\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\end{array}$ in $\mathbf S_{(3,1,1)}(\mathbf k^5)$, and the single-hook straightening $T_{132}^{\,3}=-T_{123}^{\,3}$, $T_{131}^{\,3}=0$. A hook is entered by its row tail and its full column, as in tabloid(List,List):

i48 : member(tabloid({2,4},{1,3,5}), hookBasis({2,2},5))

o48 = true
i49 : hookStraighten({3},{1,3,2})

                +-+-+
o49 = HashTable{|1|3| => -1}
                |2| |
                |3| |
                +-+-+

o49 : HashTable
i50 : hookStraighten({3},{1,3,1})

o50 = HashTable{}

o50 : HashTable

Example 5.2.2: a row elimination matrix. With $V=\mathbf k^4$, the row-removal map is $$P_2:\mathbf S_{(4,1,1)}(V) \longrightarrow\operatorname{Sym}^2V\otimes\mathbf S_{(2,1,1)}(V).$$ Here $a=4$ is the first-row length, $b=2$ the leg length, and $m=2$ the number of removed row entries. The displayed $3\times3$ submatrix has columns indexed by srcs and rows by tgts; it is not the entire matrix of $P_2$. It has determinant $9/8$ and eigenvalues $3/2,3/2,1/2$. The row Pieri map pieriRowRemove returns a hash table keyed by the pairs (removed letters, remaining hook):

i51 : srcs = {tabloid({1,2,2},{1,3,4}), tabloid({1,2,3},{1,2,4}), tabloid({1,2,4},{1,2,3})};
i52 : tgts = {{{2,2}, tabloid({1},{1,3,4})}, {{2,3}, tabloid({1},{1,2,4})}, {{2,4}, tabloid({1},{1,2,3})}};
i53 : M = matrix for tg in tgts list for T in srcs list (h := pieriRowRemove(T,2); if h#?tg then h#tg else 0_QQ)

o53 = | 1    1/4 -1/4 |
      | 1/2  5/4 1/4  |
      | -1/2 1/4 5/4  |

               3       3
o53 : Matrix QQ  <-- QQ
i54 : det M

      9
o54 = -
      8

o54 : QQ
i55 : R = QQ[x]; factor det(x*id_(R^3) - sub(M,R))

              2         1
o56 = (2x - 3) (2x - 1)(-)
                        8

o56 : Expression of class Product

Example 5.3.2: a column elimination matrix. With $V=\mathbf k^5$, the column-addition map is $$Q_2:\mathbf S_{(3,1)}(V)\otimes\bigwedge^2V \longrightarrow\mathbf S_{(3,1,1,1)}(V).$$ Here $a=3$ is the first-row length, $b=1$ the original leg length, and $m=2$ the number of added column entries. The selected $3\times3$ submatrix, with columns srcs and rows tgts, has determinant $1/9$ and eigenvalues $1/3,1/3,1$:

i57 : srcs = {{tabloid({5,5},{1,2}),{3,4}}, {tabloid({4,5},{1,2}),{3,5}}, {tabloid({3,5},{1,2}),{4,5}}};
i58 : tgts = {tabloid({5,5},{1,2,3,4}), tabloid({4,5},{1,2,3,5}), tabloid({3,5},{1,2,4,5})};
i59 : M = matrix for tg in tgts list for T in srcs list (h := pieriColumnAdd(T#0,T#1); if h#?tg then h#tg else 0_QQ)

o59 = | 2/3  -1/6 1/6  |
      | -1/3 1/2  -1/6 |
      | 1/3  -1/6 1/2  |

               3       3
o59 : Matrix QQ  <-- QQ
i60 : det M

      1
o60 = -
      9

o60 : QQ
i61 : factor det(x*id_(R^3) - sub(M,R))

                     2 1
o61 = (x - 1)(3x - 1) (-)
                       9

o61 : Expression of class Product

Example 6.1.5: straightening a column obstruction. For $T=(T^{123}_{123},T^{11}_{14})$ the row swap set has the elimination matrix displayed in the paper, with determinant $5/2$ and solution $c=(4,-1,-1)/5$; the full normal form of the assembled tabloid then follows from the straightening algorithm:

i62 : srcs = {tabloid({1,2,3},{1,4}), tabloid({1,3,4},{1,2}), tabloid({1,2,4},{1,3})};
i63 : tgts = {{{1,2,3}, tabloid({},{1,4})}, {{1,3,4}, tabloid({},{1,2})}, {{1,2,4}, tabloid({},{1,3})}};
i64 : M = matrix for tg in tgts list for T in srcs list (h := pieriRowRemove(T,3); if h#?tg then h#tg else 0_QQ)

o64 = | 3/2 1/2 1/2 |
      | 1/2 3/2 1/2 |
      | 1/2 1/2 3/2 |

               3       3
o64 : Matrix QQ  <-- QQ
i65 : det M

      5
o65 = -
      2

o65 : QQ
i66 : transpose solve(M, matrix{{1_QQ},{0},{0}})

o66 = | 4/5 -1/5 -1/5 |

               1       3
o66 : Matrix QQ  <-- QQ

The returned row $(4/5,-1/5,-1/5)$ is the solution of $Mc=(1,0,0)^{\mathsf T}$: the corresponding linear combination of the three source hooks has coefficient one on the first selected target and zero on the other two. This is the elimination used to rewrite the offending pair of hooks. The same step, performed by the algorithm on the tabloid (straighteningStep); the paper's example with both a row and a column obstruction, $T=(T^{123}_1,T^{111}_{2,4})$, is resolved by the algorithm at its row obstruction, while the displayed column relation is obtained with Obstruction => "column":

i67 : straighteningStep {{1,2,3},{2,1},{3}}

                +-+-+-+
o67 = HashTable{|1|1|2| => -1}
                |2|3| |
                |3| | |
                +-+-+-+
                +-+-+-+
                |1|1|3| => -1
                |2|2| |
                |3| | |
                +-+-+-+

o67 : HashTable
i68 : straighteningStep({{1,1,2,3},{2,1,1,1},{3,4}}, Obstruction => "column")

                +-+-+-+-+      1
o68 = HashTable{|1|1|1|2| => - -}
                |2|1|1|3|      2
                |3|4| | |
                +-+-+-+-+
                +-+-+-+-+    1
                |1|1|1|2| => -
                |2|1|1|4|    2
                |3|3| | |
                +-+-+-+-+
                +-+-+-+-+      1
                |1|1|1|3| => - -
                |2|1|1|2|      2
                |3|4| | |
                +-+-+-+-+
                +-+-+-+-+    1
                |1|1|1|3| => -
                |2|1|1|4|    2
                |3|2| | |
                +-+-+-+-+

o68 : HashTable

Example 6.2.6: straightening a row obstruction. For $T=(T^{123}_{134},T^{34}_{23})$ the two column elimination systems have the matrices $M_\alpha=(1/2)$ and $M_\beta=\begin{pmatrix}1/2&-1/2\\-1/4&3/4\end{pmatrix}$ with solutions $2$ and $(3,1)$. These solve the two systems with right-hand side the first basis vector. The last two commands compare one elimination step with the full normal form:

i69 : pieriColumnAdd(tabloid({1,2,3},{1}), {3,4})

                +-+-+-+-+    1
o69 = HashTable{|1|1|2|3| => -  }
                |3| | | |    2
                |4| | | |
                +-+-+-+-+
                +-+-+-+-+      1
                |1|1|3|3| => - -
                |2| | | |      6
                |4| | | |
                +-+-+-+-+
                +-+-+-+-+    1
                |1|1|3|4| => -
                |2| | | |    6
                |3| | | |
                +-+-+-+-+

o69 : HashTable
i70 : srcs = {{tabloid({3,4},{2}),{3}}, {tabloid({3,3},{2}),{4}}};
i71 : tgts = {tabloid({3,4},{2,3}), tabloid({3,3},{2,4})};
i72 : Mb = matrix for tg in tgts list for T in srcs list (h := pieriColumnAdd(T#0,T#1); if h#?tg then h#tg else 0_QQ)

o72 = | 1/2  -1/2 |
      | -1/4 3/4  |

               2       2
o72 : Matrix QQ  <-- QQ
i73 : transpose solve(Mb, matrix{{1_QQ},{0}})

o73 = | 3 1 |

               1       2
o73 : Matrix QQ  <-- QQ
i74 : straighteningStep {{1,1,2,3},{3,2,3,4},{4,3}}

                +-+-+-+-+    2
o74 = HashTable{|1|1|2|3| => -  }
                |2|3|3|4|    3
                |3|4| | |
                +-+-+-+-+
                +-+-+-+-+    1
                |1|1|3|3| => -
                |2|2|3|4|    3
                |4|3| | |
                +-+-+-+-+
                +-+-+-+-+      1
                |1|1|3|4| => - -
                |2|2|3|4|      3
                |3|3| | |
                +-+-+-+-+

o74 : HashTable
i75 : hookStraighten {{1,1,2,3},{3,2,3,4},{4,3}}

                +-+-+-+-+    1
o75 = HashTable{|1|1|2|3| => -}
                |2|3|3|4|    2
                |3|4| | |
                +-+-+-+-+
                +-+-+-+-+    1
                |1|1|3|3| => -
                |2|2|4|4|    4
                |3|3| | |
                +-+-+-+-+

o75 : HashTable

Writing brackets for hook-algebra classes, the one-step output is $$\begin{aligned} \left[\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array}\right] ={}&\tfrac23\left[\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\end{array}\right] +\tfrac13\left[\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array}\right]\\ &-\tfrac13\left[\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array}\right]. \end{aligned}$$ The last two tableaux still need straightening. The full output is instead $$\left[\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array}\right] =\tfrac12\left[\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\end{array}\right] +\tfrac14\left[\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\end{array}\right].$$

Example 6.2.8: hook versus Schur versus Weyl straightening. The tableau $T=\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\end{array}$ is straightened in three models. In the hook model (this package) the coefficients are rational: $$T=-\tfrac12\,\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}-\tfrac12\,\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}-\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}+\tfrac12\,\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}+\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}.$$

i76 : hookStraighten {{1,2,6},{4,3,5}}

                +-+-+-+      1
o76 = HashTable{|1|2|3| => - -}
                |4|5|6|      2
                +-+-+-+
                +-+-+-+      1
                |1|2|4| => - -
                |3|5|6|      2
                +-+-+-+
                +-+-+-+
                |1|2|5| => -1
                |3|4|6|
                +-+-+-+
                +-+-+-+    1
                |1|3|4| => -
                |2|5|6|    2
                +-+-+-+
                +-+-+-+
                |1|3|5| => 1
                |2|4|6|
                +-+-+-+

o76 : HashTable

In the Schur and Weyl models the coefficients are integers. These are computed by straighten and weylStraighten of the SchurFunctors package, whose Filling is stored column-wise (so $T$ is entered as {{1,4},{2,3},{6,5}}) and whose WeylFilling is stored row-wise (so $T$ is entered as {{1,2,6},{4,3,5}}). The Schur model gives $T=-\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\\[-2pt]\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}+\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}$ and the Weyl model gives $T=-\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}-\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}-\begin{array}{l}\fcolorbox{black}{white}{\phantom{|}1\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}2\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}5\phantom{|}}\\[-2pt] \fcolorbox{black}{white}{\phantom{|}3\phantom{|}}\!\fcolorbox{black}{white}{\phantom{|}4\phantom{|}}\! \fcolorbox{black}{white}{\phantom{|}6\phantom{|}}\end{array}$:

i77 : needsPackage "SchurFunctors";
i78 : F = new Filling from {{1,4},{2,3},{6,5}}

      +-+-+-+
o78 = |1|2|6|
      |4|3|5|
      +-+-+-+

o78 : Filling
i79 : straighten F

                +-+-+-+
o79 = HashTable{|1|3|5| => 1 }
                |2|4|6|
                +-+-+-+
                +-+-+-+
                |1|2|5| => -1
                |3|4|6|
                +-+-+-+

o79 : HashTable
i80 : W = new WeylFilling from {{1,2,6},{4,3,5}}

      +-+-+-+
o80 = |1|2|6|
      |4|3|5|
      +-+-+-+

o80 : WeylFilling
i81 : weylStraighten W

                +-+-+-+
o81 = HashTable{|1|2|3| => -1}
                |4|5|6|
                +-+-+-+
                +-+-+-+
                |1|2|4| => -1
                |3|5|6|
                +-+-+-+
                +-+-+-+
                |1|2|5| => -1
                |3|4|6|
                +-+-+-+

o81 : HashTable

Section 7.1: maximal and submaximal minors. For maximal minors the denominator is Golod's $1-\sum_{i\ge1}\beta_i t^{i+1}$, where $\beta_i=\dim\operatorname{Tor}^S_i(R,k)$ for the determinantal quotient $R$ of the polynomial ring $S$. For the submaximal minors of a $4\times4$ matrix one obtains the Gulliksen–Negard denominator $1-16t^2-30t^3-16t^4+t^6$:

i82 : (dimensionSpecialization genericDetPoincare(2,4,2))#1

          4     3     2
o82 = - 3t  - 8t  - 6t  + 1

o82 : QQ[s, t]
i83 : (dimensionSpecialization genericDetPoincare(3,5,3))#1

          4      3      2
o83 = - 6t  - 15t  - 10t  + 1

o83 : QQ[s, t]
i84 : (dimensionSpecialization genericDetPoincare(4,4,3))#1

       6      4      3      2
o84 = t  - 16t  - 30t  - 16t  + 1

o84 : QQ[s, t]
i85 : (isGolodPoincare genericDetPoincare(2,4,2), isGolodPoincare genericDetPoincare(4,4,3))

o85 = (true, false)

o85 : Sequence

For the symmetric cover, the ring is $M_r=\operatorname{Sym}(\mathbf k^{r-1}\otimes V)^{\mathrm{SO}_{r-1}}$, with the group acting on $\mathbf k^{r-1}$. Its grading comes from the polynomial degree before taking invariants. The next call uses $\dim V=3$ and $r=3$, so it gives the $3\times3$ Segre ring with generators in degree two; see symDetCoverPoincare for the grading conventions. The output is again the numerical numerator-denominator pair:

i86 : dimensionSpecialization symDetCoverPoincare(3,3)

        6     5      4      3      2            3     2
o86 = {t  + 6t  + 15t  + 20t  + 15t  + 6t + 1, t  - 3t  - 3t + 1}

o86 : List

Example 7.1.7: a Pfaffian ring defined by cubics. The $6\times6$ Pfaffians of a generic $8\times8$ alternating matrix have denominator $1-28t^2-63t^3-36t^4+36t^5+63t^6+28t^7-t^9$ (the example passes to a linear section, which divides the numerator by $1+t$):

i87 : (dimensionSpecialization pfaffianPoincare(8,3))#1

         9      7      6      5      4      3      2
o87 = - t  + 28t  + 63t  + 36t  - 36t  - 63t  - 28t  + 1

o87 : QQ[s, t]

Section 7.4.3: the fine Segre model of the generic case. For $r=2$ on $3\times3$ matrices, each base hook $(a\mid b)$ with $0\le a,b\le1$ receives the left type $(a,b+1)$ and right type $(b,a+1)$ (hookTypes lists the triples base, left, right). The fine Segre product is the quotient ring fineSegreAlgebra returns; the quadratic monomial classification of relationKind has exactly one standard pair, the two variables of the base types $(1\mid1)$ and $(0\mid0)$ whose tableaux stack to the semistandard filling of $(2,2,2)$ on each side. Since that filling is the only semistandard filling of $(2,2,2)$ with entries at most $3$, the left and the right tableau of each of these two variables coincide. Every other nonzero product is a multiple of their product:

i88 : B = fineSegreAlgebra(3,3,2)

o88 = B

o88 : QuotientRing
i89 : hookTypes B

o89 = {{{1, 1}, {1, 2}, {1, 2}}, {{1, 0}, {1, 1}, {0, 2}}, {{0, 1}, {0, 2},
      -----------------------------------------------------------------------
      {1, 1}}, {{0, 0}, {0, 1}, {0, 1}}}

o89 : List
i90 : N = numgens B

o90 = 34
i91 : tally flatten for i to N-1 list for j from i to N-1 list relationKind(B, i, j)

o91 = Tally{bad:both => 64           }
            bad:left => 8
            bad:right => 8
            standard => 1
            zero:base-nonchain => 514

o91 : Tally
i92 : relationKind(B, 0, 33)

o92 = standard
i93 : tabloid B_0

       +-+-+  +-+-+
o93 = {|1|1|, |1|1|}
       |2| |  |2| |
       |3| |  |3| |
       +-+-+  +-+-+

o93 : List
i94 : tabloid B_33

       +-+  +-+
o94 = {|2|, |2|}
       |3|  |3|
       +-+  +-+

o94 : List
i95 : B_0 * B_33

o95 = w0*w33

o95 : B
i96 : B_1 * B_32

o96 = -w0*w33

o96 : B

In the displayed generators the last two outputs say $$w_1w_{32}=-w_0w_{33},\qquad w_0w_{33}\ne0.$$ The generator pairs are tensors of the two tableaux returned by tabloid; the fine degree records their base hook type. This is the fine Segre algebra model, not a direct computation of multiplication in the determinantal Tor algebra.

See also


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/HookPieri/doc.m2:1161:0.