Skip to content

Commit 75d7384

Browse files
Merge pull request #1781 from mohamed-barakat/IsLinearClosureOfACategory
declared categorical property IsLinearClosureOfACategory
2 parents ff71d02 + b7715d8 commit 75d7384

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

LinearClosuresForCAP/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 := "LinearClosuresForCAP",
1212
Subtitle := "Linear closures",
13-
Version := "2025.07-02",
13+
Version := "2025.07-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

LinearClosuresForCAP/gap/LinearClosure.gd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ DeclareCategory( "IsLinearClosureMorphism",
2121
DeclareCategory( "IsLinearClosure",
2222
IsCapCategory );
2323

24+
#! @Description
25+
#! The property of <A>C</A> being a linear closure of a category.
26+
#! @Arguments C
27+
DeclareProperty( "IsLinearClosureOfACategory",
28+
IsCapCategory );
29+
30+
AddCategoricalProperty( [ "IsLinearClosureOfACategory", "IsLinearClosureOfACategory" ] );
31+
2432
DeclareGlobalFunction( "LINEAR_CLOSURE_CONSTRUCTOR_USING_CategoryOfRows" );
2533

2634
DeclareGlobalFunction( "LINEAR_CLOSURE_CONSTRUCTOR" );

LinearClosuresForCAP/gap/LinearClosure.gi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ InstallGlobalFunction( LINEAR_CLOSURE_CONSTRUCTOR_USING_CategoryOfRows,
8989

9090
SetUnderlyingCategory( category, underlying_category );
9191

92+
if cocycle = fail then
93+
SetIsLinearClosureOfACategory( category, true );
94+
fi;
95+
9296
SetIsLinearCategoryOverCommutativeRing( category, true );
9397

9498
SetIsAbCategory( category, true );

0 commit comments

Comments
 (0)