Skip to content

Commit c963094

Browse files
committed
fixed the filteredComplex(Complex) constructor
1 parent 88ccc77 commit c963094

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

M2/Macaulay2/packages/SpectralSequences.m2

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,12 @@ filteredComplex(List) := FilteredComplex => opts -> L -> (
208208

209209

210210
-- make the filtered complex associated to the "naive truncation of a chain complex"
211-
filteredComplex Complex := FilteredComplex => opts-> C->(
212-
(n, m) := concentration C;
213-
p := length C;
214-
if p > 0 then (
215-
H := for i from 1 to p list inducedMap(C, naiveTruncation(C, -i));
216-
filteredComplex( H, Shift => - m) )
217-
else filteredComplex {map(C, image(0 * id_C), id_C)}--{map(C, id_C} -- now the constructor supports the zero chain complex
218-
)
211+
filteredComplex Complex := FilteredComplex => opts -> C -> (
212+
(lo, hi) := concentration C;
213+
if lo == hi
214+
then filteredComplex{ map(C, image(0 * id_C), id_C) }
215+
else filteredComplex(Shift => -lo,
216+
apply(hi-lo, i -> inducedMap(C, naiveTruncation(C, lo, hi-i-1)))))
219217

220218
--produce the "x-filtration" of the tensor product complex.
221219
xTensormodules := (p,q,T) -> (

0 commit comments

Comments
 (0)