Skip to content

Commit cde7ec6

Browse files
committed
Revert all commits from 147812d to HEAD
1 parent e1edccc commit cde7ec6

5 files changed

Lines changed: 7 additions & 164 deletions

File tree

M2/Macaulay2/m2/pushforward.m2

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -235,27 +235,6 @@ addHook((kernel, Matrix), Strategy => "PushForward",
235235
M := coimage map(target m, f ** source m, raw m);
236236
image pushNonLinear(options pushForward, f, M)))
237237

238-
-----------------------------------------------------------------------------
239-
240-
-- pushforward the module to PP^n via S/I <-- S
241-
-- this is used for instance before computing pdim
242-
-- or regularity of a module over a quotient ring.
243-
-- cf. https://github.com/Macaulay2/M2/issues/3321
244-
flattenModule = M -> (
245-
if instance(ring M, PolynomialRing) then M
246-
else cokernel flattenMorphism presentation M)
247-
-- TODO: find a name that can't be confused with flatness.
248-
-- Currently this is simply named after flattenRing.
249-
flattenMorphism = f -> f.cache#"flattenMorphism" ??= (
250-
if instance(ring f, PolynomialRing) then return f;
251-
g := presentation ring f;
252-
-- FIXME: if ring f is a quotient of another quotient ring Q,
253-
-- "ambient ring f" would give Q, not a polynomial ring as we want.
254-
S := ring g;
255-
-- TODO: sometimes lifting to ring g is enough, how can we detect this?
256-
-- TODO: why doesn't lift(f, ring g) do this automatically?
257-
map(target f ** S, source f ** S, lift(cover f, S)) ** cokernel g)
258-
259238
-- Local Variables:
260239
-- compile-command: "make -C $M2BUILDDIR/Macaulay2/m2 "
261240
-- End:

M2/Macaulay2/packages/Complexes.m2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export {
6060
"resolutionMap",
6161
"tensorCommutativity",
6262
"torSymmetry",
63-
"weightedRegularity",
6463
"yonedaExtension",
6564
"yonedaExtension'",
6665
"yonedaMap",
@@ -81,7 +80,6 @@ export {
8180

8281
importFrom_Core {
8382
"isPackageLoaded",
84-
"flattenModule", "flattenMorphism",
8583
}
8684

8785
-- keys into the type `Complex`

M2/Macaulay2/packages/Complexes/ChainComplex.m2

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -603,45 +603,24 @@ betti Complex := opts -> C -> (
603603
)
604604
)
605605

606-
pdim Module := M -> length freeResolution flattenModule minimalPresentation M
606+
pdim Module := M -> length freeResolution minimalPresentation M
607607

608608
regularity Ideal := opts -> I -> (
609609
if I == 0 then -infinity else if I == 1 then 0
610-
else 1 + regularity betti(freeResolution flattenModule comodule I, opts))
610+
else 1 + regularity betti(freeResolution comodule I, opts))
611611

612-
-- cf. https://github.com/Macaulay2/M2/issues/3321
613612
regularity Module := opts -> M -> (
614613
if not isHomogeneous M then error "regularity: expected homogeneous module";
615-
regularity betti(freeResolution flattenModule minimalPresentation M, opts))
614+
regularity betti(freeResolution minimalPresentation M, opts))
616615

617616
regularity Complex := opts -> C -> (
618617
if numgens degreesRing ring C =!= 1 then
619-
error "expected the underlying ring to be singly graded";
618+
error "expected the underlying ring to be standard graded";
620619
if not isFree C then
621620
error "expected a complex whose terms are all free";
622621
regularity betti(C,opts)
623622
)
624623

