Skip to content

Commit 443891c

Browse files
fixed bug in membership test_function
the assumption made on HilbertPolynomial in the code is wrong
1 parent 39e0986 commit 443891c

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

ToricSheaves/PackageInfo.g

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "ToricSheaves",
1212
Subtitle := "Toric sheaves as Serre quotients",
13-
Version := "2020.10-01",
13+
Version := "2021.02-01",
1414
Date := Concatenation( "01/", ~.Version{[ 6, 7 ]}, "/", ~.Version{[ 1 .. 4 ]} ),
1515
License := "GPL-2.0-or-later",
1616

ToricSheaves/examples/Hirzebruch7.gi

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ CohH7 := CategoryOfToricSheaves( H7 );
66

77
S := CoxRing( H7 );
88

9-
Mirr := HomalgMatrix( "[x_3*x_4,x_1*x_4,x_1*x_2,x_2*x_3]",4,1,S );
10-
119
gen_degs := DegreesOfGenerators( IrrelevantIdeal( H7 ) );
1210

13-
Irrel := AsGradedLeftPresentation( Mirr );
11+
## A module supported on the irrelevant locus
12+
Mirr := AsGradedLeftPresentation( HomalgMatrix( "[x_1*x_2, x_1*x_3, x_2*x_4, x_3*x_4]", 4, 1, S ) );
13+
14+
SheafMirr := AsSerreQuotientCategoryObject( CohH7, Mirr );
1415

15-
SheafIrrel := AsSerreQuotientCategoryObject( CohH7, Irrel );
16+
Assert( 0, IsZero( SheafMirr ) );
1617

17-
MS := AsGradedLeftPresentation( FreeLeftPresentation( 1, S ) );
18+
MS := GradedFreeLeftPresentation( 1, S );
1819

1920
SheafS := AsSerreQuotientCategoryObject( CohH7, MS );

ToricSheaves/gap/ToricSheaves.gi

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ InstallMethod( CategoryOfToricSheaves,
3636

3737
presentation_category := GradedLeftPresentations( graded_ring );
3838

39-
if IsFree( DegreeGroup( graded_ring ) ) and ForAll( degree_matrix_as_list_list, i -> ForAll( i, j -> j >= 0 ) ) and comes_from_smooth_variety then
39+
if IsFree( DegreeGroup( graded_ring ) ) and Rank( DegreeGroup( graded_ring ) ) = 1 and ForAll( degree_matrix_as_list_list, i -> ForAll( i, j -> j >= 0 ) ) and comes_from_smooth_variety then
4040

4141
test_function := module -> IsZero( HilbertPolynomial( UnderlyingMatrixOverNonGradedRing( UnderlyingMatrix( module ) ) ) );
4242

0 commit comments

Comments
 (0)