Abstract
Let S and be affine semigroups in such that . We provide a characterization for the set 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 is a finite set. If so, we provide some procedures to compute the set .
MSC:
20M14; 20M12
1. Introduction
Let 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 , 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 is finitely generated if there exists a finite set contained in S such that , where
In particular, 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 , there exists a unique minimal set that generates S, that is . In particular, if S is an affine semigroup, such a set is finite.
Let be the the set of non-negative rational numbers. If is an affine semigroup, we consider the sets , that is the cone spanned by S, and , that is called the group generated by S. The sets , called the normalization of S, and are affine semigroups (by Gordan’s Lemma, see for instance [2] (Lemma 2.9). Since S is finitely generated, if is its minimal set of generators, by relabeling if necessary, without loss of generality, we may assume that there exists such that . For minimality, we may also assume that for each . In such a case, for each (otherwise ). We say that 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 such that is finite. It is known that every numerical semigroup is a finitely generated monoid (so it is an affine semigroup) and every submonoid of is isomorphic to a numerical semigroup. Moreover, it is known that, if , then S is a numerical semigroup if and only if . 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 is to focus on the property of cofiniteness. In general, we say that a set A is cofinite in B if and is a finite set. In particular, a numerical semigroup is a cofinite monoid in . A straightforward step in this direction is to consider submonoids S of such that 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 is finite. A monoid S of such a family is called a -semigroup. In particular, a generalized numerical semigroup is a -semigroup such that . Some recent results on -semigroups are contained, for instance, in [9,10,11]. It is known that, if S is a -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 are classes of affine semigroups.
A natural problem is to consider a set and characterize when the set is a -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 -semigroups. Having in mind these results, in this paper, we consider a further generalization for the property of cofiniteness of an affine semigroup , considering that the case S is cofinite in another affine semigroup . In particular, in the main result of this work, we provide a characterization for an affine semigroup to be cofinite in an affine semigroup , in terms of the generators of . We call this kind of monoids -cofinite. We provide such a result in Section 2, together with a procedure and computational tools to check whether an affine semigroup is -cofinite for a fixed affine monoid and, if so, to compute the set .
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 such that (in general, for , set ). In Section 3, we give such a characterization so that 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 is finite and, if so, to compute its elements: the first one uses similar procedures to those suggested for -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 , 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 be an affine semigroup. A submonoid S of is called -cofinite if the set is finite.
For the next result, we recall that a term order ⪯ (or monomial order) on is a total order such that for all and if , then the inequality holds for all (see Chapter 2, §2 of [14], also, for some concrete examples of term orders). We use the notation for and .
Proposition 1.
Let be an affine semigroup and be a -cofinite submonoid. Then, S is finitely generated.
Proof.
Let for some term order ⪯, with . We show that is a minimal generator of . In fact, we suppose that with . In particular, and . If , then , which contradicts . Hence, and, by a similar argument, . As a consequence, by the minimality of we have , obtaining , a contradiction. So, is a minimal generator of and we can suppose . We can argue that . We can use the same argument to show that is a minimal generator of and so on, until we provide a finite set of generators of . □
Let be an affine semigroup. We denote by the standard basis vectors of the vector space ; in particular, as a monoid. We consider the following map:
Then, is a monoid epimorphism. We observe that, if , then is the set of factorizations of as combination of vectors in the set .
Lemma 1.
Let be an affine semigroup. We suppose S is a submonoid of . Then,
- 1.
- is a finite set if and only if is a finite set.
- 2.
- .
Proof.
We denote . We observe that T is a submonoid of . Moreover, since is a surjective function, we have . From this equality, we easily obtain that . Therefore, if T is -cofinite, then is a finite set. Moreover, for all , the set is finite. In fact, each element of an affine semigroup has a finite number of factorizations. In particular, if is finite, then is finite. So, claim (1) is proved. Furthermore, by , since is surjective, we have . In particular, we obtain claim (2). □
We remind that a characterization for a submonoid to be -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 . Then, is -cofinite if and only if the set A fulfills each one of the following conditions:
- 1.
- For all there exist , with , , such that .
- 2.
- For each , with , there exists such that .
Next, we provide the mentioned characterization for a submonoid to be -cofinite.
Theorem 2.
Let be an affine semigroup and be a submonoid. Then, S is -cofinite if and only if the following two conditions are verified:
- 1.
- For all , the set is a numerical semigroup.
- 2.
- For each , with , there exists such that .
Proof.
Necessity. It is not difficult to see that the set is a monoid for all . If the first condition is not verified, then there exists i such that the set is not finite. If the second condition is not verified, then, for some , with , we have that for all .
Sufficiency. We assume that is a numerical semigroup for all . In particular, and , for each . Moreover, for all , with , we can consider . For each , we set . Let . The set satisfies the conditions of Theorem 1, so is -cofinite. We consider the monoid . We observe that, if , then , that is, . In particular, and, as a consequence, . Therefore, T is -cofinite and, by Lemma 1, is finite. □
Let S and be affine semigroups, . We recall that, for , a characterization so that has been provided in [13] (Theorem 9) and, in the same paper, the authors provide a procedure to compute .
Theorem 2, in this form, can be viewed as a generalization of Theorem 1. The main difference is the following: in the case (and the same can be trivially considered in the case 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 (and 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 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 and suppose . So, we focus on the following:
- 1.
- For all , the set is a numerical semigroup.
- 2.
- For each , , there exists such that .
Condition 1.
Let . We observe that
Let be the matrix whose columns are the elements of the finite set of generators of S and the column vector related to . So has columns and entries in . We identify every element with its column vector and consider the Diophantine linear system . It is easy to see that
Let be the set of non-negative integer solutions of the homogeneous Diophantine linear system . It is known that is an affine semigroup in (see for instance [15] (Section 1)), so there exists a finite set , such that . Hence, . 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 and . Let us compute a finite set of generators of , where . We need to find the non-negative integer solutions of the linear Diophantine system , where A has column vectors .
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 .
In order to verify the first condition of Theorem 2 for elements related to an extreme ray of 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 be an affine semigroup such that . We assume that for some and that the greatest common divisor of the coordinates of is 1. We suppose that is a submonoid and denote by A the minimal set of generators of S. We consider the monoid and let be the minimal set of generators of . Then, .
Proof.
Let . We want to prove that . First of all, we observe that, if with , then for all . In fact, if there exists such that , then . In particular, , from which we easily obtain that , a contradiction. So, the only possibility is and for all .
- We know that and suppose that . Hence, for some such that . For every , we have . In particular, . For , we assume with for each . As a consequence, . By the discussion at the beginning of the proof, we have for all . So, for all , since , the only possibility is . In particular, if , we have for all . Then, for all with , we have for some . Since , the hypothesis that the greatest common divisor of the coordinates of is 1 forces . Therefore, for all with , we have . Let such that , and we assume that , . Then, we can write . Since and , the only possibility is . In particular, we can argue that, for all , with , . As a consequence, . Hence, , but this contradicts the fact that is minimally generated by . So, we can conclude that . □
Condition 2.
Firstly, we observe that, in the outlined framework, for the second condition of Theorem 2, we can point out that, if for some , for what concerns the elements of the form , we can consider for all . So, we assume that . For , we consider that
So, in this case, we need to find all non-negative integer factorizations of in the monoid and take, for each factorization, the coefficient of . 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
We recall that, if is the set of non-negative integer solutions of and is the set of minimal elements of , with respect to the natural partial order in , then the set is finite and , where is the set of non-negative integer solutions of the homogeneous Diophantine linear system (see for instance [20] (Theorem 5.2)). In particular, . The following example shows how to perform such a computation with GAP, using numericalsgps and NormalizInterface.
Example 2.
We consider the semigroups and S as in Example 1. We focus on the element such as . In order to compute , with and , we need to find the minimal factorizations of with respect to the set . That is, we need to find the set 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 . 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, and we can consider , that is, .
Now, we can describe a procedure to check if is finite and, if so, to compute its elements. By Lemma 1, a direct way is to focus on the monoid . In particular, we start by finding a set of generators of .
We assume that and . We observe that an element of the form belongs to if and only if there exist such that . We consider the matrix , obtained by identifying every integer vector with a column vector. Then, the elements of can be obtained from the non-negative integer solutions of the homogeneous Diophantine linear system , that is,
Let be the set of non-negative integer solutions of the homogeneous Diophantine linear system . The set is an affine semigroup in (see [15] (Section 1)). So, there exists a finite set , such that . Hence, . 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 is finite and, if so, compute its elements. By the previous arguments, we obtained a finite set such that . So, we can test if is finite by Theorem 1. Once we check it is finite, in order to compute the set , we can consider the procedure described in [21] (it can be performed using GAP with the package numericalsgps). Finally, we obtain the set considering all elements , for every .
Algorithm 1.
Let be an affine semigroup and S a submonoid of . We suppose that . In order to compute , we can consider the following steps:
- 1.
- Consider the matrix , where each element is identified as a column vector.
- 2.
- Compute a finite set , such that is the set of non-negative integer solutions of the homogeneous Diophantine linear system .
- 3.
- Set .
- 4.
- Check if the set B satisfies the conditions of Theorem 1, that is, check if is -cofinite.
- 5.
- If is not -cofinite, then S is not -cofinite.
- 6.
- If is -cofinite, compute .
- 7.
- Compute .
Example 3.
We consider the affine semigroups and (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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], [ 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 = {(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)}, and .
3. Cofinite Ideals of an Affine Semigroup
Let be an affine semigroup. A set I is an ideal of S if and . Every ideal I can be expressed as , where and is the partial order in defined by if . 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 , that is, the natural partial order in , n any positive integer.
Theorem 2 can be used to characterize when is finite, obtaining the following result.
Theorem 3.
Let be an affine semigroup generated by and I be an ideal of S. Then, is a finite set if and only if, for all , there exists such that .
Proof.
We observe that is a submonoid of S, so we can use Theorem 2.
Necessity. If is finite, from condition of Theorem 2 we have that the set is a numerical semigroup for all ; in particular, this set contains nonzero integers. So, for all , there exists such that .
Sufficiency. We suppose that, for all , there exists such that . It suffices to check that satisfies both the conditions of Theorem 2. Since , we obtain for all ; in particular, , that is, the first condition is satisfied. The second condition holds trivially by the definition of ideal, since, for all , with , we have . □
Algorithm 2.
Let be an affine semigroup generated by and I be an ideal of S, such that is a finite set. Then, it is possible to compute the set by the following two steps:
- 1.
- For all , we compute . If, for some , we have , then is not finite.
- 2.
- Let (we observe that P is a finite set). Then,
Remark 1.
We observe that, for step (1) of Algorithm 2, it would suffice to find , not necessarily being the minimum. However, it is better to find as the minimum in order to have P with smallest possible cardinality.
Let be an affine semigroup generated by and I be an ideal of S and we assume with . For , in order to compute the integer , or to test if it exists, we consider that, for , then if and only if there exists such that with for each . Equivalently, . So, in this case, we need to find all non-negative integer factorizations of in the monoid and take, for each factorization, the coefficient of . 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 is finite and, if so, to compute it, we can also consider the map introduced in Section 2, as explained in the next result.
Proposition 3.
Let be an affine semigroup and I an ideal of S. Then, the set is an ideal of and the following holds:
- 1.
- is finite if and only if is finite.
- 2.
- .
Proof.
It is not difficult to see that is an ideal of . Moreover, since is a surjective function, we have . Therefore, claims (1) and (2) can be proved using the same arguments of Lemma 1. □
We denote . Then, and is a finite set. In particular, . So, in order to compute the set , it suffices to find the set and use equality (2) of Proposition 3. In [23] (Algorithm, 16), the authors show a procedure to compute the set . We provide a different strategy to compute it.
Let be an affine semigroup and an ideal of S, with . We observe that, if and only if there exists and such that . Hence, we consider the matrix . For , let be the set of non-negative integer solutions of the non-homogeneous Diophantine linear system . Then, we have
Let be the set of non-negative integer solutions of the homogeneous Diophantine linear system and ) (≤ is the natural partial order in ). In particular, we have (see [20] (Theorem 5.2)). Let us denote . As a consequence, by the previous expression of , we obtain
For all , the set can be computed in GAP, using the packages numericalsgps and NormalizInterface, as in Example 2. Once the set is obtained, the following algorithm allows to check if is finite and, if so, to compute its elements.
Algorithm 3.
Let be an affine semigroup and an ideal of S, . To test if is finite and, if so, compute it; we can consider the following steps.
- 1.
- Consider the matrix , where each element is identified as a column vector.
- 2.
- For all , compute the (finite) set of minimal (with respect to the natural partial order in ) non-negative integer solutions of the non-homogeneous Diophantine linear system .
- 3.
- Set .
- 4.
- Set .
- 5.
- For all , check if there exists such that . If, for some , this condition does not hold, then is not finite.
- 6.
- If the previous condition holds, then compute .
- 7.
- Compute .
Considering the computation time, the main difference between Algorithms 2 and 3 concerns the computation of the set , against the time spent to test, for each element , if .
3.1. An Approach Using Commutative Algebra
We assume that and let K be a field. We consider the semigroup ring , where, if , then . If , , we define that is a monomial ideal of .
Let be an affine semigroup and I be an ideal of S. Then, if and only if , that is, is a monomial not belonging to . In particular, is a finite set if and only if the set is finite.
Let be a factorization of and we denote , for . We consider the polynomial ring and, as above, if , we denote . We consider the following surjective ring homomorphism:
We denote (called the defining ideal of S), and observe that for each . The map induces the following ring isomorphism:
We observe that the set is an ideal of . Moreover, we have the following set equality:
In fact, if , then . In particular, there exist such that with for all . We denote ; in particular, . Since is an isomorphism, we have , so and, in particular, . This means that .
Conversely, if , then where and , for each . Therefore, , that is, .
As a consequence of the previous set equality, we have the following isomorphism:
The isomorphism above is described by the following map:
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 .
Lemma 2.
In the framework introduced above, let and ⪯ be a monomial order on . Then, .
Proof.
Let be the isomorphism above. In particular, if is a monomial in , then . If , then, trivially, . Since is injective, we obtain , that is, . Conversely, let such that . This means that in . Since , there exists such that . Hence, for the monomial , we have . We suppose that . Then, there exists such that . So, , and . Therefore, . In particular, . Since is a monomial ideal and is a monomial, we obtain , a contradiction. So, we have . □
We consider the set and suppose that it is finite for some monomial order on . This property is known as is a zero dimensional ideal of . 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 be an ideal of a polynomial ring. We fix a monomial order ⪯ in . Then, the following are equivalent:
- (i)
- For each , there is some such that .
- (ii)
- Let G be a Gröbner basis for I. Then, for each , there is some such that for some .
- (iii)
- The set is finite.
- (iv)
- The K-vector space 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 .
Alternative Proof of Theorem 3.
In the following, we denote , with reference to the framework introduced in this section.
Necessity. Suppose that is finite. Then, the set is finite. So, by Lemma 2, considering the ideal and ⪯ a monomial order on , we have that is a finite set. We show that the set is finite. If we suppose it is not finite, since is finite, there exist , , such that . Hence, and this implies or , a contradiction. Therefore, the set is finite and by Theorem 4 we obtain that for all there exists an integer such that . Hence, there exists such that . So, having in mind the isomorphism in (1), we obtain . Since is a monomial ideal and is a monomial, we obtain , that is, . As a consequence, for all , we have .
Sufficiency. For every , we suppose that there exists such that . Then, . In particular, by the isomorphism in (1), we have . By Theorem 4, given a monomial order ⪯ on , we obtain that is a finite a set. As a consequence, the set is finite and, by Lemma 2, the set is finite. This means that is finite. □
Following the arguments developed in this section, we can reformulate Theorem 3 as follows.
Corollary 1.
Let be an affine semigroup, I an ideal of S. As before, let . Then, is finite if and only if is a zero dimensional ideal of .
For a different procedure to compute , we recall that in the case when is an ideal of a polynomial ring and ⪯ a monomial order in , then the set is a basis of 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 .
So, if is a basis of the K-vector space , , then .
Algorithm 4.
Given and an ideal I of S, with and , in order to compute , we can consider the following steps:
- 1.
- For each , compute a factorization of in S.
- 2.
- Set the polynomial rings , , with K a field, the map defined by and compute the ideal .
- 3.
- Set the ideal and compute a Gröbner basis G of with respect to a monomial order ⪯.
- 4.
- If G does not satisfy condition (ii) of Theorem 4, then is not finite and we can stop. Otherwise, compute a basis of the K-vector space .
- 5.
- Compute .
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 of the K-vector space correspond to the vectors in . 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 of in the second algorithm. Considering the computation time, the relevant difference concerns with the time spent to compute the set against the computation of a Gröbner basis of the ideal .
3.2. A Remark on Apéry Sets
Let be an affine semigroup and . The Apéry set of S with respect to X is defined as . 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 , so it is the complement in S of the ideal . In particular, we can state the following:
Corollary 2.
Let be an affine semigroup minimally generated by the set . If , then is finite if and only if, for all , there exists such that .
As a consequence, if , where is a set of extreme rays of S, then , , for all . It easily follows that there exists such that . Therefore, in the case E is a set of extreme rays of S, the set is finite. Moreover, referring to the previous arguments in SubSection 3.1, we can consider the ideal and, if is a basis of the K-vector space , then , 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
- Rosales, J.C.; García-Sánchez, P.A. Finitely Generated Commutative Monoids; Nova Science Publishers, Inc.: New York, NY, USA, 1999. [Google Scholar]
- Bruns, W.; Gubeladze, J. Polytopes, Rings, and K-Theory, Springer Monographs in Mathematics; Springer: Dordrecht, The Netherlands, 2009. [Google Scholar]
- 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]
- Rosales, J.C.; García-Sánchez, P.A. Numerical semigroups, Developments in Mathematics, 20; Springer: New York, NY, USA, 2009. [Google Scholar]
- Failla, G.; Peterson, C.; Utano, R. Algorithms and basic asymptotics for generalized numerical semigroups in d. Semigroup Forum 2016, 92, 460–473. [Google Scholar] [CrossRef]
- 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]
- Li, S. On the number of generalized numerical semigroups. arXiv 2023, arXiv:2212.13740. [Google Scholar]
- 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]
- García-García, J.I.; Ojeda, I.; Rosales, J.C.; Vigneron-Tenorio, A. On pseudo-Frobenius elements of submonoids of d. Collect. Math. 2020, 71, 189–204. [Google Scholar] [CrossRef]
- Bhardwaj, O.P.; Goel, K.; Sengupta, I. Affine semigroups of maximal projective dimension. Collect. Math. 2023, 74, 703–727. [Google Scholar] [CrossRef]
- García-García, J.I.; Marín-Aragón, D.; Sánchez-Loureiro, A.; Vigneron-Tenorio, A. Some properties of affine -semigroups. Results Math. 2024, 79, 52. [Google Scholar] [CrossRef]
- Cisto, C.; Failla, G.; Utano, R. On the generators of a generalized numerical semigroup. Analele Univ. Ovidius 2019, 27, 49–59. [Google Scholar] [CrossRef]
- Díaz-Ramírez, J.D.; García-García, J.I.; Marín-Aragón, D.; Vigneron-Tenorio, A. Characterizing affine -semigroups. Ric. Mat. 2022, 71, 283–296. [Google Scholar] [CrossRef]
- Cox, D.; Little, J.; O’Shea, D. Ideals, Varieties, and Algorithms, 4th ed.; Springer: New York, NY, USA, 2015. [Google Scholar]
- Rosales, J.C.; García-Sánchez, P.A. Nonnegative elements of subgroups of n. Linear Algebra Its Appl. 1998, 270, 351–357. [Google Scholar] [CrossRef]
- 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).
- 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).
- 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).
- 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).
- Pisón-Casares, P.; Vigneron-Tenorio, A. -solutions to linear systems over . Linear Algebra Its Appl. 2004, 384, 135–154. [Google Scholar] [CrossRef]
- Cisto, C.; Delgado, M.; García-Sánchez, P.A. Algorithms for generalized numerical semigroups. J. Algebra Appl. 2021, 20, 2150079. [Google Scholar] [CrossRef]
- 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]
- 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]
- Grayson, D.; Stillman, M. Macaulay2, a Software System for Research in Algebraic Geometry. Available online: http://www2.macaulay2.com (accessed on 24 June 2024).
- 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).
- 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]
- Jafari, R.; Yaghmaei, M. Type and conductor of simplicial affine semigroups. J. Pure Appl. Algebra 2022, 226, 106844. [Google Scholar] [CrossRef]
- 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. |
© 2024 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).