-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce associativity check to
AsSemigroup
See #4030. I thought about adding a similar check to `SemigroupByGenerators`, but that operation is explicitly documented as not checking for associativity. Fixes #4030.
- Loading branch information
1 parent
84d1367
commit a7a788f
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://github.com/gap-system/gap/issues/4030 | ||
gap> T := [ | ||
> [ 1, 2, 6, 5, 4, 3 ], | ||
> [ 2, 1, 4, 2, 2, 5 ], | ||
> [ 6, 5, 1, 6, 6, 4 ], | ||
> [ 5, 6, 3, 4, 1, 2 ], | ||
> [ 4, 3, 2, 1, 5, 6 ], | ||
> [ 3, 4, 5, 3, 3, 1 ] | ||
> ];; | ||
gap> M := MagmaByMultiplicationTable(T); | ||
<magma with 6 generators> | ||
gap> IsAssociative(M); | ||
false | ||
gap> AsSemigroup(M); | ||
fail | ||
gap> M := MagmaByMultiplicationTable(T); | ||
<magma with 6 generators> | ||
gap> AsSemigroup(M); | ||
fail |