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

Quelle  elements.tst   Sprache: unbekannt

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

#############################################################################
##
#W  standard/elements/elements.tst
#Y  Copyright (C) 2016-2022                                 Wilf A. Wilson
##
##  Licensing information can be found in the README file of this package.
##
#############################################################################
##

#@local S, x
gap> START_TEST("Semigroups package: standard/elements/elements.tst");
gap> LoadPackage("semigroups", false);;

#
gap> SEMIGROUPS.StartTest();

# elements: SEMIGROUPS.IndexPeriodByRank
gap> x := Transformation(
> [71146068677461198110172194978,
>  7381225950293162740217544716222569053,
>  64537873189658461119721233832134949451,
>  6522466466195408141382639909330375551,
>  99383879335890899854185828276182962689,
>  93444961139145734]);
<transformation on 100 pts with rank 64>
gap> SEMIGROUPS.IndexPeriodByRank(x, RankOfTransformation);
1242 ]
gap> x := Transformation([112345678]);;
gap> SEMIGROUPS.IndexPeriodByRank(x, RankOfTransformation);
81 ]
gap> x := Bipartition([[1], [2, -5], [3, -4], [4, -3], [5, -2], [-1]]);
<bipartition: [ 1 ], [ 2, -5 ], [ 3, -4 ], [ 4, -3 ], [ 5, -2 ], [ -1 ]>
gap> SEMIGROUPS.IndexPeriodByRank(x, RankOfBipartition);
12 ]
gap> x := Bipartition([[12, -1], [3, -2], [4, -3], [5, -4], [6, -5],
> [7, -6], [8, -7], [9, -8], [-9]]);;
gap> SEMIGROUPS.IndexPeriodByRank(x, RankOfBipartition);
81 ]
gap> x := Bipartition([[1, -2], [2, -1]]);;
gap> SEMIGROUPS.IndexPeriodByRank(x, RankOfBipartition);
12 ]

# elements: IndexPeriodOfSemigroupElement
gap> x := PBR([[-3, -2, -1123], [-3, -2, -113], [-3, -2, -112]],
> [[-3, -2, -112], [-323], [-2, -123]]);;
gap> IndexPeriodOfSemigroupElement(x);
21 ]
gap> IsIdempotent(x);
false
gap> IndexPeriodOfSemigroupElement(GeneratorsOfMagma(FreeMagma(1))[1]);
Error, the argument (a mult. elt.) is not the generator of a semigroup
gap> x := Matrix(IsBooleanMat, [[01], [10]]);;
gap> IndexPeriodOfSemigroupElement(x);
12 ]
gap> x;;
gap> IndexPeriodOfSemigroupElement(x);
12 ]
gap> x := Matrix(IsBooleanMat,
> [[0001000],
>  [0001000],
>  [0001000],
>  [0000010],
>  [0000100],
>  [0100000],
>  [0000010]]);;
gap> IndexPeriodOfSemigroupElement(x);
13 ]

# elements: SmallestIdempotentPower
gap> x := PBR([[-3, -2, -1123], [-3, -2, -113], [-3, -2, -112]],
> [[-3, -2, -112], [-323], [-2, -123]]);;
gap> SmallestIdempotentPower(x);
2
gap> First([1 .. 100], i -> IsIdempotent(x ^ i)) = last;
true
gap> x := PBR([[-22], [-1]], [[1], [12]]);;
gap> SmallestIdempotentPower(x);
4
gap> First([1 .. 100], i -> IsIdempotent(x ^ i)) = last;
true
gap> x := PBR([[-2], [-1]], [[1], [12]]);;
gap> SmallestIdempotentPower(x);
2
gap> First([1 .. 100], i -> IsIdempotent(x ^ i)) = last;
true
gap> x := Transformation(
> [71146068677461198110172194978,
>  7381225950293162740217544716222569053,
>  64537873189658461119721233832134949451,
>  6522466466195408141382639909330375551,
>  99383879335890899854185828276182962689,
>  93444961139145734]);;
gap> SmallestIdempotentPower(x);
42
gap> First([1 .. 100], i -> IsIdempotent(x ^ i)) = last;
true
gap> x := Transformation([26453788]);;
gap> SmallestIdempotentPower(x);
6
gap> First([1 .. 100], i -> IsIdempotent(x ^ i)) = last;
true
gap> SmallestIdempotentPower(GeneratorsOfMagma(FreeMagma(1))[1]);
Error, the argument (a mult. elt.) is not the generator of a semigroup

# elements: IsMultiplicativeZero
gap> S := SymmetricInverseMonoid(3);;
gap> x := MultiplicativeZero(S);
<empty partial perm>
gap> IsMultiplicativeZero(S, x);
true
gap> IsMultiplicativeZero(S, PartialPerm([1]));
false


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

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