Skip to content

Commit 8eacf64

Browse files
the constructor Category now computes a GB of the ideal of relations
1 parent 370c9ff commit 8eacf64

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SetPackageInfo( rec(
1111
PackageName := "Algebroids",
1212
Subtitle := "Algebroids and bialgebroids as preadditive categories generated by enhanced quivers",
1313
Version := Maximum( [
14-
"2020.10-09", ## Mohamed's version
14+
"2020.10-10", ## Mohamed's version
1515
## this line prevents merge conflicts
1616
"2020.09-08", ## Kamal's version
1717
## this line prevents merge conflicts

gap/FpCategories.gi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ InstallMethod( Category,
396396
[ IsPathAlgebra, IsList ],
397397

398398
function( Qq, L )
399-
local relations;
399+
local relations, A;
400400

401401
if not ( IsList( L ) and
402402
ForAll( L, IsList ) and
@@ -409,7 +409,11 @@ InstallMethod( Category,
409409

410410
relations := List( L, a -> PathAsAlgebraElement( Qq, a[1] ) - PathAsAlgebraElement( Qq, a[2] ) );
411411

412-
return Category( Qq / Ideal( Qq, relations ) : relations := L );
412+
A := Qq / Ideal( Qq, relations );
413+
414+
A := Qq / GroebnerBasis( IdealOfQuotient( A ) );
415+
416+
return Category( A : relations := L );
413417

414418
end );
415419

0 commit comments

Comments
 (0)