Skip to content

Commit

Permalink
ENHANCE: In MTC, make relators canonical (better duplicate detection)
Browse files Browse the repository at this point in the history
Fix assertion typo
  • Loading branch information
hulpke committed Aug 12, 2016
1 parent 4e872ff commit f246bcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sgpres.gi
Original file line number Diff line number Diff line change
Expand Up @@ -3383,6 +3383,8 @@ local DATA,rels,i,j,w,f,r,s,fam,new,ri,a,offset,p,rset,re,start,stack,pres,
CompletionBar(InfoFpGroup,2,"Coset Loop: ",i/DATA.n);
for w in DATA.rels do
r:=NEWTC_Rewrite(DATA,i,w);
MakeCanonical(r);

# reduce with others
for j in rels do
r:=NEWTC_ReplacedStringCyclic(r,j);
Expand Down Expand Up @@ -3488,7 +3490,7 @@ local DATA,rels,i,j,w,f,r,s,fam,new,ri,a,offset,p,rset,re,start,stack,pres,
TzSearch(pres);
TzEliminate(pres,i);
od;
Assert(1,Length(GeneratorsOfPresentation)=subnum);
Assert(1,Length(GeneratorsOfPresentation(pres))=subnum);

fi;
r:=List(GeneratorsOfPresentation(pres){
Expand Down

0 comments on commit f246bcd

Please sign in to comment.