Next Article in Journal
Time-Series Recommendation Quality, Algorithm Aversion, and Data-Driven Decisions: A Temporal Human–AI Interaction Perspective
Previous Article in Journal
Rapid Deterioration of Convergence in Taylor Expansions of Linearizing Maps of Hénon Maps at Hyperbolic Fixed Points
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Constructions and Enumerations of Self-Dual and LCD Double Circulant Codes over a Local Ring

Department of Mathematics, College of Science, King Saud University, P.O. Box 2455, Riyadh 11451, Saudi Arabia
Mathematics 2025, 13(21), 3527; https://doi.org/10.3390/math13213527
Submission received: 14 October 2025 / Revised: 26 October 2025 / Accepted: 31 October 2025 / Published: 3 November 2025

Abstract

The construction of self-dual and linear complementary dual (LCD) codes over finite rings, particularly over semi-local and local structures, is an active area of research due to their algebraic richness and applications in communications and cryptography. In this paper, we investigate double circulant and double negacirculant codes over the local ring R q , u , v = F q + u F q + v F q , u 2 = v 2 = u v = v u = 0 , where q = p m is an odd prime power. Unlike the semi-local case, where decomposition via non-trivial idempotents simplifies analysis, the local structure of R q , u , v (with only trivial idempotents) makes enumeration and classification significantly more challenging. We first establish necessary and sufficient conditions for such codes to be self-dual or LCD; we then count the solutions to key equations over F q , including a b q + b a q = 0 , to enable their enumeration. We further show that Gray images preserve these properties, leading to good self-dual and LCD codes over F q , and present optimal examples over F 7 . Our results extend double circulant constructions to a new algebraic setting, providing both theoretical advancements and practically relevant code designs.
MSC:
11T71; 94B15; 94B05

1. Introduction

In recent years, there has been a surge in interest in double circulant (DC) and double negacirculant (DNC) codes over rings, extending classical field-based constructions to richer algebraic settings. Much of this activity has focused on semi-local rings, such as F q + u F q and F q + u F q + v F q , which admit non-trivial idempotent decompositions that enable elegant CRT analyses and lead to closed enumeration formulas for self-dual and LCD codes. Notable recent contributions along these lines include work on double circulant and double negacirculant codes over semi-local rings [1,2,3], as well as studies on broader non-local or chain ring families with specialized structures [4,5,6]. These developments have underscored both the structural richness of ring-linear code constructions and their effectiveness in producing good codes with strong parameters. More recent research has also expanded the range of ambient rings considered for Gray image analysis and asymptotic existence results, reflecting growing interest in the topic [7,8,9,10,11].
Despite these advances, several limitations remain in the current literature. Most recent studies on double circulant and double negacirculant codes over rings, such as those by Yadav et al. [12], Shi et al. [13], and Dinh et al. [14], have focused primarily on semi-local rings with convenient idempotent decompositions, where orthogonality conditions can be reduced to simple norm equations and enumeration becomes tractable. These results provide elegant asymptotic analyses but rely heavily on the algebraic simplicity of semi-local structures. In contrast, genuinely local non-chain rings, which lack non-trivial idempotents, have received very limited attention. In such settings, classical counting techniques no longer apply, and one must instead handle more involved orthogonality relations such as a b q + b a q = 0 , which substantially complicates enumeration and structure theorems. Partial progress has been made for double circulant codes over chain and non-local rings [8,9,15,16,17] and for related non-trivial extensions [12,13,14], but the double negacirculant case over local rings remains essentially unexplored, with existing work often restricted to special lengths or relying on reductions to the field case. Moreover, much of the literature applies field-level factorization results to rings with nilpotent elements without explicitly establishing comaximality or irreducibility at the ring level—an essential step for the rigorous application of the Chinese Remainder Theorem. Duality and LCD conditions under Gray maps are also frequently stated without clearly specifying the induced inner product or block length, making it difficult to rigorously verify the preservation of orthogonality. Finally, existing asymptotic results often give only qualitative existence statements, with key constants left implicit in the union-bound derivations; see, for instance [4,12,13,18], where the contribution of the non-constant CRT components is not fully isolated.
The present work aims to address these limitations by developing a systematic theory of self-dual and LCD double circulant and double negacirculant codes over the local, non-chain ring
R q , u , v = F q + u F q + v F q , u 2 = v 2 = u v = v u = 0 ,
a setting that has attracted increased interest but remains far less developed in the context of DC and DNC codes. Our approach provides a fully rigorous treatment of CRT factorization and Hensel lifting in the presence of nilpotents, ensuring the validity of the decompositions used in the sequel. By treating both circulant (odd n) and negacirculant (even n) cases in parallel, we expand the range of known code families beyond those based on semi-local rings. We also give precise duality and LCD characterizations with explicit ambient rings and unit conditions, and we clarify the exact role of the Gray map in preserving inner products. Finally, our asymptotic analysis is derived with all constants made explicit, using the non-constant Gray block of length 3 n to produce sharp and rigorous distance bounds. In this way, our results broaden the current understanding of double circulant and double negacirculant codes over local rings and provide new algebraically structured families of self-dual and LCD codes with good asymptotic performance.
This paper is structured as follows. Section 2 presents the notations and foundational settings pertinent to the subsequent sections of the paper. Section 3 examines the construction of double circulant and double negacirculant codes over R q , u , v and provides enumerations of such codes of length n in these settings. Section 4 presents distance bounds and shows that the Gray images of self-dual and LCD double circulant codes over R q , u , v form good code families. This section also includes several nontrivial examples over F 7 obtained from the Gray images of such codes over R q , u , v .

2. Preliminaries

Throughout, p is an odd prime number and q is taken such that the finite field F q contains an element ν with ν 2 = 1 . In this case, the possible conditions for q are [19]
q = p m , p 1 ( mod 4 ) ; q = p 2 m , p 3 ( mod 4 ) , m 1 .
In other words, we assume that q satisfies exactly one condition from above. This assumption will be used when solving equations such as 1 + x 2 = 0 . In this paper, we work over the commutative local ring R q , u , v = F q [ u , v ] u 2 , v 2 , u v , v u , i.e.,
R q , u , v = F q + u F q + v F q ,
where u and v are satisfying u 2 = v 2 = 0 = u v = v u . Every element x of R q , u , v has a unique representation
x = a + u b + v c ,
where a , b , c F q . The ring R q , u , v is a local ring with maximal ideal m = u , v and the unit group is of the form
R q , u , v × = { a + u b + v c a F q × , b , c F q } ,
with cardinality # { R q , u , v × } = ( q 1 ) q 2 .
We employ two F q -linear Gray maps from R q , u , v to F q 3 :
ψ 1 ( a + u b + v c ) = ( b , 2 a + b , c ) , ψ 2 ( a + u b + v c ) = ( a , a + b , a + c )
both of which extend naturally to R q , u , v n as F q -linear isomorphisms.
A linear code C R q , u , v n is an R q , u , v -submodule. For a vector c = ( c 0 , c 1 , , c n 1 ) C , the Hamming weight  w H ( c ) is the number of non-zero coordinates, i.e., the number of i with c i 0 . The Lee weight is
w L ( c ) = w H ψ i ( c ) , i { 1 , 2 } .
The minimum Hamming and Lee distances, d H ( C ) and d L ( C ) , are defined as the minimal non-zero Hamming and Lee weights in C , respectively.
The Euclidean dual is
C = { x R q , u , v n x , y = 0 for all y C } ,
where x , y is the standard dot product. The Hermitian dual C H uses the conjugate-linear inner product
a + u b + v c , a 1 + u b 1 + v c 1 H = a a 1 # + u b b 1 # + v c c 1 # , a # = a q .
A code is Euclidean (respectively, Hermitian) self-dual if it equals its Euclidean (respectively, Hermitian) dual and Euclidean (respectively, Hermitian) LCD if its intersection with the corresponding dual is trivial. It is known (see [Theorem 2.2] in [13]) that C is Euclidean LCD (respectively, self-dual) over R q , u , v if and only if both ψ 1 ( C ) and ψ 2 ( C ) are Euclidean LCD (respectively, self-dual) over F q , where the usual Euclidean inner product on F q is used.
Finally, double circulant and double negacirculant codes over R q , u , v are defined via generator matrices
G = [ I M ] ,
where M is a circulant or negacirculant matrix, respectively. An n × n matrix G is circulant if it has the form
G = g 0 g 1 g n 1 g n 1 g 0 g n 2 g 1 g 2 g 0 ,
where each subsequent row is obtained by a cyclic right shift of the previous row. An n × n matrix G is negacirculant if it has the form
G = g 0 g 1 g 2 g n 1 g n 1 g 0 g 1 g n 2 g n 2 g n 1 g 0 g n 3 g 1 g 2 g 3 g 0 ,
where each subsequent row is obtained by a negacyclic shift (right shift with sign alternation) of the previous row. Double circulant and negacirculant codes are quasi-cyclic of index 2 .

3. Double Circulant and Double Negacirculant Codes

