Next Article in Journal
Consistent Sampling Approximations in Abstract Hilbert Spaces
Next Article in Special Issue
Some New Algebraic Method Developments in the Characterization of Matrix Equalities
Previous Article in Journal
On the Relative Φ-Growth of Hadamard Compositions of Dirichlet Series
Previous Article in Special Issue
On Semi-Vector Spaces and Semi-Algebras with Applications in Fuzzy Automata
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On Some Properties for Cofiniteness of Submonoids and Ideals of an Affine Semigroup

Dipartimento di Scienze Matematiche e Informatiche, Scienze Fisiche e Scienze della Terra, Università di Messina, Viale Ferdinando Stagno D’Alcontres 31, 98166 Messina, Italy
Axioms 2024, 13(7), 488; https://doi.org/10.3390/axioms13070488
Submission received: 24 June 2024 / Revised: 16 July 2024 / Accepted: 17 July 2024 / Published: 20 July 2024
(This article belongs to the Special Issue Advances in Linear Algebra with Applications)

Abstract

:
Let S and C be affine semigroups in N d such that S C . We provide a characterization for the set C S to be finite, together with a procedure and computational tools to check whether such a set is finite and, if so, compute its elements. As a consequence of this result, we provide a characterization for an ideal I of an affine semigroup S so that S I is a finite set. If so, we provide some procedures to compute the set S I .

1. Introduction

