Skip to content

Commit

Permalink
Merge pull request #158 from kamalsaleh/locales
Browse files Browse the repository at this point in the history
added locales to the list of needed packages for ComplexesCategories …
  • Loading branch information
kamalsaleh committed Jun 28, 2023
2 parents e95be87 + d6c87f7 commit d59df45
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 35 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
git clone --depth 1 -vv https://github.com/homalg-project/FunctorCategories.git
git clone --depth 1 -vv https://github.com/homalg-project/SubcategoriesForCAP.git
git clone --depth 1 -vv https://github.com/homalg-project/CategoryConstructor.git
git clone --depth 1 -vv https://github.com/homalg-project/Locales.git
- name: Build documentation of packages which we might want to reference
run: |
# keep this in sync with `dev/.release`
Expand Down
6 changes: 3 additions & 3 deletions ComplexesCategories/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "ComplexesCategories",
Subtitle := "Category of (co)chain complexes of an additive category",
Version := "2023.06-01",
Version := "2023.06-02",
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 Expand Up @@ -77,10 +77,10 @@ Dependencies := rec(
[ "CAP", ">= 2023.05-03" ],
[ "ToolsForHigherHomologicalAlgebra", ">= 2022.12-05" ],
[ "PreSheaves", ">= 2023.05-03" ],
[ "Locales", ">= 2023.06-13" ],
],

SuggestedOtherPackages := [ #[ "Locales", ">= 2023.05-05" ],
],
SuggestedOtherPackages := [ ],

ExternalConditions := [ ],
),
Expand Down
1 change: 1 addition & 0 deletions ComplexesCategories/examples/notebooks/PreSheaves.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
"output_type": "stream",
"text": [
"27 primitive operations were used to derive 77 operations for this category which algorithmically\n",
"* IsAbCategory\n",
"* IsEquippedWithHomomorphismStructure\n",
"* IsLinearCategoryOverCommutativeRing\n",
"and furthermore mathematically\n",
Expand Down
33 changes: 1 addition & 32 deletions ComplexesCategories/gap/Categories.gi
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,7 @@
#


BindGlobal( "INTEGERS_CAT",

function ( )
local category;

if IsPackageMarkedForLoading( "Locales", ">= 2023.05-05" ) then

return ValueGlobal( "TotalOrderAsCategory" )( "IsInt", {a,b} -> a >= b );

else

category := CreateCapCategory( "TotalOrderAsCategory( \"IsInt\" )" );
category!.category_as_first_argument := true;

AddObjectConstructor( category, { cat, i } -> CreateCapCategoryObjectWithAttributes( cat, ObjectDatum, i ) );
AddMorphismConstructor( category, { cat, s, datum, r } -> CreateCapCategoryMorphismWithAttributes( cat, s, r ) );

AddPreCompose( category, { cat, u, v } -> MorphismConstructor( cat, Source( u ), true, Range( v ) ) );
AddIdentityMorphism( category, { cat, u } -> MorphismConstructor( cat, Source( u ), true, Range( u ) ) );

AddIsWellDefinedForMorphisms( category, { cat, u } -> ObjectDatum( Source( u ) ) >= ObjectDatum( Range( u ) ) );

AddIsEqualForObjects( category, { cat, i, j } -> IsIdenticalObj( ObjectDatum( i ), ObjectDatum( j ) ) );
AddIsEqualForMorphisms( category, { cat, u, v } -> IsEqualForObjects( Source( u ), Source( u ) ) and IsEqualForObjects( Range( u ), Range( u ) ) );

Finalize( category );

return category;

fi;

end ( ) );
BindGlobal( "INTEGERS_CAT", TotalOrderAsCategory( "IsInt", {a,b} -> a >= b ) );

BindGlobal( "INTEGERS_CAT_OBJS",

Expand Down
1 change: 1 addition & 0 deletions DerivedCategories/examples/notebooks/HappelTheorem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
"A CAP category with name Algebroid( Q, FreeCategory( RightQuiver( \"q(v1,v2,v3,v4)[a:v1->v2,b:v2->v4,c:v1->v3,d:v3->v4]\" ) ) ) / relations:\n",
"\n",
"27 primitive operations were used to derive 77 operations for this category which algorithmically\n",
"* IsAbCategory\n",
"* IsEquippedWithHomomorphismStructure\n",
"* IsLinearCategoryOverCommutativeRing\n",
"and furthermore mathematically\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
"output_type": "stream",
"text": [
"27 primitive operations were used to derive 77 operations for this category which algorithmically\n",
"* IsAbCategory\n",
"* IsEquippedWithHomomorphismStructure\n",
"* IsLinearCategoryOverCommutativeRing\n",
"and furthermore mathematically\n",
Expand Down

0 comments on commit d59df45

Please sign in to comment.