We first determine the number of solutions to significant equations over F q , which will be utilized later in the enumeration sections.
Lemma 1.
Let q be an odd prime power. The equation a b q + b a q = 0 in F q 2 has exactly ( q 2 1 ) q solutions with a 0 .
Proof. 
We now analyze the equation a b q + b a q = 0 for a 0 in detail. First, since a 0 , we can divide both sides of the equation by a q + 1 to obtain b q a q + b a = 0 . Let c = b a . Then, the equation simplifies to c q + c = 0 . We study solutions to c q = c . The trivial solution is c = 0 . For c 0 , we can write the equation as c q 1 = 1 . To count the number of non-zero solutions, we use the following observations about the field F q 2 . The multiplicative group F q 2 × is cyclic of order q 2 1 . Moreover, the equation c q 1 = 1 has solutions if and only if 1 is in the image of the ( q 1 ) -th power map. Suppose that c = ω k , where ω = F q 2 × . Then, c q 1 = ω k ( q 1 ) = 1 , and thus k ( q 1 ) = q 2 1 2 mod q 2 1 . The solution exists if and only if gcd ( q 1 , q 2 1 ) divides q 2 1 2 . As gcd ( q 1 , q 2 1 ) = q 1 divides q 2 1 2 , we have the existence of the solution of c q 1 = 1 . The number of solutions to c q 1 = 1 is equal to the number of ( q 1 ) -th roots of 1 . Since the ( q 1 ) -th power map is a group homomorphism F q 2 × F q 2 × with a kernel of size gcd ( q 1 , q 2 1 ) = q 1 , the equation c q 1 = 1 has exactly q 1 solutions when 1 is in the image, which it is, as established. Therefore, the equation c q = c has 1 solution when c = 0 and q 1 solutions when c 0 , giving a total of q solutions for c. The solutions are ω k + i q 2 1 q 1 , where i = 0 , 1 , 2 , , q 1 .
For each non-zero a F q 2 , there are exactly q corresponding b values (one for each solution c, via b = c a ). Since there are q 2 1 choices for a 0 , the total number of solutions ( a , b ) with a 0 is ( q 2 1 ) q . □
Remark 1.
The equation is c q + c = 0 over F q 2 , where q = p m and p 2 defines a 1-dimensional F q -subspace of F q 2 . Indeed, viewing the F q -linear Frobenius operator σ : c c q , its minimal polynomial over F q is z 2 1 , which factors into distinct roots since p 2 . Consequently, the endomorphism σ + id has a 1-dimensional kernel, yielding exactly q solutions to c q + c = 0 .
This algebraic structure has a geometric interpretation in the affine space A 2 ( F q 2 ) via the equation a b q + b a q = 0 . For a fixed a 0 , all solutions b can be written as b = a y with y in the kernel above. Thus, the set of solutions forms an F q -line, reflecting the principles of Hermitian duality in F q 2 . Moreover, the equation a b q + b a q = 0 can be regarded as the alternating form associated with the Hermitian pairing a b q b a q , whose solutions are precisely the isotropic vectors, i.e., self-orthogonal vectors with respect to this pairing.
This perspective unifies three viewpoints: the arithmetic of F q 2 under the Frobenius action, the geometry of F q -lines in affine space, and the algebra of quadratic forms. The recurrent appearance of expressions of the form a b q ± b a q illustrates the deep interplay between these areas, as linear algebra over F q constrains both the dimension of the solution space and its Hermitian interpretation.
In what follows, we need the norm function N : F q e F q , given by N ( δ ) = δ q e 1 q 1 , which is multiplicative and surjective, with each δ F q × having q e 1 q 1 preimages in F q e × .
Proposition 1.
The number of solutions in F q 2 of the system 1 + a a q = 0 , a b q + b a q = 0 , a c q + c a q = 0 is ( q + 1 ) q 2 .
Proof. 
The system of equations reduces to two fundamental conditions: the norm condition Norm ( a ) = a a q = 1 and the trace-like conditions Tr ( a b q ) = Tr ( a c q ) = 0 . The norm equation Norm ( a ) = 1 admits exactly q + 1 solutions in F q 2 , since the norm map N : F q 2 F q is surjective and each non-zero value has q + 1 preimages. For each fixed solution a satisfying the norm condition, the constraints on b and c become F q -linear equations. These determine affine subspaces of dimension 1 over F q (1-dimensional F q -subspace of F q 2 ), resulting in q valid choices for each of b and c independently by Lemma 1 and Remark 1. Consequently, the total number of admissible triples ( a , b , c ) is given by the product
( q + 1 ) × q × q = ( q + 1 ) q 2 .

3.1. Structures and Enumeration of Double Circulant Codes

Let n be an odd positive integer, gcd ( n , q ) = 1 , and over R q , u , v , we have
z n 1 = δ ( z 1 ) i = 2 e l i ( z ) j = 1 d k j ( z ) k j ( z ) ,
where
n = 1 + i = 2 e 2 f i + 2 j = 1 z h j , δ R q , u , v × ( the group of units in R q , u , v ) ; k j ( z ) is the reciprocal of k j ( z ) , both of degree h j for 1 j d ; l i ( z ) is self - reciprocal of degree 2 f i for 2 i e .
By CRT, we obtain the decomposition
R q , u , v [ z ] z n 1 R q , u , v i = 2 e R q , u , v [ z ] l i ( z ) j = 1 d R q , u , v [ z ] k j ( z ) R q , u , v [ z ] k j ( z )
with R q r , u , v = F q r + u F q r + v F q r for r { 2 f i , h j } , where u 2 = u , v 2 = 0 , and u v = v u = 0 . This extends to
R q , u , v [ z ] z n 1 2 R q , u , v 2 i = 2 e R q 2 f i , u , v 2 j = 1 d R q h j , u , v 2 R q h j , u , v 2 .
Any length-2 linear code C over R q , u , v [ z ] z n 1 decomposes as
C C 1 i = 2 e C i j = 1 d C j C j ,
C 1 is a code over R q , u , v , C i is a code over R 2 f i for 2 i e , C j , C j are codes over R h j for 1 j d .
Proposition 2.
Let C be a double circulant code over R q , u , v decomposed as in (), and
C 1 = ( 1 , c f 1 ) R q , u , v , C i = ( 1 , c f i ) R q 2 f i , u , v for 2 i e , C j ( 1 ) = ( 1 , c h j ( 1 ) ) R q h j , u , v , C j ( 2 ) = ( 1 , c h j ( 2 ) ) R q h j , u , v for 1 j d .
Then, the following characterizations hold:
1. 
The code C is self-dual if and only if
1 + c f 1 2 = 0 , in R q , u , v ;
1 + c f i 1 + q f i = 0 , in R q 2 f i , u , v ( 2 i e ) ;
1 + c h j ( 1 ) c h j ( 2 ) = 0 , in R q h j , u , v ( 1 j d ) .
2. 
The code C is Euclidean LCD if and only if the following units exist:
1 + c f 1 2 R × , 1 + c f i 1 + q f i R q 2 f i , u , v × , 1 + c h j ( 1 ) c h j ( 2 ) R q h j , u , v × .
Proof. 
The result follows from the CRT decomposition in (13) and the characterization of self-duality and the LCD property for double circulant codes. For a double circulant code C with generator matrix G = [ I M ] , the self-duality condition C = C is equivalent to G G = 0 . Direct computation gives G G = [ I M ] [ I M ] = I + M M . Thus, self-duality requires M M = I . Since M is circulant and corresponds to an element c over R q , u , v , this matrix equation translates to the polynomial equation 1 + c 2 = 0 in the ring. Under the CRT decomposition, this condition decouples into independent conditions on each component:
  • For the component over R q , u , v corresponding to the linear factor, self-duality requires 1 + c f 1 2 = 0 ;
  • For components over R q 2 f i , u , v corresponding to self-reciprocal irreducible factors, self-duality requires 1 + c f i 1 + q f i = 0 , where the exponent 1 + q f i arises from the Frobenius action;
  • For reciprocal pairs over R q h j , u , v , self-duality requires 1 + c h j ( 1 ) c h j ( 2 ) = 0 .
