-
Notifications
You must be signed in to change notification settings - Fork 165
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
Fix DisplaySemigroup for transformation semigroups #1785
Conversation
lib/semigrp.gi
Outdated
Representative(h))) / Size(h); | ||
Print("[H size = ", Size(h), ", ", nrL, " L-class"); | ||
if nrL > 1 then | ||
Print("es"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You use 2 spaces for indentation here, while earlier in this function, 4 spaces are used...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point @fingolfin, I'll unify it to 4 spaces (the original number used by this method).
Codecov Report
@@ Coverage Diff @@
## master #1785 +/- ##
==========================================
+ Coverage 62.82% 62.83% +0.01%
==========================================
Files 969 969
Lines 295190 295205 +15
Branches 13049 13049
==========================================
+ Hits 185449 185494 +45
+ Misses 106940 106911 -29
+ Partials 2801 2800 -1
|
The documentation for `DisplaySemigroup` was not linked. Furthermore, there was an unexpected error for certain types of transformation semigroup when using `DisplaySemigroup`: in particular, the method did not take into account the degree of the semigroup when trying to calculate the rank of an element. For example, in any monoid of transformations of degree `n`, `IdentityTransformation` has rank `n`. So you need to know the degree of the semigroup to get the rank.
16090c2
to
8a35b08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
DisplaySemigroup
is supposed to give a summary of the Green's structure of a transformation semigroup.The documentation for
DisplaySemigroup
was not linked into the documentation system. I have now linked this, and reworded the documentation slightly.I have changed the code of
DisplaySemigroup
so that the output is more readable (and correctly pluralises the word "class").Furthermore, there was an unexpected error for certain types of transformation semigroup when using
DisplaySemigroup
. This was because the method did not take into account the degree of the semigroup when trying to calculate the rank of an element. For example, in any monoid of transformations of degreen
, theIdentityTransformation
has rankn
. So you need to know the degree of the semigroup in order to get the rank of any element.