Skip to content

Commit f528efe

Browse files
sashahbcd-torrance
authored andcommitted
Added missing minus sign and a test
1 parent b54b334 commit f528efe

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

M2/Macaulay2/packages/ToricHigherDirectImages.m2

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ HDI (ToricMap, ZZ, Module) := Module => (phi, i, D) -> (
494494
if not isFreeModule D then error("-- module is not free");
495495
if rank D != 1 then error("-- module is not rank one");
496496
-- this chooses a divisor to represent the twist.
497-
inp := flatten entries( (inverse fromCDivToPic source phi) * transpose matrix degrees D );
497+
inp := -flatten entries( (inverse fromCDivToPic source phi) * transpose matrix degrees D );
498498
HDI(phi, i, inp)
499499
)
500500
HDI (ToricMap, ZZ, CoherentSheaf) := Module => (phi, i, D) -> sheaf(target phi, HDI(phi, i, module D))
@@ -919,7 +919,7 @@ doc ///
919919
phi = map(Z, X, matrix {{0,-1},{1,0}});
920920
M = (ring X)^{{-6,3}};
921921
RM = prune phi_*^0 M
922-
L = OO_X(6,-3);
922+
L = sheaf_X M;
923923
RL = prune phi_*^1 L
924924
annihilator RL
925925
SeeAlso
@@ -1063,4 +1063,21 @@ HT = computeEigencharacters(phi,1,D);
10631063
assert(set keys HT == set {matrix{{0},{1}}, matrix{{0},{-1}}})
10641064
///
10651065

1066+
TEST ///
1067+
X = smoothFanoToricVariety(4,13);
1068+
f = (nefRayContractions X)_1;
1069+
Y = target f;
1070+
D = {-1,-1,-1,-1,-1,-1,-1};
1071+
D' = toricDivisor X
1072+
L = OO D'
1073+
assert(f_*^0 D == 0)
1074+
assert(f_*^1 D == 0)
1075+
assert(f_*^0 D == f_*^0 D')
1076+
assert(f_*^1 D == f_*^1 D')
1077+
assert(f_*^2 D == f_*^2 D')
1078+
assert(f_*^0 D == module f_*^0 L)
1079+
assert(f_*^1 D == module f_*^1 L)
1080+
assert(f_*^2 D == module f_*^2 L)
1081+
///
1082+
10661083
end--

0 commit comments

Comments
 (0)