Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/rcwa/tst/   (GAP Algebra Version 4.15.1©)  Datei vom 22.8.2025 mit Größe 8 kB image not shown  

Quelle  monoids.tst   Sprache: unbekannt

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

#############################################################################
##
#W  monoids.tst                GAP4 Package `RCWA'                Stefan Kohl
##
##  This file contains automated tests of RCWA's functionality for computing
##  with rcwa monoids.
##
gap> START_TEST( "monoids.tst" );
gap> RCWADoThingsToBeDoneBeforeTest();
gap> T := RcwaMapping([[1,0,2],[3,1,2]]);; SetName(T,"T"); IsTame(T);;
gap> M := Monoid(T);
<rcwa monoid over Z with 1 generator>
gap> Size(M);
infinity
gap> IsTame(M);
false
gap> Print(M,"\n");
Monoid( [ RcwaMapping( [ [ 102 ], [ 312 ] ] ) ] )
gap> Display(M);

Wild rcwa monoid over Z, generated by

[

Wild surjective rcwa mapping of Z with modulus 2

        /
        | n/2      if n in 0(2)
 n |-> <  (3n+1)/2 if n in 1(2)
        |
        \

]

gap> T in M;
true
gap> RCWAInfo(2);
gap> T^5 in M;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  Trying to find <f> in balls around 1 ...
#I  <f> lies in the ball with radius 5.
true
gap> T5 := RcwaMapping([[1,0,2],[5,-1,2]]);; SetName(T5,"T5");
gap> T5 in M;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  <f> and <M> have incompatible prime sets.
false
gap> a := RcwaMapping([[3,0,2],[31,4],[3,0,2],[3,-1,4]]);; SetName(a,"a");
gap> a in M;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  <f> does not leave some finite orbit of <M> invariant.
false
gap> f_zero := RcwaMapping([[1,0,1],[0,1,1]]);;
gap> f_zero in M;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  Mult(<f>) = 0, but Mult(<M>) <> 0.
false
gap> f_two := RcwaMapping([[1,0,1],[2,1,1]]);;
gap> f_two in M;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  The multiplier of <f> has factors which
#I  no multiplier of a generator of <M> has.
false
gap> ClassShift(0,1) in M;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  Support(<f>) is not a subset of Support(<M>).
false
gap> ClassReflection(0,1) in M;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  <M> is class-wise order-preserving, but <f> is not.
false
gap> RCWAInfo(0);
gap> T5 := RcwaMapping([[1,0,2],[5,-1,2]]);;
gap> M2 := Monoid(T,T5);
<rcwa monoid over Z with 2 generators>
gap> M3 := SparseRep(M2);
<rcwa monoid over Z with 2 generators>
gap> GeneratorsOfMonoid(M3);
[ <wild surjective rcwa mapping of Z with modulus 2 and 2 affine parts>, 
  <rcwa mapping of Z with modulus 2 and 2 affine parts> ]
gap> M2 = M3;
true
gap> M4 := StandardRep(M3);         
<rcwa monoid over Z with 2 generators>
gap> GeneratorsOfMonoid(M4);
[ <wild surjective rcwa mapping of Z with modulus 2>, 
  <rcwa mapping of Z with modulus 2> ]
gap> M4 = M3;
true
gap> M4 = M2;
true
gap> Mirrored(M2) = Mirrored(M3);
true
gap> Mirrored(Mirrored(M2)) = M2;
true
gap> Mirrored(Mirrored(M3)) = M2;
true
gap> IsClassWiseTranslating(M2);
false
gap> IsClassWiseTranslating(M3);
false
gap> IsClassWiseTranslating(Monoid(RcwaMapping([[1,1,1],[1,0,1]])));
true
gap> Ball(M2,27,5:Spheres);
[ [ 27 ], [ 4167 ], [ 62101102167 ], [ 3151152251252417 ], 
  [ 4776771261273776266271042 ], 
  [ 3863711161171911923133175215669419421567 ] ]
gap> RCWAInfo(2);
gap> RcwaMapping([[3,0,1]]) in M2;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  <f> is not surjective, but all generators of <M> are.
false
gap> RCWAInfo(0);
gap> T5m := RcwaMapping([[1,0,2],[5,-1,2]]);; SetName(T5m,"T5-");
gap> T5p := RcwaMapping([[1,0,2],[51,2]]);; SetName(T5p,"T5+");
gap> M5 := Monoid(T5m,T5p);
<rcwa monoid over Z with 2 generators>
gap> IsSubset(M,M5);
false
gap> IsSubset(M5,M);
false
gap> M := M5;
<rcwa monoid over Z with 2 generators>
gap> Modulus(M);
0
gap> RCWAInfo(2);
gap> IsSubset(M,Monoid(T5m*T5p,T5p^2*T5m));
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  Trying to find <f> in balls around 1 ...
#I  <f> lies in the ball with radius 2.
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  Trying to find <f> in balls around 1 ...
#I  <f> lies in the ball with radius 3.
true
gap> T in M;
#I  \in for an rcwa mapping <f> and an rcwa monoid <M>
#I  <f> and <M> have incompatible prime sets.
false
gap> RCWAInfo(0);
gap> List([1..5],r->Length(Ball(M,One(M),r)));
37153163 ]
gap> List([1..5],r->Length(Ball(M,T5m*T5p,r)));
37153163 ]
gap> Support(M);
Z \ [ 0 ]
gap> List([1..10],r->Length(Ball(M,1,r,OnPoints)));
35811162435506992 ]
gap> List([2..12],r->Intersection(Ball(M,1,r,OnPoints),[1..20]));
[ [ 12378 ], [ 1234781718 ], 
  [ 12347891718 ], [ 12347891718 ], 
  [ 1234789111718 ], [ 1234789111718 ], 
  [ 12347891113141718 ], 
  [ 12347891113141718 ], 
  [ 1234789111314161718 ], 
  [ 1234789111314161718 ], 
  [ 1234789111314161718 ] ]