Let N be the set of non-negative integers. A monoid S is called an affine semigroup if it is a finitely generated submonoid of the additive monoid N d , for some positive integer d. Equivalently, up to isomorphism, S is a monoid that is finitely generated, cancellative, torsion free and reduced (see [1] for an overview on affine semigroups). We recall that a monoid S Z d is finitely generated if there exists a finite set A Z d contained in S such that S = A , where
A = i = 1 n λ i a i n N , a i A , λ i N for all i { 1 , , n } .
In particular, S = A is called the monoid generated by A and A is a set of generators of S. It is known that, for every submonoid S of N d , there exists a unique minimal set that generates S, that is ( S { 0 } ) ( S { 0 } + S { 0 } ) . In particular, if S is an affine semigroup, such a set is finite.
Let Q + be the the set of non-negative rational numbers. If S = A N d is an affine semigroup, we consider the sets cone ( S ) = { i = 1 n q i a i n N , a i A , q i Q + for all i { 1 , , n } } , that is the cone spanned by S, and Group ( S ) = { a b Z d a , b S } , that is called the group generated by S. The sets N ( S ) = cone ( S ) Group ( S ) , called the normalization of S, and C S = cone ( S ) N d are affine semigroups (by Gordan’s Lemma, see for instance [2] (Lemma 2.9). Since S is finitely generated, if { g 1 , , g n } N d is its minimal set of generators, by relabeling if necessary, without loss of generality, we may assume that there exists r n such that cone ( S ) = cone ( { g 1 , , g r } ) . For minimality, we may also assume that cone ( { g 1 , , g r } { g i } ) cone ( S ) for each i { 1 , , r } . In such a case, g i cone ( { g 1 , , g r } { g i } ) for each i { 1 , , r } (otherwise cone ( { g 1 , , g r } { g i } ) = cone ( { g 1 , , g r } = cone ( S ) ). We say that { g 1 , , g r } is a set of extreme rays of S.
One of the motivations for studying affine semigroups is to extend the notion of numerical semigroup and some of its properties. A numerical semigroup is a submonoid S of N such that N S is finite. It is known that every numerical semigroup is a finitely generated monoid (so it is an affine semigroup) and every submonoid of N is isomorphic to a numerical semigroup. Moreover, it is known that, if S = g 1 , , g n N , then S is a numerical semigroup if and only if gcd ( g 1 , , g n ) = 1 . The monographs [3,4] are very good references for this and other interesting properties of numerical semigroups.
A possible way to generalize the notion of numerical semigroup to submonoids in N d is to focus on the property of cofiniteness. In general, we say that a set A is cofinite in B if A B and B A is a finite set. In particular, a numerical semigroup is a cofinite monoid in N . A straightforward step in this direction is to consider submonoids S of N d such that N d S is finite. These kinds of monoids have been introduced in [5], where they are called generalized numerical semigroups. The study of the properties of these monoids is still an active area of research (for some recent works, see for instance [6,7]). A more general situation is considered in [8], where the authors introduce the class of monoids S such that C S S is finite. A monoid S of such a family is called a C S -semigroup. In particular, a generalized numerical semigroup is a C S -semigroup such that C S = N d . Some recent results on C S -semigroups are contained, for instance, in [9,10,11]. It is known that, if S is a C S -semigroup, then S is finitely generated (so, the same occurs when S is a generalized numerical semigroup), that is, the mentioned families of submonoids of N d are classes of affine semigroups.
A natural problem is to consider a set A N d and characterize when the set S = A is a C S -semigroup. A result of this type has been provided firstly in [12] (Theorem 2.8) for generalized numerical semigroups and later in [13] (Theorem 9) for the general case of C S -semigroups. Having in mind these results, in this paper, we consider a further generalization for the property of cofiniteness of an affine semigroup S N d , considering that the case S is cofinite in another affine semigroup C N d . In particular, in the main result of this work, we provide a characterization for an affine semigroup S N d to be cofinite in an affine semigroup C N d , in terms of the generators of C . We call this kind of monoids C -cofinite. We provide such a result in Section 2, together with a procedure and computational tools to check whether an affine semigroup is C -cofinite for a fixed affine monoid C and, if so, to compute the set C S .
As a consequence of the previous result, we obtain a characterization for an ideal of an affine semigroup to be cofinite in it. We recall that, if S is an affine semigroup, an ideal I of S is a subset I S such that I + S I (in general, for X , Y N d , set X + Y = { x + y x X , y Y } ). In Section 3, we give such a characterization so that S I is finite. Furthermore, for a given affine semigroup S and an ideal I of it, we provide two different approaches in order to check whether S I is finite and, if so, to compute its elements: the first one uses similar procedures to those suggested for C -cofinite submonoids, the second one uses tools from commutative algebra. Finally, we conclude with some remarks about a relation of this subject with the Apéry set of a subset of an affine semigroup.

2. Cofinite Submonoids of an Affine Semigroup

The first aim of this section is to provide a characterization, for a submonoid S of an affine semigroup C , to have finite complement in it. After giving a definition for this kind of monoids and showing that they are also affine semigroups, we introduce some useful tools to prove the mentioned characterization.
Definition 1. 
Let C N d be an affine semigroup. A submonoid S of C is called C -cofinite if the set C S is finite.
For the next result, we recall that a term order ⪯ (or monomial order) on N d is a total order such that 0 v for all v N d and if v w , then the inequality v + u w + u holds for all u N d (see Chapter 2, §2 of [14], also, for some concrete examples of term orders). We use the notation v w for v w and v w .
Proposition 1. 
Let C N d be an affine semigroup and S C be a C -cofinite submonoid. Then, S is finitely generated.
Proof. 
Let C S = { h 1 h r } for some term order ⪯, with C = g 1 , g 2 , , g n . We show that h 1 is a minimal generator of C . In fact, we suppose that h 1 = a + b with a , b C { 0 } . In particular, h 1 a and h 1 b . If h 1 a , then h 1 h 1 + b a + b , which contradicts h 1 = a + b . Hence, a h 1 and, by a similar argument, b h 1 . As a consequence, by the minimality of h 1 we have a , b S , obtaining h 1 S , a contradiction. So, h 1 is a minimal generator of C and we can suppose h 1 = g 1 . We can argue that C { h 1 } = g 2 , , g n , g 2 + h 1 , , g n + h 1 , 2 h 1 , 3 h 1 . We can use the same argument to show that h 2 is a minimal generator of C { h 1 } and so on, until we provide a finite set of generators of C { h 1 , , h r } .    □
Let C = g 1 , g 2 , , g n N d be an affine semigroup. We denote by e 1 , , e n the standard basis vectors of the vector space R n ; in particular, N n = e 1 , , e n as a monoid. We consider the following map:
f C : N n C , i = 1 n a i e i i = 1 n a i g i .
Then, f C is a monoid epimorphism. We observe that, if a C , then f C 1 ( a ) is the set of factorizations of a as combination of vectors in the set { g 1 , g 2 , , g n } .
Lemma 1. 
Let C = g 1 , g 2 , , g n N d be an affine semigroup. We suppose S is a submonoid of C . Then,
1. 
C S is a finite set if and only if N n f C 1 ( S ) is a finite set.
2. 
C S = { f C ( h ) h N n f C 1 ( S ) } .
Proof. 
We denote T = f C 1 ( S ) . We observe that T is a submonoid of N n . Moreover, since f C is a surjective function, we have N n T = f C 1 ( C ) f C 1 ( S ) = f C 1 ( C S ) . From this equality, we easily obtain that | C S | | N n T | . Therefore, if T is N n -cofinite, then C S is a finite set. Moreover, for all x C , the set f C 1 ( x ) = { h N n f C ( h ) = x } is finite. In fact, each element of an affine semigroup has a finite number of factorizations. In particular, if C S is finite, then N n T = x C S f C 1 ( x ) is finite. So, claim (1) is proved. Furthermore, by N n T = f C 1 ( C S ) , since f C is surjective, we have f C ( N T ) = f C ( f C 1 ( C S ) ) = C S . In particular, we obtain claim (2).    □
We remind that a characterization for a submonoid T N n to be N n -cofinite is provided in [12] (Theorem 2.8). For completeness, we state the result here, since it will be useful later.
Theorem 1 
([12]). Let A N n . Then, A is N n -cofinite if and only if the set A fulfills each one of the following conditions:
1. 
For all i { 1 , , n } there exist a 1 ( i ) e i , a 2 ( i ) e i , , a s i ( i ) e i A , with s i N { 0 } , a j ( i ) N { 0 } , such that gcd ( a 1 ( i ) , a 2 ( i ) , , a s i ( i ) ) = 1 .
2.
For each i , j { 1 , , n } , with i j , there exists n i ( j ) N such that e i + n i ( j ) e j A .
Next, we provide the mentioned characterization for a submonoid S C to be C -cofinite.
Theorem 2. 
Let C = g 1 , g 2 , , g n N d be an affine semigroup and S C be a submonoid. Then, S is C -cofinite if and only if the following two conditions are verified:
1. 
For all i { 1 , , n } , the set S i = { λ N λ g i S } is a numerical semigroup.
2. 
For each i , j { 1 , , n } , with i j , there exists n i ( j ) N such that g i + n i ( j ) g j S .
Proof. 
Necessity. It is not difficult to see that the set S i is a monoid for all i { 1 , , n } . If the first condition is not verified, then there exists i such that the set { λ N λ g i S } C S is not finite. If the second condition is not verified, then, for some i , j , with i j , we have that g i + μ g j S for all μ N .
Sufficiency. We assume that S i = λ 1 ( i ) , λ 2 ( i ) , , λ s i ( i ) is a numerical semigroup for all i { 1 , , n } . In particular, λ 1 ( i ) g i , λ 2 ( i ) g i , , λ s i ( i ) g i S and gcd ( λ 1 ( i ) , λ 2 ( i ) , , λ s i ( i ) ) = 1 , for each i { 1 , , n } . Moreover, for all i , j { 1 , , n } , with i j , we can consider n i ( j ) = min { n N g i + n g j S } . For each i { 1 , , n } , we set G i = { λ 1 ( i ) e i , λ 2 ( i ) e i , , λ s i ( i ) e i } N n . Let G = i = 1 n G i { e i + n i ( j ) e j i j } N n . The set G satisfies the conditions of Theorem 1, so G is N n -cofinite. We consider the monoid T = f C 1 ( S ) N n . We observe that, if x G , then f C ( x ) S , that is, G T . In particular, G T and, as a consequence, N n T N n G . Therefore, T is N n -cofinite and, by Lemma 1, C S is finite.    □
Let S and C be affine semigroups, S C . We recall that, for C = C S , a characterization so that | C S S | < has been provided in [13] (Theorem 9) and, in the same paper, the authors provide a procedure to compute C S S .
Theorem 2, in this form, can be viewed as a generalization of Theorem 1. The main difference is the following: in the case C = N d (and the same can be trivially considered in the case C N r for some positive integer r), the elements satisfying the two conditions of Theorem 1 belong to every set of generators of S. In particular, they belong to the minimal set of generators of S. In the case C N d (and C N r for all positive integer r), instead, we have to look for these elements in the whole semigroup S. It is not possible, in general, to consider only a set of the generators of S: see, for instance, Example 1 and Example 2 below, where the elements 3 g 1 , g 1 + 2 g 3 belong to S but they do not belong to its set of minimal generators.
Now, we want to suggest a possible way to verify computationally the two conditions of Theorem 2. We assume C = g 1 , , g n and suppose S = n 1 , n 2 , , n t . So, we focus on the following:
1.
For all i { 1 , , n } , the set S i = { λ N λ g i S } is a numerical semigroup.
2.
For each i , j { 1 , , n } , i j , there exists n i ( j ) N such that g i + n i ( j ) g j S .
Condition 1. 
Let i { 1 , , n } . We observe that
{ λ N λ g i S } = λ N j = 1 t λ j n j + λ ( g i ) = 0 , for some λ 1 , , λ n N .
Let A ( i ) = [ n 1 , n 2 , , n t , g i ] be the matrix whose columns are the elements of the finite set of generators of S and the column vector related to g i Z d . So A ( i ) has t + 1 columns and entries in Z . We identify every element x N t + 1 with its column vector and consider the Diophantine linear system A ( i ) x = 0 . It is easy to see that
{ λ N λ g i S } = { x t + 1 A ( i ) x = 0 with x = ( x 1 , , x t , x t + 1 ) N t + 1 } .
Let M i N t + 1 be the set of non-negative integer solutions of the homogeneous Diophantine linear system A ( i ) x = 0 . It is known that M i is an affine semigroup in N t + 1 (see for instance [15] (Section 1)), so there exists a finite set B i N t + 1 , such that M i = B i . Hence, S i = { x t + 1 N ( x 1 , , x t , x t + 1 ) B i } . It is possible to perform these computations in the computer algebra software GAP [16] with the package numericalsgps [17]. It is also recommended to use the package NormalizInterface (that is an interface in GAP for the software Normaliz, see [18,19]), in order to speed up the computation time.
Example 1. 
We consider the affine semigroups C = ( 1 , 1 ) , ( 1 , 2 ) , ( 2 , 1 ) , ( 3 , 1 ) and S = C { ( 1 , 1 ) , ( 3 , 2 ) , ( 2 , 3 ) } = ( 1 , 2 ) , ( 2 , 1 ) , ( 2 , 2 ) , ( 3 , 1 ) , ( 3 , 5 ) . Let us compute a finite set of generators of S 1 = { λ N λ g 1 S } , where g 1 = ( 1 , 1 ) . We need to find the non-negative integer solutions of the linear Diophantine system A x = 0 , where A has column vectors ( 1 , 2 ) , ( 2 , 1 ) , ( 2 , 2 ) , ( 3 , 1 ) , ( 3 , 5 ) , ( 1 , 1 ) .
gap> LoadPackage(“num”);;
gap> NumSgpsUseNormaliz();;
gap> A:=[[1,2],[2,1],[2,2],[3,1],[3,5],[-1,-1]];;
gap> n:=Length(A);;
gap> A:=TransposedMat(A);
[ [ 1, 2, 2, 3, 3, -1 ], [ 2, 1, 2, 1, 5, -1 ] ]
gap> sol:=HilbertBasisOfSystemOfHomogeneousEquations(A,[]);
[ [ 0, 0, 0, 1, 1, 6 ], [ 0, 0, 1, 0, 0, 2 ], [ 0, 2, 0, 0, 1, 7 ],
  [ 1, 1, 0, 0, 0, 3 ], [ 2, 0, 0, 1, 0, 5 ] ]
gap> B:=List(sol,i->i[n]);
[ 6, 2, 7, 3, 5 ]
gap> Gcd(B);
1
gap> MinimalGenerators(NumericalSemigroup(B));
[ 2, 3 ]
  • Therefore, the previous computations allow to check that S 1 = 2 , 3 .
In order to verify the first condition of Theorem 2 for elements related to an extreme ray g of C having the greatest common divisor of its coordinates equal to 1, it suffices to perform an easier check on a finite set of generators of S, as stated by the following result.
Proposition 2. 
Let C = g 1 , g 2 , , g r , g r + 1 , g r + 2 , , g r + m N d be an affine semigroup such that cone ( C ) = cone ( { g 1 , , g r } ) . We assume that g i cone ( { g 1 , , g r } { g i } ) for some i { 1 , , r } and that the greatest common divisor of the coordinates of g i is 1. We suppose that S C is a submonoid and denote by A the minimal set of generators of S. We consider the monoid S i = { λ N λ g i S } N and let { λ 1 ( i ) , λ 2 ( i ) , , λ s i ( i ) } be the minimal set of generators of S i . Then, { λ 1 ( i ) g i , λ 2 ( i ) g i , , λ s i ( i ) g i } A .
Proof. 
Let { 1 , , s i } . We want to prove that λ ( i ) g i A . First of all, we observe that, if λ ( i ) g i = j = 1 r β j g j with β j Q 0 , then β j = 0 for all j i . In fact, if there exists k { 1 , , r } { i } such that β k 0 , then β i < λ ( i ) . In particular, ( λ ( i ) β i ) g i = j = 1 , j i r β j g j , from which we easily obtain that g i cone ( { g 1 , , g r } { g i } ) , a contradiction. So, the only possibility is β i = λ and β j = 0 for all j { 1 , , r } { i } .
  • We know that λ ( i ) g i A = S and suppose that λ ( i ) g i A . Hence, λ ( i ) g i = a A μ a a for some μ a N such that a A μ a > 1 . For every a A , we have a C . In particular, a cone ( { g 1 , , g r } ) . For a A , we assume a = j = 1 r γ ( a , j ) g j with γ ( a , j ) Q 0 for each j { 1 , , r } . As a consequence, λ ( i ) g i = a A μ a a = j = 1 r ( a A μ a γ ( a , j ) ) g j . By the discussion at the beginning of the proof, we have a A μ a γ ( a , j ) = 0 for all j { 1 , , r } { i } . So, for all j { 1 , , r } { i } , since μ a γ ( a , j ) 0 , the only possibility is μ a γ ( a , j ) = 0 . In particular, if μ a 0 , we have γ ( a , j ) = 0 for all j { 1 , , r } { i } . Then, for all a A with μ a 0 , we have a = γ ( a , i ) g i for some γ ( a , i ) Q 0 { 0 } . Since g i , a N d , the hypothesis that the greatest common divisor of the coordinates of g i is 1 forces γ ( a , i ) N { 0 } . Therefore, for all a A with μ a 0 , we have γ ( a , i ) S i = λ 1 ( i ) , λ 2 ( i ) , , λ s i ( i ) . Let b A such that μ b 0 , and we assume that γ ( b , i ) = j = 1 s i α j λ j ( i ) , α j N . Then, we can write λ ( i ) g i = a A , a b μ a a + μ b j = 1 , j s i α j λ j ( i ) g i + μ b α λ ( i ) g i . Since μ b > 0 and a A μ a > 1 , the only possibility is α = 0 . In particular, we can argue that, for all a A , with μ a 0 , γ ( a , i ) { λ 1 ( i ) , λ 2 ( i ) , , λ s i ( i ) } { λ ( i ) } . As a consequence, λ ( i ) g i { γ ( a , i ) g i a A , μ a 0 } { λ 1 ( i ) g i , λ 2 ( i ) , , λ s i ( i ) g i } { λ ( i ) g i } . Hence, λ ( i ) { λ 1 ( i ) λ 2 ( i ) , , λ s i ( i ) } { λ ( i ) } , but this contradicts the fact that S i is minimally generated by { λ 1 ( i ) g i , λ 2 ( i ) g i , , λ s i ( i ) g i } . So, we can conclude that λ ( i ) g i A .    □
Condition 2. 
Firstly, we observe that, in the outlined framework, for the second condition of Theorem 2, we can point out that, if g i S for some i { 1 , , n } , for what concerns the elements of the form g i + n i ( j ) g j , we can consider n i ( j ) = 0 for all j { 1 , , n } { i } . So, we assume that g i S . For j { 1 , , n } { i } , we consider that
{ k N g i + k g j S } = k N g i = j = 1 t λ j n j + k ( g j ) , for some λ 1 , , λ t N .
So, in this case, we need to find all non-negative integer factorizations of g i in the monoid n 1 , , n t , g j Z t + 1 and take, for each factorization, the coefficient of g j . In particular, this problem is related to finding the non-negative integer solutions of a non-homogeneous Diophantine linear system of equations, that is, using the notation introduced in Condition (1), we have
{ k N g i + k g j S } = { x t + 1 A ( j ) x = g i with x = ( x 1 , , x t , x t + 1 ) N t + 1 } .
We recall that, if R i j is the set of non-negative integer solutions of A ( j ) x = g i and V i j is the set of minimal elements of R i j , with respect to the natural partial order in N t + 1 , then the set V i j is finite and R i j = y V i j ( y + M j ) , where M j is the set of non-negative integer solutions of the homogeneous Diophantine linear system A ( j ) x = 0 (see for instance [20] (Theorem 5.2)). In particular, min { k N g i + k g j S } = min { x t + 1 ( x 1 , , x t , x t + 1 ) V i j } . The following example shows how to perform such a computation with GAP, using numericalsgps and NormalizInterface.
Example 2. 
We consider the semigroups C and S as in Example 1. We focus on the element such as g 1 + n 1 ( 3 ) g 3 . In order to compute { k N g 1 + k g 3 S } , with g 1 = ( 1 , 1 ) and g 3 = ( 2 , 1 ) , we need to find the minimal factorizations of ( 1 , 1 ) with respect to the set { ( 1 , 2 ) , ( 2 , 1 ) , ( 2 , 2 ) , ( 3 , 1 ) , ( 3 , 5 ) , ( 2 , 1 ) } . That is, we need to find the set V 13 introduced before.
gap> LoadPackage(“num”);;
gap> NumSgpsUseNormaliz();;
gap> A:=[[1,2],[2,1],[2,2],[3,1],[3,5],[-2,-1]];;
gap> n:=Length(A);;
gap> F:=FactorizationsVectorWRTList([1,1], A);
[ [ 0, 0, 0, 6, 1, 10 ], [ 0, 0, 1, 1, 0, 2 ], [ 1, 0, 0, 2, 0, 3 ] ]
gap> List(F,i->i[n]);
[ 10, 2, 3 ]
  • The computations above show that V 13 = { ( 0 , 0 , 0 , 6 , 1 , 10 ) , ( 0 , 0 , 1 , 1 , 0 , 2 ) , ( 1 , 0 , 0 , 2 , 0 , 3 ) } . The package manual of numericalagps explains that, if v is a list of non-negative integers and ls is a list of lists of non-negative integers, then the function FactorizationsVectorWRTList( v, ls ) returns the set of factorizations of v in terms of the elements of ls. Actually, when NormalizInterface is used, that function also works in the case where ls has vectors with negative coordinates. In fact, by the code of that function, using NormalizInterface, the function computes exactly the minimal elements (with respect to the natural partial order) of the set of non-negative integer solutions of the system ls*x=v, in the case that the system admits solutions (each list of integers is considered here as a column vector). So, in this case, min { k N g 1 + k g 3 S } = 2 and we can consider n 1 ( 3 ) = 2 , that is, g 1 + 2 g 3 S .
Now, we can describe a procedure to check if C S is finite and, if so, to compute its elements. By Lemma 1, a direct way is to focus on the monoid f C 1 ( S ) . In particular, we start by finding a set of generators of f C 1 ( S ) .
We assume that C = g 1 , g 2 , , g n and S = n 1 , n 2 , , n t . We observe that an element of the form i = 1 n x i e i belongs to f C 1 ( S ) if and only if there exist λ 1 , , λ t N such that i = 1 n x i g i = j = 1 t λ j n j . We consider the matrix A ( C , S ) = [ g 1 , g 2 , , g n , n 1 , n 2 , , n t ] , obtained by identifying every integer vector with a column vector. Then, the elements of f C 1 ( S ) can be obtained from the non-negative integer solutions of the homogeneous Diophantine linear system A ( C , S ) x = 0 , that is,
f C 1 ( S ) = { ( x 1 , , x n ) N d A ( C , S ) x = 0 with x = ( x 1 , , x n , x n + 1 , , x n + t ) N n + t } .
Let M ( C , S ) N n + t be the set of non-negative integer solutions of the homogeneous Diophantine linear system A ( C , S ) x = 0 . The set M ( C , S ) is an affine semigroup in N n + t (see [15] (Section 1)). So, there exists a finite set B ( C , S ) N n + t , such that M ( C , S ) = B ( C , S ) . Hence, f C 1 ( S ) = { ( x 1 , , x n ) N n ( x 1 , , x n , x n + 1 , , x n + t ) B ( C , S ) } . These computations can be performed using the computer algebra software GAP with the packages numericalsgps and NormalizInterface.
Now, by Lemma 1, we need to check if N n f C 1 ( S ) is finite and, if so, compute its elements. By the previous arguments, we obtained a finite set B N n such that f C 1 ( S ) = B . So, we can test if N n f C 1 ( S ) is finite by Theorem 1. Once we check it is finite, in order to compute the set N n f C 1 ( S ) , we can consider the procedure described in [21] (it can be performed using GAP with the package numericalsgps). Finally, we obtain the set C S considering all elements f C ( h ) , for every h N n f C 1 ( S ) .
Algorithm 1. 
Let  C = g 1 , g 2 , , g n N d  be an affine semigroup and S a submonoid of  C . We suppose that  S = n 1 , n 2 , , n t . In order to compute  C S , we can consider the following steps:
1. 
Consider the matrix  A ( C , S ) = [ g 1 , g 2 , , g n , n 1 , n 2 , , n t ] , where each element is identified as a column vector.
2. 
Compute a finite set  B ( C , S ) N n + t , such that  B ( C , S )  is the set of non-negative integer solutions of the homogeneous Diophantine linear system  A ( C , S ) x = 0 .
3. 
Set  B = { ( x 1 , , x n ) N n ( x 1 , , x n , x n + 1 , , x n + t ) B ( C , S ) } .
4. 
Check if the set B satisfies the conditions of Theorem 1, that is, check if  B  is  N n -cofinite.
5. 
If  B  is not  N n -cofinite, then S is not  C -cofinite.
6. 
If  B  is  N n -cofinite, compute  H = N n B .
7. 
Compute  C S = { f C ( h ) h H } .
Example 3. 
We consider the affine semigroups C = ( 1 , 1 ) , ( 1 , 2 ) , ( 2 , 1 ) , ( 3 , 1 ) and S = C { ( 1 , 1 ) , ( 3 , 2 ) , ( 2 , 3 ) } = ( 1 , 2 ) , ( 2 , 1 ) , ( 2 , 2 ) , ( 3 , 1 ) , ( 3 , 5 ) (as in the previous examples). In the following, we show how it is possible to perform Algorithm 1 using the computer algebra software GAP, with the packages numericalsgps and NormalizInterface.
gap> LoadPackage(“num”);;
gap> NumSgpsUseNormaliz();;
gap> C:=[[1,1],[1,2],[2,1],[3,1]];
gap> n:=Length(C);
4
[ [ 1, 1 ], [ 1, 2 ], [ 2, 1 ], [ 3, 1 ] ]
gap> S:=[[1,2],[2,1],[2,2],[3,1],[3,5]];
[ [ 1, 2 ], [ 2, 1 ], [ 2, 2 ], [ 3, 1 ], [ 3, 5 ] ]
gap> A:=Concatenation(C,-S);
[ [ 1, 1 ], [ 1, 2 ], [ 2, 1 ], [ 3, 1 ], [ -1, -2 ], [ -2, -1 ], [ -2, -2 ],
  [ -3, -1 ], [ -3, -5 ] ]
gap> A:=TransposedMat(A);
[ [ 1, 1, 2, 3, -1, -2, -2, -3, -3 ], [ 1, 2, 1, 1, -2, -1, -2, -1, -5 ] ]
gap> gap> sol:=HilbertBasisOfSystemOfHomogeneousEquations(A,[]);
[ [ 0, 0, 0, 1, 0, 0, 0, 1, 0 ], [ 0, 0, 1, 0, 0, 1, 0, 0, 0 ],
  [ 0, 0, 4, 0, 0, 0, 1, 2, 0 ], [ 0, 0, 5, 0, 1, 0, 0, 3, 0 ],
  [ 0, 0, 12, 0, 0, 0, 0, 7, 1 ], [ 0, 1, 0, 0, 1, 0, 0, 0, 0 ],
  [ 0, 1, 0, 1, 0, 1, 1, 0, 0 ], [ 0, 1, 0, 3, 0, 5, 0, 0, 0 ],
  [ 0, 1, 3, 0, 0, 0, 2, 1, 0 ], [ 0, 1, 7, 0, 0, 0, 0, 4, 1 ],
  [ 0, 2, 2, 0, 0, 0, 0, 1, 1 ], [ 0, 2, 2, 0, 0, 0, 3, 0, 0 ],
  [ 0, 3, 0, 2, 0, 3, 0, 0, 1 ], [ 0, 3, 1, 0, 0, 0, 1, 0, 1 ],
  [ 0, 3, 1, 1, 0, 0, 4, 0, 0 ], [ 0, 4, 0, 1, 0, 0, 2, 0, 1 ],
  [ 0, 4, 0, 2, 0, 0, 5, 0, 0 ], [ 0, 5, 0, 1, 0, 1, 0, 0, 2 ],
  [ 0, 7, 1, 0, 0, 0, 0, 0, 3 ], [ 0, 8, 0, 1, 0, 0, 1, 0, 3 ],
  [ 0, 12, 0, 1, 0, 0, 0, 0, 5 ], [ 1, 0, 0, 1, 0, 2, 0, 0, 0 ],
  [ 1, 0, 2, 0, 0, 0, 1, 1, 0 ], [ 1, 0, 3, 0, 1, 0, 0, 2, 0 ],
  [ 1, 0, 10, 0, 0, 0, 0, 6, 1 ], [ 1, 1, 1, 0, 0, 0, 2, 0, 0 ],
  [ 1, 1, 5, 0, 0, 0, 0, 3, 1 ], [ 1, 2, 0, 0, 0, 0, 0, 0, 1 ],
  [ 1, 2, 0, 1, 0, 0, 3, 0, 0 ], [ 2, 0, 0, 0, 0, 0, 1, 0, 0 ],
  [ 2, 0, 1, 0, 1, 0, 0, 1, 0 ], [ 2, 0, 8, 0, 0, 0, 0, 5, 1 ],
  [ 2, 1, 3, 0, 0, 0, 0, 2, 1 ], [ 3, 0, 0, 0, 1, 1, 0, 0, 0 ],
  [ 3, 0, 6, 0, 0, 0, 0, 4, 1 ], [ 3, 1, 1, 0, 0, 0, 0, 1, 1 ],
  [ 4, 0, 4, 0, 0, 0, 0, 3, 1 ], [ 4, 1, 0, 0, 0, 1, 0, 0, 1 ],
  [ 5, 0, 0, 0, 2, 0, 0, 1, 0 ], [ 5, 0, 2, 0, 0, 0, 0, 2, 1 ],
  [ 6, 0, 0, 0, 0, 0, 0, 1, 1 ], [ 7, 0, 0, 0, 0, 2, 0, 0, 1 ] ]
gap> B:=List(sol,i->i{[1..n]});
[ [ 0, 0, 0, 1 ], [ 0, 0, 1, 0 ], [ 0, 0, 4, 0 ], [ 0, 0, 5, 0 ],
  [ 0, 0, 12, 0 ], [ 0, 1, 0, 0 ], [ 0, 1, 0, 1 ], [ 0, 1, 0, 3 ],
  [ 0, 1, 3, 0 ], [ 0, 1, 7, 0 ], [ 0, 2, 2, 0 ], [ 0, 2, 2, 0 ],
  [ 0, 3, 0, 2 ], [ 0, 3, 1, 0 ], [ 0, 3, 1, 1 ], [ 0, 4, 0, 1 ],
  [ 0, 4, 0, 2 ], [ 0, 5, 0, 1 ], [ 0, 7, 1, 0 ], [ 0, 8, 0, 1 ],
  [ 0, 12, 0, 1 ], [ 1, 0, 0, 1 ], [ 1, 0, 2, 0 ], [ 1, 0, 3, 0 ],
  [ 1, 0, 10, 0 ], [ 1, 1, 1, 0 ], [ 1, 1, 5, 0 ], [ 1, 2, 0, 0 ],
  [ 1, 2, 0, 1 ], [ 2, 0, 0, 0 ], [ 2, 0, 1, 0 ], [ 2, 0, 8, 0 ],
  [ 2, 1, 3, 0 ], [ 3, 0, 0, 0 ], [ 3, 0, 6, 0 ], [ 3, 1, 1, 0 ],
  [ 4, 0, 4, 0 ], [ 4, 1, 0, 0 ], [ 5, 0, 0, 0 ], [ 5, 0, 2, 0 ],
  [ 6, 0, 0, 0 ], [ 7, 0, 0, 0 ] ]
gap> T:=AffineSemigroup(B);
<Affine semigroup in 4 dimensional space, with 41 generators>
gap> MinimalGenerators(T);
[ [ 0, 0, 0, 1 ], [ 0, 0, 1, 0 ], [ 0, 1, 0, 0 ], [ 1, 0, 0, 1 ],
  [ 1, 0, 2, 0 ], [ 1, 1, 1, 0 ], [ 1, 2, 0, 0 ], [ 2, 0, 0, 0 ],
  [ 3, 0, 0, 0 ] ]
gap> H:=Gaps(T);
[ [ 1, 0, 0, 0 ], [ 1, 0, 1, 0 ], [ 1, 1, 0, 0 ] ]
gap> Set(List(H,i->i*C));
[ [ 1, 1 ], [ 2, 3 ], [ 3, 2 ] ]
  •  Therefore, the previous computations show that B ( C , S ) = {(0,0,0,1), (0,0,1,0), (0,1,0,0), (1,0,0,1), (1,0,2,0), (1,1,1,0), (1,2,0,0), (2,0,0,0), (3,0,0,0)}, N n f C 1 ( S ) = { ( 1 , 0 , 0 , 0 ) , ( 1 , 0 , 1 , 0 ) , ( 1 , 1 , 0 , 0 ) } and C S = { ( 1 , 1 ) , ( 2 , 3 ) , ( 3 , 2 ) } .

3. Cofinite Ideals of an Affine Semigroup

Let S N d be an affine semigroup. A set I is an ideal of S if I S and I + S I . Every ideal I can be expressed as I = X + S , where X = Minimals S ( I ) and S is the partial order in N d defined by x S y if y x S . In particular, the set X is called a set of generators of I. Furthermore, the set X is finite (see for instance [22] (Proposition 2.7.4)), that is, every ideal of an affine semigroup is finitely generated. We simply denote by ≤ the order N n , that is, the natural partial order in N n , n any positive integer.
Theorem 2 can be used to characterize when S I is finite, obtaining the following result.
Theorem 3. 
Let S N d be an affine semigroup generated by { g 1 , , g n } and I be an ideal of S. Then, S I is a finite set if and only if, for all i { 1 , , n } , there exists k i N { 0 } such that k i g i I .
Proof. 
We observe that I { 0 } is a submonoid of S, so we can use Theorem 2.
Necessity. If S I is finite, from condition ( 1 ) of Theorem 2 we have that the set { λ N λ g i I } is a numerical semigroup for all i { 1 , , n } ; in particular, this set contains nonzero integers. So, for all i { 1 , , n } , there exists k i N { 0 } such that k i g i I .
Sufficiency. We suppose that, for all i { 1 , , n } , there exists k i N { 0 } such that k i g i I . It suffices to check that I { 0 } satisfies both the conditions of Theorem 2. Since k i g i I , we obtain k i g i + λ g i I for all λ N ; in particular, { λ N λ g i I } N { 1 , , k i 1 } , that is, the first condition is satisfied. The second condition holds trivially by the definition of ideal, since, for all i , j { 1 , , n } , with i j , we have g i + k j g j I .    □
Algorithm 2. 
Let  S N d  be an affine semigroup generated by  { g 1 , , g n }  and I be an ideal of S, such that  S I  is a finite set. Then, it is possible to compute the set  S I  by the following two steps:
1. 
For all  i { 1 , , n } , we compute  k i = min { k N k g i I } . If, for some  i { 1 , , n } , we have  { k N k g i I } = Ø , then  S I  is not finite.
2. 
Let  P = { ( λ 1 , , λ n ) N n λ i < k i f o   r a l l i { 1 , , n } }  (we observe that P is a finite set). Then,
S I = i = 1 n λ i g i I ( λ 1 , , λ n ) P .
Remark 1. 
We observe that, for step (1) of Algorithm 2, it would suffice to find k i { k N k g i I } , not necessarily being the minimum. However, it is better to find k i as the minimum in order to have P with smallest possible cardinality.
Let S N d be an affine semigroup generated by { g 1 , , g n } and I be an ideal of S and we assume I = X + S with X = { u 1 , , u r } S . For i { 1 , n } , in order to compute the integer k i = min { k N k g i I } , or to test if it exists, we consider that, for k N , then k g i I if and only if there exists j { 1 , , r } such that k g i = x j + l = 1 n λ l g l with λ l N for each l { 1 , , n } . Equivalently, u j = l = 1 , l i λ l g l + k ( g i ) . So, in this case, we need to find all non-negative integer factorizations of u j in the monoid { g 1 , , g n } { g i } { g i } Z n and take, for each factorization, the coefficient of g i . This computation can be performed by GAP as in Example 2. Moreover, the package numericalsgps also contains many routines to deal with ideals of an affine semigroup. For instance, it is possible to test if an integer vector belongs to an ideal or not.
To test if S I is finite and, if so, to compute it, we can also consider the map f S : N n S introduced in Section 2, as explained in the next result.
Proposition 3. 
Let S = g 1 , , g n N d be an affine semigroup and I an ideal of S. Then, the set f S 1 ( I ) is an ideal of N n and the following holds:
1. 
S I is finite if and only if N n f S 1 ( I ) is finite.
2. 
S I = { f S ( x ) x N n f S 1 ( I ) } .
Proof. 
It is not difficult to see that f S 1 ( I ) is an ideal of N n . Moreover, since f S is a surjective function, we have N n f S 1 ( I ) = f S 1 ( S ) f S 1 ( I ) = f S 1 ( S I ) . Therefore, claims (1) and (2) can be proved using the same arguments of Lemma 1.    □
We denote M ( I ) = Minimals ( f S 1 ( I ) ) . Then, f S 1 ( I ) = M ( I ) + N n and M ( I ) is a finite set. In particular, N n f S 1 ( I ) = { x N n y x , for all y M ( I ) } . So, in order to compute the set S I , it suffices to find the set M ( I ) and use equality (2) of Proposition 3. In [23] (Algorithm, 16), the authors show a procedure to compute the set M ( I ) = Minimals ( f S 1 ( I ) ) . We provide a different strategy to compute it.
Let S = g 1 , , g n N d be an affine semigroup and I = X + S an ideal of S, with X = { u 1 , , u r } . We observe that, i = 1 n a i e i f S 1 ( I ) if and only if there exists k { 1 , , r } and λ 1 , , λ n N such that i = 1 n a i g i = u k + i = 1 n λ i g i . Hence, we consider the matrix A ( S ) = [ g 1 , , g n , g 1 , , g n ] . For j { 1 , , r } , let M ( S , j ) be the set of non-negative integer solutions of the non-homogeneous Diophantine linear system A ( S ) x = u j . Then, we have
f S 1 ( I ) = j = 1 r ( x 1 , , x n ) N n ( x 1 , , x n , x n + 1 , , x 2 n ) M ( S , j ) .
Let M ( S ) be the set of non-negative integer solutions of the homogeneous Diophantine linear system A ( S ) x = 0 and V ( S , j ) = Minimals ( M ( S , j ) ) (≤ is the natural partial order in N 2 n ). In particular, we have M ( S , j ) = y V ( S , j ) ( y + M ( S ) ) (see [20] (Theorem 5.2)). Let us denote V ( I ) = j = 1 r V ( S , j ) . As a consequence, by the previous expression of f S 1 ( I ) , we obtain
M ( I ) = Minimals ( x 1 , , x n ) N n ( x 1 , , x n , x n + 1 , , x 2 n ) V ( I ) .
For all j { 1 , , r } , the set V ( S , j ) can be computed in GAP, using the packages numericalsgps and NormalizInterface, as in Example 2. Once the set Minimals ( f S 1 ( I ) ) is obtained, the following algorithm allows to check if S I is finite and, if so, to compute its elements.
Algorithm 3. 
Let  S = g 1 , g 2 , , g n N d  be an affine semigroup and  I = X + S  an ideal of S,  X = { u 1 , , u r } . To test if  S I  is finite and, if so, compute it; we can consider the following steps.
1. 
Consider the matrix  A ( S ) = [ g 1 , g 2 , , g n , g 1 , g 2 , , g n ] , where each element is identified as a column vector.
2. 
For all  j { 1 , , r } , compute the (finite) set  V ( S , j ) N 2 n  of minimal (with respect to the natural partial order in  N 2 n ) non-negative integer solutions of the non-homogeneous Diophantine linear system  A ( S ) x = u j .
3. 
Set  V ( I ) = j = 1 r V ( S , j ) .
4. 
Set  M ( I ) = Minimals ( x 1 , , x n ) N n ( x 1 , , x n , x n + 1 , , x 2 n ) V ( I ) .
5. 
For all  i { 1 , , n } , check if there exists  k i N  such that  k i e i M ( I ) . If, for some  i { 1 , , n } , this condition does not hold, then  S I  is not finite.
6. 
If the previous condition holds, then compute  Q = { x N n y x , for all y M ( I ) } .
7. 
Compute  S I = { f S ( x ) x Q } .
Considering the computation time, the main difference between Algorithms 2 and 3 concerns the computation of the set M ( I ) , against the time spent to test, for each element x = ( x 1 , , x n ) P , if i = 1 n x i g i I .

3.1. An Approach Using Commutative Algebra

We assume that S = g 1 , , g n N d and let K be a field. We consider the semigroup ring K [ S ] = K [ Y s s S ] = K [ Y g 1 , , Y g n ] , where, if s = ( s 1 , , s d ) N d , then Y s = Y 1 s 1 Y 2 s 2 Y d s d . If I = X + S , X = { u 1 , , u r } S , we define I K [ S ] = ( Y u 1 , , Y u r ) that is a monomial ideal of K [ S ] .
Let S N d be an affine semigroup and I be an ideal of S. Then, h S I if and only if Y h I K [ S ] , that is, Y h is a monomial not belonging to I K [ S ] . In particular, S I is a finite set if and only if the set { Y h K [ S ] Y h I K [ S ] } is finite.
Let u i = j = 1 n a i j g j be a factorization of u i and we denote a i = ( a i 1 , , a i n ) N n , for i { 1 , , r } . We consider the polynomial ring K [ Z 1 , , Z n ] and, as above, if t = ( t 1 , , t n ) N n , we denote Z t = Z 1 t 1 Z 2 t 2 Z n t n . We consider the following surjective ring homomorphism:
ψ : K [ Z 1 , , Z n ] K [ S ] defined by Z i Y g i .
We denote J S = ker ( ψ ) (called the defining ideal of S), and observe that ψ ( Z a i ) = Y u i for each i { 1 , , r } . The map ψ induces the following ring isomorphism:
ψ ˜ : K [ Z 1 , , Z n ] J S K [ S ] defined by ψ ˜ ( f + J S ) ψ ( f ) .
We observe that the set ψ ˜ 1 ( I K [ S ] ) is an ideal of K [ Z 1 , , Z n ] J S . Moreover, we have the following set equality:
ψ ˜ 1 ( I K [ S ] ) = J S + ( Z a 1 , , Z a r ) J S .
In fact, if f ˜ = f + J S ψ ˜ 1 ( I K [ S ] ) , then ψ ˜ ( f ˜ ) I K [ S ] . In particular, there exist h 1 , , h r K [ S ] such that ψ ˜ ( f ˜ ) = k = 1 r h k Y u k = ψ ˜ ( k = 1 n h ¯ k Z a k + J S ) with h ¯ k + J S ψ ˜ 1 ( h k ) for all k { 1 , , r } . We denote h ¯ = k = 1 n h ¯ k Z a k ; in particular, h ¯ ( Z a 1 , , Z a r ) . Since ψ ˜ is an isomorphism, we have f ˜ = f + J S = h ¯ + J S , so f h ¯ J S and, in particular, f J S + ( Z a 1 , , Z a r ) . This means that f ˜ = f + J S J S + ( Z a 1 , , Z a r ) J S .
Conversely, if f + J S J S + ( Z a 1 , , Z a r ) J S , then f = g + h where g J S and h = k = 1 n h k Z a k , h k K [ Z 1 , , Z n ] for each k { 1 , , r } . Therefore, ψ ˜ ( f + J S ) = ψ ( f ) = ψ ( g ) + ψ ( h ) = ψ ( h ) = ψ ( k = 1 n h k Z a k ) = k = 1 n ψ ( h k ) Y u k I K [ S ] , that is, f + J S ψ ˜ 1 ( I K [ S ] ) .
As a consequence of the previous set equality, we have the following isomorphism:
K [ S ] I K [ S ] K [ Z 1 , , Z n ] J S J S + ( Z a 1 , , Z a r ) J S K [ Z 1 , , Z n ] J S + ( Z a 1 , , Z a r ) .
The isomorphism above is described by the following map:
ψ ¯ : K [ Z 1 , , Z n ] J S + ( Z a 1 , , Z a r ) K [ S ] I K [ S ] , f + ( J S + ( Z a 1 , , Z a r ) ) ψ ( f ) + I K [ S ]
In the following, if J is an ideal of a polynomial ring R and ⪯ is a monomial order on R, we denote the initial ideal of J with respect to ⪯ by in ( J ) .
Lemma 2. 
In the framework introduced above, let P S = J S + ( Z a 1 , , Z a r ) and ⪯ be a monomial order on K [ Z 1 , , Z n ] . Then, { Y h K [ S ] Y h I K [ S ] } = { ψ ( Z t ) Z t in ( P S ) } .
Proof. 
Let ψ ¯ be the isomorphism above. In particular, if Z t is a monomial in K [ Z 1 , , Z n ] , then ψ ¯ ( Z t + P S ) = ψ ( Z t ) + I K [ S ] . If Z t in ( P S ) , then, trivially, Z t P S . Since ψ ¯ is injective, we obtain ψ ( Z t ) + I K [ S ] = ψ ¯ ( Z t + P S ) 0 , that is, ψ ( Z t ) I K [ S ] . Conversely, let Y h K [ S ] such that Y h I K [ S ] . This means that Y h + I K [ S ] 0 in K [ S ] / I K [ S ] . Since h S , there exists t = i = 1 n t i e i N n such that h = i = 1 n t i g i . Hence, for the monomial Z t K [ Z 1 , , Z n ] , we have ψ ( Z t ) = Y h . We suppose that Z t in ( P S ) . Then, there exists f K [ Z 1 , , Z n ] such that Z t + f P S . So, Z t + f = g + k = 1 r h k Z a k , g J S and h k K [ Z 1 , , Z n ] . Therefore, ψ ( Z t ) + ψ ( f ) = ψ ( g ) + k = 1 r ψ ( h k ) ψ ( Z a k ) = k = 1 r ψ ( h k ) Y u k . In particular, ψ ( Z t ) + ψ ( f ) I K [ S ] . Since I K [ S ] is a monomial ideal and ψ ( Z t ) = Y h is a monomial, we obtain Y h I K [ S ] , a contradiction. So, we have Z t in ( P S ) .    □
We consider the set { Z t K [ Z 1 , , Z n ] Z t in ( P S ) } and suppose that it is finite for some monomial order on K [ Z 1 , , Z n ] . This property is known as P S = J S + ( Z a 1 , , Z a r ) is a zero dimensional ideal of K [ Z 1 , , Z n ] . A zero dimensional ideal is characterized by the following known result (Theorem 6, Chapter 5, §3, [14]).
Theorem 4 
([14]). Let K be a field and I K [ X 1 , , X n ] be an ideal of a polynomial ring. We fix a monomial order ⪯ in K [ X 1 , , X n ] . Then, the following are equivalent:
(i) 
For each i { 1 , , n } , there is some m i 0 such that X m i in ( I ) .
(ii) 
Let G be a Gröbner basis for I. Then, for each i { 1 , , n } , there is some m i 0 such that X m i = in ( g ) for some g G .
(iii) 
The set { X α X α in ( I ) } is finite.
(iv) 
The K-vector space K [ X 1 , , X n ] / I is finite-dimensional.
Theorem 4 suggests another way to prove the characterization of cofinitness of an ideal I in a monoid S, given in Theorem 3, and also a different procedure to compute S I .
Alternative Proof of Theorem 3. 
In the following, we denote P S = J S + ( Z a 1 , , Z a r ) , with reference to the framework introduced in this section.
Necessity. Suppose that S I is finite. Then, the set { Y h K [ S ] Y h I K [ S ] } is finite. So, by Lemma 2, considering the ideal P S and ⪯ a monomial order on K [ Z 1 , , Z n ] , we have that { ψ ( Z t ) Z t in ( P S ) } is a finite set. We show that the set { Z t K [ Z 1 , , Z n ] Z t in ( P S ) } is finite. If we suppose it is not finite, since { ψ ( Z t ) Z t in ( P S ) } is finite, there exist Z t 1 , Z t 2 in ( P S ) } , Z t 1 Z t 2 , such that ψ ( Z t 1 ) = ψ ( Z t 2 ) . Hence, Z t 1 Z t 2 J S P S and this implies Z t 1 in ( P S ) or Z t 2 in ( P S ) , a contradiction. Therefore, the set { Z t K [ Z 1 , , Z n ] Z t in ( P S ) } is finite and by Theorem 4 we obtain that for all i { 1 , , n } there exists an integer k i 0 such that Z i k i in ( P S ) . Hence, there exists f i K [ Z 1 , , Z n ] such that Z i k i + f i P S . So, having in mind the isomorphism in (1), we obtain ψ ( Z i k i + f i ) = Y k i g i + ψ ( f i ) I K [ S ] . Since I K [ S ] is a monomial ideal and Y k i g i is a monomial, we obtain Y k i g i I K [ S ] , that is, k i g i I . As a consequence, for all i { 1 , , n } , we have k i g i I .
Sufficiency. For every i { 1 , , n } , we suppose that there exists k i N { 0 } such that k i g i I . Then, Y k i g i I K [ S ] . In particular, by the isomorphism in (1), we have Z i k i P S . By Theorem 4, given a monomial order ⪯ on K [ Z 1 , , Z n ] , we obtain that { Z t K [ Z 1 , , Z n ] Z t in ( P S ) } is a finite a set. As a consequence, the set { ψ ( Z t ) Z t in ( P S ) } is finite and, by Lemma 2, the set { Y h K [ S ] Y h I K [ S ] } is finite. This means that S I is finite.    □
Following the arguments developed in this section, we can reformulate Theorem 3 as follows.
Corollary 1. 
Let S N d be an affine semigroup, I an ideal of S. As before, let P S = J S + ( Z a 1 , , Z a r ) K [ Z 1 , , Z n ] . Then, S I is finite if and only if P S is a zero dimensional ideal of K [ Z 1 , , Z n ] .
For a different procedure to compute S I , we recall that in the case when I K [ X 1 , , X n ] is an ideal of a polynomial ring and ⪯ a monomial order in K [ X 1 , , X n ] , then the set { X α X α in ( I ) } is a basis of K [ X 1 , , X n ] / I as a K-vector space. In particular, one can use a computer algebra software, for instance Macaulay2 [24] or Singular [25], to test if one of the equivalent conditions of Theorem 4 holds and, in such a case, to compute the set { X α X α in ( I ) } .
So, if B is a basis of the K-vector space K [ Z 1 , , Z n ] / P S , P S = J S + ( Z a 1 , , Z a r ) , then S I = { h N d Y h = ψ ( Z t ) , Z t B } .
Algorithm 4. 
Given  S = g 1 , , g n N d  and an ideal I of S, with  I = X + S  and  X = { u 1 , , u r } S , in order to compute  S I , we can consider the following steps:
1. 
For each  i { 1 , , r } , compute a factorization  a i  of  u i  in S.
2. 
Set the polynomial rings  R 1 = K [ Z 1 , , Z n ] ,  R 2 = K [ Y 1 , , Y d ] , with K a field, the map  ψ : R 1 R 2  defined by  Z i Y g i  and compute the ideal  J S = ker ( ψ ) .
3. 
Set the ideal  P S = J S + ( Z a 1 , , Z a r )  and compute a Gröbner basis G of  P S  with respect to a monomial order ⪯.
4. 
If G does not satisfy condition (ii) of Theorem 4, then  S I  is not finite and we can stop. Otherwise, compute a basis  B  of the K-vector space  K [ Z 1 , , Z n ] / P S .
5. 
Compute  S I = { h N d Y h = ψ ( Z t ) , Z t B } .
We point out that a similarity between Algorithm 3 and Algorithm 4 is actually hidden. That is, the exponent vectors of elements in the basis B of the K-vector space K [ Z 1 , , Z n ] / P S correspond to the vectors in N n f S 1 ( I ) . In particular, these elements are obtained from a presentation of S (see [23] for more details) in the first algorithm, and from the defining ideal I S of K [ S ] in the second algorithm. Considering the computation time, the relevant difference concerns with the time spent to compute the set M ( I ) against the computation of a Gröbner basis of the ideal P S .

3.2. A Remark on Apéry Sets

Let S N d be an affine semigroup and X S . The Apéry set of S with respect to X is defined as Ap ( S , X ) = { s S s x S for all x X } . This set is an important tool in the context of affine semigroups. For instance, in the case when S is simplicial, it can be used to verify the Cohen–Macaulay and Gorenstein conditions for the associated semigroup ring (see [26]) and to compute the conductor (see [27]). We observe that Ap ( S , X ) = S ( X + S ) , so it is the complement in S of the ideal X + S . In particular, we can state the following:
Corollary 2. 
Let S N d be an affine semigroup minimally generated by the set { g 1 , , g n } . If X S , then Ap ( S , X ) is finite if and only if, for all i { 1 , , n } , there exists k i N { 0 } such that k i g i X + S .
As a consequence, if S = g 1 , g 2 , , g r , g r + 1 , g r + 2 , , g r + m , where E = { g 1 , g 2 , , g r } is a set of extreme rays of S, then g j = i = 1 r q i g i , q i Q + , for all j { 1 , , m } . It easily follows that there exists k j N such that k j g j g 1 , g 2 , , g r S . Therefore, in the case E is a set of extreme rays of S, the set Ap ( S , E ) is finite. Moreover, referring to the previous arguments in SubSection 3.1, we can consider the ideal P S = J S + ( Z 1 , , Z r ) and, if B is a basis of the K-vector space K [ Z 1 , , Z n ] / P S , then Ap ( S , E ) = { h N d Y h = ψ ( Z t ) , Z t B } , obtaining the same result contained in [28] (Theorem 3.3).

Funding

The author acknowledges support from the Institute of Mathematics of the University of Granada (IMAG), through the program of Visits of Young Talented Researchers and from Istituto Nazionale di Alta Matematica (INDAM), through the program Concorso a n. 30 mensilità di borse di studio per l’estero per l’a.a. 2022–2023.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Acknowledgments

Motivation for this paper was inspired by some discussions had with P. A. García-Sánchez during a period the author spent at the University of Granada. The author would like to express their gratitude to him, for the hospitality and for his very helpful comments and suggestions that have allowed to improve this work.

Conflicts of Interest

The author declares no conflict of interest.

References

  1. Rosales, J.C.; García-Sánchez, P.A. Finitely Generated Commutative Monoids; Nova Science Publishers, Inc.: New York, NY, USA, 1999. [Google Scholar]
  2. Bruns, W.; Gubeladze, J. Polytopes, Rings, and K-Theory, Springer Monographs in Mathematics; Springer: Dordrecht, The Netherlands, 2009. [Google Scholar]
  3. Assi, A.; D’Anna, M.; García-Sánchez, P.A. Numerical Semigroups and Applications, 2nd ed.; RSME Springer Series 3; Springer: Cham, Switzerland, 2020. [Google Scholar]
  4. Rosales, J.C.; García-Sánchez, P.A. Numerical semigroups, Developments in Mathematics, 20; Springer: New York, NY, USA, 2009. [Google Scholar]
  5. Failla, G.; Peterson, C.; Utano, R. Algorithms and basic asymptotics for generalized numerical semigroups in N d. Semigroup Forum 2016, 92, 460–473. [Google Scholar] [CrossRef]
  6. Bernardini, M.; Castellanos, A.S.; Tenório, W.; Tizziotti, G. On atoms of the set of generalized numerical semigroups with fixed corner element. arXiv 2023, arXiv:2306.13506. [Google Scholar] [CrossRef]
  7. Li, S. On the number of generalized numerical semigroups. arXiv 2023, arXiv:2212.13740. [Google Scholar]
  8. García-García, J.I.; Marín-Aragón, D.; Vigneron-Tenorio, A. An extension of Wilf’s conjecture to affine semigroups. Semigroup Forum 2018, 96, 396–408. [Google Scholar] [CrossRef]
  9. García-García, J.I.; Ojeda, I.; Rosales, J.C.; Vigneron-Tenorio, A. On pseudo-Frobenius elements of submonoids of N d. Collect. Math. 2020, 71, 189–204. [Google Scholar] [CrossRef]
  10. Bhardwaj, O.P.; Goel, K.; Sengupta, I. Affine semigroups of maximal projective dimension. Collect. Math. 2023, 74, 703–727. [Google Scholar] [CrossRef]
  11. García-García, J.I.; Marín-Aragón, D.; Sánchez-Loureiro, A.; Vigneron-Tenorio, A. Some properties of affine C -semigroups. Results Math. 2024, 79, 52. [Google Scholar] [CrossRef]
  12. Cisto, C.; Failla, G.; Utano, R. On the generators of a generalized numerical semigroup. Analele Univ. Ovidius 2019, 27, 49–59. [Google Scholar] [CrossRef]
  13. Díaz-Ramírez, J.D.; García-García, J.I.; Marín-Aragón, D.; Vigneron-Tenorio, A. Characterizing affine C -semigroups. Ric. Mat. 2022, 71, 283–296. [Google Scholar] [CrossRef]
  14. Cox, D.; Little, J.; O’Shea, D. Ideals, Varieties, and Algorithms, 4th ed.; Springer: New York, NY, USA, 2015. [Google Scholar]
  15. Rosales, J.C.; García-Sánchez, P.A. Nonnegative elements of subgroups of Z n. Linear Algebra Its Appl. 1998, 270, 351–357. [Google Scholar] [CrossRef]
  16. The GAP Group. GAP–Groups, Algorithms, and Programming, Version 4.12.2. 2022. Available online: https://www.gap-system.org (accessed on 24 June 2024).
  17. Delgado, M.; García-Sánchez, P.A.; Morais, J. NumericalSgps, A Package for Numerical Semigroups, Version 1.3.1 Dev (2023), Refereed GAP Package. Available online: https://gap-packages.github.io/numericalsgps (accessed on 24 June 2024).
  18. Bruns, W.; Ichim, B.; Römer, T.; Söger, C. The Normaliz Project, Version 3.2.0. Available online: http://www.home.uniosnabrueck.de/wbruns/normaliz/ (accessed on 24 June 2024).
  19. Gutsche, S.; Horn, M.; Söger, C. NormalizInterface—A GAP Package, Version 1.3.5, Refereed GAP Package. 2022. Available online: https://gap-packages.github.io/NormalizInterface (accessed on 24 June 2024).
  20. Pisón-Casares, P.; Vigneron-Tenorio, A. N -solutions to linear systems over Z . Linear Algebra Its Appl. 2004, 384, 135–154. [Google Scholar] [CrossRef]
  21. Cisto, C.; Delgado, M.; García-Sánchez, P.A. Algorithms for generalized numerical semigroups. J. Algebra Appl. 2021, 20, 2150079. [Google Scholar] [CrossRef]
  22. Geroldinger, A.; Halter-Koch, F. Non–Unique Factorizations. Algebraic, Combinatorial and Analytic Theory. Pure and Applied Mathematics; Chapman & Hall/CRC: Boca Raton, FL, USA, 2006; Volume 278. [Google Scholar]
  23. Rosales, J.C.; García-Sánchez, P.A.; García-García, J.I. Irreducible ideals of finitely generated commutative monoids. J. Algebra 2001, 238, 328–344. [Google Scholar] [CrossRef]
  24. Grayson, D.; Stillman, M. Macaulay2, a Software System for Research in Algebraic Geometry. Available online: http://www2.macaulay2.com (accessed on 24 June 2024).
  25. Decker, W.; Greuel, G.M.; Pfister, G.; Schönemann, H. SINGULAR 4-3-2—A Computer Algebra System for Polynomial Computations. 2023. Available online: https://www.singular.uni-kl.de (accessed on 24 June 2024).
  26. Rosales, J.C.; García-Sánchez, P.A. On Cohen-Macaulay and Gorenstein simplicial affine semigroups. Proc. Edinb. Math. Soc. 1998, 41, 517–537. [Google Scholar] [CrossRef]
  27. Jafari, R.; Yaghmaei, M. Type and conductor of simplicial affine semigroups. J. Pure Appl. Algebra 2022, 226, 106844. [Google Scholar] [CrossRef]
  28. Ojeda, I.; Vigneron-Tenorio, A. The short resolution of a semigroup algebra. Bull. Aust. Math. Soc 2017, 96, 400–411. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cisto, C. On Some Properties for Cofiniteness of Submonoids and Ideals of an Affine Semigroup. Axioms 2024, 13, 488. https://doi.org/10.3390/axioms13070488

AMA Style

Cisto C. On Some Properties for Cofiniteness of Submonoids and Ideals of an Affine Semigroup. Axioms. 2024; 13(7):488. https://doi.org/10.3390/axioms13070488

Chicago/Turabian Style

Cisto, Carmelo. 2024. "On Some Properties for Cofiniteness of Submonoids and Ideals of an Affine Semigroup" Axioms 13, no. 7: 488. https://doi.org/10.3390/axioms13070488

APA Style

Cisto, C. (2024). On Some Properties for Cofiniteness of Submonoids and Ideals of an Affine Semigroup. Axioms, 13(7), 488. https://doi.org/10.3390/axioms13070488

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop