Skip to content

Commit 481cbe0

Browse files
new file LinearClosureForGroupAsCategory.gi
1 parent 06b93ab commit 481cbe0

3 files changed

Lines changed: 9 additions & 56 deletions

File tree

FreydCategoriesForCAP/PackageInfo.g

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "FreydCategoriesForCAP",
1212
Subtitle := "Freyd categories - Formal (co)kernels for additive categories",
13-
Version := "2025.06-06",
13+
Version := "2025.06-07",
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

@@ -116,14 +116,15 @@ Dependencies := rec(
116116

117117
Extensions := [
118118
rec(
119-
needed := [ [ "FinSetsForCAP", ">= 2023.07-03" ],
120-
[ "GroupsAsCategoriesForCAP", ">= 2025.06-01" ],
121-
],
119+
needed := [ [ "FinSetsForCAP", ">= 2023.07-03" ] ],
122120
filename := "gap/LinearClosure.gi",
121+
filename := "gap/ProSetsAsCats.gi",
123122
),
124123
rec(
125-
needed := [ [ "FinSetsForCAP", ">= 2023.07-03" ] ],
126-
filename := "gap/ProSetsAsCats.gi",
124+
needed := [ [ "FinSetsForCAP", ">= 2023.07-03" ],
125+
[ "GroupsAsCategoriesForCAP", ">= 2025.06-01" ],
126+
],
127+
filename := "gap/LinearClosureForGroupAsCategory.gi",
127128
),
128129
],
129130

FreydCategoriesForCAP/gap/LinearClosure.gi

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -135,31 +135,6 @@ InstallMethod( TwistedLinearClosure,
135135

136136
end );
137137

138-
## Special cases for groups
139-
##
140-
InstallMethod( LinearClosure,
141-
[ IsCategoryOfRows, IsGroupAsCategory ],
142-
function( rows, group_as_category )
143-
local compare_func;
144-
145-
compare_func := function( g, h ) return UnderlyingGroupElement( g ) < UnderlyingGroupElement( h ); end;;
146-
147-
return LinearClosure( rows, group_as_category, compare_func );
148-
149-
end );
150-
151-
##
152-
InstallMethod( TwistedLinearClosure,
153-
[ IsCategoryOfRows, IsGroupAsCategory, IsFunction ],
154-
function( rows, category, cocycle )
155-
local compare_func;
156-
157-
compare_func := function( g, h ) return UnderlyingGroupElement( g ) < UnderlyingGroupElement( h ); end;;
158-
159-
return LINEAR_CLOSURE_CONSTRUCTOR_USING_CategoryOfRows( rows, category, cocycle, true, compare_func );
160-
161-
end );
162-
163138
##
164139
InstallGlobalFunction( LINEAR_CLOSURE_CONSTRUCTOR,
165140
function( ring, underlying_category, arg... )
@@ -202,31 +177,6 @@ InstallMethod( TwistedLinearClosure,
202177

203178
end );
204179

205-
## Special cases for groups
206-
##
207-
InstallMethod( LinearClosure,
208-
[ IsHomalgRing, IsGroupAsCategory ],
209-
function( ring, group_as_category )
210-
local compare_func;
211-
212-
compare_func := function( g, h ) return UnderlyingGroupElement( g ) < UnderlyingGroupElement( h ); end;;
213-
214-
return LinearClosure( ring, group_as_category, compare_func );
215-
216-
end );
217-
218-
##
219-
InstallMethod( TwistedLinearClosure,
220-
[ IsHomalgRing, IsGroupAsCategory, IsFunction ],
221-
function( ring, category, cocycle )
222-
local compare_func;
223-
224-
compare_func := function( g, h ) return UnderlyingGroupElement( g ) < UnderlyingGroupElement( h ); end;;
225-
226-
return LINEAR_CLOSURE_CONSTRUCTOR( ring, category, cocycle, true, compare_func );
227-
228-
end );
229-
230180
##
231181
InstallMethodForCompilerForCAP( LinearClosureObject,
232182
[ IsLinearClosure, IsCapCategoryObject ],

FreydCategoriesForCAP/read.g

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ReadPackage( "FreydCategoriesForCAP", "gap/FreydCategoriesForCAP.gi" );
77

88
ReadPackage( "FreydCategoriesForCAP", "gap/MethodRecordInstallations.autogen.gi" );
99

10+
ReadPackage( "FreydCategoriesForCAP", "gap/LinearClosure.gi" );
11+
1012
ReadPackage( "FreydCategoriesForCAP", "gap/CategoryOfRows.gi" );
1113
ReadPackage( "FreydCategoriesForCAP", "gap/CategoryOfRows_as_AdditiveClosure_RingAsCategory.gi" );
1214

0 commit comments

Comments
 (0)