Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/semigroups/tst/standard/main/   (GAP Algebra Version 4.15.1©)  Datei vom 29.7.2025 mit Größe 5 kB image not shown  

Quelle  semiact.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#############################################################################
##
#W  standard/main/semiact.tst
#Y  Copyright (C) 2016-2022                              James D. Mitchell
##
##  Licensing information can be found in the README file of this package.
##
#############################################################################
##

#@local I, S, T, acting, an, regular, x
gap> START_TEST("Semigroups package: standard/main/semiact.tst");
gap> LoadPackage("semigroups", false);;

#
gap> SEMIGROUPS.StartTest();

# ClosureSemigroup, for an acting semigroup
gap> S := Semigroup(IdentityTransformation);;
gap> Size(S);
1
gap> S := ClosureSemigroup(S, AsSet(FullTransformationMonoid(3)));;
gap> Size(S);
27
gap> S := Semigroup(Transformation([212]));;
gap> Size(S);
2
gap> S := ClosureSemigroup(S, AsSet(OrderEndomorphisms(5)));;
gap> Size(S);
576
gap> S := ClosureSemigroup(S, AsSet(OrderAntiEndomorphisms(5)));;
gap> Size(S);
1927
gap> S := Semigroup(IdentityTransformation);;
gap> S := ClosureSemigroup(S, Transformation([21]));;
gap> S := AsSemigroup(IsTransformationSemigroup, 
>                     Semigroup(Matrix(IsBooleanMat, [[00], [00]])));;
gap> S := ClosureSemigroup(S, AsSemigroup(IsTransformationSemigroup,
>                                         RegularBooleanMatMonoid(3)));;
gap> # The next result is correct, since different embeddings are used
gap> # in the previous two lines.
gap> Size(S); 
27874
gap> S := ClosureSemigroup(S, AsSemigroup(IsTransformationSemigroup,
>                                         FullBooleanMatMonoid(3)));;
gap> Size(S);
27880
gap> S := InverseSemigroup(PartialPerm([1 .. 3]));;
gap> Size(S);
1
gap> S := ClosureInverseSemigroup(S, AsSet(SymmetricInverseMonoid(6)));;
gap> Size(S);
13327
gap> S := InverseSemigroup(PartialPerm([123456], 
> [134526]));;
gap> Size(S);
4
gap> S := ClosureInverseSemigroup(S, AsSet(POPI(6)));;
gap> Size(S);
13327
gap> S := InverseSemigroup(PartialPerm([1 .. 3]));;
gap> S := ClosureInverseSemigroup(S, PartialPerm([21]));;
gap> I := SemigroupIdeal(S, S.1);;
gap> ClosureInverseSemigroup(I, PartialPerm([1 .. 7]));;

# Random, for an acting semigroup
gap> S := Semigroup(FullTransformationMonoid(4), rec(acting := true));;
gap> IsActingSemigroup(S);
true
gap> Random(S);;
gap> Size(S);;
gap> Random(S);;
gap> IsRegularSemigroup(S);
true
gap> I := SemigroupIdeal(S, S.1);;
gap> Random(I);;

# Random, for an regular acting semigroup rep
gap> S := OrderEndomorphisms(5);;
gap> IsRegularActingSemigroupRep(S); 
true
gap> Random(S);;
gap> NrRClasses(S);;
gap> Random(S);;
gap> NrLClasses(S);;
gap> Random(S);;
gap> I := SemigroupIdeal(S, S.1);;
gap> Random(I);;

# Random, for an inverse acting semigroup rep
gap> S := POPI(5);;
gap> IsInverseActingSemigroupRep(S) or not IsActingSemigroup(S); 
true
gap> Random(S);;
gap> NrRClasses(S);;
gap> Random(S);;
gap> NrLClasses(S);;
gap> Random(S);;
gap> I := SemigroupIdeal(S, S.1);;
gap> Random(I);;

# \in, for an regular acting semigroup rep
gap> S := Semigroup(OrderEndomorphisms(5), rec(regular := true));;
gap> IsRegularActingSemigroupRep(S); 
true
gap> Size(S);
126
gap> ConstantTransformation(61) in S;
false
gap> PartialPerm([1]) in S;
false
gap> Enumerate(S);;
gap> S.1 in S;
true
gap> Transformation([21]) in S;
false
gap> S := RegularSemigroup(Transformation([111]));;
gap> x := Transformation([122]);;
gap> x in S;
false
gap> S := RegularSemigroup(x);;
gap> MinimalIdeal(S);;
gap> Transformation([111]) in S;
false
gap> S := RegularSemigroup(x);;
gap> AsSet(S);;
gap> Transformation([111]) in S;
false
gap> S := RegularSemigroup(x);;
gap> Transformation([233]) in S;
false
gap> Transformation([112]) in S;
false
gap> x in S;
true
gap> Size(S);
1
gap> S := AsSemigroup(IsTransformationSemigroup, AlternatingGroup(3));;
gap> S := DirectProduct(S, Semigroup(Transformation([111])));;
gap> S := Semigroup(S, Transformation([112]), rec(acting := true, 
> regular := true));
<regular transformation semigroup of degree 6 with 3 generators>
gap> Number(FullTransformationMonoid(3), x -> x in S);
2
gap> S := AsSemigroup(IsTransformationSemigroup, AlternatingGroup(3));;
gap> S := Semigroup(S, Transformation([112]), rec(acting := true, 
> regular := true));
<regular transformation semigroup of degree 3 with 2 generators>
gap> Number(FullTransformationMonoid(3), x -> x in S);
24
gap> S := PartitionMonoid(3);;
gap> T := Bipartition([[1, -2], [2], [3, -3], [-1]]);;
gap> I := SemigroupIdeal(S, T);
<regular bipartition *-semigroup ideal of degree 3 with 1 generator>
gap> S := OrderEndomorphisms(7);;
gap> Transformation([2444777]) in S;
true

# \in, for an inverse acting semigroup rep
gap> S := InverseSemigroup(POPI(5));;
gap> IsInverseActingSemigroupRep(S) or not IsActingSemigroup(S); 
true
gap> ConstantTransformation(61) in S;
false
gap> PartialPerm([1]) in S;
true
gap> AsSSortedList(S);;
gap> Enumerate(S);;
gap> S.1 in S;
true
gap> PartialPerm([35]) in S;
true
gap> PartialPerm([53]) in S;
true
gap> PartialPerm([1 .. 6]) in S;
false
gap> PartialPerm([54321]) in S;
false
gap> S := InverseSemigroup(PartialPerm([5], [5]));;
gap> IsInverseActingSemigroupRep(S) or not IsActingSemigroup(S); 
true
gap> PartialPerm([21]) in S;
false
gap> S := InverseSemigroup(PartialPerm([032]));;
gap> IsInverseActingSemigroupRep(S) or not IsActingSemigroup(S); 
true
gap> MinimalIdeal(S);;
gap> PartialPerm([]) in S;
false
gap> PartialPerm([203]) in S;
false
gap> S := InverseSemigroup([
> PartialPerm([2], [3]), PartialPerm([23], [14]),
> PartialPerm([23], [21]), PartialPerm([24], [23]),
> PartialPerm([23], [34]), PartialPerm([13], [23])]);;
gap> IsInverseActingSemigroupRep(S) or not IsActingSemigroup(S); 
true
gap> Number(SymmetricInverseMonoid(4), x -> x in S) = Size(S);
true

#
gap> SEMIGROUPS.StopTest();
gap> STOP_TEST("Semigroups package: standard/main/semiact.tst");

[Dauer der Verarbeitung: 0.19 Sekunden, vorverarbeitet 2026-06-17]