Skip to content

Commit bf7ba41

Browse files
Merge pull request #1800 from mohamed-barakat/cleanup
2 parents f902cf9 + ca44f35 commit bf7ba41

File tree

15 files changed

+97
-57
lines changed

15 files changed

+97
-57
lines changed

CAP/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "CAP",
1212
Subtitle := "Categories, Algorithms, Programming",
13-
Version := "2025.09-02",
13+
Version := "2025.09-03",
1414
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1515
License := "GPL-2.0-or-later",
1616

CAP/gap/CategoryObjectsOperations.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ InstallOtherMethod( IsEqualForObjects,
5757

5858
else
5959

60-
Error( "Cannot decide whether the object \"", String( object_1 ), "\" and the object \"", String( object_2 ), "\" are equal. You can fix this error by installing `IsEqualForObjects` in <cat> or possibly avoid it by enabling strict caching." );
60+
Error( "Cannot decide whether the object \"", String( object_1 ), "\" and the object \"", String( object_2 ), "\" are equal. You can fix this error by installing `IsEqualForObjects` in <cat> or possibly avoid it by enabling strict caching\n" );
6161

6262
fi;
6363

ComplexesAndFilteredObjectsForCAP/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "ComplexesAndFilteredObjectsForCAP",
1212
Subtitle := "Implementation of complexes, cocomplexes and filtered objects for CAP",
13-
Version := "2025.02-01",
13+
Version := "2025.09-01",
1414
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1515
License := "GPL-2.0-or-later",
1616

ComplexesAndFilteredObjectsForCAP/gap/CocomplexCategory.gi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,22 @@ InstallMethod( CocomplexCategory,
6262

6363
cocomplex_category := CreateCapCategory( name : is_computable := false );
6464

65+
## TODO: since the following is currently unavoidable deprecate this category constructor
66+
DisableInputSanityChecks( cocomplex_category );
67+
6568
SetUnderlyingCategory( cocomplex_category, category );
6669

6770
SetCocomplexCategory( category, cocomplex_category );
6871

6972
INSTALL_OPERATIONS_FOR_COCOMPLEX_CATEGORY( category );
7073

74+
AddIsEqualForObjects( cocomplex_category,
75+
function( cocomplex_category, C1, C2 )
76+
77+
return IsEqualForObjects( UnderlyingZFunctorCell( C1 ), UnderlyingZFunctorCell( C2 ) );
78+
79+
end );
80+
7181
Finalize( cocomplex_category );
7282

7383
return cocomplex_category;
@@ -93,12 +103,22 @@ InstallMethod( ComplexCategory,
93103

94104
complex_category := CreateCapCategory( name : is_computable := false );
95105

106+
## TODO: since the following is currently unavoidable deprecate this category constructor
107+
DisableInputSanityChecks( complex_category );
108+
96109
SetUnderlyingCategory( complex_category, category );
97110

98111
SetComplexCategory( category, complex_category );
99112

100113
INSTALL_OPERATIONS_FOR_COMPLEX_CATEGORY( category );
101114

115+
AddIsEqualForObjects( complex_category,
116+
function( complex_category, C1, C2 )
117+
118+
return IsEqualForObjects( UnderlyingZFunctorCell( C1 ), UnderlyingZFunctorCell( C2 ) );
119+
120+
end );
121+
102122
Finalize( complex_category );
103123

104124
return complex_category;

ComplexesAndFilteredObjectsForCAP/gap/ZFunctors.gi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,23 @@ InstallMethod( ZFunctorCategory,
5555

5656
z_functor_category := CreateCapCategory( name : is_computable := false );
5757

58+
## TODO: since the following is currently unavoidable deprecate this category constructor
59+
DisableInputSanityChecks( z_functor_category );
60+
5861
SetUnderlyingCategory( z_functor_category, category );
5962

6063
SetZFunctorCategory( category, z_functor_category );
6164

6265
INSTALL_OPERATIONS_FOR_ZFUNCTOR_CATEGORY( category );
6366

67+
AddIsEqualForObjects( z_functor_category,
68+
function( z_functor_category, ZF1, ZF2 )
69+
70+
## return true;
71+
return IsIdenticalObj( ZF1, ZF2 );
72+
73+
end );
74+
6475
Finalize( z_functor_category );
6576

6677
return z_functor_category;

GradedModulePresentationsForCAP/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "GradedModulePresentationsForCAP",
1212
Subtitle := "Presentations for graded modules",
13-
Version := "2025.08-02",
13+
Version := "2025.09-01",
1414
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1515
License := "GPL-2.0-or-later",
1616

ModulePresentationsForCAP/examples/Gabriel_Purity_Paper.g renamed to GradedModulePresentationsForCAP/examples/Gabriel_Purity_Paper.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LoadPackage( "ModulePresentationsForCAP" );
1+
LoadPackage( "GradedModulePresentationsForCAP" );
22
LoadPackage( "HomologicalAlgebraForCAP" );
33

44
SwitchGeneralizedMorphismStandard( "span" );

ModulePresentationsForCAP/examples/Purity.g renamed to GradedModulePresentationsForCAP/examples/Purity.g

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
LoadPackage( "ModulePres" );
2-
LoadPackage( "Homological" );
1+
LoadPackage( "GradedModulePresentationsForCAP" );
2+
LoadPackage( "HomologicalAlgebraForCAP" );
33

44
Qxyzt := HomalgFieldOfRationalsInSingular( ) * "x,y,z,t";
55

@@ -24,10 +24,10 @@ SetIsAdditiveCategory( ComplexCategory( CapCategory( S0 ) ), true );
2424

2525
M := AsGradedLeftPresentation( wmat );
2626

27-
res := FreeResolutionComplexOfModule( M );
27+
res := FreeResolutionComplex( M );
2828
res := res[ 1 ];
2929
homres := DualOnComplex( res );
30-
CE := CartanEilenbergResolution( homres, FreeResolutionCocomplexOfModule );
30+
CE := CartanEilenbergResolution( homres, FreeResolutionCocomplex );
3131
homCE := DualOnCocomplexCocomplex( CE );
3232
trhomCE := TransposeComplexOfComplex( homCE );
3333

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
LoadPackage( "ModulePres" );
2-
LoadPackage( "Homological" );
1+
LoadPackage( "GradedModulePresentationsForCAP" );
2+
LoadPackage( "HomologicalAlgebraForCAP" );
3+
34
Q := HomalgFieldOfRationalsInSingular();
4-
R := Q*"x,y";
5+
R := Q["x,y"];
56
S := GradedRing( R );
6-
WeightsOfIndeterminates( S );
7-
eins := last[1];
8-
M := HomalgMatrix( "[x^2,xy,y^2]", 3,1, S );
7+
weights := WeightsOfIndeterminates( S );
8+
eins := weights[1];
9+
M := HomalgMatrix( "[x^2,xy,y^2]", 3, 1, S );
910
XX := GradedFreeLeftPresentation( 1, S );
1011
S0 := GradedFreeLeftPresentation( 1, S );
1112
S1 := GradedFreeLeftPresentation( 3, S, [ 2*eins, 2*eins, 2*eins ] );
1213
alpha := GradedPresentationMorphism( S1, M, S0 );
1314
M := CokernelObject( alpha );
14-
FFhomo := ResolutionFunctorToComplex( GradedLeftPresentations( S ), CoverByFreeModule );
15-
FF := ResolutionFunctorToCocomplex( GradedLeftPresentations( S ), CoverByFreeModule );
16-
res := ApplyFunctor( FFhomo, M );
15+
1716
SetIsAdditiveCategory( CocomplexCategory( CapCategory( S0 ) ), true );
1817
SetIsAdditiveCategory( ComplexCategory( CapCategory( S0 ) ), true );
1918

2019
M := DirectSum( [ M, S0 ] );
2120

22-
res := FreeResolutionComplexOfModule( M );
21+
res := FreeResolutionComplex( M );
2322
res := res[ 1 ];
24-
homres := InternalHomOnComplexWithObject( res, S0 );
25-
CE := CartanEilenbergResolution( homres, FreeResolutionCocomplexOfModule );
26-
homCE := InternalHomOnCocomplexCocomplexWithObject( CE, S0 );
23+
homres := DualOnComplex( res );
24+
CE := CartanEilenbergResolution( homres, FreeResolutionCocomplex );
25+
homCE := DualOnCocomplexCocomplex( CE );

ModulePresentationsForCAP/examples/SpectralSequenceTest.g renamed to GradedModulePresentationsForCAP/examples/SpectralSequenceTest.g

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
LoadPackage( "ModulePres" );
2-
LoadPackage( "Homological" );
1+
LoadPackage( "GradedModulePresentationsForCAP" );
2+
LoadPackage( "HomologicalAlgebraForCAP" );
33

44
SwitchGeneralizedMorphismStandard( "span" );
55

@@ -26,10 +26,10 @@ SetIsAdditiveCategory( ComplexCategory( CapCategory( S0 ) ), true );
2626

2727
M := AsGradedLeftPresentation( wmat );
2828

29-
res1 := FreeResolutionComplexOfModule( M );
29+
res1 := FreeResolutionComplex( M );
3030
res := res1[ 1 ];
3131
homres := DualOnComplex( res );
32-
CE := CartanEilenbergResolution( homres, FreeResolutionCocomplexOfModule );
32+
CE := CartanEilenbergResolution( homres, FreeResolutionCocomplex );
3333
homCE := DualOnCocomplexCocomplex( CE );
3434
trhomCE := TransposeComplexOfComplex( homCE );
3535

@@ -41,8 +41,8 @@ resolution_len := ResolutionLength( res );
4141

4242
tot := TotalComplexOfBicomplex( homCE, resolution_len );
4343

44-
connection_at_0 := ConnectingMorphismFromCocomplexToCartanEilenbergResolution( homres, 0, FreeResolutionCocomplexOfModule );
45-
connection_at_1 := ConnectingMorphismFromCocomplexToCartanEilenbergResolution( homres, 1, FreeResolutionCocomplexOfModule );
44+
connection_at_0 := ConnectingMorphismFromCocomplexToCartanEilenbergResolution( homres, 0, FreeResolutionCocomplex );
45+
connection_at_1 := ConnectingMorphismFromCocomplexToCartanEilenbergResolution( homres, 1, FreeResolutionCocomplex );
4646

4747
homcon_at_0 := DualOnMorphisms( connection_at_0 );
4848
homcon_at_1 := DualOnMorphisms( connection_at_1 );

0 commit comments

Comments
 (0)