Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Algebroids: Assertion failure in CategoryFromDataTables #96

Open
kamalsaleh opened this issue Jan 31, 2023 · 2 comments
Open

Algebroids: Assertion failure in CategoryFromDataTables #96

kamalsaleh opened this issue Jan 31, 2023 · 2 comments

Comments

@kamalsaleh
Copy link
Member

gap> LoadPackage( "Algebroids" );
# true

gap> q := RightQuiver( "q(*)[a:*->*,b:*->*,c:*->*]" );
# q(*)[a:*->*,b:*->*,c:*->*]

gap> F := FreeCategory( q );
# FreeCategory( RightQuiver( "q(*)[a:*->*,b:*->*,c:*->*]" ) )

gap> C := F / [ [ F.aaaaaaa, F.a ], [F.bbbbbb, F.b], [F.cccccc, F.c], [ F.ab, F.c ], [ F.ba, F.c ], [ F.ac, F.b ], [ F.ca, F.b ] ];
# FreeCategory( RightQuiver( "q(*)[a:*->*,b:*->*,c:*->*]" ) ) / relations

gap> RangeCategoryOfHomomorphismStructure( C );
# SkeletalFinSets

gap> CategoryFromDataTables( C );
Error, Assertion failure in
  pos <> fail at /home/kamal/.gap/pkg/CAP_project/CAP/gap/ToolsForCategories.gi:1284 called from 
SafePosition( mors, g ) at /home/kamal/.gap/pkg/CategoricalTowers/Algebroids/gap/FpCategories.gi:188 called from
func( C[i] ) at /home/kamal/Software/gap-4.12.1/lib/coll.gi:663 called from
List( ArrowList( path ), function ( g )
      return -1 + SafePosition( mors, g );
  end ) at /home/kamal/.gap/pkg/CategoricalTowers/Algebroids/gap/FpCategories.gi:188 called from
func( pair[1] ) at /home/kamal/.gap/pkg/CategoricalTowers/Algebroids/gap/FpCategories.gi:191 called from
func( C[i] ) at /home/kamal/Software/gap-4.12.1/lib/coll.gi:663 called from
...  at *stdin*:51
you may 'return;'

brk> mors;
[ (a), (b), (b) ]

brk> g;
(c)

@mohamed-barakat
Copy link
Member

Here is the source of the bug:

gap> SetOfGeneratingMorphisms( C );
[ (*)-[(a)]->(*), (*)-[(b)]->(*), (*)-[(b)]->(*) ]

@mohamed-barakat
Copy link
Member

Ah, b and c are equal by the relations, a corner case not taken care of:

gap> C.b = C.c;
true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants