> MonomialMap( d, M ) | ( operation ) |
Returns: a homalg map
The map from a free graded module onto all degree d monomial generators of the finitely generated homalg module M.
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";; gap> M := HomalgMatrix( "[ x^3, y^2, z, z, 0, 0 ]", 2, 3, S );; gap> M := LeftPresentationWithDegrees( M, [ -1, 0, 1 ] ); <A graded non-torsion left module presented by 2 relations for 3 generators> gap> m := MonomialMap( 1, M ); <A homomorphism of left modules> gap> Display( m ); z^2,0,0, y*z,0,0, y^2,0,0, x*z,0,0, x*y,0,0, x^2,0,0, 0, x,0, 0, y,0, 0, z,0, 0, 0,1 (target generators degrees: [ -1, 0, 1 ]) the map is currently represented by the above 10 x 3 matrix |
> RandomMatrix( S, T ) | ( operation ) |
Returns: a homalg matrix
A random matrix between the graded source module S and the graded target module T.
gap> R := HomalgFieldOfRationalsInDefaultCAS( ) * "a,b,c";; gap> rand := RandomMatrix( ( R * 1 )^[ 1, 2 ], ( R * 1 )^[ 2, 3, 4 ] ); <A 3 x 2 matrix over an external ring> gap> Display( rand ); -3*a-b, -1, -a^2+a*b+2*b^2-2*a*c+2*b*c+c^2, -a+c, -2*a^3+5*a^2*b-3*b^3+3*a*b*c+3*b^2*c+2*a*c^2+2*b*c^2+c^3,-3*b^2-2*a*c-2*b*c+c^2 |
> BasisOfHomogeneousPart( d, M ) | ( operation ) |
Returns: a homalg matrix
The resulting homalg matrix consists of a R-basis of the d-th homogeneous part of the finitely generated homalg S-module M, where R is the ground ring of the graded ring S with S_0=R.
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";; gap> M := HomalgMatrix( "[ x^3, y^2, z, z, 0, 0 ]", 2, 3, S );; gap> M := LeftPresentationWithDegrees( M, [ -1, 0, 1 ] ); <A graded non-torsion left module presented by 2 relations for 3 generators> gap> m := BasisOfHomogeneousPart( 1, M ); <An unevaluated 7 x 3 matrix over an external ring> gap> Display( m ); y^2,0,0, x*y,0,0, x^2,0,0, 0, x,0, 0, y,0, 0, z,0, 0, 0,1 |
Compare with MonomialMap (5.6-1).
> SubmoduleGeneratedByHomogeneousPart( d, M ) | ( operation ) |
Returns: a homalg module
The submodule of the homalg module M generated by the image of the d-th monomial map (--> MonomialMap (5.6-1)), or equivalently, by the basis of the d-th homogeneous part of M.
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";; gap> M := HomalgMatrix( "[ x^3, y^2, z, z, 0, 0 ]", 2, 3, S );; gap> M := LeftPresentationWithDegrees( M, [ -1, 0, 1 ] ); <A graded non-torsion left module presented by 2 relations for 3 generators> gap> n := SubmoduleGeneratedByHomogeneousPart( 1, M ); <A graded left submodule given by 7 generators> gap> Display( M ); z, 0, 0, 0, y^2*z,z^2, x^3,y^2, z (graded, generators degrees: [ -1, 0, 1 ]) Cokernel of the map Q[x,y,z]^(1x3) --> Q[x,y,z]^(1x3), currently represented by the above matrix gap> Display( n ); x^2,0,0, x*y,0,0, y^2,0,0, 0, x,0, 0, y,0, 0, z,0, 0, 0,1 A left submodule generated by the 7 rows of the above matrix gap> N := UnderlyingObject( n ); <A graded left module presented by yet unknown relations for 7 generators> gap> Display( N ); z,0, 0, 0, 0, 0,0, 0,z, 0, 0, 0, 0,0, 0,0, z, 0, 0, 0,0, 0,0, 0, 0, -z, y,0, x,-y,0, 0, 0, 0,0, 0,x, -y,0, 0, 0,0, 0,0, x, 0, y, 0,z, 0,0, 0, -y, x, 0,0, 0,0, 0, -z, 0, x,0, 0,0, 0, 0, y*z,0,z^2, 0,0, 0, y^2*z,0, 0,x*z^2 (graded, generators degrees: [ 1, 1, 1, 1, 1, 1, 1 ]) Cokernel of the map Q[x,y,z]^(1x11) --> Q[x,y,z]^(1x7), currently represented by the above matrix gap> gens := GeneratorsOfModule( N ); <A set of 7 generators of a homalg left module> gap> Display( gens ); a set of 7 generators given by the rows of the matrix y^2,0,0, x*y,0,0, x^2,0,0, 0, x,0, 0, y,0, 0, z,0, 0, 0,1 |
> RepresentationOfRingElement( r, M, d ) | ( operation ) |
Returns: a homalg matrix
The homalg matrix induced by the homogeneous degree 1 ring element r (of the underlying homalg graded ring S) regarded as a R-linear map between the d-th and the (d+1)-st homogeneous part of the finitely generated homalg S-module M, where R is the ground ring of the graded ring S with S_0=R. The basis of both vector spaces is given by BasisOfHomogeneousPart (5.6-3). The entries of the matrix lie in the ground ring R.
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";; gap> x := Indeterminate( S, 1 ); x gap> M := HomalgMatrix( "[ x^3, y^2, z, z, 0, 0 ]", 2, 3, S );; gap> M := LeftPresentationWithDegrees( M, [ -1, 0, 1 ] ); <A graded non-torsion left module presented by 2 relations for 3 generators> gap> m := RepresentationOfRingElement( x, M, 0 ); <An unevaluated 3 x 7 matrix over an external ring> gap> Display( m ); 0,0,1,0,0,0,0, 0,1,0,0,0,0,0, 0,0,0,1,0,0,0 |
> RepresentationMatrixOfKoszulId( d, M ) | ( operation ) |
Returns: a homalg matrix
It is assumed that all indeterminates of the underlying homalg graded ring S are of degree 1. The output is the homalg matrix of the multiplication map Hom( A, M_d ) -> Hom( A, M_d+1 ), where A is the Koszul dual ring of S, defined using the operation KoszulDualRing.
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";; gap> A := KoszulDualRing( S, "a,b,c" );; gap> M := HomalgMatrix( "[ x^3, y^2, z, z, 0, 0 ]", 2, 3, S );; gap> M := LeftPresentationWithDegrees( M, [ -1, 0, 1 ] ); <A graded non-torsion left module presented by 2 relations for 3 generators> gap> m := RepresentationMatrixOfKoszulId( 0, M ); <An unevaluated 3 x 7 matrix over an external ring> gap> Display( m ); 0,b,a,0,0,0,0, b,a,0,0,0,0,0, 0,0,0,a,b,c,0 |
> RepresentationMapOfKoszulId( d, M ) | ( operation ) |
Returns: a homalg map
It is assumed that all indeterminates of the underlying homalg graded ring S are of degree 1. The output is the the multiplication map Hom( A, M_d ) -> Hom( A, M_d+1 ), where A is the Koszul dual ring of S, defined using the operation KoszulDualRing.
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";; gap> A := KoszulDualRing( S, "a,b,c" );; gap> M := HomalgMatrix( "[ x^3, y^2, z, z, 0, 0 ]", 2, 3, S );; gap> M := LeftPresentationWithDegrees( M, [ -1, 0, 1 ] ); <A graded non-torsion left module presented by 2 relations for 3 generators> gap> m := RepresentationMapOfKoszulId( 0, M ); <A homomorphism of left modules> gap> Display( m ); 0,b,a,0,0,0,0, b,a,0,0,0,0,0, 0,0,0,a,b,c,0 (target generators degrees: [ -1, -1, -1, -1, -1, -1, -1 ]) the map is currently represented by the above 3 x 7 matrix |
> KoszulRightAdjoint( M, degree_lowest, degree_highest ) | ( operation ) |
Returns: a homalg cocomplex
It is assumed that all indeterminates of the underlying homalg graded ring S are of degree 1. Compute the homalg A-cocomplex C of Koszul maps of the homalg S-module M (--> RepresentationMapOfKoszulId (5.6-7)) in the [ degree_lowest .. degree_highest ]. The Castelnuovo-Mumford regularity of M is characterized as the highest degree d, such that C is not exact at d. A is the Koszul dual ring of S, defined using the operation KoszulDualRing.
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";;
gap> A := KoszulDualRing( S, "a,b,c" );;
gap> M := HomalgMatrix( "[ x^3, y^2, z, z, 0, 0 ]", 2, 3, S );;
gap> M := LeftPresentationWithDegrees( M, [ -1, 0, 1 ] );
<A graded non-torsion left module presented by 2 relations for 3 generators>
gap> CastelnuovoMumfordRegularity( M );
1
gap> R := KoszulRightAdjoint( M, -5, 5 );
<A cocomplex containing 10 morphisms of left modules at degrees [ -5 .. 5 ]>
gap> R := KoszulRightAdjoint( M, 1, 5 );
<An acyclic cocomplex containing 4 morphisms of left modules at degrees
[ 1 .. 5 ]>
gap> R := KoszulRightAdjoint( M, 0, 5 );
<A cocomplex containing 5 morphisms of left modules at degrees [ 0 .. 5 ]>
gap> R := KoszulRightAdjoint( M, -5, 5 );
<A cocomplex containing 10 morphisms of left modules at degrees [ -5 .. 5 ]>
gap> H := Cohomology( R );
<A graded cohomology object consisting of 11 left modules at degrees
[ -5 .. 5 ]>
gap> ByASmallerPresentation( H );
<A non-zero graded cohomology object consisting of 11 left modules at degrees
[ -5 .. 5 ]>
gap> Cohomology( R, -2 );
<A zero left module>
gap> Cohomology( R, -3 );
<A zero left module>
gap> Cohomology( R, -1 );
<A graded non-zero cyclic left module presented by 2 relations for a cyclic ge\
nerator>
gap> Cohomology( R, 0 );
<A graded cyclic left module presented by 3 relations for a cyclic generator>
gap> Cohomology( R, 1 );
<A graded cyclic left module presented by 2 relations for a cyclic generator>
gap> Cohomology( R, 2 );
<A zero left module>
gap> Cohomology( R, 3 );
<A zero left module>
gap> Cohomology( R, 4 );
<A zero left module>
gap> Display( Cohomology( R, -1 ) );
Q{a,b,c}/< b, a > (graded, generator degree: 3)
gap> Display( Cohomology( R, 0 ) );
Q{a,b,c}/< c, b, a > (graded, generator degree: 3)
gap> Display( Cohomology( R, 1 ) );
Q{a,b,c}/< b, a > (graded, generator degree: 1)
|
> HomogeneousPartOverCoefficientsRing( d, M ) | ( operation ) |
Returns: a homalg module
The degree d homogeneous part of the graded R-module M as a module over the coefficient ring or field of R.
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";; gap> M := HomalgMatrix( "[ x, y^2, z^3 ]", 3, 1, S );; gap> M := Subobject( M, ( 1 * S )^0 ); <A graded torsion-free (left) ideal given by 3 generators> gap> CastelnuovoMumfordRegularity( M ); 4 gap> M1 := HomogeneousPartOverCoefficientsRing( 1, M ); <A free left module of rank 1 on a free generator> gap> gen1 := GeneratorsOfModule( M1 ); <A set consisting of a single generator of a homalg left module> gap> Display( M1 ); Q^(1 x 1) gap> M2 := HomogeneousPartOverCoefficientsRing( 2, M ); <A free left module of rank 4 on free generators> gap> Display( M2 ); Q^(1 x 4) gap> gen2 := GeneratorsOfModule( M2 ); <A set of 4 generators of a homalg left module> gap> M3 := HomogeneousPartOverCoefficientsRing( 3, M ); <A free left module of rank 9 on free generators> gap> Display( M3 ); Q^(1 x 9) gap> gen3 := GeneratorsOfModule( M3 ); <A set of 9 generators of a homalg left module> gap> Display( gen1 ); x a set consisting of a single generator given by (the row of) the above matrix gap> Display( gen2 ); x^2, x*y, x*z, y^2 a set of 4 generators given by the rows of the above matrix gap> Display( gen3 ); x^3, x^2*y, x^2*z, x*y*z, x*z^2, x*y^2, y^3, y^2*z, z^3 a set of 9 generators given by the rows of the above matrix |
generated by GAPDoc2HTML