Similarly, C is Euclidean LCD if and only if 1 + c 2 is a unit in the appropriate ring. Under the CRT decomposition, this becomes the requirement that each component 1 + c f 1 2 , 1 + c f i 1 + q f i , and 1 + c h j ( 1 ) c h j ( 2 ) is a unit in its respective ring. The result follows by applying these characterizations to each component of the CRT decomposition. □
Theorem 1.
Suppose that n is an odd integer, and consider factorization (12). Then, the total number N s of self-dual double circulant codes over R q , u , v is
N s = 2 i = 2 e [ q 3 f i + q 2 f i ] j = 1 d [ ( q h j 1 ) q 2 h j ] .
Proof. 
The value of N s can be determined through a counting method. There are only two options for C 1 , characterized by the generator polynomials ( 1 , ν ) and ( 1 , ν ) , where ν 2 = 1 . To determine the count of self-dual codes concerning the Hermitian inner product, it is necessary to identify the count of zeros of
1 + c f i c f i q f i = 0 .
Expressing c f i in terms of the basis elements, we write
c f i = a + b u + c v for some a , b , c F q 2 f i .
Substituting this expression into our original equation yields
1 + a + u b + v c a + u b + v c q f i = 0 .
Let us analyze in detail the number of solutions to the equation 1 + ( a + b u + c v ) ( a + b u + c v ) q f i = 0 in the ring R q , u , v , where a , b , c F q 2 f i and u 2 = 0 . First, we expand the product using the ring relations
( a + b u + c v ) ( a q f i + b q f i u + c q f i v ) = a a q f i + a b q f i u + b a q f i u + a c q f i v + c a q f i v = a a q f i + ( a b q f i + b a q f i ) u + ( a c q f i + c a q f i ) v
since all higher-order terms vanish ( u 2 = 0 , v 2 = 0 , u v = 0 ). This gives us the equation
1 + a a q f i + ( a b q f i + b a q f i ) u + ( a c q f i + c a q f i ) v = 0 .
Equating the coefficients yields three independent conditions.
  • The constant term: It gives the norm equation 1 + a a q f i = 0 . This is the norm condition N ( a ) = 1 , where N : F q 2 f i F q f i is the field norm. Since the norm is surjective and each value has q f i + 1 preimages, there are exactly q f i + 1 solutions for a .
  • The u-coefficient gives
    a b q f i + b a q f i = 0 .
    For each fixed a 0 , it has exactly q f i solutions for b by Lemma 1.
  • The v-coefficient gives
    a c q f i + c a q f i = 0 .
    This has an identical structure to the u-condition, providing q f i solutions for c for each valid ( a , b ) pair.
Thus, the total number of solutions ( a , b , c ) is
( q f i + 1 ) × q f i × q f i = ( q f i + 1 ) q 2 f i .
We now enumerate the dual pairs of codes with respect to the Euclidean inner product. This requires determining the number of solutions of
1 + c h j ( 1 ) c h j ( 2 ) = 0 .
Two disjoint cases arise depending on whether c h j ( 1 ) is a unit.
  • Unit case: When c h j ( 1 ) R q , u , v , h j × , the dual element must satisfy c h j ( 2 ) = 1 c h j ( 1 ) . In this scenario, there are exactly ( q h j 1 ) q 2 h j possible pairs { c h j ( 1 ) , c h j ( 2 ) } , corresponding to the order of the unit group R q , u , v , h j × .
  • Non-unit case: For c h j ( 1 ) R q , u , v , h j R q , u , v , h j × , we express the element as
    c h j ( 1 ) = b u + c v with b , c F q h j ,
    where at least one coordinate is zero. Letting c h j ( 2 ) = b 1 + b 2 u + b 3 v , where b i F q h j , the equation becomes
    1 + c h j ( 1 ) c h j ( 2 ) = 1 + ( b b 1 ) u + ( c b 1 ) v = 0 .
    This yields the system
    b b 1 = 0 , c b 1 = 0 .
    However, we also obtain the contradiction 1 = 0 . Thus, no solutions exist in this case.
