Skip to content

Commit

Permalink
simplifying
Browse files Browse the repository at this point in the history
  • Loading branch information
egri-nagy committed Aug 11, 2023
1 parent 552b8c6 commit a91cf96
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions lib/skeletongroups.gi
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ local pos, scc,o, w;
o := ForwardOrbit(sk);
pos := Position(o, A);
scc := OrbSCCLookup(o)[pos];
w := Concatenation(
TraceSchreierTreeOfSCCBack(o,scc,SkeletonTransversal(sk)[scc]),
TraceSchreierTreeOfSCCForward(o, scc, pos));
w := Concatenation(
TraceSchreierTreeOfSCCBack(o,scc,SkeletonTransversal(sk)[scc]),
TraceSchreierTreeOfSCCForward(o, scc, pos));
if SgpDecOptionsRec.STRAIGHTWORD_REDUCTION then
w := Reduce2StraightWord(w,
Generators(sk),
IdentityTransformation, OnRight);
return Reduce2StraightWord(w,
Generators(sk),
IdentityTransformation, OnRight);
else
return w;
fi;
return w;
end);

#evaluates the word as transformation and stores it
Expand All @@ -39,7 +40,7 @@ end);
#returns a word that takes A to its representative
InstallGlobalFunction(ToRepw,
function(sk, A)
local w, pos, scc, n, outw, fg, inw, out,l,o;
local w, pos, scc, n, outw, fg, inn, inw, out,l,o;
o := ForwardOrbit(sk);
pos := Position(o, A);
scc := OrbSCCLookup(o)[pos];
Expand All @@ -49,9 +50,10 @@ local w, pos, scc, n, outw, fg, inw, out,l,o;
SkeletonTransversal(sk)[scc]));
out := EvalWordInSkeleton(sk, outw);
inw := FromRepw(sk,A);
inn := EvalWordInSkeleton(sk, inw);
#now doing it properly (Lemma 5.9. in ENA PhD thesis)
n := First(PositiveIntegers,
x-> IsIdentityOnFiniteSet( (FromRep(sk,A) * out)^(x+1),
x-> IsIdentityOnFiniteSet((inn * out)^(x+1),
RepresentativeSet(sk,A)));
l := [];
Add(l, outw);
Expand Down

0 comments on commit a91cf96

Please sign in to comment.