-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem-6.gap
More file actions
29 lines (22 loc) · 1.14 KB
/
problem-6.gap
File metadata and controls
29 lines (22 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
S := CatalanMonoid(3);
# Part (a)
Splash(DotString(S, rec(maximal := true)));
# Part (b)
colors := List([1 .. 5], x -> ["red", "green", "blue"]);;
Splash(DotEdgeColoredDigraph(RightCayleyDigraph(S), colors));
Splash(DotEdgeColoredDigraph(LeftCayleyDigraph(S), colors));
# Part (c)
Filtered(CongruencesOfSemigroup(S), x -> not NrEquivalenceClasses(x) in [1, Size(S)] and not IsReesCongruence(x));
# returns
# [ <2-sided semigroup congruence over <non-regular transformation monoid of size 5, degree 3 with 2 generators> with 1 generating pairs>,
# <2-sided semigroup congruence over <non-regular transformation monoid of size 5, degree 3 with 2 generators> with 1 generating pairs> ]
# Part (d)
IsIsomorphicDigraph(LatticeOfRightCongruences(S), LatticeOfLeftCongruences(S));
# returns true
# Part (e)
M := MaximalSubsemigroups(S);
# returns [ <transformation semigroup ideal of size 4, degree 3 with 4 generators>, <transformation monoid of degree 3 with 2 generators>,
# <transformation monoid of degree 3 with 2 generators> ]
IsIsomorphicSemigroup(M[1], M[2]); # false
IsIsomorphicSemigroup(M[1], M[3]); # false
IsIsomorphicSemigroup(M[2], M[3]); # false