Skip to content

Commit

Permalink
Compute IsProjective if it is cheap to do so in AdelmanCategory
Browse files Browse the repository at this point in the history
Compiled code might not set IsProjective itself.
  • Loading branch information
zickgraf committed Sep 11, 2024
1 parent be1c838 commit 9250655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FreydCategoriesForCAP/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "FreydCategoriesForCAP",
Subtitle := "Freyd categories - Formal (co)kernels for additive categories",
Version := "2024.09-04",
Version := "2024.09-05",
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)( ),
License := "GPL-2.0-or-later",

Expand Down
2 changes: 1 addition & 1 deletion FreydCategoriesForCAP/gap/AdelmanCategory.gi
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ InstallGlobalFunction( INSTALL_FUNCTIONS_FOR_ADELMAN_CATEGORY,

if HasIsAbelianCategory( range_category ) and
IsAbelianCategory( range_category ) and
HasIsProjective( underlying_distinguished_object ) and
(HasIsProjective( underlying_distinguished_object ) or CurrentOperationWeight( range_category!.derivations_weight_list, "IsProjective" ) <= 50) and
IsProjective( underlying_distinguished_object ) then

SetRangeCategoryOfHomomorphismStructure( category, range_category );
Expand Down

0 comments on commit 9250655

Please sign in to comment.