Skip to content

Commit

Permalink
conglatt: fix ordering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed May 20, 2022
1 parent 4b14202 commit b085ff9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doc/conglatt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ gap> CongruencesOfPoset(latt);
[ <right semigroup congruence over <regular transformation monoid
of size 3, degree 2 with 2 generators> with 0 generating pairs>,
<right semigroup congruence over <regular transformation monoid
of size 3, degree 2 with 2 generators> with 1 generating pairs>,
of size 3, degree 2 with 2 generators> with 2 generating pairs>,
<right semigroup congruence over <regular transformation monoid
of size 3, degree 2 with 2 generators> with 1 generating pairs>,
<right semigroup congruence over <regular transformation monoid
of size 3, degree 2 with 2 generators> with 1 generating pairs>,
<right semigroup congruence over <regular transformation monoid
of size 3, degree 2 with 2 generators> with 2 generating pairs> ]
of size 3, degree 2 with 2 generators> with 1 generating pairs> ]
]]></Example>
</Description>
</ManSection>
Expand Down
3 changes: 2 additions & 1 deletion gap/congruences/conglatt.gi
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ function(gen_congs, WrappedXCongruence)
poset := DigraphReflexiveTransitiveClosure(PartialOrderOfDClasses(S));
Info(InfoSemigroups, 1, StringFormatted("Found {} congruences in total!",
Size(S)));
all_congs := List(AsList(S), x -> x![1]);
all_congs := List(DClasses(S), x -> Representative(x)![1]);

SetCongruencesOfPoset(poset, all_congs);
SetDigraphVertexLabels(poset, all_congs);
SetUnderlyingSemigroupOfCongruencePoset(poset, U);
Expand Down
22 changes: 16 additions & 6 deletions tst/standard/congruences/conglatt.tst
Original file line number Diff line number Diff line change
Expand Up @@ -353,17 +353,17 @@ gap> Print(l, "\n");
PosetOfCongruences(
[ RightSemigroupCongruence( InverseMonoid(
[ PartialPerm( [ 1, 2 ], [ 2, 1 ] ), PartialPerm( [ 1 ], [ 1 ] ) ] ),
[ [ PartialPerm( [ 1 ], [ 1 ] ), PartialPerm( [ 2 ], [ 1 ] ) ] ] ),
RightSemigroupCongruence( InverseMonoid(
[ PartialPerm( [ 1, 2 ], [ 2, 1 ] ), PartialPerm( [ 1 ], [ 1 ] ) ] ),
[ [ PartialPerm( [ 1 ], [ 1 ] ), PartialPerm( [ 1, 2 ], [ 1, 2 ] ) ] ] ),
[ [ PartialPerm( [ 1 ], [ 1 ] ), PartialPerm( [ 2 ], [ 1 ] ) ],
[ PartialPerm( [ 1 ], [ 1 ] ), PartialPerm( [ 1, 2 ], [ 1, 2 ] ) ] ] ),
RightSemigroupCongruence( InverseMonoid(
[ PartialPerm( [ 1, 2 ], [ 2, 1 ] ), PartialPerm( [ 1 ], [ 1 ] ) ] ),
[ [ PartialPerm( [ 1, 2 ], [ 1, 2 ] ), PartialPerm( [ 1, 2 ], [ 2, 1 ] )
] ] ), RightSemigroupCongruence( InverseMonoid(
[ PartialPerm( [ 1, 2 ], [ 2, 1 ] ), PartialPerm( [ 1 ], [ 1 ] ) ] ),
[ [ PartialPerm( [ 1 ], [ 1 ] ), PartialPerm( [ 2 ], [ 1 ] ) ],
[ PartialPerm( [ 1 ], [ 1 ] ), PartialPerm( [ 1, 2 ], [ 1, 2 ] ) ] ] )
[ [ PartialPerm( [ 1 ], [ 1 ] ), PartialPerm( [ 2 ], [ 1 ] ) ] ] ),
RightSemigroupCongruence( InverseMonoid(
[ PartialPerm( [ 1, 2 ], [ 2, 1 ] ), PartialPerm( [ 1 ], [ 1 ] ) ] ),
[ [ PartialPerm( [ 1 ], [ 1 ] ), PartialPerm( [ 1, 2 ], [ 1, 2 ] ) ] ] )
] )
gap> MinimalCongruences(poset);
[ <2-sided semigroup congruence over <symmetric inverse monoid of degree 2> wi\
Expand Down Expand Up @@ -406,6 +406,16 @@ gap> IsIsomorphicDigraph(l, DigraphByInNeighbours(
> [1, 2, 3, 4, 6]]));
true
# Test for correct ordering of congruences and lattice nodes
gap> S := InverseSemigroup(PartialPerm([1, 3], [2, 4]),
> PartialPerm([1], [1]));;
gap> D := DigraphReflexiveTransitiveReduction(LatticeOfRightCongruences(S));
<immutable digraph with 22 vertices, 49 edges>
gap> x := DigraphSinks(D)[1];
2
gap> NrEquivalenceClasses(RightCongruencesOfSemigroup(S)[x]);
1
# SEMIGROUPS_UnbindVariables
gap> Unbind(S);
gap> Unbind(coll);
Expand Down

0 comments on commit b085ff9

Please sign in to comment.