Skip to content

Commit

Permalink
fixed yonedaExtension for multigraded rings
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud authored and mikestillman committed Oct 16, 2024
1 parent 2caeddf commit 1c121d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion M2/Macaulay2/packages/Complexes/ChainComplex.m2
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ yonedaExtension Matrix := Complex => f -> (
g := homomorphism E.cache.yonedaExtension f; -- g: FM_d --> N
-- if g has a non-zero degree, we must twist the target to preserve homogeneity
gdegree := degree g;
g = map(N ** (ring g)^gdegree, source g, g);
g = map(N ** (ring g)^{gdegree}, source g, g);
if d <= 0 then error "Yoneda extension only defined for Ext^d module for d at least 1";
h := dd^FM_d || g;
P := coker h; -- FM_d --> FM_(d-1) ++ N --> P --> 0
Expand Down
6 changes: 4 additions & 2 deletions M2/Macaulay2/packages/Complexes/ChainComplexTests.m2
Original file line number Diff line number Diff line change
Expand Up @@ -2009,10 +2009,12 @@ TEST ///
restart
needsPackage "Complexes"
*-

S = ZZ/101[a..d, Degrees=>{2:{1,0},2:{0,1}}]
B = ideal(a,b) * ideal(c,d)
Ext^1(B, S)
E = Ext^1(B, S)
C = yonedaExtension map(E, , matrix random cover E)
assert(C_0 == module B)
assert(C_2 == module S)
F = random({1,2}, S)
f = map(S^1, S^{-degree F}, {{F}})
assert isHomogeneous f
Expand Down

0 comments on commit 1c121d0

Please sign in to comment.