Abstract
We investigate -constacyclic codes of length n over finite commutative local rings R of characteristic p and order where is an odd prime power, whose Jacobson radical satisfies , under the coprimality condition . In this setting, exactly two radical types occur, namely and , determined by the dimensions of and . For each type, we provide an explicit classification of the underlying rings and analyze the induced radical filtration of the ambient algebra . We prove that every -constacyclic code is uniquely determined by its residual component in together with two torsion components arising from the radical chain . This residual–torsion decomposition yields explicit generating sets; in particular, every -constacyclic code admits a generating set consisting of at most five elements. Furthermore, we derive exact enumeration formulas for all -constacyclic codes. In the type case, the enumeration is governed by linear-algebraic constraints over the Chinese Remainder Theorem residue fields and, in the anisotropic class, depends on quadratic character values determined by the extension degrees. In the type case, the enumeration is controlled by the dimension of the radical of the induced symmetric bilinear form on the top radical layer, equivalently by the rank class of the associated canonical matrix.
Keywords:
local commutative finite ring; Frobenius rings; codes over rings; constacyclic codes; isomorphism classes MSC:
13H99; 94B15; 94B60
1. Introduction
Linear codes over finite rings extend classical coding theory beyond the finite-field setting and provide a natural framework for investigating algebraic phenomena arising from nontrivial radicals and non-chain ideal structures. In contrast to the field case, the behavior of cyclic and constacyclic codes over rings is strongly influenced by the internal structure of the ambient algebra, particularly the Jacobson radical and its associated filtration; see [1,2,3,4] for general background on finite local rings. While constacyclic codes over finite chain rings are now well understood, we refer to [5,6,7,8] for representative results; the corresponding theory over non-chain local rings remains substantially more intricate due to the interaction of multiple radical layers and a significantly richer lattice of ideals (see [9,10] for related work in this direction).
Algebraically, a -constacyclic code of length n over a finite ring R is an ideal of the quotient algebra
Its structure depends simultaneously on the multiplicative structure of R, the radical filtration of R, and the factorization of over the residue field where
A complete structural and enumerative description of constacyclic codes over local Frobenius non-chain rings of order with nilpotency index three was obtained in [11]. The present work extends this line of research to Frobenius and non-Frobenius rings of order , where . The cases of smaller cardinality are more rigid: for orders , , and , the possible local structures under comparable nilpotency assumptions are much more limited, whereas the order case is the first one in which the two distinct radical types, and , occur simultaneously. Thus, this is the first setting in which the classification and enumeration problems split into two genuinely different algebraic types, leading to new structural and enumerative phenomena that do not arise in smaller orders. Related investigations of constacyclic and other classes of codes over local rings are found in [9,12].
Throughout the paper, R denotes a finite commutative local ring of order , where with p odd, whose Jacobson radical satisfies
This cube-zero condition yields exactly two possible radical types,
which induce fundamentally different multiplicative structures on the top radical layer and consequently distinct constacyclic code architectures.
Our first main contribution is a complete classification of all such rings in terms of matrix-based invariants. For type , multiplication on is encoded by a nonzero symmetric matrix , considered up to projective congruence
yielding four canonical isomorphism classes in odd characteristic. For type , multiplication corresponds to a two-dimensional subspace modulo congruence. The associated determinant locus
serves as a complete invariant distinguishing the canonical classes. Thus, the classification naturally connects the structure theory of finite local rings with projective geometry and the theory of matrix pencils.
Under the coprimality condition , the polynomial is separable over , and the Chinese Remainder Theorem decomposes into local components. Using the induced radical filtration,
we prove that every -constacyclic code admits a residual–torsion decomposition. Each code is uniquely determined by its residual component together with two torsion layers, leading to explicit generator descriptions. In particular, every code over R can be generated by at most five polynomials.
The enumeration problem then reduces to local counting over the residue fields
arising from the factorization . For radical type , the counting is governed by linear-algebraic data attached to the canonical class of R, whereas for type it depends on quadratic invariants determined by the rank structure of the associated bilinear form. Consequently, even for fixed length and factor degrees, the total number of constacyclic codes depends on the isomorphism class of the underlying ring.
The significance of this work is twofold. First, it shows that relatively small cube-zero local rings already exhibit a rich interplay between ring structure, matrix congruence theory, and coding theory. Second, the matrix-based realization developed here demonstrates that constacyclic codes over non-chain and non-Frobenius rings can be studied via geometric and tensorial invariants arising from bilinear forms and projective spaces. This perspective provides a unified structural framework and opens the way to the systematic investigation of codes over matrix-defined local algebras and higher-nilpotency settings.
This paper is organized as follows. Section 3 classifies finite commutative local rings of order satisfying . In particular, Section 3.1 and Section 3.2 treat the two radical types and separately and determine their canonical classes. Section 4 studies the ambient ring and develops the structural theory of -constacyclic codes via the residual–torsion decomposition, including the corresponding generator description. Section 5 derives the explicit enumeration formulas by combining the structural results with the CRT decomposition. Section 5.1 and Section 5.2 deal with the enumeration for the types and , respectively, and they conclude with illustrative examples for the various ring classes.
2. Preliminaries
Throughout the paper, let p be an odd prime and let with 1. Denote by the finite field with q elements. All rings are assumed to be finite, commutative, and unital of characteristic p. For a finite ring R, we write for its Jacobson radical. We restrict attention to commutative local rings R with residue field
and for , we denote its residue class in by .
We consider finite commutative local rings R of cardinality whose Jacobson radical satisfies
Thus, R admits a cube-zero radical filtration
with exactly two nonzero radical layers. Since , we have , and hence,
From the short exact sequence
it follows that
Because and , both summands are positive. Therefore,
These two possibilities exhaust all finite commutative local rings of order satisfying (3).
A useful consequence of that will be employed repeatedly is
so every element of annihilates . For further background in this ring-theoretic setting, we refer to [13,14].
Let and let satisfy . A λ-constacyclic code of length n over R is an ideal of the ambient algebra
The coprimality condition ensures that is square-free in . Hence, its factorization into distinct monic irreducible polynomials admits Hensel lifts to . Consequently, the Chinese Remainder Theorem yields a decomposition of into a finite direct product of local components, and the structure of -constacyclic codes reduces to the description of ideals in these components. Background on codes over finite rings may be found in [10,15].
Since R satisfies , the induced radical filtration of has the form
and this filtration interacts naturally with the semisimple quotient
This structure provides the algebraic framework for the residual–torsion description and the enumeration of -constacyclic codes developed in the subsequent sections.
Finally, Gaussian binomial coefficients arise in the enumeration of constacyclic codes. For integers and prime power q, the q-binomial coefficient is defined by
and counts the t-dimensional -subspaces of an d-dimensional vector space over (see [16]). These coefficients will be used to enumerate subspaces that parameterize the constacyclic codes of the component rings introduced below.
Throughout the paper, denotes the ideal generated by the indicated elements.
3. Structural Classification of Local Rings of Order with
In this section, we determine the precise structure of finite commutative local rings R of order whose Jacobson radical satisfies . Using the notation and framework introduced in Section 2, we showed that the radical filtration
forces exactly two possible graded dimension types for R, namely
These two cases lead to distinct algebraic configurations, which we analyze separately and classify explicitly via canonical matrix representations.
Lemma 1.
Let R be a ring and let be a nilpotent ideal, and suppose I is nilpotent with Then, an element is a unit if and only if its image in is a unit. In particular, if , then
Moreover, if maps to and , then
Proof.
Let denote the canonical projection. If , then clearly .
Conversely, suppose that is a unit in . Then, there exists such that , and hence
Since I is nilpotent, we have . Therefore,
so is a unit with inverse . Consequently,
which shows that is a unit in R.
For the explicit formula, write with a mapping to a unit in and . Then
where . Applying the previous argument to yields
and multiplying by gives the desired expression. □
3.1. Characterization for the Type
Throughout this subsection, let R be a finite commutative local ring with maximal ideal and residue field , satisfying
Choose elements whose images form an -basis of , and choose so that . Then, as ideals of R, we have
Since , we have , and in particular
Moreover, the products of lie in , so there exist unique scalars such that, with ,
Commutativity of R implies , so the matrix belongs to .
Lemma 2.
With the above choice of generators, we have .
Proof.
Suppose, for contradiction, that . Then for all . Together with from (12), this implies that every product of two elements of is zero, and hence , contradicting the assumption that . □
We now classify rings of type up to projective congruence of the associated symmetric matrix A.
Theorem 1.
Let be nonzero. Define the -vector space
with multiplication determined by -bilinearity, 1 as the identity, commutativity, and the relations (12) and (13). Then,
- (i)
- is a finite commutative local ring of order with maximal ideal satisfying
- (ii)
- Conversely, every commutative local ring R of type is isomorphic to for some nonzero .
- (iii)
- For nonzero ,
Proof.
We prove the claims in several steps.
- Step 1: Well-defined ring structure. Multiplication is specified on the basis and extended -bilinearly, so it is well-defined and distributive. Commutativity is imposed by definition.To check associativity, consider basis elements:
- (i)
- If one factor is 1, associativity holds trivially.
- (ii)
- (iii)
- Step 2: As an -vector space, , so . Let . Then , so is maximal. Since , Lemma 1 implies that elements of the form with and are units, while elements in are not. Hence, is local with maximal ideal .
- Step 5: Let be a ring isomorphism. Then, and . Since and , there exists such thatThe induced map on is an -linear isomorphism, represented by some in the bases and . Equivalently, lifting to , we may writeBecause , the -parts do not affect products of two elements from . Applying to yieldsby (14). On the other hand, using (15) and bilinearity givessince all terms containing vanish (because ). Thus,Comparing coefficients of gives , and equivalently, . Setting yields , as claimed.
- Step 6: Conversely, suppose with and . Define by ,Then, is an -linear bijection. Moreover,and products involving w map to 0 because and . Hence, preserves multiplication on generators, and thus on all of . Therefore, is a ring isomorphism.
□
The following theorem determines explicit projective normal forms for type over .
Theorem 2.
Assume and fix a nonsquare . Let R be a finite local ring with and , of radical type . Then, R is isomorphic to exactly one of the following four rings:
These four rings are pairwise non-isomorphic.
Proof.
According to Theorem 1, the isomorphism classes of type rings are in bijection with projective congruence classes of nonzero matrices , where
Assume . Over a finite field of odd characteristic, every symmetric matrix is congruent to a diagonal matrix (see, for instance, [17]). Hence, every nonzero is congruent to
with for and for .
- Rank 1. If , then A is congruent to . Projective scaling does not produce new classes, so there is a single projective class in rank 1.
- Rank 2. If , then A is congruent to with . Under ordinary congruence, two such forms are equivalent if and only if differs by a square in . Projective scaling multiplies both diagonal entries by , which does not alter the square-class of . Hence, there are exactly two projective classes in rank 2, represented bywhere is a fixed nonsquare in .
- Rank 3. If , then A is nondegenerate. Over with q odd, nondegenerate quadratic forms in dimension 3 have two ordinary congruence classes distinguished by . Under projective scaling , one hasSince 3 is odd, multiplication by ranges over both square and nonsquare classes as varies over . Thus, the two ordinary congruence classes become equivalent under projective congruence. Consequently, there is a single projective class in rank 3, represented by .
Collecting all cases, the projective congruence classes of nonzero matrices in are exactly
Substituting each diagonal representative into the defining relations and using produces the four corresponding ring presentations. Since the rank and, in the rank 2 case, the square-class invariant are preserved under projective congruence, these four classes are distinct. Hence, the associated rings are pairwise non-isomorphic. □
Remark 1.
When , projective congruence may collapse distinct ordinary congruence classes. In particular, in odd dimension (3 here), the two ordinary congruence classes of nondegenerate symmetric forms (distinguished by modulo squares) become projectively congruent because scaling by a nonsquare changes the determinant square-class by a factor of . For later sections, the invariant formulation in Theorem 1 is typically sufficient; explicit representatives are only needed for tabulation.
3.2. Characterization for the Type
In this subsection, we assume Choose elements
such that form an -basis of and form an -basis of . Then,
With the above choice of generators, we have
and there exist unique such that
Defining
Changing the basis of by replaces by , while changing the basis of replaces by another ordered basis of the same two-dimensional subspace
Next, we show that the isomorphism class of R is determined by the -orbit of the two-dimensional subspace L.
Lemma 3.
The matrices are linearly independent over .
Proof.
The annihilation relations (18) follow from Since , we have , so they have unique expansions in the basis , giving (19). Commutativity implies , so A and B are symmetric.
Finally, is spanned by products of elements of . Because any product involving a factor from is zero, is spanned by . Since , these products do not all lie in a one-dimensional -subspace of . Equivalently, their coordinate vectors in the basis span , which forces A and B to be linearly independent. □
Lemma 4.
Let be a 2-dimensional -subspace. Then L contains a matrix of nonzero determinant.
Proof.
Assume every nonzero is singular. Choose . Then , so there exists with . Replacing L by preserves the hypothesis, so assume . Choose linearly independent from M. Every element of L has the form
Its determinant equals and must vanish for all . Fix ; then, this determinant is an affine linear function of , and hence, its -coefficient must be zero, forcing . Then gives ; hence, , contradicting the choice of N. □
The next lemma investigates the change of generators and the induced action on .
Lemma 5.
Maintain the type assumptions and notation of Lemma 3. Let be another pair in whose images form a basis of , and let be another basis of . Then there exist and such that
Writing , the matrix pair associated with transforms to the pair associated with via
Equivalently, the -subspace is well-defined up to congruence , and the ordered basis of L is well-defined up to a -change of basis.
Proof.
Since and are bases of the two-dimensional -space , there exists such that , i.e., . Likewise, since and are bases of , there exists with . Lift the congruence to write
Using every cross-term involving or vanishes in products with x or y. Hence
Expanding these products and using (19) shows that, relative to the old basis of , the pair transforms to .
Finally, rewriting the same products in the new basis amounts to applying to the coordinate column, which is precisely (22). The last sentence is a restatement: U acts by congruence on L, while T changes the ordered basis of L. □
We are now ready to give the classification of type rings of order .
Theorem 3.
Assume and fix a non-square . Let
Then, and R is isomorphic to exactly one of the following three rings:
Moreover,
These three rings are pairwise non-isomorphic.
Proof.
We proceed carefully, making each reduction explicit.
- Step 1: Lemma 3 provides generators and an associated linearly independent pair encoding the products .
- Step 2: Through Lemma 5, changing the chosen generators in and transforms by (22). Equivalently, the isomorphism class of R is determined by the congruence class of the 2-dimensional subspace under with .
- Step 3: Fix an ordered basis of L and considera homogeneous quadratic polynomial. If we replace by another ordered basis of L, then undergoes an invertible linear change of variables, so the projective zero setdepends only on L. If we replace L by , thenso is unchanged. Hence, is an isomorphism invariant of R.
We now show that is not identically zero. By Lemma 4, the 2-dimensional subspace L contains an invertible matrix, so for some we have . Therefore, is nonzero, and the conic in has either two distinct points, one double point, or no -point. Consequently,
- Step 4: Assume has two distinct points. Then there exist two linearly independent singular matrices , spanning two distinct singular directions. Over with , any nonzero singular symmetric matrix has rank 1 and hence a one-dimensional kernel in . Distinct projective singular directions correspond to non-proportional rank-1 matrices, and their kernels are distinct lines in V.
Choose a basis of V so that and . In that basis, and become diagonal rank-1 matrices. Using the freedom to change the basis of (equivalently, the ordered basis of L), we may scale so that
Hence, after admissible changes, L is congruent to
which is exactly . The relations (18) and (19) become , , , yielding .
- Step 5: Assume is a single projective point. Then, up to scalar, there is a unique nonzero singular matrix . Since , N has rank 1, choose a basis of V such thatChoose linearly independent from N. Then C must be invertible; otherwise, C would provide a second singular direction and hence .
Write
If , then C is diagonal and contains the independent singular matrices and (since ), contradicting . Thus .
Conjugating by keeps N fixed and normalizes the off-diagonal entry to 1, so we may assume . Next, replace C by , which corresponds to changing the ordered basis of L (equivalently, changing the basis of ). This yields
Now replace the ordered basis of L by . Then
which is . The relations become , , , so .
- Step 6: Assume . Then every nonzero matrix in L is invertible. Choose an invertible and complete it to an ordered basis of L. Since , there exists such that for some . Replacing L by , we may assumeThe condition forces , for if , then B is diagonal and one can choose so that is singular, giving a point of .
Now conjugate by the diagonal matrix . This preserves the diagonal form of A and normalizes the off-diagonal entry of B to 1. Next, replace the ordered basis by , which does not change L and kills the -entry of B. Thus, we may assume
Finally, apply the shear to obtain
for some . Since A is invertible, so is , hence . Because we are free to change the ordered basis of the 2-dimensional space , we may replace by . Set
Thus,
For we have
The condition is equivalent to for all , which holds if and only if v is a nonsquare in . Therefore, L is congruent to the span of
where is the fixed nonsquare. This yields the canonical anisotropic ring with relations , , (and as before).
- Step 7: The values are mutually exclusive, and is an isomorphism invariant; hence, the three canonical rings are pairwise non-isomorphic. Conversely, every commutative type ring yields a 2-dimensional subspace with an invertible element by Lemma 4, so exactly one of the three cases occurs, and the above reductions show that R is isomorphic to the corresponding canonical representative.
□
Remark 2.
The matrix-pair framework of Lemma 3 and the basis-change description in Lemma 5 are valid in all characteristics. However, when , the classification of symmetric bilinear forms differs. For this reason, the explicit canonical lists in both Theorem 2 and Theorem 3 are stated only for .
Remark 3.
The classification in this section (see Table 1) is governed by natural invariants arising from the induced multiplication on . For type rings, multiplication on is encoded by a nonzero symmetric matrix via , and the isomorphism class depends only on the projective congruence class of A, namely with and . In odd characteristic, this projective class is determined by the rank of A, and in rank 2 by the square class of the determinant of the nondegenerate part. For type rings, multiplication induces a symmetric bilinear map , where and ; equivalently, there is a two-dimensional subspace up to congruence. In odd characteristic, the projective zero set
is a complete invariant for the type classification described in Theorem 3 (in the odd-characteristic setting assumed there).
Table 1.
Summary of local rings of order with for odd q.
4. Constacyclic Codes over Local Rings of Order with
In this section, we analyze the ring
under the standing hypotheses, and , where and Our goal is to describe -constacyclic codes, i.e., ideals of , via the radical filtration of and to obtain a residual–torsion decomposition that will later permit explicit enumeration. Set for the image of in , and
Since the derivative of is in , the polynomial is square-free. Hence
is a finite semisimple -algebra.
Proposition 1.
The ring is local, and
- (i)
- .
- (ii)
- and .
- (iii)
- .
- (iv)
- One has and henceIn particular, .
Proof.
Consider the natural surjection
whose kernel is .
- (i)
- Since S is a finite product of fields, . Hence , so . Conversely, is nilpotent because , so every element of lies in the Jacobson radical. Therefore, . This means that is local.
- (ii)
- Since is commutative, for , hence and . Moreover, because .
- (iii)
- This is exactly the isomorphism induced by .
- (iv)
- As an R-module, is free of rank n with basis ; hence . Also, and satisfy and . Thus,Finally, follows from the filtration and .
□
We now relate to the factorization of over . Since , the polynomial is square-free and hence factors into distinct monic irreducibles
Lemma 6.
Let R be a finite local ring with maximal ideal and residue field . Let and write for its reduction modulo . Suppose with monic and pairwise coprime in . Then there exist monic polynomials with such that in , and the ideals are pairwise comaximal in .
Proof.
Since the are pairwise coprime in , there exist with . Lifting to gives , and since is nilpotent, one can iteratively correct the lifts to obtain exact factorizations and comaximality. This is the standard coprime factorization lifting (Hensel lifting) over a local ring with a nilpotent maximal ideal; see, e.g., McDonald [2], Ch. IX. □
Apply Lemma 6 to and (28). Let be monic Hensel lifts of such that
Theorem 4.
With the notation as above, the ideals are pairwise comaximal in , and there is a ring isomorphism:
Under this isomorphism, λ-constacyclic codes correspond bijectively to products of ideals in the factors. Moreover,
so S is a finite principal ideal ring (indeed, a finite product of fields).
Proof.
According to Lemma 6, the ideals are pairwise comaximal and . Hence
and the Chinese remainder theorem yields
which is (29). Ideals in a finite product are products of ideals in the components. Reducing modulo sends to and commutes with finite products. Using Proposition 1(iii) (namely, with ), we obtain (30). The last isomorphism follows since each is a finite field of size . □
The quotient map induces S-module structures on the radical layers and : for and , set , and for , set . These actions are well-defined since whenever , and .
Remark 4.
The ring S is canonically an -algebra via the composition . Hence, the tensor products and are well-defined and carry natural S-module structures.
Proposition 2.
There are canonical S-module isomorphisms
In particular, and as S-modules. Moreover, multiplication in induces an S-bilinear map
which corresponds, under the above identifications, to the scalar extension to S of the -bilinear product map .
Proof.
Define
where and are lifts and bars denote quotient classes. If v is replaced by with , then . If f is replaced by with , then . Hence, is well-defined. It is S-linear by construction.
Surjectivity: any class in has a representative in , so it is a sum of terms with , , and hence lies in the image. Injectivity follows by comparing -dimensions:
using Proposition 1(iv). Thus, is an isomorphism. The proof for is identical.
Finally, since , multiplication satisfies , and changing either factor by an element of changes the product by an element of . Therefore, multiplication induces a well-defined S-bilinear map , which is precisely the scalar extension of the -bilinear product on with values in . □
Remark 5.
Let be a -constacyclic code, i.e., an ideal. The interaction of C with the filtration is recorded by residual and torsion layers.
Definition 1.
For an ideal , define
and
We call the residual code and the first and second torsion codes.
Lemma 7.
Each is an S-submodule of its ambient space. In particular, is an ideal of S and hence an -constacyclic code over . Moreover, under the natural maps induced by the filtration,
Proof.
The S-module structures on and are described above. Since is an ideal of , the submodule is stable under multiplication by ; hence, its image is stable under the induced S-action. Thus, is an S-submodule. Similarly, is an ideal contained in and hence stable under the S-action.
Finally, is an ideal of S. The quotient identifications follow from the isomorphism theorems:
and . □
Theorem 5.
Let be a λ-constacyclic code and set and . Then there are natural short exact sequences of S-modules
and one has the canonical identification as S-modules.
Proof.
Since S is a finite product of fields, it is a semisimple Artinian ring (hence a principal ideal ring). In particular, every S-submodule of a free module is generated by at most t elements: indeed, , and submodules correspond componentwise to vector subspaces.
Theorem 6.
Let be a λ-constacyclic code and let be as shown in Definition 1. Assume . Then there exist polynomials
with and such that:
- (i)
- , where generates the ideal ;
- (ii)
- The images of in generate as an S-module;
- (iii)
- The images of in generate as an S-module;
and
In particular, every λ-constacyclic code over R is generated by at most polynomials.
Proof.
By Proposition 2, and . Since S is semisimple (a finite product of fields), any S-submodule of is generated by at most t elements. Hence, is generated by at most elements and by at most elements as S-modules. Since is an ideal of the principal ideal ring S, choose such that . Choose lifting modulo . Choose S-generators of with , and choose lifts representing modulo . Let represent in . Similarly, choose S-generators of with , and choose representatives of in . Let be the ideal generated by these polynomials. Clearly, . We show that .
- Step 1. For , its image in lies in , so for some . Lift to . Then .
- Step 2. Put . Its image in lies in , so for some . Lift to . ThenSet .
- Step 3. Since generate as an S-module, write with . Lift to . Because the S-action on is induced from , the element represents in (the choice of lifts is immaterial since ). Thus .
- Step 4. Combining the steps yields . Hence, , and therefore, . The generator bound follows.
□
Remark 6.
Since and , the torsion layers and require at most and generators as S-modules, respectively. Therefore, if and are generated by r and s elements, then where denotes the minimal number of generators of C as an -module. Hence, the bound in Theorem 6 is global but not always sharp. In particular, C is principal if , and the number of generators decreases whenever one of the torsion layers is trivial or cyclic. Also, in type one has , while in type both torsion layers may be nontrivial.
Remark 7.
Assume that R is Frobenius. Then is Frobenius as a finite R-algebra, and its Frobenius functional induces a nondegenerate associative bilinear form . Passing to quotients yields perfect pairings on the successive radical layers, compatible with the filtration . In particular, the induced pairing on recovers the classical duality for -constacyclic codes over . Moreover, the induced pairings on and on are perfect S-bilinear pairings (via the action of ), so the dual code can be described layer by layer: its residual and torsion layers are the annihilators of under the corresponding pairings (Table 2). This observation will be used in later duality results.
Table 2.
Structural layers of with , , and .
Under the standing hypotheses, write
with distinct monic irreducible over and their Hensel lifts. Set
Let
Then and . For a -constacyclic code , define
where and are the first and second torsion layers of . Furthermore, define
Theorem 7.
Let be a λ-constacyclic code. Then . Moreover,
- (i)
- For each , fix reduced row echelon matrices over representing the subspacesChoose liftswhose images generate and , respectively. Let be the CRT idempotent corresponding to and setThenIn particular, each local component is generated by at most elements, and hence, every λ-constacyclic code over R is generated by at most five polynomials globally.
- (ii)
- For , one has . For , one hasConsequently,
Proof.
Because is square-free, the are pairwise coprime in . By Hensel lifting, the monic lifts are pairwise comaximal in and satisfy . Hence
and the Chinese remainder theorem yields
Thus, constacyclic codes of a finite direct product are exactly products of constacyclic codes in the components. For uniquely determined ideals , we have
Let denote the corresponding CRT idempotents, so , for , and .
- Step 1. DefineFor , the residual layer of in is 0, whereas for it is . Hence the residual codeis exactly , so is the principal ideal of S generated by the CRT idempotent . Equivalently, is generated by the product of the complementary factors, namelyLet ; then in S.
- Step 2. Fix . Apply the residual–torsion framework inside : with , the code has residual layer 0 and torsion layerswhich are -subspaces of and . Choose -generators of these subspaces and lift them to polynomialsso that their images generate in and in . Then, Theorem 6 (applied to the local ring ) yieldssince the residual layer is 0. For , we have , and hence, no generators are needed beyond 1.
- Step 3. Under the isomorphism (39), the element projects to 1 in the ith factor and to 0 in all others. Therefore, the ideals
- Step 4. For each i, the additive group of has size since is free of rank over R. If , then . If , the residual layer of is 0, and the successive quotients in the filtrationidentify asThus . Since and are -vector spaces of dimensions and , we have and , henceFinally, because as an additive group under the CRT, giving (38).
□
5. Enumeration of -Constacyclic Codes
This section determines the exact number
By the structural results established earlier, every such code is an ideal of
and the enumeration problem reduces to counting the ideals of . Assume . Then is square-free in , so
with distinct monic irreducible factors. Let denote the corresponding Hensel lifts. By Theorem 4,
and every -constacyclic code decomposes uniquely as
Consequently,
where denotes the number of constacyclic codes over the local ring .
The remainder of this section is devoted to computing . The answer depends only on the residue field size
and on the canonical class of R. For each radical type, and , we determine the local ideal counts explicitly. Substituting these into (42) yields closed formulas for .
Lemma 8.
For each i, reduction modulo induces an isomorphism
Moreover,
and and are naturally -vector spaces with
Proof.
Reducing the defining relation modulo gives
so is a maximal ideal of . Since , we have , so is nilpotent and hence contained in . Conversely, maps to , which implies . Thus, . Commutativity yields for , and hence and . Since , the -module structures on and factor through , so these are -vector spaces.
Finally, is free of rank over R (since is monic of degree ). Hence, for . As , this implies the stated -dimensions. □
Remark 8.
Each local factor has the same radical type as R, now viewed over .
Fix i and abbreviate
Set
Through Lemma 8, and as K-vector spaces, and multiplication in A induces a well-defined K-bilinear map:
Lemma 9.
The ideals I of A satisfying are in bijection with K-subspaces via , where is the quotient map. Consequently,
After choosing a K-basis of , the k-dimensional subspaces are parametrized by matrices over K in reduced row echelon (RRE) form.
Proof.
Because , the action of A on factors through . Hence, A-submodules of V are precisely K-subspaces. The correspondence theorem for gives the desired bijection with ideals I satisfying . Counting such subspaces, through (11), yields the Gaussian number and the RRE parametrization is standard. □
Lemma 10.
The ideals J of A with are precisely the K-subspaces of . Consequently,
Proof.
Since , the action of A on factors through . Hence, A-submodules of are precisely the K-subspaces of W. □
Remark 9.
Lemmas 9 and 10 account for all ideals containing and all ideals contained in . The remaining ideals are those with ; these are governed by the multiplication constraints imposed by μ in (43).
5.1. Type
Assume that R has radical type , i.e., and , and assume .
Fix a local CRT factor
Then
Multiplication in A induces a symmetric K-bilinear form
belonging to one of the four canonical projective congruence classes represented by
where is a fixed nonsquare.
Let
denote the radical of the bilinear form.
Proposition 3.
Every proper ideal satisfies exactly one of the following:
- (i)
- . Then , and I is uniquely determined by the K-subspace via .
- (ii)
- . Then and . Writing , one has .Conversely, fix a K-linear section of π (so ). For every K-subspace and every K-linear map , the subsetis an ideal of A with and . Moreover, for fixed U, the ideals are pairwise distinct, and there are exactly of them.
Proof.
If , then , and the correspondence theorem yields uniquely. Assume . Since is the unique minimal nonzero ideal, one has . Let . For any and , we have and , hence . Thus, for all and all , so . Conversely, let and be K-linear. The set is a K-subspace of , and by construction. Also, since restricts to an isomorphism . To see that it is an ideal, note that as K-vector spaces, so it suffices to check stability under multiplication by . For and ,
and the coefficient of w equals because . Hence, , so and is an ideal. Finally, if , choose with ; then, , so . Since has size , the stated count follows. □
Theorem 8.
Let A be as above and let . Then the number of ideals of A equals
where
For the four canonical classes, one has
Consequently,
Proof.
The ideals split into (i) those containing w, counted by (together with A itself); (ii) those not containing w, counted by pairs with and . Hence,
The explicit evaluations follow from and for the four classes. □
Example 1.
Let R be a finite commutative local ring with residue field ,
and radical type , i.e.,
Set
Since , the polynomial is separable over .
- Step 1: Factorization over and CRT. Over we haveand is irreducible over since is a nonsquare in . Thus,LetThen,Let be monic Hensel lifts of to and setBy the Chinese remainder theorem,
- Step 2: Local counts for the four canonical classes. In type (with ), the number of ideals of each local factor depends only on the canonical class index of the induced bilinear form on . By Theorem 8, for one hasIn particular, no quadratic character conditions occur in the ideal counts for type .
- (i)
- Class (rank 1: ). For :Hence
- (ii)
- Class (rank 2: ).Hence
- (iii)
- Class (rank 2: ). This class has the same rank as (ii), hence the same local ideal counts:so
- (iv)
- Class (rank 3: ).Hence
This example illustrates that, for fixed and CRT degrees , the total number of λ-constacyclic codes varies substantially with the canonical type class, i.e., the rank class s of the induced bilinear form.
5.2. Type
Assume that R has radical type , i.e.,
and assume throughout that . In odd characteristic, Theorem 3 yields three canonical isomorphism classes, , distinguished by the invariant .
Theorem 9.
Assume that and let R be a commutative type ring of order . Fix an index i and set and . Let be the i-th local CRT factor. Then, is a commutative type local ring over K, and the number of ideals of depends only on the canonical class of R (equivalently, on ) as follows:
where is the fixed nonsquare parameter appearing in the canonical presentation of in Theorem 3, and denotes the quadratic character of (extended by ). Consequently,
Proof.
Fix i and set , . By Lemma 8, has residue field K and radical type over K. Equivalently, after scalar extension, one may identify with a type local K-algebra having maximal ideal satisfying
Multiplication induces a symmetric K-bilinear map:
Choose a K-linear section so that as K-vector spaces and for all .
- Step 1. Let be a proper ideal. Then . Definewhere is the quotient map. Fix a pair . Any K-subspace with and is the graph of a K-linear map . Hence, the number of such subspaces is
- Step 2. Since and , for and one hasTherefore, the condition is equivalent towhich depends only on the pair .
- Step 3. Combining Steps 1 and 2, the number of proper ideals of equalsFinally,
- Case (). Choose bases and such that , , and . Equivalently, . Then, if and only if ; is one-dimensional if and only if U is one of the two coordinate lines; and otherwise, . Evaluating (46),
- (i)
- : contribution .
- (ii)
- : the two special lines contribute ; the remaining lines contribute . The total contribution is .
- (iii)
- : , and only is admissible, contributing 1.
Hence, , so .
- Case (). Choose bases such that , , and , i.e., . Then , and for every line . Evaluating (46) gives , hence .
- Case (). Choose bases such that , , and , i.e., . For a line , one has if and only if there exists with , equivalentlyThus, if , then (47) has no nontrivial solution and every line satisfies ; if , then there are exactly two solution lines and all other lines satisfy . Evaluating (46) yieldsThe global product formula follows from Equation (42).
□
Remark 10.
Let be a fixed nonsquare and let . Then, . Equivalently, ϑ is a square in K if and only if d is even.
In all cases,
Example 2.
Let R be a finite local ring with
and radical type :
Set
Since , the polynomial is separable over .
- Step 1: Factorization over and CRT degrees. In we haveBecause is a square in , one hasMoreover,and each quadratic factor is irreducible over (its discriminant equals , which is a nonsquare in ). Thus,with degreesLetThenLet be monic Hensel lifts of to and setBy the Chinese remainder theorem,
- Step 2: Quadratic character values over . Let denote the quadratic character on (extended by ). Fix a nonsquare (so ), as in the canonical presentation of in Theorem 3. For , we have by the definition of ϑ. For (a degree-2 extension), every element of becomes a square in , hence
- Step 3: Local ideal counts. By Theorem 9, the number of ideals of a local factor depends on the canonical class of R (equivalently, on ) and on .
- (i)
- If (so ), thenHence,
- (ii)
- If (so ), thenHence,
- (iii)
- If (so ), thenUsing and , we obtain
- Step 4: Global enumeration. Combining the local counts yields
This example shows that for fixed , the CRT degrees are and the total number of negacyclic codes depends on the canonical class of the underlying type ring. In particular, in the anisotropic class , the local counts split according to whether the CRT residue field degree is odd or even, via the quadratic character values .
6. Conclusions
In this work, we obtained a structural and enumerative description of -constacyclic codes of length n over finite commutative local rings R of order with , under the standing assumption . Exactly two radical types occur, namely and , both fitting into a unified residual–torsion framework arising from the radical filtration of
Every -constacyclic code is realized as an ideal of , encoded by a residual component over the semisimple algebra together with two torsion layers inside . This layered description provides explicit generating sets and reduces global enumeration to local computations over finite extensions of via the Chinese remainder decomposition
For radical type , the local ideal counts depend only on the field sizes and the determinant-locus invariant , with an additional quadratic-character split in the anisotropic class. For type , the counts are governed by the induced symmetric bilinear form on ; equivalently, they are governed by the rank class of a canonical matrix representing multiplication on the top radical layer (or, equivalently, by ). Combining the local formulas yields the closed product expression
explicitly in terms of the factor degrees and the canonical isomorphism class of R.
For convenience, we summarize the local counts in Table 3, where and .
Table 3.
Local ideal counts for the CRT factors .
The methods developed here provide a unified framework for constacyclic codes over cube-zero local rings of order and suggest several natural extensions. These include analogous classifications for larger orders (e.g., ) and for higher nilpotency indices ( with ), where additional radical layers and multilinear structures are expected to play a decisive role.
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.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Raghavendran, R. Finite associative rings. Compos. Math. 1969, 21, 195–229. [Google Scholar]
- McDonald, B.R. Finite Rings with Identity; Marcel Dekker: New York, NY, USA, 1974. [Google Scholar]
- Whelan, E.A. A note on finite local rings. Rocky Mt. J. Math. 1992, 22, 757–759. [Google Scholar] [CrossRef] [Scilit]
- Corbas, B.; Williams, G.D. Rings of order p5, Part II: Local rings. J. Algebra 2000, 231, 691–704. [Google Scholar] [CrossRef] [Scilit]
- Kanwar, P.; López-Permouth, S.R. Cyclic codes over the integers modulo pm. Finite Fields Their Appl. 1997, 3, 334–352. [Google Scholar] [CrossRef] [Scilit]
- 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]
- Kim, B.; Lee, Y. Classification of self-dual cyclic codes over the chain ring Zp[u]/⟨u3⟩. Des. Codes Cryptogr. 2020, 88, 2247–2273. [Google Scholar] [CrossRef] [Scilit]
- Bonnecaze, A.; Udaya, P. Cyclic codes and self-dual codes over F2+uF2. IEEE Trans. Inf. Theory 1999, 45, 1250–1255. [Google Scholar] [CrossRef] [Scilit]
- Saif, S.H. Constructions and enumerations of self-dual and LCD double circulant codes over a local ring. Mathematics 2025, 13, 3527. [Google Scholar] [CrossRef] [Scilit]
- Choi, H.S.; Kim, B. Various structures of cyclic codes over the non-Frobenius ring Fp[u,v]/⟨u2,v2,uv,vu⟩. Adv. Math. Commun. 2024, 18, 304–327. [Google Scholar] [CrossRef] [Scilit]
- Castillo-Guillén, C.A.; Rentería-Márquez, C.; Tapia-Recillas, H. Constacyclic codes over finite local Frobenius non-chain rings with nilpotency index 3. Finite Fields Their Appl. 2017, 43, 1–21. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Shi, M.; Liu, H. Several constructions of optimal LCD codes over small finite fields. Cryptogr. Commun. 2024, 16, 779–800. [Google Scholar] [CrossRef] [Scilit]
- Alabiad, S.; Alhomaidhi, A.A. Frobenius local rings of length 5 and index of nilpotency 3. Mathematics 2025, 13, 781. [Google Scholar] [CrossRef] [Scilit]
- Wood, J. Duality for modules over finite rings and applications to coding theory. Am. J. Math. 1999, 121, 555–575. [Google Scholar] [CrossRef] [Scilit]
- Shi, M.; Huang, D.; Sok, L.; Solé, P. Double circulant self-dual and LCD codes over Galois rings. Adv. Math. Commun. 2019, 13, 171–183. [Google Scholar] [CrossRef] [Scilit]
- Nijenhuis, A.; Solow, A.E.; Wilf, H.S. Bijective methods in the theory of finite vector spaces. J. Comb. Theory Ser. A 1984, 37, 80–84. [Google Scholar] [CrossRef] [Scilit]
- Saif, S.H.; Alkhamees, Y. Enumeration of Frobenius local rings of order p6r via bilinear forms. Symmetry 2026, 18, 285. [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.