This function was useful in testing the upper bound of the conjecture of HerzogHunekeSrinivasan on the multiplicity of an ideal; it is designed to make all potentially possible cancellations in a Betti diagram in a certain order described below.
Let R be a polynomial ring, let I and J be homogeneous ideals in R of codimension c with the same Hilbert function, and assume that R/I and R/J are CohenMacaulay. Suppose that the graded Betti numbers of R/I are at most those of R/J; that is, beta_{ij}(R/I) <= beta_{ij}(R/J) for all i and j. (We can form a partial order on resolutions of modules with the same Hilbert function by saying that beta(R/I) <= beta(R/J) if and only if beta_{ij}(R/I) <= beta_{ij}(R/J) for all i and j.)
Let m_i(R/I) and M_i(R/I) be the minimum and maximum shifts at step i in the minimal graded free resolution of R/I. Let e(R/I) be the multiplicity of R/I. Herzog, Huneke, and Srinivasan conjectured that
m_1(R/I) ... m_c(R/I) / c! <= e(R/I) <= M_1(R/I) ... M_c(R/I) / c!,
where the ellipses signify that we are taking the product of the shifts. This conjecture was proven in 2008 work of EisenbudSchreyer and BoijSoderberg using decompositions of Betti diagrams as positive linear combinations of Betti diagrams of modules with pure resolutions.
Suppose that R/I satisfies the conjectured inequalities. Then it is easy to show that R/J must as well: Since the resolution of R/J contains all the shifts in the resolution of R/I plus possibly more, the minimum shifts for R/J can only be the same or lower, and the maximum shifts can only be the same or higher. Therefore one can attack this conjecture by looking at resolutions minimal in the partial order discussed above.
It is difficult to find which potential resolutions at the bottom of the partial order for a given Hilbert function do occur for a module, however. The function cancelAll implements a fast way of proving that the upper bound of the HerzogHunekeSrinivasan conjecture is satisfied for particular Hilbert functions; it is used in multUpperHF. The idea is to create a Betti diagram that is minimal in the partial order that may or may not actually occur for a module; we can then test the upper bound on that potential resolution. As we explain below, if the inequality holds, it doesn't matter whether the Betti diagram occurs for a module or not.
cancelAll starts with the far left side of the Betti diagram of the ideal I the user inputs, and it makes all potentially possible cancellations in the first two columns. Then it moves to the first and second syzygies columns and makes all potentially possible cancellations, continuing through the rest of the Betti diagram. This technique is designed to investigate the upper bound of the conjecture. One may have choices of which syzygies to cancel from the resolution of the lexicographic ideal. This algorithm selects the cancellations that, if we start out with a lexicographic ideal L, and R/L is CohenMacaulay, minimize each M_i that could occur for a CohenMacaulay module with the same Hilbert function as R/L. Therefore if the upper bound of the conjecture holds for the potential Betti diagram that cancelAll produces, it holds for all CohenMacaulay modules with the same Hilbert function and codimension. Even if the potential Betti diagram cancelAll produces doesn't occur for a module, the maximum shifts could only increase, which won't cause the inequality to fail if it holds for the result of cancelAll.
cancelAll makes all the cancellations with the process described above, prints the resulting Betti diagram, and then returns the shifts in a list of lists.
See C. Francisco, New approaches to bounding the multiplicity of an ideal, J. Algebra 299 (2006), no. 1, 309328.











The object cancelAll is a method function.