gap> M;
<wild rcwa monoid over Z with 2 generators>
gap> TrivialSubmonoid(M) = TrivialRcwaGroupOverZ;
true
gap> M2 := Restriction(M,RcwaMapping([[2,0,1]]));
<wild rcwa monoid over Z with 2 generators>
gap> Support(M2);
0(2) \ [ 0 ]
gap> Induction(M2,RcwaMapping([[2,0,1]])) = M;
true
gap> IsNaturalRcwa(M);
false
gap> IsWholeFamily(M);
false
gap> PrimeSet(M);
25 ]
gap> IsIntegral(M);
false
gap> IsClassWiseOrderPreserving(M);
true
gap> ShortOrbits(M,[-20..20],20);
[ [ 0 ] ]
gap> F := Monoid(RcwaMapping([[ 0,1,1],[1,1,1]]),
>                RcwaMapping([[-1,3,1],[0,2,1]]));
<rcwa monoid over Z with 2 generators>
gap> IsTame(F);
true
gap> Size(F);
11
gap> l := AsList(F);;
gap> ForAll(l,IsTame);
true
gap> List(l,Image);
[ Integers, 1(2) U [ 2 ], 0(2) U [ 1 ], 0(2) U [ 1 ], [ 12 ], 0(2) U [ 1 ], 
  1(2) U [ 2 ], [ 12 ], 1(2) U [ 2 ], 1(2) U [ 2 ], 0(2) U [ 1 ] ]
gap> List([1..4],k->Length(Set(List(l,f->f^k))));
11474 ]
gap> for f in l do Print(f,"\n"); od;
RcwaMapping( [ [ 101 ] ] )
RcwaMapping( [ [ -131 ], [ 021 ] ] )
RcwaMapping( [ [ -141 ], [ 011 ] ] )
RcwaMapping( [ [ 011 ], [ -131 ] ] )
RcwaMapping( [ [ 011 ], [ 021 ] ] )
RcwaMapping( [ [ 011 ], [ 111 ] ] )
RcwaMapping( [ [ 021 ], [ -121 ] ] )
RcwaMapping( [ [ 021 ], [ 011 ] ] )
RcwaMapping( [ [ 021 ], [ 101 ] ] )
RcwaMapping( [ [ 1, -11 ], [ 021 ] ] )
RcwaMapping( [ [ 101 ], [ 011 ] ] )
gap> RcwaMapping([[0,2,1],[-1,2,1]]) in F;
true
gap> T in F;
false
gap> z := Zero(One(F));
ZeroMapping( Integers, Integers )
gap> Image(z);
0 ]
gap> ImagesSource(z);
0 ]
gap> Image(z,Integers);
0 ]
gap> M := Monoid(2*IdentityRcwaMappingOfZ);
<rcwa monoid over Z with 1 generator>
gap> Size(M);
infinity
gap> Ball(M,One(M),7);
[ IdentityMapping( Integers ), Rcwa mapping of Z: n -> 2n, 
  Rcwa mapping of Z: n -> 4n, Rcwa mapping of Z: n -> 8n, 
  Rcwa mapping of Z: n -> 16n, Rcwa mapping of Z: n -> 32n, 
  Rcwa mapping of Z: n -> 64n, Rcwa mapping of Z: n -> 128n ]
gap> Action(Restriction(F,RcwaMapping([[2,0,1]])),ResidueClass(0,2));
<rcwa monoid over Z with 2 generators>
gap> Induction(last,RcwaMapping([[2,0,1]])) = F;
true
gap> orbs := ShortOrbits(F,[5..10],20);
[ [ -3, -21256 ], [ -5, -41278 ], [ -7, -612910 ] ]
gap> T := Action(F,orbs[1]);
<transformation monoid of degree 6 with 2 generators>
gap> IsTransformationMonoid(T);
true
gap> Size(T);
11
gap> List(MultiplicationTable(T),l->Length(Set(l)));
116662662666 ]
gap> List(TransposedMat(MultiplicationTable(T)),l->Length(Set(l)));
116662662666 ]
gap> L := RcwaMapping( [ [ 411 ], [ 16121 ] ] );
<rcwa mapping of Z with modulus 2>
gap> R := RcwaMapping( [ [ 403 ], [ 8,  43 ], [ 16,  43 ],
>                        [ 203 ], [ 4, -13 ], [  2, -13 ] ] );
<rcwa mapping of Z with modulus 6>
gap> Ball(Monoid(L,R),1,4,OnPoints:Spheres);
[ [ 1 ], [ 428 ], [ 51737113 ], [ 31175921002846041820 ]
    , [ 2750601331883694014928051137121215162417
      72819708 ] ]
gap> RCWADoThingsToBeDoneAfterTest();
gap> STOP_TEST( "monoids.tst", 150000000 );

#############################################################################
##
#E  monoids.tst . . . . . . . . . . . . . . . . . . . . . . . . . . ends here

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