1. Introduction
Modern high-density data storage systems may fail to read the transmitted information individually as classical information transmission due to physical limitations. Motivated by this fact, Cassuto and Blaum [
1] developed symbol-pair codes for a
symbol-pair read channel whose outputs are overlapping pairs of symbols. Efficient decoding algorithms for cyclic codes over symbol-pair read channels were demonstrated in [
2,
3,
4].
Let
be an alphabet of a size
q with
. The
code over
of a length
n is a subset of
. The elements in
are called
codewords and will be referred to as vectors, denoted by bold letters. Let
,
be vectors in
. A vector
transmitted in the symbol-pair read channel reads
We refer to
as the
symbol-pair vector of
. The
symbol-pair distance between
is defined as the Hamming distance between
and
; in other words, we have
The
(minimum) symbol-pair distance of
is defined as follows:
For a code
with a symbol-pair distance
, the upper bound with a size of
, known as the
Singleton bound for symbol-pair codes [
5], is
A symbol-pair code whose parameters satisfy Equation (
1) with equality is called
maximum distance separable (MDS). As indicated by Equation (
1), MDS symbol-pair codes achieve the maximum possible symbol-pair distance for a given code length and size. This property establishes MDS symbol-pair codes as a class of optimal symbol-pair codes with superior pair error-correcting capability, since the symbol-pair distance directly determines the code’s ability to correct pair errors.
Constructing MDS symbol-pair codes is meaningful both in theory and practice. Research on the construction of MDS symbol-pair codes has been actively pursued in recent years [
6,
7,
8,
9,
10,
11]. Many MDS symbol-pair codes are obtained by analyzing the generator polynomials of constacyclic codes, as demonstrated in [
6,
10,
11,
12]. In [
13], Li constructed two classes of MDS symbol-pair codes with larger symbol-pair distances of 12 and 16. Subsequently, Dinh et al. [
14,
15] constructed some almost MDS symbol-pair codes with larger symbol-pair distances of 7, 8, and 9.
The class of constacyclic codes has practical applications, as constacyclic codes possess a cyclic structure that supports efficient encoding and decoding algorithms using shift registers. An important research topic is to determine the symbol-pair distances of constacyclic codes and identify all MDS symbol-pair constacyclic codes. In [
8], Dinh et al. characterized the symbol-pair distances of all constacyclic codes of a length
over
and obtain all MDS symbol-pair codes of prime power lengths. These results have been extended to other specific lengths, such as
and
([
9,
16,
17]). However, it remains challenging to investigate the symbol-pair distances of repeated-root constacyclic codes for general lengths
, where
n is an arbitrary positive integer which is coprime to
p.
Codes over finite rings have attracted significant attention due to the fact that many important yet seemingly nonlinear codes over finite fields are actually closely related to linear codes over finite rings. The class of finite rings of the form
and even the general form
have been used as alphabets for constacyclic codes. The research on symbol-pair distances of repeated-root constacyclic codes over the finite chain rings has attracted well-deserved attention. For example, progress has been achieved in studying constacyclic codes of a length
over
[
7,
18],
[
19,
20],
[
21], finite commutative chain rings [
22], and the constacyclic codes of a length
[
23],
[
24] over
. The characterization of symbol-pair distances of repeated-root constacyclic codes over finite rings has been resolved for special lengths. However, there is a scarcity of results regarding general lengths. In this paper, we aim to investigate the general lengths of a particular class of repeated-root constacyclic codes.
In this paper, we consider certain constacyclic codes of a length over finite fields and finite chain rings , where p is a prime variable, m is a positive integer, and . Let be a nonzero element in such that is irreducible over . Let and be an element in . We provide a complete characterization of the symbol-pair distances of -constacyclic codes over and -constacyclic codes over . Furthermore, all MDS symbol-pair -constacyclic codes over and all the MDS symbol-pair -constacyclic codes over are determined. Additionally, three of these classes of MDS symbol-pair constacyclic codes exhibit new parameters with large minimum distances.
The remainder of this paper is organized as follows. In
Section 2, we introduce some preliminaries and notations. In
Section 3, we characterize the symbol-pair distances of all
-constacyclic codes of a length
over
and identify all the MDS symbol-pair
-constacyclic codes of a length
among these codes. In
Section 4, we determine the symbol-pair distances of certain
-constacyclic codes of a length
over
and present all the MDS symbol-pair codes among these codes.
2. Preliminaries
In this section, we introduce the necessary notations and preliminary results that will be utilized in subsequent sections. Let
R be a finite commutative ring with identity. A code
over
R is called
linear if
is a submodule of
. The
symbol-pair weight of a vector
in
is the symbol-pair distance between
and the all-zero vector
of
, denoted by
. The symbol-pair distance of a linear code is determined by the minimum symbol-pair weight among its nonzero codewords. For a unit
in
R, the
-constacyclic shift
on
is defined as follows:
A linear code is said to be -constacyclic if . Each codeword in is customarily identified with its polynomial representation in . In the quotient ring , the polynomial corresponds to performing a -constacyclic shift on the codeword . The subsequent theorem elucidates the algebraic properties of constacyclic codes.
Proposition 1 ([
25]).
A linear code of a length n over R is a λ-constacyclic code if and only if is an ideal of the quotient ring . In this paper, we focus on the constacyclic codes of a length , which are ideals in the quotient ring . Assume that R is a Frobenius ring. Then, for any unit , there exists a unit such that . Consequently, we have the factorization . Throughout this paper, we assume that the polynomial is irreducible over R. The following proposition establishes the irreducibility criterion for binomials over finite fields.
Proposition 2 ([
26]).
Let be an integer and . Then, the binomial is irreducible in if and only if the following two conditions are satisfied:- (1)
Each prime factor of n divides the order e of λ in but not ;
- (2)
if .
According to Proposition 2, if n satisfies condition (1) of Proposition 2, and all prime factors of n divide , then there exists such that is irreducible over .
2.1. Constacyclic Codes over
Let be a nonzero element in . In this subsection, we present results for the properties of -constacyclic codes of a length over . We denote with the quotient ring . The structures and minimum (Hamming) distances of these codes are detailed in the following theorem.
Theorem 1 (Theorem 3.6 from [
27]).
Let be a finite field and n be a positive integer with . Suppose that is irreducible over for and . Then, the α-constacyclic codes of a length over are of the form , where , and the minimum Hamming distance of is given by For simplicity, we denote the -constacyclic codes of a length with the generator polynomial as , where . The following lemma provides a formula to compute the Hamming weight of the codeword in .
Lemma 1 (Lemma 1 from [
28]).
For any nonnegative integer let , where , which means that is the p-adic expansion of i. Then, it follows that The subsequent lemma establishes the relationship between the symbol-pair distance and the Hamming distance.
Lemma 2 (Theorem 2 from [
1]).
For two codewords in a code of a length n with , define the set . Let be a minimal partition of the set to subsets of consecutive indices (indices may wrap around modulo n). Then, it follows that To calculate the symbol-pair distances, we will employ the concept of the
coefficient weight of polynomials initially introduced by Dinh et al. in [
29]. For a polynomial
of a degree
n, the coefficient weight of
f, denoted by
, is
Intuitively,
is the smallest distance among exponents of nonzero terms of
. According to [
8], if the conditions
and
are satisfied, then the following equation holds:
2.2. Constacyclic Codes over
Let be a unit in . This subsection recalls the structures of -constacyclic codes of a length over . We denote with the quotient ring . Note that the structures of the ideals of differ significantly depending on whether is zero or nonzero. The following two lemmas describe the ideals of in the cases where and .
Lemma 3 (Theorem 3.3 of [
30]).
Let be an irreducible polynomial in , , and β be a nonzero element in . Then, the ring is a chain ring whose ideal chain is as follows:In other words, -constacyclic codes of a length over are precisely the ideals of , where . The number of codewords of -constacyclic code is . In particular, .
Lemma 4 (Corollary 3.10 of [
31]).
Let be an irreducible polynomial in , , and . Then, all α-constacyclic codes over of a length ( all ideals of the ring ) are given by the following three types:(1) , where , with .
(2) , where , , and either is zero or is a unit in , with .
(3) , where , , , and either is zero or is a unit in , with .
Note that is a subfield of . The subfield subcode of codes over is defined as the set of codewords whose components belong to . We denote the subfield subcode of by and its symbol-pair distance by . A polynomial over can be expressed as , where . It is observed that if and only if , with , , and being the coefficients of in polynomials , and , respectively. Consequently, it follows that .
3. Symbol-Pair Distances of Repeated-Root Constacyclic Codes over
We denote
as the
-constacyclic codes of a length
over
, where
. In this section, we provide a comprehensive characterization of the symbol-pair distances for the
-constacyclic codes
. Specifically, we focus on the case where
. The analysis for the scenario where
is distinct and can be found in [
8].
We examine the symbol-pair distance of
for varying values of
i. For the trivial cases where
and
, it is observed that
and
In order to analyze the symbol-pair distances of
for
, we partition the set
into
parts such that
If
, then
, which implies that
. To determine the symbol-pair distances of
for
, where
and
, we establish an upper bound
U on the symbol-pair distance of
and a lower bound
L on the symbol-pair distance of
. Given that
, it follows that
If , then the symbol-pair distances of are determined for all i in the interval . The following lemma shows the corresponding upper bound.
Lemma 5. Let be integers such that , , and . Then, .
The lower bounds of the symbol-pair distances of were more complicated, and we analyzed them in four subcases:
- (1)
, ;
- (2)
, ;
- (3)
, ;
- (4)
, .
We started with the first case of and .
Lemma 6. The pair distance of is greater than or equal to four.
Proof. We verify that a codeword with a symbol-pair weight of two must be of the form , which is invertible in . Hence, there is no codeword in with a symbol-pair weight of two. Note that a codeword with a symbol-pair weight of three has the form , where . It follows that divides , and hence divides , which is impossible since the degree of is greater than that of . Hence there is no codeword in with a symbol-pair weight of three. Therefore, we obtain . □
The following lemma provides the lower bound of the minimum symbol-pair distance of in the case where and .
Lemma 7. Let be integers such that and . Then, .
Proof. Let
be any nonzero codeword in
. Then, there is a nonzero element
in
such that
with
. Let
. Then,
,
, and
We discuss the symbol-pair weight of in the following three cases.
Case 1: If
, then
and
Under Equation (
2), we have
According to Lemma 6, , which deduces that .
Case 2: If
and
, then there is an integer
such that
, where
. Clearly, this means that
Similar to the proof in Case 1, we have .
Case 3: If
and
, then
is an element in
of the ring
(i.e., a codeword of an
-constacyclic code of a length
over
). According to Lemma 6,
, which implies that
cannot be in the form
, where
. Hence,
. When
, we have
When , we assume that
where
and
. Let
be a set of the exponents of nonzero terms of
. Then, the minimal partition of
into subsets of consecutive indices may be the following three cases.
If
, then
If
, then
Based on the above three cases, we conclude that . This completes the proof. □
The following lemma considers the case where and .
Lemma 8. Let be integers such that , , and . Then, .
Proof. Let
be any nonzero codeword in
. Then, there is a nonzero element
in
such that
with
. Let
. Then,
,
, and
Suppose that is the set of exponents of nonzero terms of . For an integer i, let be a set of integers congruent to i modulo (i.e., ). We consider two cases where and .
Case 1 has
. We assume that
, where
. Thus, we have
It follows that
, and hence
Case 2 has
. We only demonstrate that when
with
, the rest is similar. Let
,
, and
, where
and
. Then, we have
Let
be a set of the exponents of nonzero terms of
. Then, we have
where
for
. According to Theorem 1,
, and hence
. Since
,
is at least partitioned into
subsets of consecutive indices. Under Theorem 2, we have
Therefore, we have proven that holds in all cases; that is, . □
The following lemma is about the case of and .
Lemma 9. Let be integers such that and . Then, .
Proof. Let be any nonzero codeword in . Then, there is a nonzero element in such that with . Suppose that is a set of the exponents of nonzero terms of . For an integer i, let be a set of integers congruent to i modulo n (i.e., ). We consider the set in two cases.
Case 1 has
. We may assume that
, where
. Then, we have
It follows that
, and hence
Case 2 has
. We may assume that
, where
. Let
,
, and
, where
and
. Then, we have
Since
, we have
which implies that
. When combining the two cases discussed above, it follows that
. □
By integrating the upper bound established in Lemma 5 with the lower bounds derived in Lemmas 6, 7, 8, and 9, we can fully determine the symbol-pair distances of -constacyclic codes of a length over . To ensure the completeness of this theorem, we provide the symbol-pair distances for both the case where and the case where .
Theorem 2. Let be a nonzero element in and . Let for be a given α-constacyclic code of a length over . Then, the symbol-pair distance is completely determined as follows:
- (1)
When , and .
- (2)
When and , the following is true: - (3)
When and , the following is true:where , , and .
Example 1. We present several examples of symbol-pair α-constacyclic codes of a length over , where α is set to three and eight, n is set to three and four, and s is set to one and two. We denote k and as the dimension and symbol-pair distance of a symbol-pair α-constacyclic code, respectively. In Table 1, we calculate the symbol-pair distances for these codes using Theorem 2. By leveraging the results for the symbol-pair distances from the preceding analysis, we provide a comprehensive characterization of all MDS symbol-pair codes when is irreducible over . While it is important to note that these MDS symbol-pair codes have been previously documented in the existing literature, our work offers a thorough examination within the framework of repeated-root constacyclic codes of arbitrary lengths under the irreducibility condition.
Theorem 3. Let be a nonzero element of and . Assume that is irreducible over . All nontrivial MDS symbol-pair α-constacyclic codes of a length over are summarized in Table 2. Proof. When
is irreducible over
, the
-constacyclic codes of a length
over
are
, where
. Note that
, and the Singleton bound for symbol-pair constacyclic codes implies that
(i.e.,
for
). Therefore,
is an MDS symbol-pair code if and only if
If
, then let
with
,
, and
. According to Theorem 2, we have
, and hence
Consequently, in this scenario, no additional MDS symbol-pair -constacyclic code exists.
If
n equals one or two, then by applying Theorem 2, it is possible to determine all values of
i for which the aforementioned Equation (
3) holds. These values are summarized in
Table 2. □
4. Symbol-Pair Distances of Repeated-Root Constacyclic Codes over
Let with , and define . In this section, we investigate the relationship between the symbol-pair distances of -constacyclic codes of a length over and the symbol-pair distances of -constacyclic codes of a length over , where , n is a positive integer which is coprime to p, and is irreducible over . We examine the symbol-pair distances for both cases when and , as detailed in the subsequent four theorems.
Theorem 4. Let be a nonzero element in satisfying that is irreducible over . Denote . Let β be a nonzero element in . Let be an -constacyclic code of a length over (, for ). The symbol-pair distance of is Proof. When , we have , and the symbol-pair weight of is two. When combined with , we find that the symbol-pair distance of is two.
When
, we have
which implies that the codewords in the code
over
are precisely the codewords in the code
over
multiplied by
u. Consequently, the symbol-pair distance of
is equal to that of
. □
The symbol-pair distance of becomes more intricate when . We analyze this scenario in three distinct cases corresponding to the three types of -constacyclic codes described in Lemma 4.
Theorem 5. Let be an α-constacyclic code of a length over with type I in Lemma 4 (, for ). Then, .
Proof. Notice that
, and hence
Next, for any nonzero codeword
in
, there are
in
such that
By combining Equations (
4) and (
5), we obtain the symbol-pair distance of
. □
Theorem 6. Let be an α-constacyclic code of a length over with type II in Lemma 4 (, , where , and either is zero or is a unit in ). Then, it follows that Proof. If
, then
, and hence
Assume that
is a unit in
. Since
it follows that
and hence
For any nonzero codeword
in
, there are
,
in
such that
If
, let
, and then
where
If
, then
Since
, we have
According to Equations (
6), (
7), and (
8), we have
. □
Remark 1. Our results for the symbol-pair distances of constacyclic codes over generalize the results of [18], which focus on the constacyclic codes under the condition of . Remark 2. According to Theorem 6, when is a unit, the symbol-pair distance of the constacyclic code with is given by . This finding contradicts the conclusions in [18], which claimed that the symbol-pair distance is equal to . To validate our findings, we provide an example demonstrating the correctness of our results. Consider a cyclic code with a length of nine over the finite ring , where . According to Theorem 12 in [18], it can be calculated that However, there exists a codeword . It is verified that This implies that the symbol-pair distance of is at most four, which contradicts the conclusion derived from Theorem 12 in [18]. In fact, according to Theorem 6, we have The following theorem shows the symbol-pair distances of the constacyclic codes corresponding to type III in Lemma 4. The proof follows a similar approach to that of the previous theorem and has therefore been omitted here.
Theorem 7. Let be an α-constacyclic code of a length over with type III in Lemma 4 (, , where , , , and either is zero or is a unit in ). Then, it follows that The formulas for symbol-pair distances of
-constacyclic codes of a length
over
are summarized in
Table 3.
Example 2. We present several examples of symbol-pair -constacyclic codes with a length of 507 over , where is set to and 3. In Table 4, we calculate the symbol-pair distances for these codes. In the following, we utilize the symbol-pair distances of -constacyclic codes of a length over as established in the previous subsection to derive MDS symbol-pair codes. Specifically, we first investigated the MDS symbol-pair -constacyclic codes under the condition that .
Theorem 8. Let be nonzero elements in . Define . Suppose that is irreducible over . Let be an -constacyclic code of a length over , where . Then, is an MDS symbol-pair code if and only if .
Proof. The Singleton bound shows that
which is equivalent to
Therefore,
is an MDS symbol-pair code if and only if
If
, then we have
under Theorem 4. According to Equation (
9), we obtain
. If
, then
. By applying the Singleton bound to the constacyclic code
, we obtain
By reformulating Equation (
10) we have
which implies no MDS symbol-pair constacyclic code when
i is in the range of
. □
The following theorem addresses the remaining case where , leading to the discovery of three new classes of MDS symbol-pair -constacyclic codes over .
Theorem 9. Let be a nonzero element in and . There are three classes of MDS symbol-pair α-constacyclic codes of a length over , and they are as follows:
- (1)
, where is either zero or a unit in ;
- (2)
, where is either zero or a unit in ;
- (3)
, where , , , and is either zero or a unit in .
Proof. (1) According to Lemma 4, the size of
is
. According to Theorems 5 and 7, the symbol-pair distance of
is four. It achieves the Singleton bound
with equality. Therefore,
is an MDS code.
(2) Under Lemma 4, the size of
is
. According to Theorems 5 and 6, the symbol-pair distance of
is
. It achieves the Singleton bound
with equality. Therefore,
is an MDS code.
(3) According to Lemma 4, the size of
is
. According to Theorems 5, 6, and 7, the symbol-pair distance of
is
. It achieves the Singleton bound
with equality. Therefore,
is an MDS code. □
Remark 3. In [7], Dinh et al. introduced two additional classes of MDS symbol-pair codes with the parameters and . The first α-constacyclic code of a length over iswhere . According to Remark 2, the symbol-pair distance of is , rather than . Consequently, this code does not satisfy the MDS property. The second α-constacyclic code of a length over iswhere . According to 2, the symbol-pair distance of is , rather than . Therefore, this code also does not satisfy the MDS property. According to Theorem 9, the MDS symbol-pair
-constacyclic codes of a length
over
are listed in
Table 5. When the polynomial
is irreducible over
, we draw the following conclusion. The proof, which follows a similar approach to that of Theorem 3, has been omitted for brevity.
Theorem 10. Let be a nonzero element of and . Let β be an element of . All nontrivial MDS symbol-pair -constacyclic codes of a length over for when is irreducible over are presented in Table 5. Remark 4. Table 5 presents all the MDS symbol-pair -constacyclic codes over . Notice that the codes considered in [18] are a subcase of the codes we considered in this paper, which confine . Compared with the known results, we obtained three classes of MDS symbol-pair -constacyclic codes with new parameters, which are exhibited in the above table.