gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x0,x1,x2";;
Display( S );
Q[x0,x1,x2]
gap> mat := HomalgMatrix( "[ x0^2, x1^2, x2^2 ]", 1, 3, S );
<A 1 x 3 matrix over an external ring>
gap> M := RightPresentationWithDegrees( mat );
<A graded cyclic right module on a cyclic generator satisfying 3 relations>
gap> M := RightPresentationWithDegrees( mat );
<A graded cyclic right module on a cyclic generator satisfying 3 relations>
gap> d := Resolution( M );
<A right acyclic complex containing 3 morphisms of right modules at degrees
[ 0 .. 3 ]>
gap> betti := BettiDiagram( d );
<A Betti diagram of <A right acyclic complex containing
3 morphisms of right modules at degrees [ 0 .. 3 ]>>
gap> Display( betti );
total: 1 3 3 1
----------------
0: 1 . . .
1: . 3 . .
2: . . 3 .
3: . . . 1
----------------
degree: 0 1 2 3
gap> ## we are still below the Castelnuovo-Mumford regularity, which is 3:
gap> M2 := SubmoduleGeneratedByHomogeneousPart( 2, M );
<A graded torsion right submodule given by 3 generators>
gap> d2 := Resolution( M2 );
<A right acyclic complex containing 3 morphisms of right modules at degrees
[ 0 .. 3 ]>
gap> betti2 := BettiDiagram( d2 );
<A Betti diagram of <A right acyclic complex containing
3 morphisms of right modules at degrees [ 0 .. 3 ]>>
gap> Display( betti2 );
total: 3 8 6 1
----------------
2: 3 8 6 .
3: . . . 1
----------------
degree: 0 1 2 3
|
gap> S := HomalgFieldOfRationalsInDefaultCAS( ) * "x0,x1,x2";;
Display( S );
Q[x0,x1,x2]
gap> mat := HomalgMatrix( "[ x0^2, x1^2 ]", 1, 2, S );
<A 1 x 2 matrix over an external ring>
gap> M := RightPresentationWithDegrees( mat );
<A graded cyclic right module on a cyclic generator satisfying 2 relations>
gap> d := Resolution( M );
<A right acyclic complex containing 2 morphisms of right modules at degrees
[ 0 .. 2 ]>
gap> betti := BettiDiagram( d );
<A Betti diagram of <A right acyclic complex containing
2 morphisms of right modules at degrees [ 0 .. 2 ]>>
gap> Display( betti );
total: 1 2 1
--------------
0: 1 . .
1: . 2 .
2: . . 1
--------------
degree: 0 1 2
gap> m := SubmoduleGeneratedByHomogeneousPart( 2, M );
<A graded torsion right submodule given by 4 generators>
gap> d2 := Resolution( m );
<A right acyclic complex containing 2 morphisms of right modules at degrees
[ 0 .. 2 ]>
gap> betti2 := BettiDiagram( d2 );
<A Betti diagram of <A right acyclic complex containing
2 morphisms of right modules at degrees [ 0 .. 2 ]>>
gap> Display( betti2 );
2: 4 8 4
--------------
degree: 0 1 2
|
This is an example from Section 3.2 in [Sch03].
gap> Qxyz := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";;
gap> mmat := HomalgMatrix( "[ x, x^3 + y^3 + z^3 ]", 1, 2, Qxyz );
<A 1 x 2 matrix over an external ring>
gap> M := RightPresentationWithDegrees( mmat );
<A graded cyclic right module on a cyclic generator satisfying 2 relations>
gap> Mr := Resolution( M );
<A right acyclic complex containing 2 morphisms of right modules at degrees
[ 0 .. 2 ]>
gap> bettiM := BettiDiagram( Mr );
<A Betti diagram of <A right acyclic complex containing
2 morphisms of right modules at degrees [ 0 .. 2 ]>>
gap> Display( bettiM );
total: 1 2 1
--------------
0: 1 1 .
1: . . .
2: . 1 1
--------------
degree: 0 1 2
gap> R := CoefficientsRing( Qxyz ) * "x,y,z,w";;
gap> nmat := HomalgMatrix( "[ z^2 - y*w, y*z - x*w, y^2 - x*z ]", 1, 3, R );
<A 1 x 3 matrix over an external ring>
gap> N := RightPresentationWithDegrees( nmat );
<A graded cyclic right module on a cyclic generator satisfying 3 relations>
gap> Nr := Resolution( N );
<A right acyclic complex containing 2 morphisms of right modules at degrees
[ 0 .. 2 ]>
gap> bettiN := BettiDiagram( Nr );
<A Betti diagram of <A right acyclic complex containing
2 morphisms of right modules at degrees [ 0 .. 2 ]>>
gap> Display( bettiN );
total: 1 3 2
--------------
0: 1 . .
1: . 3 2
--------------
degree: 0 1 2
|
This is an example from Section 8.3 in [Sch03].
gap> R := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z,w";;
gap> jmat := HomalgMatrix( "[ z*w, x*w, y*z, x*y, x^3*z - x*z^3 ]", 1, 5, R );
<A 1 x 5 matrix over an external ring>
gap> J := RightPresentationWithDegrees( jmat );
<A graded cyclic right module on a cyclic generator satisfying 5 relations>
gap> Jr := Resolution( J );
<A right acyclic complex containing 3 morphisms of right modules at degrees
[ 0 .. 3 ]>
gap> betti := BettiDiagram( Jr );
<A Betti diagram of <A right acyclic complex containing
3 morphisms of right modules at degrees [ 0 .. 3 ]>>
gap> Display( betti );
total: 1 5 6 2
----------------
0: 1 . . .
1: . 4 4 1
2: . . . .
3: . 1 2 1
----------------
degree: 0 1 2 3
|
This is Exercise 8.3.3 in [Sch03].
gap> Qxyz := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";;
gap> mat := HomalgMatrix( "[ x*y*z, x*y^2, x^2*z, x^2*y, x^3 ]", 1, 5, Qxyz );
<A 1 x 5 matrix over an external ring>
gap> M := RightPresentationWithDegrees( mat );
<A graded cyclic right module on a cyclic generator satisfying 5 relations>
gap> Mr := Resolution( M );
<A right acyclic complex containing 3 morphisms of right modules at degrees
[ 0 .. 3 ]>
gap> betti := BettiDiagram( Mr );
<A Betti diagram of <A right acyclic complex containing
3 morphisms of right modules at degrees [ 0 .. 3 ]>>
gap> Display( betti );
total: 1 5 6 2
----------------
0: 1 . . .
1: . . . .
2: . 5 6 2
----------------
degree: 0 1 2 3
|
gap> R := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z";; <A graded torsion-free (left) ideal given by 3 generators> gap> m := GradedLeftSubmodule( "x,y,z", R ); <A graded torsion-free (left) ideal given by 3 generators> gap> I := Intersect( m^3, GradedLeftSubmodule( "x", R ) ); <A graded torsion-free (left) ideal given by 6 generators> gap> NrRelations( I ); 8 gap> Im := SubobjectQuotient( I, m ); <A graded torsion-free rank 1 (left) ideal given by 3 generators> gap> I_m := Saturate( I, m ); <A graded principal (left) ideal of rank 1 given by a free generator> gap> Is := Saturate( I ); <A graded principal (left) ideal of rank 1 given by a free generator> gap> Assert( 0, Is = I_m ); |
gap> R := HomalgFieldOfRationalsInDefaultCAS( ) * "x,y,z,l,m";;; gap> Display( R ); Q[x,y,z,l,m] gap> var := Indeterminates( R ); [ x, y, z, l, m ] gap> x := var[1];; y := var[2];; z := var[3];; l := var[4];; m := var[5];; gap> L := [ x*m+l-4, y*m+l-2, z*m-l+1, x^2+y^2+z^2-1, x+y-z ]; [ x*m+l-4, y*m+l-2, z*m-l+1, x^2+y^2+z^2-1, x+y-z ] gap> e := Eliminate( L, [ l, m ] ); <A ? x 1 matrix over an external ring> gap> Display( e ); x+y-z, x-3*y-2*z, x^2+y^2+z^2-1 A (left) ideal generated by the 3 entries of the above matrix gap> I := LeftSubmodule( e ); <A torsion-free (left) ideal given by 3 generators> gap> J := LeftSubmodule( "x+y-z, -2*z-3*y+x, x^2+y^2+z^2-1", R ); <A torsion-free (left) ideal given by 3 generators> gap> I = J; true |
generated by GAPDoc2HTML