D = pruneComplex C
D = pruneComplex(C, nsteps)
Prune a chain complex C by removing unit elements from the differentials.
If C is a free resolution for an R-module M, the output will remain a free resolution of M. In particular, if M is homogeneous or R is a local ring, the output is guaranteed to be a minimal free resolution of M.
|
|
Here we produce an intentionally non-minimal resolution from a inhomogeneous ideal:
|
|
|
|
Now we use pruneComplex to prune the resolution above:
|
|
One way of improving performance is to turn off computation of the pruning map. Note, however, that this may result in incorrect degrees in the graded case:
|
|
Another method is to use a different pruning strategy. Note that in general there is no well-defined notion of minimality for chain complexes, so different strategies can lead to different results. See the page linked in the optional inputs section above for information on available strategies.
As an example, we can alternate between pruning the lower and higher indices:
|
|
For pruning chain complexes over local rings, pruning scalars by setting UnitTest => isScalar and then pruning other units using UnitTest => isUnit can improve speed. For homogeneous chain complexes (that is, when all maps are homogeneous), since all units are scalars, setting UnitTest => isScalar is always faster:
|
|
|
|
|
For inhomogeneous input the resulting complex is not guaranteed to be minimal, particularly because minimality is not well-defined in that case.
If PruningMap is false and the input is not the resolution of a graded ideal, the grading of the resulting complex may be incorrect.
The object pruneComplex is a method function with options.