-
Notifications
You must be signed in to change notification settings - Fork 36
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
Incorrect results from NaturalPartialOrder
#389
Labels
bug
Label for issues or PR which report or fix bugs
Comments
(This bug is what is causing Travis to fail for my PR #388). |
wilfwilson
added a commit
to wilfwilson/Semigroups
that referenced
this issue
Oct 1, 2017
Previously we pre-sorted the elements of the inverse semigroup by a Greens D >= function, but we should use a <= function. Resolves semigroups#389.
wilfwilson
added a commit
to wilfwilson/Semigroups
that referenced
this issue
Oct 1, 2017
Previously we pre-sorted the elements of the inverse semigroup by a Greens D > function, but we should use a Greens D < function. Resolves semigroups#389.
wilfwilson
added a commit
to wilfwilson/Semigroups
that referenced
this issue
Oct 2, 2017
Previously we pre-sorted the elements of the inverse semigroup by a Greens D > function, but we should use a Greens D < function. Resolves semigroups#389.
wilfwilson
added a commit
to wilfwilson/Semigroups
that referenced
this issue
Oct 2, 2017
Previously we pre-sorted the elements of the inverse semigroup by a Greens D > function, but we should use a Greens D < function. Resolves semigroups#389.
wilfwilson
added a commit
to wilfwilson/Semigroups
that referenced
this issue
Oct 2, 2017
Previously we pre-sorted the elements of the inverse semigroup by a Greens D > function, but we should use a Greens D < function. Resolves semigroups#389.
Resolved by #390 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let
es
be the semilattice of idempotents of the symmetric inverse monoid of degree 3:es
is mathematically an inverse semigroup, butGAP
doesn't know yet that it's inverse. Therefore the method forNaturalPartialOrder
that applies is the one on line31
ofattrinv.gi
.The following is what
NaturalPartialOrder
should actually show:(Since
es
is a semilattice,x NaturalLeq y if and only if x * y = x
).Bu the method gives an incorrect result:
This is wrong since
2
should be an entry ofpo[7]
, but it isn't:If we instead represent
es
by block bijections, then we should expect the same answer (up to a permutation). But it's totally different:The culprit is line 50 in
attrinv.gi
:We're trying to pre-sort the elements by D-order, but according to the documentation
Sortex
(andSort
, etc) require a strict less-than function to work (I'm unsure whether they work with less than or equal). It seems like they certainly don't work with greater-than.I'll do what I can to fix/improve the code.
The text was updated successfully, but these errors were encountered: