Abstract
This paper develops a structural and constructive theory of right generalized quasi-polycyclic (GQPC) codes over the finite chain ring with , extending the existing field-based GQPC framework to a ring-theoretic setting. Right GQPC codes over R are modeled as -submodules of direct products of polycyclic ambient algebras , induced by vectors , thereby unifying right quasi-polycyclic and generalized quasi-cyclic codes over Under explicit and verifiable factorization conditions on the defining polynomials, we establish a Chinese Remainder Theorem decomposition that reduces right GQPC codes to collections of shorter codes over finite chain-ring extensions of R. This decomposition yields a characterization of ρ-generator right GQPC codes and leads to a canonical normalized generating set with an upper-triangular structure. As a consequence, we obtain an explicit rank formula in terms of the diagonal generator polynomials, together with an effective normalization algorithm. To demonstrate the coding-theoretic impact of the framework, we combine these structural results with a distance-compatible Gray map and construct new q-ary linear codes from 2-generator right GQPC codes of index 2 over R. For and , the resulting Gray images attain optimal or near-optimal parameters with respect to the best-known bounds, confirming that right GQPC codes over constitute a robust and effective ring-based source of high-quality linear codes.
MSC:
94B05; 94B15; 94B60
1. Introduction
Classical cyclic, constacyclic, and quasi-cyclic (QC) codes over a finite field admit a well-established algebraic description in terms of ideals and submodules of polynomial quotient rings such as and their constacyclic analog; see, for example, ref. [1] and the quasi-twisted framework in [2]. Polycyclic and quasi-polycyclic (QPC) codes extend these classical families by replacing the cyclic shift with a more general polycyclic shift induced by an arbitrary vector or, equivalently, by a polynomial constraint [3,4,5]. This viewpoint provides a unified framework encompassing cyclic, constacyclic, and several other shift-invariant code families.
Building on this idea, generalized quasi-cyclic (GQC) and generalized quasi-polycyclic (GQPC) codes have been introduced as flexible algebraic constructions that unify many classical codes while offering additional degrees of freedom for code design. Over finite fields, these families have proved particularly effective for the systematic construction of good and optimal linear codes [6,7,8,9]. In particular, right GQPC codes over admit a rich module-theoretic structure, normalized generating sets, and explicit dimension formulas, which have been successfully combined with computer search techniques to produce new record-breaking codes [9].
In parallel with these developments over fields, linear codes over finite rings have attracted considerable attention, motivated in part by the observation that many high-quality nonbinary linear codes arise naturally as Gray images of structured ring-linear codes. Among the most studied ambient rings in this context are finite chain and semi-local rings that admit both a tractable ideal structure and distance-compatible Gray maps. A particularly important example is the finite chain ring
which is a commutative local ring of cardinality , with maximal ideal and residue field . Codes over R exhibit a rich algebraic structure and, via suitable -linear Gray maps, give rise to families of -linear codes with excellent parameters. This has led to extensive work on cyclic, constacyclic, polycyclic, and generalized quasi-cyclic type codes over R and related rings; see, for instance, refs. [10,11,12] and the references therein.
What distinguishes right GQPC codes from these classical families is the nature of their defining shift structure. Cyclic, constacyclic, and quasi-cyclic codes over rings are each characterized by invariance under a single shift operator. Right GQPC codes, by contrast, are defined by multiple independent polycyclic constraints encoded in distinct polynomials . This structural difference has two immediate consequences. First, the ambient space becomes a product ring , which admits a finer CRT decomposition than the single-block settings typical of classical constructions. Second, the existence of numerous constraints provides enhanced design flexibility: each block can be customized separately while maintaining the overall algebraic consistency of the code, potentially resulting in parameter combinations unattainable with single-shift families.
Despite these advances, a clear gap remains between the field-based theory of right GQPC codes and the ring-based literature. While quasi-polycyclic and skew quasi-polycyclic codes over finite chain rings have been studied in [8,13], and generalized quasi-cyclic codes over have been analyzed in [10], a systematic treatment of right generalized quasi-polycyclic codes directly over the chain ring R, parallel to the field-based theory of [9], does not appear to be available. To the best of our knowledge, right GQPC codes have previously been investigated only over finite fields, and no comprehensive ring-theoretic framework has been developed for this class of codes over
Beyond their theoretical significance, families of quasi-polycyclic codes have practical relevance in communication systems, data storage, and quantum error-correcting code constructions [3,14]. Such structured algebraic frameworks enable systematic parameter adjustment and efficient encoding, while Gray map constructions produce q-ary linear codes with competitive parameters suitable for these applications.
The purpose of this paper is to address this gap by initiating a systematic study of right generalized quasi-polycyclic codes over the chain ring R and by developing a ring-theoretic framework that parallels and extends the existing field-based theory. We model right GQPC codes of block length (e1, …, eℓ) and index ℓ as -submodules of the ambient module
where the polynomials encode right polycyclic shifts induced by vectors . This ambient-module approach extends to the chain-ring setting, the methods used for polycyclic and GQPC codes over finite fields [4,5,9].
Our first main contribution is a structural characterization of right generalized quasi-polycyclic (GQPC) codes over R as -submodules of the ambient module . Under mild and verifiable factorization hypotheses on the defining polynomials , we establish a Chinese Remainder Theorem (CRT) decomposition of and, consequently, of any right GQPC code into a direct sum of constituent codes over finite chain-ring extensions of R. This result extends to the chain-ring setting, the CRT-based decompositions known for polycyclic and GQC/GQPC codes over finite fields and certain classes of rings [4,6,9,10]. Within this framework, we characterize -generator right GQPC codes in terms of their constituent modules and show that the minimal number of polynomial generators coincides with the maximum rank among the constituents.
A second contribution is the introduction of normalized generating sets for right GQPC codes over R, given by upper-triangular families of generator polynomials satisfying natural divisibility and degree conditions. We provide an explicit normalization procedure that transforms an arbitrary generating set into a normalized one, thereby extending the normalized form theory for GQC codes developed in [7,9] to the present ring-theoretic setting. This yields a transparent and explicit rank formula for right GQPC codes in terms of the degrees of the diagonal generator polynomials. When combined with a distance-compatible Gray map , these results lead to precise dimension formulas for the associated -linear codes.
Finally, we illustrate the theory by constructing explicit families of 2-generator right GQPC codes of index 2 over R. By combining the structural results with systematic computer searches using Magma [15], we obtain Gray images whose parameters are optimal or near-optimal with respect to the best-known bounds reported in [16]. These examples demonstrate that right GQPC codes over constitute a genuinely new and effective ring-based source of high-quality linear codes, extending constructions that were previously available only in the field setting.
The paper is organized as follows. Section 2 recalls basic facts on the chain ring R, right polycyclic codes over R, and Gray maps. Section 3 introduces right GQPC codes over R and establishes the CRT decomposition into constituent codes. Section 4 develops normalized generating sets and derives rank and dimension formulas. Section 5 presents explicit constructions and optimal or near-optimal Gray-image codes.
2. Preliminaries
Throughout the paper, let p be a prime, let with , and denote by the finite field with q elements. We work over the commutative ring
The ring R is a finite commutative local chain ring with maximal ideal , nilpotency index 2, and residue field . Its group of units is given by
The lattice of ideals of R consists precisely of
and hence R is a principal ideal ring. Moreover, R is a finite Frobenius ring and therefore admits a nondegenerate associative bilinear form. As a consequence, duality theory and MacWilliams-type identities for linear codes over R closely parallel those over finite fields.
As an -vector space, R has dimension 2 with basis . Thus is a free -module of rank and a free R-module of rank n. This double module structure underlies the construction of Gray maps and allows one to systematically relate R-linear codes to -linear codes, a mechanism widely exploited for cyclic, polycyclic, and GQC-type codes over R; see, for instance, refs. [10,11].
A linear code of length n over R is an R-submodule . Such a code admits a generator matrix , where denotes the R-rank of C. Every element can be written uniquely as with . We employ the standard Gray map
extended coordinatewise to an -linear bijection . For a code , we define its Gray image by
Distances on are measured via the Gray map. For , define its weight by
and for a nonzero code C,
With this convention, is an isometry from onto . Consequently, the minimum distance of C coincides with that of its Gray image , allowing one to transfer distance bounds directly between the ring and field settings [17,18,19].
Let and let with . Define the right polycyclic shift induced by as the map
where denotes componentwise multiplication of the scalar with the vector .
An R-linear code is called a right polycyclic (RPC) code induced by α if for all .
As in the field case, to the vector we associate the polynomial
We then consider the quotient ring
The map
is an R-module isomorphism. Under this identification, multiplication by x in corresponds exactly to the right polycyclic shift , that is,
Hence, an R-linear code is an RPC code induced by if and only if is an -submodule, equivalently a left ideal, of .
Throughout the paper, we assume that the polynomial is monic and regular in , that is, it is not a zero divisor. Under this hypothesis, is a finite Frobenius ring. We further restrict to the case where is a principal ideal ring. Under these assumptions, every RPC code in is generated by a single polynomial satisfying
exactly as in the polycyclic theory over finite fields and over more general finite chain rings; see, for example, refs. [4,8,11].
3. Algebraic Structures of GQPC Codes over
In this section, we extend generalized quasi-polycyclic (GQPC) codes from the field setting to the finite chain ring with . We adopt an ambient-module viewpoint: right GQPC codes are precisely -submodules of a direct product of polycyclic ambient algebras . Under suitable factorization hypotheses on the defining polynomials, we establish a Chinese remainder theorem (CRT) decomposition into constituent codes over finite chain-ring extensions of R. This decomposition is the key tool underlying generator bounds, rank formulas, and the constructive examples presented in later sections.
Let be block lengths and set
For each , fix a vector with . Associate the polynomial
The i-th ambient algebra is
We consider the direct product
which is naturally an -module under componentwise multiplication:
We now formalize the polynomial model for block vectors. For each i, define the R-linear map
Then define
Lemma 1.
The map M is an isomorphism of R-modules. Moreover, for each i, every element of has a unique representative in of degree less than , and thus is bijective.
Proof.
Since is monic of degree , every coset in has a unique representative . Thus is surjective and injective. The map is R-linear by construction. Hence is an R-module isomorphism. Taking the product over i yields the claim for M. □
For each i, define the right polycyclic shift induced by by
where .
Lemma 2.
For each i, multiplication by x in the quotient ring corresponds to the right polycyclic shift on . More precisely, for any ,
Proof.
Write . In we have the relation modulo . Hence
Collecting coefficients of gives exactly the coordinate vector , proving the identity. □
Definition 1.
A linear code is called a right generalized quasi-polycyclic (GQPC) code over R with block lengths (index ℓ) if it is invariant under the blockwise right polycyclic shift, i.e., for every ,
The next result is the fundamental equivalence between the shift definition and the polynomial -module model.
Proposition 1.
A linear code is a right GQPC code if and only if is an -submodule. Consequently, right GQPC codes over R are in bijection with -submodules of .
Proof.
Assume C is right GQPC. For , invariance implies that the shifted block vector . By Lemma 2, . Hence is closed under multiplication by x. Since is an R-submodule and is generated over R by x, it follows that is an -submodule of .
Conversely, if is an -submodule, then for all . Applying and Lemma 2 shows the blockwise shift of c lies in C. Thus C is right GQPC. □
Remark 1.
The definition contains several familiar families: (i) if then right GQPC codes coincide with right polycyclic (RPC) codes of length ; (ii) if for all i, then and we recover generalized quasi-cyclic (GQC) codes over R; (iii) if , then one obtains right quasi-polycyclic (QPC) codes of index ℓ.
We now turn to the CRT decomposition. Since R is a chain ring with maximal ideal , we write for coefficientwise reduction modulo u. A typical sufficient condition enabling CRT methods over R is that the reductions are squarefree, in which case coprime factorizations lift from to .
Lemma 3.
Let be monic and suppose in with . Then there exist monic polynomials such that and , . Moreover, a and b are coprime in .
Proof.
Since , this is the standard Hensel lifting step for the extension . Coprimeness of and yields in . Lifting to gives . A correction term in adjusts the product to match f, and the uniqueness of the correction modulo u follows from . Coprimeness in follows because any common divisor would reduce to a common divisor of and . □
To state the decomposition uniformly across blocks, we impose the following factorization hypothesis, which is the natural analog of the “common basic factor set” assumption used for GQC/GQPC codes over fields.
From now on, we work under the following assumptions.
H1.
Each defining polynomial is monic and regular, so that is a finite Frobenius ring.
H2.
Each ambient ring is a principal ideal ring. Consequently, every right polycyclic (RPC) code over is generated by a single polynomial divisor of .
H3.
The reductions are squarefree and admit a common basic factor set , where the are pairwise coprime monic polynomials in lifting irreducible factors over .
These hypotheses ensure that the Chinese remainder decomposition and normalized generating set theory developed below apply uniformly across all blocks.
Remark 2.
By (H3), there exist monic polynomials which are pairwise coprime in such that for each , we assume that
Equivalently, each either divides (then ) or does not occur (then ), and the family records all pairwise-coprime basic factors appearing among the ’s.
For each j, define the finite R-algebra
For each pair , define
Under Remark 2, CRT yields an explicit decomposition of each block ambient ring , and hence of .
Proposition 2.
Under Remark 2, for each i there is an -module isomorphism
and consequently an -module isomorphism
Proof.
Proposition 3.
Let be monic and set . Let be the reduction of modulo . Assume that is regular in (i.e., not a zero divisor). Then the following are equivalent:
- (i)
- Γ is a finite chain ring with maximal ideal and residue field .
- (ii)
- is irreducible in .
- (iii)
- is basic irreducible, i.e., is irreducible, and is a Hensel lift of from to .
In this case, Γ is a free R-module of rank , and
Proof.
Since g is monic, is a finite R-algebra and . If is irreducible, then is a field, hence is a field. Therefore is local with maximal ideal , because the only nonunits are precisely the elements whose residue modulo u is zero. Since in R, we have , so the ideals form the chain
hence is a finite chain ring. This proves , and also gives the residue field .
Conversely, if is a chain ring with maximal ideal , then the residue ring must be a field, hence is a field, so is irreducible. Thus . The equivalence is by definition of basic irreducibility. Finally, the R-basis of yields the claimed rank and size formulas. □
Theorem 1.
Assume Remark 2 and let
be the CRT isomorphism in (26). Equip with the Euclidean inner product and transport it to via the identification M. For a code , let denote its Euclidean dual. If is a right GQPC code and
is its constituent decomposition as in Proposition 4, then
where denotes the Euclidean dual of inside with respect to the induced componentwise inner product. In particular,
as R-modules, and is again a right GQPC code.
Proof.
Via the CRT idempotents , the ambient module decomposes as a direct sum of R-modules
and under the isomorphism , each summand is identified with .
The Euclidean inner product on , transported to , is the standard coordinatewise dot product across all blocks. Consequently, for and with , we have
where each is the induced Euclidean inner product on .
Now write with . Let . Then if and only if
with . This holds if and only if for all and all j, that is, for each j.
Therefore,
and applying yields (29).
Finally, since each is stable under the induced -action, is an -submodule of the CRT ambient module. By Proposition 1, this implies that is again a right GQPC code. □
Corollary 1.
Under the hypotheses of Theorem 1, we have
for each j. In particular, if is free over , then
and analogous formulas hold when some components vanish.
It is useful (and later essential) to record the CRT idempotents explicitly. For fixed i, set
Since , there exist polynomials satisfying
Define the CRT idempotent in by
Lemma 4.
For each fixed i, the elements (with ) satisfy
Moreover, multiplication by is the projection onto the CRT component in (25).
Proof.
From (31), we have and for (since then ). Thus, under the CRT isomorphism , maps to the standard basis vector with a 1 in the j-th component and 0 elsewhere. The stated idempotent identities follow immediately from this description. □
Define global idempotents in by
with the convention when . Then , for , and in . In particular,
We now decompose GQPC codes into constituents.
Proposition 4.
Let be a right GQPC code over R. Under Remark 2, define
Then each is an -submodule (equivalently, a -submodule), and
as -modules. The submodules are called the constituent codes of C.
Proof.
Since is an -module isomorphism, is an -submodule of the ambient direct sum. Each summand is stable under the -action, so the intersection in (35) is an -submodule.
To prove (36), note first that is automatic. Conversely, let with . Since , choose with having j-component equal to . Using the global idempotents (transported through ), we have
and its j-th component equals . Therefore , proving the reverse inclusion. Directness follows from orthogonality of the . □
This decomposition immediately yields cardinality and rank information. Since R is finite and all constituents are finite R-modules, we obtain multiplicativity of sizes.
Corollary 2.
Under Remark 2, for any right GQPC code with constituents ,
In particular, if each is a free -module of rank , then
Proof.
The first statement follows from the direct sum decomposition . If as a -module, then , and multiplying over j gives the claimed formula. □
We now discuss generator numbers. Let . By Proposition 1, a right GQPC code is a B-submodule. Define to be the minimal integer such that
Lemma 5.
If as in Proposition 4, then
Proof.
If C is generated by r elements over B, then each image under the projection onto a constituent is generated by at most r elements, hence for all j, giving .
For the reverse inequality, let . For each j pick B-generators of (padding with zeros if needed) and define . Then any element of is a B-linear combination of the , so , hence . □
The crucial point is that the B-action on the j-th constituent factors through the quotient . Thus, generator counts should be measured over , not over R.
Lemma 6.
For each j, the B-action on factors through the canonical surjection . Consequently, for any B-submodule ,
where denotes the minimal number of generators of D as a -module.
Proof.
In each nonzero component, multiplication by is computed modulo , hence if then f acts as zero. Therefore, the action depends only on the class of f in . Thus, the categories of B-submodules and -submodules coincide, and generator numbers agree. □
Theorem 2.
Let be a right GQPC code over R satisfying Remark 2, and let be its constituent codes. Assume each is a free -module of rank . Then the minimal number of polynomial generators of C satisfies
In particular, C is a 1-generator right GQPC code if and only if for all j.
Proof.
By Lemma 5, By Lemma 6, . If , then needs exactly generators as a -module, so . Substituting yields (38). □
Remark 3.
When is regular, is a finite chain-ring extension of R and is a free R-module of rank . Hence if is free of rank over , then is free over R of rank , and
Thus, the generator count is governed by constituent ranks over the extension rings , exactly mirroring the field case where constituents live over extension fields.
Example 1.
Let and Take , , and choose , so that
Over we have the factorization
and both quadratic factors are irreducible in . Let
viewed in . Then are basic irreducible (hence regular), and
Let be the right GQPC code whose CRT decomposition is
Then, is free of -rank 1 and has rank 0. Hence by Theorem 2,
so C is a 1-generator right GQPC code. Moreover, by Corollary 2,
Finally, Theorem 1 gives
so the dual code decomposes componentwise as predicted.
4. Existence of Normalized Generating Sets
We now show that every right GQPC code with finite R-rank admits a normalized generating set. The construction proceeds block by block using the fact that each blockwise RPC code is principal.
4.1. Normalized Generating Sets
Let be a right GQPC code of block length and index ℓ. By Proposition 4, C is an -submodule of . In this subsection, we describe a special type of generating set for C with an upper-triangular structure relative to the block decomposition.
We will work with generating families of size at most ℓ; if necessary, one can always discard redundant generators until a minimal generating set is obtained.
The concept of normalized generating sets was introduced for right GQPC codes over finite fields (see, for instance, ref. [9]). We extend this concept to the setting of finite chain rings as follows.
Definition 2.
Let be a right GQPC code. A set is called a normalized generating set of C if the following conditions hold:
- (i)
- For each , the vector has the formwhere for all .
- (ii)
- For each , the element is represented by a monic polynomial in of degree less than and satisfiesin for some polynomial , i.e., divides in .
- (iii)
- For each , the off-diagonal entry is represented by a polynomial in of degree strictly smaller than , after choosing representatives of all elements in of degree less than .
If, in addition,
we say that is a normalized generating set of C.
In matrix form, if we arrange the entries into an matrix , then this matrix is upper-triangular with respect to the block index. The diagonal entries are monic divisors of the ambient polynomials , and the essential off-diagonal entries satisfy a degree reduction condition.
We now provide a straightforward way for constructing normalized generating sets for right GQPC codes over finite chain rings. The subsequent theorem, which embodies a major structural result of this study, establishes this construction.
Theorem 3.
Let be a right GQPC code of block length and index ℓ over R, and assume that C has finite rank as an R-module. Then there exists a normalized generating set
of C in the sense of Definition 2.
Proof.
We proceed in several steps.
Step 1: Choosing an initial generating set. Since C has finite rank as an R-module and is Noetherian, C is finitely generated as an -module. Choose an arbitrary finite generating set
such that
If , we may discard redundant generators: by standard module theory, one can successively remove generators whose removal does not change the -span, until a generating set of size at most ℓ is obtained. Thus, without loss of generality, we may assume that If , we may formally enlarge the family to ℓ elements by adding zeros; the additional zero rows will be harmless in what follows. For notational convenience, we therefore assume that we have a generating family of size exactly ℓ. Each can be written in block form as
Step 2: Construction of the last row . Consider the projection map
and its restriction to C. The image is an RPC code in : it is an -submodule, hence a left ideal of the principal ideal ring , and therefore generated by a single element. By the discussion in Section 2, there exists a unique monic polynomial of degree less than that divides and generates as an -submodule of .
By definition of the image, there exists some such that
Write
Replace the last generator in our generating set by . Since is a linear combination of elements of C (indeed, it is one of them), the -submodule generated by the new family still coincides with C. Next we eliminate the ℓ-th block of the other generators. For each , the element lies in , which is generated by . Hence there is a polynomial such that Replace Then,
in , so the last component of is zero. On the other hand, the -span of
coincides with that of , since we have only performed elementary operations of the form , which do not change the generated submodule. After this step, we have a generating set for C, with the property that the last component of every generator except is zero.
Step 3: Inductive construction of the remaining rows. We now proceed inductively on the block index. Assume that for some integer i with we have already constructed generators such that:
- (i)
- For each k with , the vector has the formso its components beyond the k-th block are zero.
- (ii)
- The last generators together with some modified versions of the remaining generators form a generating set of C.
- (iii)
- For each k with , the entry is monic, of degree , and divides .
We show how to construct with the desired properties and simultaneously ensure that all generators except have zero in block .
Consider the projection
and its restriction to C. The image is an RPC code in , hence a principal ideal generated by a unique monic divisor of . Choose an element such that and write
Notice that we can always subtract suitable -multiples of the already constructed generators to annihilate the components of in blocks : these blocks are already controlled by , and the set of generators obtained in this way still generates the same submodule of .
Now modify the remaining generators (those not yet fixed as some ) to eliminate their components in block . If is such a generator, then its -st component lies in the RPC code , so there exists such that Replacing we obtain a new generator with the same -span but with zero component in block . Repeating this modification for each remaining generator, we end up with a generating family of C in which the only generator having a possibly nonzero component in block is , and its entries beyond the -st block are zero. By descending induction on i from ℓ down to 1, this procedure yields generators such that each has the required triangular shape and each diagonal entry is a monic divisor of .
Step 4: Degree reduction on off-diagonal entries. We now enforce the degree condition on the off-diagonal entries . Fix i with . Consider the i-th and -st generators:
All components with belong to . In particular, , so it can be represented by a polynomial in with degree less than . Let be fixed representatives of , respectively , of degree does not exceed or equal . Since divides in , it divides every element of the ideal corresponding to the RPC code generated by . Perform polynomial division of by in : there exist polynomials such that with either or . Now replace the generator by This operation leaves the -span of the generators unchanged, since it is an elementary row operation in the -module. By construction, the i-th component of is exactly , viewed as an element of . Moreover, the -st component remains , because the -st component of is zero. Thus, we have replaced by an element of strictly smaller degree than (or by zero), without affecting any other diagonal entry and without changing the generated code.
Repeating this procedure for each pair with gives a generating family satisfying all the conditions in Definition 2.
Altogether, we have constructed a normalized generating set of C, which completes the proof. □
Remark 4.
The principal ideal ring assumption in (H2) guarantees that each projected RPC code admits a single polynomial generator. Without this hypothesis, block ideals over may require multiple generators, and the existence of a normalized generating set would require a more general module-theoretic framework, which is beyond the scope of the present work.
4.2. Rank Formula
We now derive a formula for the R-rank of a right GQPC code in terms of the diagonal polynomials in a normalized generating set. Throughout this subsection, we assume that the ambient rings are principal ideal rings and that the diagonal generators are chosen so that multiplication by is injective on (equivalently, is regular modulo ).
Let be a right GQPC code over R, and assume that is a normalized generating set of C. By Definition 2, for each we have
and there exists a monic polynomial such that
with .
The key point is that each diagonal element determines an RPC code in block i of rank , and the triangular shape ensures that these contributions to the rank are additive.
Lemma 7.
Let , and let be a monic polynomial of degree such that in . Write
with monic. Assume moreover that is regular modulo , i.e., the class of is not a zero divisor in the quotient ring . Let
Then D is a free R-module of rank .
Proof.
Let . Since , multiplication by defines an -module homomorphism
This map is surjective by definition of D.
To determine the kernel, note that if and only if , i.e., there exists such that
Equivalently,
By the regularity assumption on in , this implies
hence . Therefore, , so is injective.
Thus, is an isomorphism of R-modules:
Since is monic of degree , every class in has a unique representative of degree , and forms an R-basis. Hence, is free of rank , and therefore, so is D. □
We now apply this lemma to the successive blocks, using the triangular structure.
For , let
be the submodule consisting of elements supported in the first i blocks. Set
Thus, we obtain an ascending chain of -submodules
The following theorem describes the fundamental filtration structure of a right GQPC code and determines the module structure of its successive quotients. It is one of the main structural results of this work.
Theorem 4.
For each , the submodule is generated, as an -module, by . Moreover, write
with monic, and assume that is regular modulo , i.e., the class of is not a zero divisor in . Then the quotient is isomorphic, as an -module, to the RPC code . In particular,
Proof.
Fix .
Step 1: is generated by . By assumption, is a normalized generating set of C, so
Also, by definition,
The triangular shape in Definition 2 means that, for each k, the vector has the form
In particular, whenever , while for the first i blocks of are still defined but has zero components in blocks . Hence, its contribution beyond block i is irrelevant when we intersect with .
We now prove both inclusions.
- (i)
- Show . Each for belongs to C and lies in , so any -linear combination of lies in . Thus,
- (ii)
- Show . Take any . Since and C is generated by all , there exist polynomials such that
Because , its blocks are all zero. We first examine block ℓ. The only generator that can contribute a nonzero ℓ-th block is itself, since has zero entries beyond block k. Hence, the ℓ-th block of equals and must be zero. Thus,
By the construction of a normalized generating set, generates the image of C in the ℓ-th block. Therefore, the only way to ensure that the ℓ-th block is zero is for the term to contribute nothing to . Repeating this argument block by block, descending from ℓ to , shows that all contributions from must vanish when restricted to . Consequently, can be written using only , that is,
Combining (i) and (ii) yields
Step 2: Description of . Let
be the projection onto the i-th block. Since is an -module homomorphism, is an -submodule of , and hence an RPC code in block i.
Now evaluate on the generators of . For , the i-th block of is zero, again by the triangular shape. For , the i-th block of is . Therefore,
Step 3: Identification of the kernel . First, observe that every element of has zero i-th block by the definition of . Hence,
For the reverse inclusion, take such that . Using Step 1, write
Applying and using the facts that for and , we obtain
Equivalently,
Thus, there exists such that
Passing to the quotient , this becomes
By the hypothesis that is regular modulo , multiplication by is injective on . Hence,
Consequently, there exists such that , and thus
However, in the i-th block we have
so the i-th block of is zero, and all blocks with index are already zero in . Hence, , which implies that . Therefore,
Since , we conclude that . Hence,
Together with the first inclusion, this yields
Step 4: The quotient and the rank. From Steps 2 and 3, the restriction yields a short exact sequence of -modules
and hence
as -modules.
By Lemma 7, under the same regularity hypothesis, is a free R-module of rank . Therefore,
This completes the proof. □
Corollary 3.
Assume the hypotheses of Theorem 4 hold for every . In particular, for each i write
with monic, and assume that the class of is not a zero divisor in . Then, for each i, the R-module is free and
In particular,
Proof.
Fix . By Theorem 4, for each we have an -module isomorphism
and moreover
Step 1. By (51), the quotient has finite R-rank. Furthermore, by Theorem 4 it is isomorphic to the RPC code inside . Under the standing regularity hypothesis (the class of is not a zero divisor in ), Lemma 7 applies and shows that is a freeR-module of rank . Hence, each quotient is a free R-module.
Base case . We have , hence , which agrees with the empty sum.
Inductive step. Assume
Consider the short exact sequence of R-modules
By Step 1, the quotient is a free R-module. Over a finite chain ring (such as ), every short exact sequence (52) with a free quotient splits as R-modules, so
Taking R-ranks and using (51) gives
which is exactly the desired formula for . This completes the induction and proves (49).
Corollary 4.
Assume the hypotheses of Theorem 4 for . Then,
Proof.
Apply Corollary 3 with . □
As an illustration of the practical use of these Equations (50) and (53), consider, for instance, when and from Table 1. By Corollary 3, we obtain
and hence the Gray image has -dimension Corollary 4 is the special case and similarly determines the rank for the remaining codes listed in the table.
Table 1.
Codes over obtained as Gray images of 2-generator right GQPC codes of index 2 over .
5. Examples and Optimal Codes via the Gray Map
In this section, we illustrate the structural results of Section 3 and Section 4 by constructing explicit families of right generalized quasi-polycyclic (GQPC) codes over the chain ring with , and by analyzing the parameters of their Gray images. We employ the Gray map
extended coordinatewise to . As recalled in Section 2, is an -linear isometry. Consequently,
for every R-linear code . Although we restrict attention here to index 2, this case already captures the essential interaction between blockwise polycyclic constraints and off-diagonal coupling, providing sufficient algebraic flexibility to produce optimal and near-optimal Gray-image codes while keeping the structural analysis and computational verification tractable. All computations were performed in Magma (V2.29-4) [15], and optimality claims are with respect to the best-known parameters reported in [16].
Throughout this section, we restrict to 2-generator right GQPC codes of index 2 with block lengths and normalized generators of the form
where and are monic divisors of the defining polynomials and , respectively, and . Let . By Corollary 4,
and the Gray image is an -linear code of length and dimension .
Example 2.
This example illustrates the CRT verification for the constructions. Let with , and let . For , consider
Reducing modulo yields
which is squarefree and factors as
Hence, the hypotheses of the Chinese Remainder Theorem in Section 3 are satisfied. The same verification applies to using and .
The parameters satisfy and , in accordance with Corollary 4.
Remark 5.
For a given alphabet size q and parameters , let denote the largest minimum distance among all known q-ary linear codes with parameters , as reported in Grassl’s tables [16]. We label a code optimal if , and near-optimal if .
Example 3.
In this example and Table 2, we verify CRT for the ternary constructions. Let . For , take
Modulo ,
which are squarefree with coprime factors. The same conclusion holds for .
Table 2.
Ternary codes obtained as Gray images of 2-generator right GQPC codes of index 2 over .
Example 4
(Optimality). All examples in Table 3 satisfy
in exact agreement with Corollary 4. The code attains the minimum distance equal to the best-known value for its length and dimension as reported in Grassl’s online tables [16], and is therefore optimal or near-optimal with respect to currently known bounds.
Table 3.
Properties of selected right GQPC codes and their Gray images, .
Example 5.
Let and with . Consider an index-2 right GQPC code
with normalized generators
where
Here, and are monic divisors of the corresponding defining polynomials and in , and . Hence satisfies the triangular support condition of Definition 2. Assuming the regularity hypotheses of Theorem 4 for , the R-rank of C is given by the index-2 rank formula
in accordance with Corollary 4.
6. Conclusions
This paper developed a structural and constructive theory of right generalized quasi-polycyclic (GQPC) codes over the finite chain ring with . GQPC codes were characterized as -submodules of suitable product rings, and, under natural factorization assumptions, a Chinese Remainder Theorem decomposition was obtained, reducing their study to codes over finite chain ring extensions. A key contribution is the introduction of normalized generating sets with an upper-triangular structure, leading to an explicit rank formula in terms of the diagonal generator polynomials. Via the Gray map, this framework yields precise dimension formulas for the associated q-ary linear codes. The construction produces several optimal and near-optimal ternary and -ary linear codes, demonstrating that the framework is both structurally transparent and computationally effective.
From an application perspective, the families of right GQPC codes studied here hold practical relevance for communication systems, data storage, and quantum error-correcting code constructions [3,14]. The results show that the right GQPC codes over offer a meticulously organized algebraic structure that facilitates systematic parameter adjustment and improve encoding efficiency. These codes produce q-ary linear codes with competitive parameters through distance-compatible Gray maps and provide a suitable basis for quantum code constructions using CSS-type and similar techniques.
The current study is limited to the finite chain ring and to standard factorization criteria that ensure CRT decompositions and normalized generating forms. A natural direction for future work is to broaden the study to encompass larger categories of finite local and non-chain rings. Further examination of duality and LCD features, an in-depth structural analysis of constituent modules, and the formulation of decoding algorithms tailored to the ring-based framework represent significant opportunities for ongoing research. In general, the results show that right GQPC codes over make a strong and flexible algebraic foundation for constructing high-quality linear codes, while also raising a number of theoretical and practical questions that warrant further investigation.
Author Contributions
Conceptualization, S.H.S.; methodology, S.H.S.; software, S.H.S. and S.A.; validation, S.H.S.; formal analysis, S.H.S.; investigation, S.H.S.; data curation, S.A.; writing—original draft, S.H.S.; writing—review and editing, S.H.S. and S.A.; visualization, S.A.; funding acquisition, S.A. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by the Ongoing Research Funding program, (ORF-2026-839), King Saud University, Riyadh, Saudi Arabia.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Acknowledgments
The authors would like to extend their sincere appreciation to the Ongoing Research Funding program, (ORF-2026-839), King Saud University, Riyadh, Saudi Arabia.
Conflicts of Interest
The authors declare no conflicts of interest.
Nomenclature
p: a prime number; with : the finite field with q elements. with : a commutative local chain ring of order . : the maximal ideal of R; : the group of units of R. : the free R-module of length n. : the R-rank of a code . : the Gray map , extended to . : the Hamming weight on ; : the induced weight on via . ℓ: the index (number of blocks) of a GQPC code. : the length of the i-th block, . with : the vector of a right polycyclic shift. : the associated polynomial. : the defining polynomial. : the right polycyclic shift induced by . : the associated quotient ring. : the ambient module for right GQPC codes. : the Chinese Remainder Theorem (CRT) isomorphism. : the finite chain-ring components in the CRT decomposition. : the j-th constituent code in . : the Euclidean dual of C. : the diagonal generator polynomials in a normalized generating set. : the complementary divisor satisfying .
References
- Dinh, H.Q.; López-Permouth, S.R. Cyclic and negacyclic codes over finite chain rings. IEEE Trans. Inf. Theory 2004, 50, 1728–1744. [Google Scholar] [CrossRef] [Scilit]
- Aydin, N.; Siap, I.; Ray-Chaudhuri, D.K. The structure of 1-generator quasi-twisted codes and new linear codes. Des. Codes Cryptogr. 2001, 24, 313–326. [Google Scholar] [CrossRef] [Scilit]
- Galindo, C.; Hernando, F.; Matsumoto, R. Quasi-cyclic constructions of quantum codes. Finite Fields Their Appl. 2018, 52, 261–280. [Google Scholar] [CrossRef] [Scilit]
- Ou-Azzou, H.; Najmeddine, M. On the algebraic structure of polycyclic codes. Filomat 2021, 35, 3407–3421. [Google Scholar] [CrossRef] [Scilit]
- Shi, M.; Li, X.; Sepasdar, Z.; Solé, P. Polycyclic codes as invariant subspaces. Finite Fields Their Appl. 2020, 68, 101760. [Google Scholar] [CrossRef] [Scilit]
- Esmaeili, M.; Yari, S. Generalized quasi-cyclic codes: Structural properties and code construction. Appl. Algebra Eng. Commun. Comput. 2009, 20, 159–173. [Google Scholar] [CrossRef] [Scilit]
- Bae, S.; Kang, P.; Li, C. On normalized generating sets for GQC codes over ℤ2. Finite Fields Their Appl. 2017, 45, 285–300. [Google Scholar] [CrossRef] [Scilit]
- Bag, T.; Panario, D. Quasi-polycyclic and skew quasi-polycyclic codes over 𝔽q. Finite Fields Their Appl. 2025, 101, 102536. [Google Scholar] [CrossRef] [Scilit]
- Suxena, K.; Prakash, O.; Debnath, I.; Solé, P. Optimal GQPC codes over the finite field 𝔽q. Mathematics 2025, 13, 3655. [Google Scholar] [CrossRef] [Scilit]
- Gao, J.; Fu, F.; Shen, L.; Ren, W. Some results on generalized quasi-cyclic codes over 𝔽q + u𝔽q. IEICE Trans. Fundam. Electron. Commun. Comput. Sci. 2014, E97.A, 1005–1011. [Google Scholar] [CrossRef] [Scilit]
- Qi, W. On the polycyclic codes over 𝔽q + u𝔽q. Adv. Math. Commun. 2024, 18, 661–673. [Google Scholar] [CrossRef] [Scilit]
- Deng, T.; Yang, J. Some results for double cyclic codes over 𝔽q + v𝔽q + v2𝔽q. Entropy 2024, 26, 803. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wu, R.; Shi, M.; Solé, P. On the structure of 1-generator quasi-polycyclic codes over finite chain rings. J. Appl. Math. Comput. 2022, 68, 3491–3503. [Google Scholar] [CrossRef] [Scilit]
- Huffman, W.C.; Pless, V. Fundamentals of Error-Correcting Codes; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar] [CrossRef] [Scilit]
- Cannon, J.; Bosma, W.; Fieker, C.; Steel, A. Handbook of Magma Functions, Version 2.28; The Magma Computational Algebra System: Sydney, Australia, 2010. Available online: http://magma.maths.usyd.edu.au/magma/handbook/ (accessed on 5 May 2025).
- Grassl, M. Bounds on the Minimum Distance of Linear Codes and Quantum Codes. Available online: http://www.codetables.de (accessed on 5 May 2025).
- Saif, S. Structures, ranks and minimal distances of cyclic codes over ℤp2+uℤp2. Mathematics 2025, 13, 3354. [Google Scholar] [CrossRef] [Scilit]
- Kabbouch, O.; Mouloua, E.M.; Najmeddine, M.; Aydin, N.; Tran, L.B.; Nguyen, T.T. On the algebraic structure of (σ,ā)-polycyclic codes. J. Appl. Math. Comput. 2025, 71, 6037–6060. [Google Scholar] [CrossRef] [Scilit]
- Aydin, N.; Halilović, A. A generalization of quasi-twisted codes: Multi-twisted codes. Finite Fields Their Appl. 2017, 45, 96–106. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. 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.