625-
symondsShift = R -> (
626-
-- For a graded polynomial ring R with positive integer weights a_0,...,a_(n-1),
627-
-- symondsShift(R) means sum_i (a_i-1).
628-
if degreeLength R =!= 1 then error "expected degree length 1";
629-
degs := flatten degrees R; -- This is a list of the form {a_0,...,a_(n-1)}.
630-
-#degs + fold(plus, degs))
631-
632-
weightedRegularity = method(TypicalValue => ZZ, Options => {})
633-
634-
-- For a graded polynomial ring R with positive integer weights a_0,...,a_(n-1) and a graded R-module M,
635-
-- weightedRegularity(M) means regularity(M) - sum_i (a_i-1), as suggested by Peter Symonds.
636-
-- (Thus it agrees with the usual regularity when the weights are 1.) The point is
637-
-- that the weighted regularity has a simple relation to local cohomology at the irrelevant ideal m:
638-
-- it is equal to
639-
-- sup_{i>=0} (maximum degree of H^i_m(R, M) + i).
640-
-- For example, if the module M is bounded above, then the weighted regularity of M is equal
641-
-- to the maximum degree of M, and it should be a fast way to compute that.
642-
weightedRegularity Module := weightedRegularity Ideal := weightedRegularity Complex := opts -> M -> (
643-
-symondsShift ring M + regularity M)
644-
645624
poincare Complex := C -> (
646625
S := degreesRing ring C;
647626
(lo,hi) := concentration C;
@@ -1362,7 +1341,3 @@ koszulComplex List := Complex => {Concentration => null} >> opts -> L -> (
13621341
if #L === 0 then error "expected a non-empty list";
13631342
koszulComplex(matrix{L}, opts)
13641343
)
1365-
1366-
koszul Matrix := Complex => f -> koszulComplex f
1367-
1368-
-- TODO: eagonNorthcott

M2/Macaulay2/packages/Complexes/ChainComplexDoc.m2

Lines changed: 2 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ doc ///
135135
TO (min, Complex),
136136
TO (length, Complex),
137137
TO (regularity, Complex),
138-
TO (weightedRegularity, Complex),
139138
TO (betti, Complex),
140139
TO (poincare, Complex),
141140
TO (poincareN, Complex),
@@ -4330,7 +4329,7 @@ doc ///
43304329
:ZZ
43314330
Description
43324331
Text
4333-
Given a free complex $C$ over a singly graded polynomial ring,
4332+
Given a free complex $C$ over a standard graded polynomial ring,
43344333
the regularity $r$ of $C$ is the smallest integer such that
43354334
each basis element of $C_i$ has degree at most $i + r$.
43364335
Example
@@ -4357,112 +4356,18 @@ doc ///
43574356
regularity FJ
43584357
Text
43594358
Although Castelnuovo-Mumford regularity is defined
4360-
in more general settings (e.g., toric varieties with multi-degrees),
4359+
in more general settings (e.g. toric varieties with multi-degrees)
43614360
this method does not currently handle these
43624361
extensions. Similarly, Castelnuovo-Mumford
43634362
regularity can be defined for non-free complexes,
43644363
but this method doesn't handle that case either.
43654364
SeeAlso
4366-
(weightedRegularity, Complex)
43674365
"Basic invariants and properties"
43684366
regularity
43694367
betti
43704368
freeResolution
43714369
///
43724370

4373-
doc ///
4374-
Node
4375-
Key
4376-
weightedRegularity
4377-
(weightedRegularity, Ideal)
4378-
(weightedRegularity, Module)
4379-
Headline
4380-
compute the weighted Castelnuovo-Mumford regularity
4381-
Usage
4382-
r = weightedRegularity C
4383-
Inputs
4384-
C: -- an Ideal, a Module, or a ChainComplex
4385-
Outputs
4386-
r:ZZ
4387-
Description
4388-
Text
4389-
Let @TT "R"@ be a graded polynomial algebra over a field, with generators $x_0,\ldots,x_{n-1}$
4390-
in positive integer weights $a_0,...,a_{n-1}$,
4391-
and let $\mathfrak{m}$ be the maximal ideal $(x_0,\ldots,x_{n-1})$.
4392-
For a graded module @TT "R"@-module @TT "M"@, the weighted regularity of @TT "M"@ is defined
4393-
in terms of local cohomology, as
4394-
$$\sup_{i\geq 0} (i + \text{maximum degree of }H^i_{\mathfrak{m}}(R, M)).$$
4395-
For example, if @TT "M"@ is bounded above, then the weighted regularity of @TT "M"@
4396-
is the maximum degree of @TT "M"@, and this should be a fast way to compute the maximum degree.
4397-
Text
4398-
If the weights are equal to 1, this is the same as @TO2{(regularity,Module),"regularity(M)"}@.
4399-
In general, the weighted regularity is equal to the regularity minus $\sum_i (a_i-1)$.
4400-
What we call weighted regularity was proposed by Peter Symonds as the definition of regularity.
4401-
Text
4402-
In the following example, the module @TT "M"@ is bounded above, with top-degree element $xy$ in degree 12.
4403-
Example
4404-
R = QQ[x,y,Degrees=>{5,7}];
4405-
M = R^1/(x^2,y^2);
4406-
regularity M
4407-
weightedRegularity M
4408-
SeeAlso
4409-
(regularity, Module)
4410-
"OldChainComplexes :: resolution"
4411-
betti
4412-
comodule
4413-
"VirtualResolutions :: multigradedRegularity"
4414-
///
4415-
4416-
doc ///
4417-
Key
4418-
(weightedRegularity, Complex)
4419-
Headline
4420-
compute the weighted Castelnuovo-Mumford regularity
4421-
Usage
4422-
weightedRegularity C
4423-
Inputs
4424-
C:Complex
4425-
Outputs
4426-
:ZZ
4427-
Description
4428-
Text
4429-
Given a complex @TT "C"@ of free modules over a singly graded polynomial ring $R$,
4430-
the @TO2 {(regularity,Complex),"regularity"}@ of $C$ is the smallest integer $r$ such that
4431-
each basis element of $C_i$ has degree at most $i + r$. Let the generators of $R$
4432-
have weights $a_0,\ldots,a_{n-1}$. Then @TT "weightedRegularity C"@ is defined
4433-
as the regularity of @TT "C"@ minus $\sum_i (a_i-1)$. (Thus the two notions
4434-
are the same when the weights are equal to 1.)
4435-
Text
4436-
This is motivated by the case where @TT "C"@ is the minimal free resolution of a graded $R$-module @TT "M"@.
4437-
In that case, @TT "weightedRegularity C"@ is equal to the weighted regularity of @TT "M"@, defined
4438-
in terms of local cohomology as
4439-
$$\sup_{i\geq 0} (i+\text{maximum degree of }H^i_{\m}(R, M)).$$
4440-
For example, if @TT "M"@ is bounded above, then this is the maximum degree of @TT "M"@.
4441-
Text
4442-
In the following example, the module @TT "M"@ is bounded above, with top-degree element $xy$ in degree 7.
4443-
Example
4444-
R = ZZ/101[x,y,Degrees=>{2,5}];
4445-
M = R^1/(x^2,y^2);
4446-
C = freeResolution M
4447-
betti C
4448-
regularity C
4449-
weightedRegularity C
4450-
weightedRegularity M
4451-
Text
4452-
Although Castelnuovo-Mumford regularity is defined
4453-
in more general settings (e.g., toric varieties with multi-degrees),
4454-
this method does not currently handle these
4455-
extensions. Similarly, Castelnuovo-Mumford
4456-
regularity can be defined for non-free complexes,
4457-
but this method doesn't handle that case either.
4458-
SeeAlso
4459-
"Basic invariants and properties"
4460-
(regularity, Complex)
4461-
regularity
4462-
betti
4463-
freeResolution
4464-
///
4465-
44664371
doc ///
44674372
Key
44684373
(Ext,Module,Module)

M2/Macaulay2/packages/Macaulay2Doc/functions/regularity-doc.m2

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ Node
2222
r:ZZ
2323
Description
2424
Text
25-
For a free chain complex @TT "C"@ over a graded polynomial ring,
26-
the regularity is the smallest number @TT "r"@ such that each
25+
For a free chain complex @TT "C"@, the regularity @TT "r"@ is the smallest number so that each
2726
basis element of @TT "C_i"@ has degree at most @TT "i+r"@. For an ideal @TT "I"@, regularity is
2827
one plus the regularity of the minimal free resolution of the quotient of the ambient ring by @TT "I"@.
2928
For a module @TT "M"@, regularity is the regularity of a minimal free resolution of @TT "M"@.
@@ -35,19 +34,6 @@ Node
3534
regularity comodule I
3635
regularity I
3736
regularity module I
38-
Text
39-
A closely related notion is the @TT "weightedRegularity"@ of a module.
40-
Let @TT "R"@ be a graded polynomial algebra over a field, with generators $x_0,\ldots,x_{n-1}$
41-
in positive integer weights $a_0,...,a_{n-1}$,
42-
and let $\mathfrak{m}$ be the maximal ideal $(x_0,\ldots,x_{n-1})$.
43-
For a graded @TT "R"@-module @TT "M"@, @TT "weightedRegularity(M)"@ is defined
44-
using local cohomology as
45-
$$\sup_{i\geq 0} (i + \text{maximum degree of }H^i_{\mathfrak{m}}(R, M)).$$
46-
For example, if $M$ is bounded above, then the weighted regularity of @TT "M"@ is the maximum degree of $M$.
47-
Text
48-
If the weights are equal to 1, then weighted regularity is the same as regularity. In general, the weighted
49-
regularity is equal to the regularity minus $\sum_i (a_i-1)$.
50-
What we call weighted regularity was proposed by Peter Symonds as the definition of regularity.
5137
Text
5238
The regularity is the label of the last row in the @TO2 {betti, "Betti diagram"}@ of a chain complex.
5339
However, this depends on the total degree weights in the Betti tally, which are computed based on the

0 commit comments

Comments
 (0)