The complete enumeration shows that only the unit case contributes valid solutions, giving exactly ( q h j 1 ) q 2 h j distinct dual pairs. Combining these results yields the desired conclusion. □
Theorem 2.
The number of LCD double circulant codes over R q , u , v is given by
N d = ( q 2 ) q 2 i = 2 e [ ( q 2 f i q f i 1 ) q 4 f i ] j = 1 z [ q 3 h j + ( ( q h j 1 ) q h j ) 2 ] .
Proof. 
If C 1 is an LCD code, first, we recall that q is odd and 1 is a square in F q . We determine the number of triples ( a , b , c ) F q 3 for which 1 + ( a + b u + c v ) 2 is a unit in R. Expanding ( a + b u + c v ) 2 yields a 2 + 2 a b u + 2 a c v since all higher-order terms vanish due to the ring relations. The element 1 + ( a + b u + c v ) 2 = ( 1 + a 2 ) + 2 a b u + 2 a c v is a unit if and only if its constant term 1 + a 2 0 . When 1 is a square, there exist exactly two distinct elements ν , ν F q such that ν 2 = 1 . Thus, 1 + a 2 = 0 holds only when a = ν or a = ν , leaving q 2 valid choices for a. For each such a, the coefficients b and c can be chosen freely from F q because the nilpotent terms 2 a b u and 2 a c v do not affect the invertibility condition. Consequently, there are q options for b and q for c per valid a, resulting in ( q 2 ) × q × q = ( q 2 ) q 2 total solutions.
Under the Hermitian inner product, we determine when C f i is an LCD code over R q 2 f i , u , v . Thus, C f i is Hermitian LCD if 1 + ( a + b u + c v ) 1 + q f i is a unit in R q 2 f i , u , v . Expanding using the ring relations, we compute
( a + b u + c v ) 1 + q f i = ( a + b u + c v ) ( a + b u + c v ) q f i = ( a + b u + c v ) ( a q f i + b q f i u + c q f i v ) = a a q f i + ( a b q f i + b a q f i ) u + ( a c q f i + c a q f i ) v
Thus, the expression becomes
1 + ( a + b u + c v ) 1 + q f i = ( 1 + a a q f i ) + ( a b q f i + b a q f i ) u + ( a c q f i + c a q f i ) v
For this to be a unit in R, the constant term must be non-zero, i.e., 1 + a a q f i 0 . This is equivalent to requiring that a is not a root of the equation a a q f i = 1 . The number of such a F q 2 f i is exactly q f i + 1 . Therefore, there are q 2 f i ( q f i + 1 ) = q 2 f i q f i 1 valid a values. For each valid a, the coefficients b and c can be chosen freely from F q 2 f i , giving q 2 f i choices for each using Proposition 1. Therefore, the total number of triples ( a , b , c ) is
( q 2 f i q f i 1 ) × q 2 f i × q 2 f i = ( q 2 f i q f i 1 ) q 4 f i .
We analyze the condition for 1 + ( a + b u + c v ) ( a + b u + c v ) to be a unit in the ring R q h j , u , v . Expanding the product gives ( a + b u + c v ) ( a + b u + c v ) = a a + ( a b + b a ) u + ( a c + c a ) v since all higher-order terms vanish due to the ring relations. The expression then becomes 1 + ( a + b u + c v ) ( a + b u + c v ) = ( 1 + a a ) + ( a b + b a ) u + ( a c + c a ) v . For this to be a unit in R, the constant term must satisfy 1 + a a 0 in F q h j , while the coefficients of u and v do not affect invertibility as they multiply nilpotent elements. When a = 0 , the condition reduces to c f i ( 2 ) , which means that there are q 3 h j of a , b and c . For a 0 , we must have a a 1 , 0 , yielding q h j 2 valid choices for a for each of the q h j 1 non-zero a. The coefficients b , b , c , c are independent and freely chosen from F q h j , with q h j choices each. The total number of solutions is therefore ( q h j 2 ) ( q h j 1 ) q 4 h j , computed as ( q h j 1 ) choices for a, ( q h j 1 ) for a , and q h j for each of b , b , c , c . This count holds uniformly across all finite fields F q h j regardless of the characteristic. The final result is
q 3 h j + ( ( q h j 1 ) q h j ) 2 .
The complete count is obtained by multiplying together the enumerations from all three cases: the ( q 2 ) q 2 Euclidean LCD components, the product of Hermitian LCD components i = 2 e [ ( q 2 f i q f i 1 ) q 4 f i ] , and the product of dual pair components ( q h j 2 ) ( q h j 1 ) q 4 h j . This implies
N d = [ ( q 2 ) q 2 ] Case 1 × i = 2 e [ ( q 2 f i q f i 1 ) q 4 f i ] Case 2 × j = 1 z [ q 3 h j + ( ( q h j 1 ) q h j ) 2 ] Case 3
where each factor corresponds to a distinct class of components in the decomposition. Combining the independent component counts yields the stated formula. The product structure reflects the independent choices available for each type of component while maintaining the necessary algebraic constraints. □
Example 1.
The factorization of z 15 1 over F 7 is given by
z 15 1 = ( z + 6 ) ( z + 3 ) ( z + 5 ) ( z 4 + z 3 + z 2 + z + 1 ) ( z 4 + 2 z 3 + 4 z 2 + z + 2 ) ( z 4 + 4 z 3 + 2 z 2 + z + 4 ) .
The factors decompose as follows: the linear term z + 6 = z 1 ( mod 7 ) serves as the special term; ( z + 3 , z + 5 ) form a reciprocal pair since 3 × 5 = 1 ( mod 7 ) ; p ( z ) = z 4 + z 3 + z 2 + z + 1 is self-reciprocal with z 4 p ( 1 z ) = p ( z ) ; and ( k ( z ) = z 4 + 2 z 3 + 4 z 2 + z + 2 , k ( z ) = z 4 + 4 z 3 + 2 z 2 + z + 4 ) form another reciprocal pair after coefficient normalization. The degree formula is verified as
n = 1 + i = 1 e 2 f i + 2 j = 1 z h j = 1 + 2 ( 2 ) + 2 ( 1 + 4 ) = 15 ,
where f 1 = 2 corresponds to a self-reciprocal quartic factor, h 1 = 1 to a linear conjugate pair, and h 2 = 4 to a quartic conjugate pair. The unit count is then obtained by applying Theorem 1,
N s = 2 ( 7 2 + 7 ) ( 7 1 ) ( 7 2 ) ( 7 4 1 ) ( 7 8 ) = 96 ( 7 11 ) ( 7 4 1 ) .
Theorem 2 for constrained invertibles gives
N d = 215 7 11 · ( 7 4 7 2 1 · 7 12 + ( 7 4 1 ) 2 · 7 4 .
This demonstrates how the factorization structure determines both counting formulas, with the special term z + 6 = z 1 ( mod 7 ) ensuring that the degree formula closes correctly.

3.2. Structures and Enumeration of Double Negacirculant Codes

This subsection focuses on enumerating self-dual and LCD double negacirculant codes over the ring R q , u , v . We consider even positive integers n satisfying gcd ( n , q ) = 1 , and, over R q , u , v , suppose
z n + 1 = γ i = 1 e l i ( z ) j = 1 d k j ( z ) k j ( z ) ,
where the factors satisfy
γ R q , u , v , ( unit constant ) l i ( z ) = z 2 f i l i ( 1 z ) , deg ( l i ) = 2 f i ( self - reciprocal ) k j ( z ) = z h j k j ( 1 z ) , deg ( k j ) = deg ( k j ) = h j ( reciprocal pair )
Following a methodology analogous to that in the double circulant case, we obtain the ring decomposition
R q , u , v [ z ] z n + 1 i = 1 e R q , u , v 2 f i j = 1 d ( R q , u , v h j R q , u , v h j ) ,
where for r = 2 f i or h j , and the components R q r , u , v = F q r + u F q r + v F q r satisfy the relations u 2 = 0 , v 2 = 0 , and u v = v u = 0 . Consequently, any length-2 linear code C decomposes as
C i = 1 e C i j = 1 d ( C j ( 1 ) C j ( 2 ) ) ,
with C i being a linear code over R q , u , v 2 f i for 1 i e and C j ( 1 ) , C j ( 2 ) linear codes over R q , u , v h j for 1 j d .
The enumeration is built upon the following key result, which follows from arguments similar to those involved in establishing Proposition 2.
Lemma 2.
Let C be a double negacirculant code over R q , u , v with code codes C i R q 2 f i , u , v ( 1 i e ) and C j ( 1 ) , C j ( 2 ) R q h j , u , v ( 1 j d ). Suppose that the generators of these codes are given by
c i = ( 1 , c f i ) , for C i , c j ( 1 ) = ( 1 , c h j ( 1 ) ) , for C j ( 1 ) , c j ( 2 ) = ( 1 , c h j ( 2 ) ) , for C j ( 2 ) .
Then, the following characterizations hold.
1. 
Self-duality: The code C is self-dual if and only if the following conditions are satisfied:
1 + c f i 1 + q f i = 0 ,
1 + c h j ( 1 ) c h j ( 2 ) = 0 .
2. 
Euclidean LCD property: The code C is Euclidean LCD if and only if
1 + c f i 1 + q f i R q 2 f i , u , v × ,
1 + c h j ( 1 ) c h j ( 2 ) R q h j , u , v × .
Theorem 3.
For an even integer n, suppose the factorization in (26). The number N s n e g a of self-dual double negacirculant codes over R is
N s n e g a = i = 1 e ( q f i + 1 ) q 2 f i j = 1 d ( q h j 1 ) q 2 h j .
Proof. 
The enumeration of N s n e g a reduces to counting solutions for the code codes. For each code code C i , we must determine the number of solutions to the algebraic condition
1 + c f i c f i q f i = 0 ,
where c f i R 2 f i . Representing c f i in terms of the basis { 1 , u , v } , we write
c f i = a + b u + c v for a , b , c F q 2 f i .
Substituting this expression into our equation yields
1 + ( a + b u + c v ) ( a q f i + b q f i u + c q f i v ) = 0 .
Expanding the product and using the ring relations u 2 = v 2 = u v = 0 , we obtain the system
1 + a a q f i = 0 , a b q f i + b a q f i = 0 , a c q f i + c a q f i = 0 .
Consequently, by Proposition 1, the total number of admissible triples ( a , b , c ) is given by the product
( q f i + 1 ) × q f i × q f i = ( q f i + 1 ) q 2 f i .
To enumerate the dual pairs { c j ( 1 ) , c j ( 2 ) } , we analyze solutions to the equation
1 + c h j ( 1 ) c h j ( 2 ) = 0 .
The solution space decomposes into two cases based on the unit properties of c h j ( 1 ) .
  • Unit case: When c h j ( 1 ) R q h i , u , v × , the relation c h j ( 2 ) = 1 c h j ( 1 ) determines a unique dual partner. Since the unit group satisfies | R q h i , u , v × | = ( q h j 1 ) q 2 h j , there are exactly ( q h j 1 ) q 2 h j valid pairs in this case.
  • Non-unit case: For c h j ( 1 ) R q h i , u , v R q h i , u , v × , expressed as a + b u + c v , where a , b , c F q h j are not all zero, the equation becomes
    1 + ( a + b u + c v ) ( b 1 + b 2 u + b 3 v ) = ( 1 + a b 1 ) + ( b b 1 + a b 2 ) u + ( c b 1 + a b 3 ) v = 0 .
    This system requires
    1 + a b 1 = 0 , b b 1 + a b 2 = 0 , c b 1 + a b 3 = 0 .
    If any coefficient a , b , c vanishes, the system becomes inconsistent ( 1 = 0 ). Hence, no solutions exist in the non-unit case.
Combining these results with the previous enumeration of C i components, we have
N s n e g a = i = 1 e ( q f i + 1 ) q 2 f i j = 1 d ( q h j 1 ) q 2 h j .
Using an analogous methodology, we now establish the enumeration of LCD double negacirculant codes over R q , u , v .
Theorem 4.
The total number of LCD double negacirculant codes N d n e g a over R q , u , v is
N d n e g a = i = 1 e ( q 6 f i q 5 f i 2 q 3 f i 6 q 2 f i + 5 q f i + 8 ) j = 1 d ( q 6 h j 2 q 5 h j + q 4 h j + q 3 h j ) .
Proof. 
A double negacirculant code over R q , u , v decomposes into a family of constituent codes
C 1 , , C e , { C j ( 1 ) , C j ( 2 ) } j = 1 d ,
where each C i is a length-two code over R q 2 f i , u , v and each pair ( C j ( 1 ) , C j ( 2 ) ) is defined over R q h j , u , v .
  • (i) LCD condition for self-reciprocal constituents. For a constituent C i = ( 1 , c f i ) over R q 2 f i , u , v , the LCD property holds precisely when
    1 + c f i c f i # R q 2 f i , u , v × ,
    where c f i # denotes the Hermitian conjugate with respect to the extension F q 2 f i / F q f i . Since c f i # = c f i q f i , the condition is equivalently
    1 + c f i 1 + q f i R q 2 f i , u , v × .
  • Case A:  c f i = 0 . In this case, the condition is trivially satisfied because 1 R × . Hence, there is exactly one valid choice. Case B:  c f i F q 2 f i × . Here, the constraint reads a 1 + q f i 1 with a = c f i . Consider the norm map
    N : F q 2 f i × F q f i × , N ( a ) = a 1 + q f i .
    The map is surjective, and each element of F q f i × has exactly q f i + 1 preimages. Thus, since N ( a ) = 1 admits q f i + 1 solutions, the number of admissible a is
    ( q 2 f i 1 ) ( q f i + 1 ) = q 2 f i q f i 2 .
    By symmetry, the same enumeration applies when c f i u or v .
  • Case C:  c f i = a + b u , with a , b F q 2 f i and b 0 . Then,
    1 + c f i 1 + q f i = 1 + a 1 + q f i + u b 1 + q f i .
    The element is a unit exactly when a 1 + q f i 1 , and b may be any non-zero element of F q 2 f i . Hence,
    Count : ( q 2 f i q f i 2 ) ( q 2 f i 1 ) .
    By ring symmetry, the same count applies if c f i = a + b v .
  • Case D:  c f i = a + b u + c v . Again, a 1 + q f i 1 , while b , c F q 2 f i are arbitrary, giving
    Count : ( q 2 f i q f i 2 ) q 4 f i .
  • (ii) Enumeration for self-reciprocal components. Adding the disjoint counts from all cases yields
    1 + 3 ( q 2 f i q f i 2 ) + 2 ( q 2 f i q f i 2 ) ( q 2 f i 1 ) + ( q 2 f i q f i 2 ) q 4 f i .
    Simplifying gives
    q 6 f i q 5 f i 2 q 3 f i 6 q 2 f i + 5 q f i + 8 .
  • (iii) LCD condition for reciprocal pairs. Consider a pair
    ( C j ( 1 ) , C j ( 2 ) ) = ( ( 1 , c h j ( 1 ) ) , ( 1 , c h j ( 2 ) ) ) .
    The LCD criterion reads
    1 + c h j ( 1 ) c h j ( 2 ) R q h j , u , v × .
  • Case 1:  c h j ( 1 ) = 0 . Then, 1 R × ; hence, c h j ( 2 ) may be arbitrary, giving q 3 h j solutions.
  • Case 2:  c h j ( 1 ) R q h j , u , v × . For each unit x = c h j ( 1 ) , the condition is satisfied uniquely by
    c h j ( 2 ) = x 1 .
    Since | R q h j , u , v × | = ( q h j 1 ) q 2 h j , the number of such pairs is
    ( q h j 1 ) 2 q 4 h j .
    Combining both cases gives
    q 3 h j + ( q h j 1 ) 2 q 4 h j = q 6 h j 2 q 5 h j + q 4 h j + q 3 h j .
  • (iv) Final enumeration. Multiplying all contributions yields the total number of LCD double negacirculant codes,
    N dnega = i = 1 e q 6 f i q 5 f i 2 q 3 f i 6 q 2 f i + 5 q f i + 8 j = 1 d q 6 h j 2 q 5 h j + q 4 h j + q 3 h j ,
    as claimed. □
Example 2.
The factorization of z 10 + 1 over F 7 decomposes into irreducible polynomials as
z 10 + 1 = ( z 2 + 1 ) ( z 4 + 3 z 3 + 4 z 2 + 4 z + 1 ) ( z 4 + 4 z 3 + 4 z 2 + 3 z + 1 ) .
The quadratic factor g 1 ( z ) = z 2 + 1 is self-reciprocal, satisfying z 2 g 1 ( 1 z ) = g 1 ( z ) with parameter f 1 = 1 through degree correspondence 2 = 2 f 1 . The quartic factors form a reciprocal pair ( k 1 , k 1 ) where k 1 ( z ) = z 4 h 1 ( 1 z ) , yielding h 1 = 4 . The degree summation formula is
n = i = 1 e 2 f i + 2 j = 1 d h j = 2 ( 1 ) + 2 ( 4 ) = 10 .
Applying Theorem 3 with parameters q = 7 , s = 1 , t = 1 gives the unit count
N s n e g a = ( 7 1 + 1 ) 7 2 × ( 7 4 1 ) 7 8 = 392 × 2400 × 7 8 ,
where the first term corresponds to the self-reciprocal factor and the second to the reciprocal pair. Theorem 4 produces the constrained count
N d n e g a = ( 7 6 7 5 2 · 7 3 6 · 7 2 + 43 ) × ( 7 24 2 · 7 20 + 7 16 + 7 12 ) ,
with the sextic polynomial in 7 f i capturing self-reciprocal constraints and the degree-24 expression reflecting reciprocal pair contributions.
Remark 2.
The example demonstrates how the factorization structure governs both counting formulas: self-reciprocal factors contribute through additive ( q f i + 1 ) terms in Theorem 3 and higher-order vanishing conditions in Theorem 4, while reciprocal pairs appear multiplicatively via ( q h j 1 ) and through their characteristic polynomial relations. The degree verification ensures parameter consistency between the factorization and counting formulas.

4. Asymptotic Bounds for Self-Dual Double Circulant Codes

In this section, we establish explicit asymptotic existence bounds for self-dual and LCD double circulant codes over the local ring R q , u , v . The key ingredients are the exact enumeration results in Theorems 1 and 2, together with a sharp union-bound argument applied to the Gray images of these codes. Throughout this section, we assume that (i) n is an odd prime and (ii) q is a primitive root modulo n.
Lemma 3.
Let n be an odd prime and suppose that q is a primitive root modulo n. Then, the following statements hold in R q , u , v [ z ] .
1. 
The polynomial z n 1 factors are
z n 1 = ( z 1 ) h ( z ) ,
where h ( z ) is the unique Hensel lift of h 0 ( z ) = 1 + z + + z n 1 and is irreducible in R q , u , v [ z ] .
2. 
The ideals z 1 and h ( z ) are comaximal in R q , u , v [ z ] .
3. 
Consequently, the following CRT decomposition holds:
R q , u , v [ z ] z n 1 R q , u , v [ z ] z 1 R q , u , v [ z ] h ( z ) .
Proof. 
Let π : R q , u , v [ z ] F q [ z ] denote the natural reduction map modulo the maximal ideal m = u , v . Since q is a primitive root modulo n and n is a prime, the cyclotomic factorization of z n 1 over F q is
z n 1 = ( z 1 ) h 0 ( z ) , h 0 ( z ) = 1 + z + + z n 1 ,
where h 0 ( z ) is irreducible and gcd ( z 1 , h 0 ( z ) ) = 1 in F q [ z ] .
  • (1) Lifting the factorization and irreducibility. The ring R q , u , v is local with maximal ideal m and residue field F q . By Hensel’s lemma for factorizations modulo nilpotent ideals: if f g 0 h 0 ( mod m ) with gcd ( g 0 , h 0 ) = 1 in F q [ z ] , then there exist unique monic lifts g 1 , h 1 R q , u , v [ z ] satisfying g 1 g 0 , h 1 h 0 ( mod m ) and f = g 1 h 1 in R q , u , v [ z ] .
Applying this to f ( z ) = z n 1 , g 0 ( z ) = z 1 and h 0 ( z ) as above, we obtain the lifted factorization
z n 1 = ( z 1 ) h ( z ) , π ( h ) = h 0 .
To prove the irreducibility of h ( z ) , suppose that h ( z ) = a ( z ) b ( z ) with non-unit a , b R q , u , v [ z ] . Reducing modulo m gives h 0 ( z ) = π ( a ( z ) ) π ( b ( z ) ) in F q [ z ] . Since h 0 ( z ) is irreducible, one of π ( a ( z ) ) , π ( b ( z ) ) must be a non-zero constant in F q . Assume that π ( a ( z ) ) = ω F q × . Then, a ( z ) = ω + η ( z ) with η ( z ) m [ z ] , and ω + η ( z ) is a unit in R q , u , v [ z ] . Hence, a ( z ) is a unit, which is a contradiction. Therefore, h ( z ) is irreducible in R q , u , v [ z ] .
  • (2) Coprimeness. Since gcd ( z 1 , h 0 ( z ) ) = 1 in F q [ z ] , there exist a 0 ( z ) , b 0 ( z ) F q [ z ] such that
    a 0 ( z ) ( z 1 ) + b 0 ( z ) h 0 ( z ) = 1 .
    Interpreting a 0 and b 0 as elements of R q , u , v [ z ] gives
    a 0 ( z ) ( z 1 ) + b 0 ( z ) h ( z ) = 1 + t ( z ) , t ( z ) m [ z ] .
    Since 1 + t ( z ) is a unit in R q , u , v [ z ] , multiplying both sides by its inverse yields
    a ( z ) ( z 1 ) + b ( z ) h ( z ) = 1
    for some a ( z ) , b ( z ) R q , u , v [ z ] . Thus, z 1 + h ( z ) = R q , u , v [ z ] , and the two ideals are coprime.
  • (3) Chinese remainder decomposition. Since ( z 1 ) h ( z ) = z n 1 and the ideals z 1 and h ( z ) are coprime,
    z n 1 = z 1 h ( z ) .
    The CRT therefore gives the ring isomorphism
    R q , u , v [ z ] z n 1 R q , u , v [ z ] z 1 R q , u , v [ z ] h ( z ) .
A codeword c in a cyclic code C R q , u , v n is said to be constant if it lies entirely in the component associated with the ideal z 1 or, equivalently, if its projection belongs to the ideal h ( z ) R q n 1 , u , v . Constant codewords reflect the trivial part of the decomposition under the CRT and do not contribute to the exponential growth of the code family. In contrast, non-constant vectors arise from the h ( z ) -component corresponding to the irreducible factor of degree n 1 , and they are precisely the ones relevant for bounding the number of codes containing a given low-weight vector.
Remark 3.
The Gray map is an isometry that maintains orthogonality, so self-duality and LCD characteristics over R q , u , v exactly correspond to Euclidean self-duality (or LCD) over F q . While a double circulant code of length 2 n possesses a Gray image of length 6 n , the CRT decomposition indicates that solely the non-constant component of length 3 n influences the asymptotic expansion of the code family. Limiting the union-bound argument to this non-constant block produces precise and accurate asymptotic bounds, thereby encapsulating the influence of the Gray image length and the inner product structure.
Lemma 4.
Let z = ( y , θ ) R q , u , v 2 n be a non-zero vector such that y is non-constant. Then, the number of double circulant codes
C x = ( 1 , x ) R q , u , v 2 n
that contain z satisfies the uniform bound
# C x : z C x q 2 n + 1 .
Proof. 
By the Chinese remainder decomposition given in Equation (33),
R q , u , v [ z ] z n 1 R q , u , v R q n 1 , u , v ,
every element (and, in particular, every generator x) splits uniquely as
x = ( x 1 , x 2 ) , x 1 R q , u , v , x 2 R q n 1 , u , v .
Likewise, write y = ( y 1 , y 2 ) and θ = ( θ 1 , θ 2 ) . The membership condition z C x is equivalent to
θ = y · x ,
which decouples into the two componentwise equalities
θ 1 = y 1 x 1 ,
θ 2 = y 2 x 2 .
We count admissible x = ( x 1 , x 2 ) by counting the solutions of (34) and (35) and multiplying.
  • (i) Counting solutions to θ 1 = y 1 x 1 . Every element of R q , u , v has the unique form
    t = a + u b + v c , a , b , c F q ,
    with multiplication rule
    ( α + u β + v γ ) ( a + u b + v c ) = α a + u ( α b + β a ) + v ( α c + γ a )
    (since u 2 = v 2 = u v = v u = 0 ). Write
    x 1 = a 1 + u b 1 + v c 1 , y 1 = α 1 + u β 1 + v γ 1 , θ 1 = α 1 + u β 1 + v γ 1 .
    Then, (34) is equivalent to the scalar system over F q :
    α 1 = α 1 a 1 , β 1 = α 1 b 1 + β 1 a 1 , γ 1 = α 1 c 1 + γ 1 a 1 .
We now enumerate the possibilities (for fixed y 1 , θ 1 ).
  • If y 1 = 0 , then α 1 = β 1 = γ 1 = 0 . In order for (34) to hold, we must have θ 1 = 0 as well; in this case, no coordinate of x 1 is constrained, so there are q 3 choices for x 1 .
  • If y 1 is a non-zero scalar multiple of one of 1 , u , v (i.e., exactly one of α 1 , β 1 , γ 1 is non-zero), then exactly one of the three scalar equations above determines one coordinate of x 1 , while the remaining two coordinates are free. Hence, there are q 2 solutions for x 1 .
  • If y 1 has two (or three) non-zero components (for example, y 1 = α 1 + u β 1 with α 1 , β 1 0 ), then two of the scalar equations determine two coordinates of x 1 and the remaining coordinate is free, so there are q solutions for x 1 .
  • (ii) Counting solutions to θ 2 = y 2 x 2 . The same decomposition arguments apply in R q n 1 , u , v ; write
    x 2 = a 2 + u b 2 + v c 2 , a 2 , b 2 , c 2 F q n 1 ,
    and similarly for y 2 , θ 2 . Equation (35) reduces to three scalar equalities over F q n 1 of the same form as above. Because each free scalar now ranges over F q n 1 (size q n 1 ), the counts parallel the previous cases but with a larger field.
  • y 2 = 0 : This is impossible under the hypothesis that y is not constant, so this case is excluded.
  • y 2 is a non-zero scalar multiple of 1 , u or v: One coordinate of x 2 is determined and two are free, yielding q 2 ( n 1 ) possibilities.
  • y 2 has mixed form: Two coordinates of x 2 are determined and one is free, yielding q n 1 possibilities.
  • (iii) Combining the counts. For fixed z, the total number of admissible x = ( x 1 , x 2 ) is the product of the numbers of choices for x 1 and for x 2 . The maximum is attained when x 1 lies in the unconstrained subcase ( q 3 choices) and x 2 lies in the subcase with two free coefficients ( q 2 ( n 1 ) choices); hence,
    # { C x z } q 3 · q 2 ( n 1 ) = q 2 n + 1 .
    This proves the lemma. □
Remark 4.
The bound is tight when y 1 = 0 and y 2 lies in the single-generator subspace, yielding the maximal solution space of size q 2 n + 1 . This result plays a central role in the union-bound argument later, as it controls the number of self-dual or LCD codes containing any fixed low-weight non-constant vector.
Keeping the same notations, we have the following result.
Theorem 5.
Let z = ( y , θ ) R q , u , v 2 n be a non-zero vector such that y is non-constant. Then, the number of self-dual double circulant codes
C x = ( 1 , x ) R q , u , v 2 n
that contain z satisfies the upper bound
# self - dual C x : z C x 2 1 + q n 1 2 q n 1 .
Proof. 
The proof refines the counting argument of Lemma 4 by incorporating the self-duality constraint on the generator x.
  • (i) Decomposition under CRT. By the Chinese remainder decomposition
    R q , u , v [ z ] z n 1 R q , u , v R q n 1 , u , v ,
    every generator x splits uniquely as x = ( x 1 , x 2 ) with x 1 R q , u , v (constant component) and x 2 R q n 1 , u , v (non-constant component). The membership condition z C x is equivalent to
    θ = y · x ,
    which decouples into θ 1 = y 1 x 1 and θ 2 = y 2 x 2 . The additional self-duality constraint acts independently on these two components.
  • (ii) Constant component. For a self-dual double circulant code, the constant component x 1 must itself satisfy the self-duality condition at the local factor R q , u , v . By Theorem 1, there are at most
    # { x 1 admissible } 2
    such choices. The main counting effort therefore concerns x 2 .
  • (iii) Self-duality on the non-constant component. Self-duality of the entire code is equivalent to the self-duality of its non-constant component with respect to the involution induced by z z 1 . Concretely, writing x 2 = a 2 + u b 2 + v c 2 with a 2 , b 2 , c 2 F q n 1 , the self-duality condition is
    1 + x 2 x 2 ¯ = 1 + x 2 x 2 q n 1 2 = 0 ,
    where the bar denotes the automorphism induced by this involution; on coefficients, it acts as the Frobenius map a a q n 1 2 . Expanding (36) gives the scalar system
    1 + a 2 a 2 q n 1 2 = 0 ,
    a 2 b 2 q n 1 2 + b 2 a 2 q n 1 2 = 0 ,
    a 2 c 2 q n 1 2 + c 2 a 2 q n 1 2 = 0 .
  • (iv) Counting solutions to the self-duality equations. Proposition 1 gives the exact number of solutions to (37): there are at most 1 + q n 1 2 admissible values of a 2 . For each such a 2 , Equations (38) and (39) impose linear relations on b 2 and c 2 over F q n 1 , leaving at most q 2 ( n 1 ) degrees of freedom overall. Thus,
    # x 2 satisfying self - duality ( 1 + q n 1 2 ) q 2 ( n 1 ) .
  • (v) Intersection with the membership constraint. The linear equation θ 2 = y 2 x 2 further restricts x 2 . Depending on the structure of y 2 , some coordinates are fixed while others remain free (see the case analysis in Theorem 4). The maximal number of admissible x 2 occurs in the case with two free coordinates, giving
    # x 2 admissible ( 1 + q n 1 2 ) q n 1 .
    When fewer coordinates are free, this number is strictly smaller.
  • (vi) Final multiplication. Combining the bound 2 for x 1 with the bound above for x 2 gives
    # self - dual C x : z C x 2 ( 1 + q n 1 2 ) q n 1 ,
    which completes the proof. □
Remark 5.
The bound is attained in the extremal configuration where x 1 runs over all 2 admissible constant solutions, while y 2 yields two free coordinates in the non-constant component. This estimate is crucial for the union-bound argument in the next theorem, as it controls the number of self-dual codes containing any fixed low-weight non-constant vector.
Now, we are in a position to prove the following theorem.
Theorem 6.
Suppose that δ > 0 . Then, there exist infinite families of double circulant codes over R with length 2 n and rate 1 2 whose Gray images have a relative distance of at least δ. For self-dual codes, this holds when δ ( 0 , 1 12 ) , while, for LCD codes, it holds when δ ( 0 , 1 6 ) . Both families are asymptotically good.
Proof. 
Under the hypothesis of Lemma 3 and the notation of (20) in Theorem 1, there is the trivial linear factor x 1 (handled by the leading constant 2 in (20)). Moreover, there is one self-reciprocal factor h of degree n 1 = 2 f , so f = n 1 2 , and, since are no reciprocal pairs, d = 0 . Thus, e = 2 , and the only term in the product i = 2 e is the one coming from h with f 2 = n 1 2 ; the product over j is empty. Plugging into (20), we obtain
N s = 2 ( q 3 f 2 + q 2 f 2 ) = 2 ( q 3 ( n 1 ) 2 + q n 1 ) = 2 q n 1 ( q n 1 2 + 1 ) .
As n , the dominant term is 2 q 3 ( n 1 ) 2 = 2 q 3 n 3 2 . Hence,
N s 2 q 3 n 3 2 .
For any δ , we define the integer-valued weight threshold
δ ( n ) = δ n .
Note that δ ( n ) δ n < δ ( n ) + 1 . The number of vectors z R q , u , v 2 n with wt ( z ) δ ( n ) is bounded by
B ( n , δ ) = k = 1 δ ( n ) 3 n k ( q 1 ) k ( δ ( n ) + 1 ) 3 n δ ( n ) ( q 1 ) δ ( n ) .
Using Stirling’s approximation,
3 n δ ( n ) 3 n e δ ( n ) δ ( n ) 3 e δ 1 + 1 δ n δ ( n ) ,
where e is the Euler number. Thus,
B ( n , δ ) ( δ n + 1 ) 3 e ( q 1 ) δ 1 + 1 δ n δ ( n ) .
By Theorem 5, each such low-weight vector belongs to at most
N = 2 ( 1 + q n 1 2 ) q n 1 .
self-dual codes. To guarantee the existence of a code with no low-weight vectors, we require
N self - dual > B ( δ n ) · N ,
which becomes
2 q 3 n 1 2 > δ n 3 e ( q 1 ) δ δ n · ( 2 ( 1 + q n 1 2 ) q n 1 ) .
Simplifying and taking logarithms yields the key inequality
3 2 log q > log ( δ n ) n + log ( 1 + q n 1 2 ) n + δ log 3 e ( q 1 ) δ + log q .
As n , this reduces to
1 2 log q > δ log 3 e ( q 1 ) δ ,
satisfied when δ < 1 12 .
For LCD codes, plugging f = n 1 2 into Formula (24) yields
N d = ( q 2 ) q 2 q n 1 q n 1 2 1 q 2 f q f 1 q 2 ( n 1 ) q 4 f = ( q 2 ) q 2 n q n 1 q n 1 2 1 q 2 q 3 n 1 .
By ignoring the constant factor ( q 2 ) and the fixed q 1 as n , we have
N LCD q 3 n .
Now, each low-weight vector appears in at most N = q 2 n + 1 codes. The existence condition
q 3 n > δ n 3 e ( q 1 ) δ δ n q 2 n + 1
simplifies to
q n > δ n q 3 e ( q 1 ) δ δ n .
The asymptotic analysis leads to
1 > δ log 3 e ( q 1 ) δ ,
giving δ < 1 6 .
Remark 6.
These calculations demonstrate that, for sufficiently large n, there exist codes in both families that meet the stated distance limits. The fixed rate 1 2 and the positive relative distance establish the asymptotic goodness of these code families. Moreover, 1 12 and 1 6 emerge naturally from balancing the growth rates of the code counts and the low-weight vector bounds in the logarithmic inequalities.
Example 3.
For a double circulant code C R 7 , u , v 2 n with generator matrix G = [ I n M ] , where
M = M 1 + u M 2 + v M 3 ,
where each M i is an n × n circulant over F 7 , we evaluate the performance via the Gray image. Since ψ i : R 7 , u , v n F 7 3 n is a Lee–Hamming isometry, the minimum Lee distance of C equals the minimum Hamming distance of ψ i ( C ) , whose block length is 3 · ( 2 n ) = 6 n and whose dimension is 3 n . Thus, ψ i ( C ) has a generator matrix of the form:
M ( 1 ) = 0 2 I 0 M 2 2 M 1 + M 2 M 3 I I 0 ( M 1 + M 2 ) M 1 + M 2 0 0 0 I 0 0 M 1 + M 3 3 n × 6 n ,
M ( 2 ) = I I I M 1 M 1 + M 2 M 1 + M 3 0 I 0 0 M 1 + M 2 0 0 0 I 0 0 M 1 + M 3 3 n × 6 n .
In the tables (Table 1), we therefore report [ 6 n , 3 n , d ] F 7 parameters for ψ i ( C ) ; equivalently, C has length 2 n over R 7 , u , v and Lee distance d. To specify the circulant M, we list the three seed polynomials a 1 ( z ) , a 2 ( z ) , a 3 ( z ) F 7 [ z ] that generate M 1 , M 2 , M 3 via the usual circulant construction. Vectors are written in coefficient order [ c 2 , c 1 , c 0 ] , meaning c 0 + c 1 z + c 2 z 2 . For instance, the entry a 1 = [ 1 , 4 , 0 ] denotes a 1 ( z ) = z 2 + 4 z , so M 1 = circ ( c 0 , c 1 , ) , with the first row built from the coefficients of a 1 ( z ) (and analogously for a 2 , a 3 ). All distances d are obtained in Magma by constructing G, forming the F 7 -linear Gray image ψ i ( C ) F 7 6 n , and computing its minimum Hamming distance; by isometry, this equals the Lee distance of C. This convention is used for every entry in Table 1.

4.1. Discussion and Connection with Asymptotic Bounds

The numerical results presented in Table 1 illustrate finite-length instances of the asymptotic behavior established in Theorem 6. Each double circulant code over R 7 , u , v of length 2 n yields, through the Gray isometry ψ i , a 7-ary linear code of parameters [ 6 n , 3 n , d ] 7 and rate R = 1 2 . As n increases, the relative distance δ = d 6 n of the Gray images remains strictly positive, confirming the asymptotic goodness predicted by Theorem 6.
In particular, the table shows that both self-dual and LCD constructions achieve a balanced rate and distance even for short lengths; for example, the self-dual code at n = 4 attains parameters [ 24 , 12 , 4 ] 7 with δ = 1 6 , while the LCD code at n = 5 reaches [ 30 , 15 , 10 ] 7 with δ = 1 3 . These finite examples lie within the theoretical distance intervals
δ ( 0 , 1 12 ) for self - dual families , δ ( 0 , 1 6 ) for LCD families ,
thereby concretely demonstrating the existence of infinite sequences of double circulant codes over R q , u , v whose Gray images over F q are asymptotically good in the sense of having a non-zero rate and positive relative distance. Hence, the explicit constructions in Table 1 not only validate the theoretical estimates but also exemplify the practical realizability of the asymptotic distance thresholds.

4.2. Optimality Analysis

A linear [ n , k , d ] q code is called optimal if no other linear code with the same length n and dimension k achieves a strictly larger minimum distance d > d . Based on the parameters in Table 1, several of the constructed Gray images are either optimal or near-optimal with respect to the best-known F 7 linear codes. In particular, the self-dual double circulant code of parameters [ 24 , 12 , 4 ] 7 and the LCD code [ 30 , 15 , 10 ] 7 both achieve the best-known distances for their lengths and dimensions; hence, they are optimal. Similarly, the LCD code [ 42 , 21 , 13 ] 7 is within one unit of the optimal distance bound ( d opt = 14 ), qualifying as near-optimal. These results confirm that the proposed double circulant constructions over R 7 , u , v not only align with the asymptotic predictions of Theorem 6 but also yield practically excellent codes that meet or approach the theoretical distance limits at finite lengths.

5. Conclusions

This study expands the framework of double circulant and double negacirculant codes to the local ring R q , u , v = F q + u F q + v F q , u 2 = v 2 = u v = v u = 0 , which presents greater algebraic complexity than previously examined semi-local or chain rings. Explicit necessary and sufficient conditions for these codes to be self-dual or LCD were derived, and precise enumeration formulas were established by solving key norm and trace equations over F q  Table 2. Our analysis establishes explicit bounds on the minimum distance of the Gray images, derived from the non-constant Gray block of length 3 n . This yields sharp and rigorously justified asymptotic distance estimates, ensuring that the resulting F q -linear images are distance-preserving and asymptotically good. Empirical evidence over F 7 confirmed the theoretical predictions and illustrated that the suggested constructions produce effective linear codes with a balanced rate and minimum distance.
This study expands the comprehension of structured code families within local rings and emphasizes the significance of non-chain, nilpotent extensions in coding theory. Future research should focus on generalizing the existing enumeration and construction techniques to encompass multi-generator double circulant and quasi-cyclic codes over R q , u , v and associated local rings with higher-order nilpotent structures. Identifying equivalent algebraic conditions for self-duality, LCD behavior, and asymptotic optimality within these broader categories is an unresolved and promising issue.

Funding

This research was supported by Ongoing Research Funding Program, (ORFFT-2025-97-2), 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 thank Ongoing Research Funding Program, (ORFFT-2025-97-2), King Saud University, Riyadh, Saudi Arabia, for financial support.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ling, S.; Solé, P. On the algebraic structure of quasi-cyclic codes II: Chain rings. Des. Codes Cryptogr. 2003, 30, 113–130. [Google Scholar] [CrossRef]
  2. Shi, M.; Qian, L.; Solé, P. On self-dual negacirculant codes of index two and four. Des. Codes Cryptogr. 2018, 11, 2485–2494. [Google Scholar] [CrossRef]
  3. Zhu, H.; Shi, M. On linear complementary dual four circulant codes. Bull. Aust. Math. Soc. 2018, 98, 159–166. [Google Scholar] [CrossRef]
  4. Prakash, O.; Yadav, S.; Islam, H.; Solé, P. Self-dual and LCD double circulant codes over a class of non-local rings. Comput. Appl. Math. 2022, 41, 245. [Google Scholar] [CrossRef]
  5. Huang, D.; Shi, M.; Solé, P. Double circulant self-dual and LCD codes over Z p 2 . Int. J. Found. Comput. Sci. 2019, 30, 407–416. [Google Scholar] [CrossRef]
  6. Shi, M.; Huang, D.; Sok, L.; Solé, P. Double circulant self-dual and LCD codes over Galois ring. Adv. Math. Commun. 2019, 13, 171–183. [Google Scholar] [CrossRef]
  7. Qian, L.; Shi, M.; Solé, P. On self-dual and LCD quasi-twisted codes of index two over a special chain ring. Cryptogr. Commun. 2019, 11, 717–734. [Google Scholar] [CrossRef]
  8. Ashraf, M.; Mohammad, G. Skew cyclic codes over F q + u F q + v F q . Asian Eur. J. Math. 2018, 11, 1850072. [Google Scholar] [CrossRef]
  9. Islam, H.; Prakash, O. A note on skew constacyclic codes over F q + u F q + v F q . Discrete Math. Algorithms Appl. 2019, 11, 1950030. [Google Scholar] [CrossRef]
  10. Alabiad, S.; Alhomaidhi, A.A.; Alsarori, N.A. On linear codes over local rings of order p4. Mathematics 2024, 12, 3069. [Google Scholar] [CrossRef]
  11. Alabiad, S.; Alhomaidhi, A.A.; Alsarori, N.A. On linear codes over finite singleton local rings. Mathematics 2024, 12, 1099. [Google Scholar] [CrossRef]
  12. Yadav, S.; Islam, H.; Prakash, O.; Solé, P. Self-dual and LCD double circulant and double negacirculant codes over F q + u F q + v F q . J. Appl. Math. Comput. 2021, 67, 689–705. [Google Scholar] [CrossRef]
  13. Shi, M.; Zhu, H.; Qian, L.; Sok, L.; Solé, P. On self-dual and LCD double circulant and double negacirculant codes over F q + u F q . Cryptogr. Commun. 2020, 12, 53–70. [Google Scholar] [CrossRef]
  14. Dinh, H.Q.; Yadav, B.P.; Bag, T.; Panario, D.; Upadhyay, A.K. Self-dual and LCD double circulant and double negacirculant codes over a family of finite rings F q [ v 1 , v 2 , , v t ] . Cryptogr. Commun. 2023, 15, 529–551. [Google Scholar] [CrossRef]
  15. Alahmadi, A.; Özdemir, F.; Solé, P. On self-dual double circulant codes. Des. Codes Cryptogr. 2018, 86, 1257–1265. [Google Scholar] [CrossRef]
  16. Minjia, S.; Daitao, H.; Lin, S.; Solé, P. Double circulant LCD codes over Z 4 . Finite Fields Appl. 2019, 58, 133–144. [Google Scholar]
  17. Yao, T.; Zhu, S.; Kai, X. On self-dual and LCD double circulant codes over a non-chain ring. Chin. J. Electron. 2019, 28, 1018–1024. [Google Scholar] [CrossRef]
  18. Huffman, W.C.; Pless, V. Fundamentals of Error Correcting Codes; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  19. Saif, S.H. Structures, ranks and minimal distances of cyclic codes over Z p 2 + u Z p 2 . Mathematics 2025, 13, 3354. [Google Scholar] [CrossRef]
Table 1. F 7 -Gray images of good families of double circulant codes of length n.
Table 1. F 7 -Gray images of good families of double circulant codes of length n.
nGray MapCoefficientsTypeParameters
2 ψ 1 a 1 = [ 3 , 1 ] , a 2 = [ 1 , 4 ] , a 3 = [ 5 , 3 ] LCD [ 12 , 6 , 3 ] 7
2 ψ 2 a 1 = [ 2 , 0 ] , a 2 = [ 4 , 1 ] , a 3 = [ 0 , 2 ] Self-dual [ 12 , 6 , 3 ] 7
3 ψ 1 a 1 = [ 1 , 4 , 0 ] , a 2 = [ 2 , 1 , 3 ] , a 3 = [ 5 , 0 , 1 ] Self-dual [ 18 , 9 , 4 ] 7
3 ψ 2 a 1 = [ 3 , 2 , 1 ] , a 2 = [ 0 , 1 , 4 ] , a 3 = [ 6 , 3 , 0 ] Self-dual [ 18 , 9 , 1 ] 7
4 ψ 1 a 1 = [ 1 , 0 , 2 , 3 ] , a 2 = [ 4 , 1 , 0 , 2 ] , a 3 = [ 0 , 3 , 1 , 5 ] Self-dual [ 24 , 12 , 4 ] 7
4 ψ 2 a 1 = [ 2 , 1 , 3 , 0 ] , a 2 = [ 1 , 4 , 2 , 1 ] , a 3 = [ 3 , 0 , 1 , 2 ] Self-dual [ 24 , 12 , 4 ] 7
5 ψ 1 a 1 = [ 1 , 2 , 0 , 4 , 3 ] , a 2 = [ 3 , 0 , 1 , 2 , 0 ] , a 3 = [ 5 , 1 , 3 , 0 , 2 ] LCD [ 30 , 15 , 5 ] 7
5 ψ 2 a 1 = [ 2 , 3 , 1 , 0 , 4 ] , a 2 = [ 1 , 0 , 2 , 3 , 1 ] , a 3 = [ 0 , 4 , 1 , 2 , 3 ] LCD [ 30 , 15 , 10 ] 7
7 ψ 1 a 1 = [ 1 , 3 , 0 , 2 , 4 , 1 , 5 ] , a 2 = [ 2 , 0 , 1 , 3 , 0 , 2 , 1 ] , a 3 = [ 3 , 1 , 2 , 0 , 1 , 3 , 0 ] LCD [ 42 , 21 , 5 ] 7
7 ψ 2 a 1 = [ 4 , 2 , 1 , 3 , 0 , 2 , 1 ] , a 2 = [ 1 , 3 , 2 , 0 , 4 , 1 , 2 ] , a 3 = [ 2 , 1 , 0 , 4 , 3 , 0 , 1 ] LCD [ 42 , 21 , 13 ] 7
9 ψ 1 a 1 = [ 1 , 3 , 0 , 2 , 4 , 1 , 5 , 0 , 2 ] , a 2 = [ 2 , 0 , 1 , 3 , 0 , 2 , 1 , 4 , 0 ] , a 3 = [ 3 , 1 , 2 , 0 , 1 , 3 , 0 , 2 , 1 ] LCD [ 54 , 27 , 5 ] 7
Table 2. Summary of main results for double circulant and double negacirculant codes over R q , u , v .
Table 2. Summary of main results for double circulant and double negacirculant codes over R q , u , v .
ComponentTypeDegreeRingSelf-DualLCD
Double Circulant: z n 1 = δ ( z 1 ) i = 1 e l i ( z ) j = 1 d k j ( z ) k j ( z )
( z 1 ) Constant1 R q , u , v 2 ( q 2 ) q 2
l i ( z ) Self-recip. 2 f i R q 2 f i , u , v q 2 f i + q 3 f i ( q 2 f i q f i 1 ) q 4 f i
k j ( z ) k j ( z ) Conj. pair h j R q h j , u , v 2 ( q h j 1 ) q 2 h j q 3 h j + [ ( q h j 1 ) q h j ] 2
Total 2 i = 1 e ( q 2 f i + q 3 f i ) ( q 2 ) q 2 i = 1 e ( q 2 f i q f i 1 ) q 4 f i
× j = 1 d ( q h j 1 ) q 2 h j × j = 1 d q 3 h j + [ ( q h j 1 ) q h j ] 2
Asymptotic (as n ) 2 q 3 n 1 2 q 3 n
Double Negacirculant: z n + 1 = γ i = 1 e l i ( z ) j = 1 d k j ( z ) k j ( z )
l i ( z ) Self-recip. 2 f i R q 2 f i , u , v ( q f i + 1 ) q 2 f i q 6 f i q 5 f i 2 q 3 f i 6 q 2 f i + 5 q f i + 8
k j ( z ) k j ( z ) Conj. pair h j R q h j , u , v 2 ( q h j 1 ) q 2 h j q 6 h j 2 q 5 h j + q 4 h j + q 3 h j
Total i = 1 e ( q f i + 1 ) q 2 f i i = 1 e q 6 f i q 5 f i 2 q 3 f i 6 q 2 f i + 5 q f i + 8
× j = 1 d ( q h j 1 ) q 2 h j × j = 1 d q 6 h j 2 q 5 h j + q 4 h j + q 3 h j ]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Saif, S.H. Constructions and Enumerations of Self-Dual and LCD Double Circulant Codes over a Local Ring. Mathematics 2025, 13, 3527. https://doi.org/10.3390/math13213527

AMA Style

Saif SH. Constructions and Enumerations of Self-Dual and LCD Double Circulant Codes over a Local Ring. Mathematics. 2025; 13(21):3527. https://doi.org/10.3390/math13213527

Chicago/Turabian Style

Saif, Sami H. 2025. "Constructions and Enumerations of Self-Dual and LCD Double Circulant Codes over a Local Ring" Mathematics 13, no. 21: 3527. https://doi.org/10.3390/math13213527

APA Style

Saif, S. H. (2025). Constructions and Enumerations of Self-Dual and LCD Double Circulant Codes over a Local Ring. Mathematics, 13(21), 3527. https://doi.org/10.3390/math13213527

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

Article Metrics

Back to TopTop