Explicit construction of optimal binary linear complementary pairs via Belov codes
Yansheng Wu, Jing Chen, Jong Yoon Hyun
Abstract
The study of linear complementary pairs (LCPs) has been a hot topic in coding theory. Recently, Güneri constructed an infinite family of optimal binary LCPs from Solomon-Stiffler codes. Specifically, he proved that for every k≥5 and d≥⌈(k−1)/2⌉2k−1, there exist optimal binary linear complementary pairs of codes of length g2(k,d), where g2(k,d) denotes the Griesmer bound. In this paper, we construct additional optimal binary LCPs from Belov codes, which form a generalized class of Solomon-Stiffler codes. Our results not only generalize Güneri's construction, but also enable more flexible construction of optimal binary LCPs with a wide range of minimum distances.
Index Terms
Linear complementary pairs, Belov codes, Solomon-Stiffler codes, Griesmer bound
I. INTRODUCTION
A pair of linear codes (C,D) of length n over Fq is called a linear complementary pair (LCP) if their direct sum C⊕D yields the full space Fqn. Since their dimensions must satisfy dimC+dimD=n and C∩D={0}, if dimC=k and dimD=n−k, then we call (C,D) an [n,k] LCP. It is easy to show that the concept of LCPs is a generalization of linear
This work was supported by the National Natural Science Foundation of China (No. 62372247) and by open research fund of State Key Laboratory of Cyberspace Security Defense (No. 2025-MS-03).
Y. Wu is with the School of Computer Science, Nanjing University of Posts and Telecommunications, Nanjing, 210023, China, and the State Key Laboratory of Cyberspace Security Defense (Institute of Information Engineering, Chinese Academy of Sciences, Beijing 100085), China. Email: yanshengwu@njupt.edu.cn.
J. Chen is with the School of Computer Science, Nanjing University of Posts and Telecommunications, Nanjing 210023, China. Email: 1806108644@qq.com.
J. Y. Hyun is with the Konkuk University, Glocal Campus, 268 Chungwon-daero Chungju-si Chungcheongbuk-do 27478, South Korea, Email: hyun33@kku.ac.kr.
October 20, 2026 complementary dual codes (LCD codes), see [6]. The most important problem in this research is the construction of LCPs with the maximum security parameter. For given n and k, let
denote the maximum security parameter for an [n,k] binary LCP. If dL(n,k) denotes the highest minimum distance among binary linear [n,k] codes, we clearly have dLCP(n,k)≤dL(n,k). We call an [n,k] linear code optimal if its minimum distance is dL(n,k). We also call an [n,k] LCP (C,D) optimal if the maximum security parameter reaches dL(n,k).
LCPs have been used in the framework of direct sum masking, which was proposed as a countermeasure against side channel attacks (SCAs) and fault injection attacks (FIAs), see [11], [7], [12], [18], [20], [21], [22], [23]. Here we list some recent progress on LCPs.
• Carlet et al. [8] proved that for any [n,k,d] linear code C over Fq, with q>2, there is a monomial transformation σ on Fqn such that (C,σ(C)⊥) is an LCP. Consequently, the security parameter in this configuration is d, since d=d(C)=d(σ(C)⊥). This fully settles the problem of determining the optimal security parameter for q-ary LCPs when q≥2. In the binary case, however, the authors demonstrated that given an [n,k,d] binary code, one can construct an [n,k] LCP of binary codes (C,D) satisfying d(C)=d(D⊥)≥d−1. Based on this construction, they established the following bounds: dL(n,k)−1≤dLCP(n,k)≤dL(n,k). As a result, the exact determination of the optimal security parameter for binary LCPs remains an open problem and is not yet explicitly settled.
• Choi et al. [9] initiated the systematic investigation of optimal binary LCPs of codes. They provided explicit algebraic constructions of such codes to prove that for any k≥2 and n≡0 or 1(mod2k−1), the maximum security parameter satisfies dLCP(n,k)=dL(n,k) [9, Theorem 15]. Furthermore, except for (n,k)=(4,3) and (n,k)=(8,4), they explicitly constructed optimal binary LCPs achieving dLCP(n,k)=dL(n,k) for all 2≤k≤4 and all n [9, Remark 1].
• For k≥5, Güneri [11] explicitly constructed optimal binary LCPs from Solomon-Stiffler (SS) codes; specifically, the author proved that for every k≥5 and minimum distance d≥⌈(k−1)/2⌉2k−1, there exists an optimal binary LCP of length g2(k,d), where g2(k,d) denotes the Griesmer bound.
• Li et al. characterized the optimal value dLCP(n,k) in terms of the intersection dimension dim(C1∩C2⊥) and the existence of a permutation automorphism σ∈PAut(F2n) such that
October 20, 2026
(C1,(σ(C2))⊥) is an ℓ-intersection pair. This characterization resolved the open problem of Carlet et al. [8] and confirmed the conjecture of Choi et al. [9]. However, their proof is existential rather than constructive, and their results settle the existence and characterization questions, but the corresponding constructive problem remains open.
It is well known that Belov codes form a generalized class of Solomon-Stiffler (SS) codes ([24], [15]). In this paper, based on Güneri's work, we obtain a broader class of optimal binary LCPs from Belov codes.
The remainder of this paper is organized as follows: Section II recalls the Griesmer bound, Solomon-Stiffler codes, and Belov codes. Section III reviews the main idea of Güneri. Section IV obtains more LCPs by using Belov codes and the Güneri's construction. In Section V, we present our main results on new construction of binary optimal LCPs by using SS codes and Belov codes. Section VI concludes this paper.
II. PRELIMINARIES
In this section, we will recall some need results.
A. Griesmer bound
Let q be a prime power and Fq be the finite field with q elements. Let Fqn be an n-dimensional vector space over Fq. Let C be a linear code over Fq with parameters [n,k,d]q, where n is the length of the code, k is its dimension and d is the minimum distance. In coding theory, constructing optimal codes is essential for improving the reliability of communication systems. A linear code C with parameters [n,k,d]q is called optimal if its minimum distance d meets a known theoretical bound. See [4] for the detail. Two binary linear codes are equivalent if one code is obtained from the other by permuting the coordinates.
Lemma 1. [10] (Griesmer bound) Let C be an [n,k,d]q-code. Then
n≥gq(k,d)=i=0∑k−1⌈qid⌉,
where ⌈⋅⌉ denotes the ceiling function.
A code is called a Griesmer code if it attains the Griesmer bound with equality. By using the Griesmer bound, it can be verified that every Griesmer code is dimension-optimal and distance-optimal simultaneously.
October 20, 2026
B. Solomon-Stiffler codes
In this subsection, we will recall binary Solomon-Stiffler (SS) codes.
Let G=[Sk] be a k×(2k−1) matrix whose columns comprise all nonzero vectors in F2k. Then G generates the [2k−1,k,2k−1] simplex code where all the codewords have weight 2k−1. We denote the matrix
[Sk]⋯∣Sk]htimes
by Sk(h), where Sk(1)=Sk. The code generated by this matrix, which we will denote by CSk(h), is the h-times replicated simplex code. It is clear that CSk(h) is also a constant-weight code with parameters [h(2k−1),k,h2k−1].
Let
F=i=1⋃tUi,1≤u1<u2<⋯<ut<k.
For each i=1,…,t, let Ui be a subspace of F2k with dimF2Ui=ui. By saying that U1,…,Ut are disjoint subspaces, we mean that they intersect trivially as follows:
Ui∩Uj={0}(i=j).
For each i, list the 2ui−1 nonzero vectors of Ui in some fixed order:
Ui∖{0}={vi,1,vi,2,…,vi,2ui−1}.
Now form the binary matrix
Mi=[vi,1Tvi,2T⋯vi,2ui−1T],
where T denotes the matrix transpose. Hence Mi is a k×(2ui−1) matrix over F2. Since its columns span the subspace Ui, its rank is rank(Mi)=dimUi=ui. In the original notation, the same symbol Ui is used both for the subspace and for this matrix; it is clearer to denote the matrix by Mi.
Finally, every nonzero row of Mi has weight 2ui−1. Indeed, a row of Mi is obtained by evaluating on the nonzero vectors of Ui some coordinate functional φ:F2k→F2. If φ∣Ui=0, then the row is zero. Otherwise, φ∣Ui is a nonzero linear functional on Ui, so its kernel is a hyperplane in Ui, of size 2ui−1. Hence exactly 2ui−1 vectors of Ui are mapped to 0, and exactly 2ui−1 are mapped to 1. Since the zero vector is not a column of Mi, each nonzero row
October 20, 2026 contains exactly 2ui−1 ones. Therefore its weight is 2ui−1. In compact form, Ui≤F2k, dimUi=ui, Ui∩Uj={0} for all i=j, and
Mi=[Ui∖{0}]∈F2k×(2ui−1),rank(Mi)=ui,
where the columns of Mi are precisely the nonzero vectors of Ui.
Clearly, Ui is contained in Sk for all i, and the nonzero rows of such a matrix have weight 2ui−1. Provided that U1,…,Ut are chosen to satisfy
i=1∑tui≤hk(1)
distinct basis elements can be selected for all Ui from the columns of Sk(h), which contains hk basis elements in its columns. Consequently, F can be formed by the columns derived from the nonzero elements of the Ui, as condition in (1) ensures that no column in Sk(h) is punctured more than h times.
Lemma 2. ([2], [24]) If 1≤u1<u2<⋯<ut<k with ∑i=1tui≤hk, then G=[Sk(h)∖F] generates a binary SS code with parameters
In this subsection, we will recall binary Belov codes, which is a generalization of SS codes. SS codes and Belov codes are two well-known Griesmer codes, see [13]-[17].
Let F1=W∖A, where W is a subspace of F2k with dimW=θ≥3, A⊂W, θ−1<∣A∣≤θ+1 and any set of ≤θ points in A are linearly independent. Belov codes additionally remove F1=W∖A, which yield a larger family of parameters that covers cases unreachable by SS codes.
Lemma 3. ([2], [15]) If 3≤θ≤u1<⋯<ut<k with ∑i=1min{h+1,t}ut+1−i≤hk and F∩F1=∅, then G=[Sk(h)∖(F∪F1)] generates a binary Belov code with parameters
October 20, 2026 where 0≤ε=θ+1−∣A∣≤1 and F was defined in Section II. B. This code meets the Griesmer bound.
We present a numerical example to show that the Belov construction possesses more flexible parameters than the Solomon–Stiffler (SS) construction.
Example 4. Let h=1 and k=6. Then the corresponding binary SS codes have parameters [48, 6, 24] for t=1, u1=4, and [45, 6, 22] for t=2, u1=2, u2=4, respectively. Belov [3] gave a new construction of Griesmer codes by deleting more columns based on SS codes. Using Magma, for h=1, k=6, t=1, and u1=4, we obtain the following table.
θ
ε=0
ε=1
3
[45, 6, 22]
[44, 6, 21]
4
[38, 6, 18]
[37, 6, 17]
Thus the corresponding binary Belov codes have parameters [45, 6, 22] and [44, 6, 21] when θ=3, and [38, 6, 18] and [37, 6, 17] when θ=4, for ε=0 and ε=1, respectively.
We can construct SS codes that share the same parameters as those from the Belov construction but are not equivalent to them.
Example 5. Let h=2 and k=5. The Solomon-Stiffler construction used by Güneri with
t=4,(u1,u2,u3,u4)=(1,2,3,4)
yields a binary [36, 5, 17] code. On the other hand, the Belov construction starting from the Solomon–Stiffler code with t=2, (u1,u2)=(3,4) and then deleting the additional set F1=W∖A with θ=3 and ∣A∣=3 also yields a binary [36, 5, 17] code. Their parameters are identical, but the two binary codes are not equivalent: the former deletes the union of subspaces of dimensions 1, 2, 3, 4, whereas the latter deletes subspaces of dimensions 3, 4 together with the set W∖A. The deleted column sets have different structures, and a direct computation shows the two codes have different weight distributions. Hence they are inequivalent.
Belov [3] presented the necessary and sufficient condition for the existence of SS codes and Belov codes.
October 20, 2026
Lemma 6. ([3, Theorem 3], [14]) For any two integers k and d=h2k−1−∑i=1t2ui−1 with 1≤u1<u2<⋯<ut<k, there exists a [g2(k,d),k,d] of the Solomon-Stiffler type or of the Belov type if and only if either
III. LCPs constructed from SS codes: GÜNERI'S IDEA
In this section, we will review the key idea behind the construction of optimal binary LCPs in [9], [11], [19].
Firstly, in order to review the construction method of [9, Theorems 16, 17, 18], let C and D be binary linear codes generated by G=[Ik:M] and H=[N:In−k], respectively. Then (C,D) forms an LCPs if and only if Ik+MN is invertible [9, Proposition 13]. Note that the dual code D⊥ is generated by H=[Ik:NT]. The construction begins with a generator matrix G of an optimal code. If NT can be obtained from M by permuting its rows and columns, then D⊥ shares the same parameters as C, and hence is also optimal. The goal is then to find suitable permutations yielding such an NT for which Ik+MN is invertible. Using this approach, it has been shown that families of optimal binary LCPs can be constructed in two cases: when n≡0,1(mod2k−1) for any k≥2 [9, Theorem 15], and for 2≤k≤4 and all n, with exactly two exceptions [9, Theorems 16, 17, 18].
Next, we describe the called maximal anticode, which was introduced in [11] for constructing optimal LCP from Solomon-Stiffler codes. Given k≥5, a maximal anticode corresponds to an anticode F assembled by collecting all nonzero column vectors from a nested sequence of disjoint subspaces U1,U2,…,Uk−3⊂F2k with strictly increasing dimensions u1=3, u2=4,…,uk−3=k−1. Each subspace Ui contributes its full set of nonzero columns to the anticode F. When the condition ∑i=1k−3ui≤hk holds, these subspaces can be chosen such that no column of Sk(h) is punctured more than h times. For this maximal anticode, the resulting Solomon-Stiffler generator matrix G=Sk(h)∖F is guaranteed to contain two copies of the k×k identity matrix Ik as well as the special columns x1=(1,1,…,1)T, x2=(0,1,…,1)T defined in Lemma 3 of [11].
To construct binary optimal LCPs, Güneri [11] chose C to be a binary SS code, obtained by deleting a set F of columns from the generator matrix Sk(h), resulting in G=[Sk(h)∖F]. Main steps are listed as follow:
October 20, 2026
(1) Consider the case of maximal anticode for u1≥3 in the sense that G′ consists of nonzero columns generated by subspaces U1,U2,…,Uk−3⊂F2k with dimensions u1=3,u2=4,…,uk−4=k−2,uk−3=k−1. First define the subspace Uk−3 of largest dimension:
Uk−3:={(a1,…,ak)∈F2k:i=1∑kai=0}.(4)
The following is a basis for Uk−3:
B={(1,0,…,0,1),(0,1,0,…,0,1),…,(0,…,0,1,1)}.(5)
Then the second largest subspace Uk−4 has dimension k−2, which it is spanned by B∖{(0,1,0,…,0,1)}. To make sure that there are enough copies Sk to delete those subspaces, the condition d≥⌈(k−1)/2⌉2k−1 is required. Hence ∑i=1tui≤hk holds and the induced SS code is a Griesmer code.
(2) The desired columns (i.e. two copies of Ik, x1=(1,1,…,1)T and x2=(0,1,…,1)T) are guaranteed to exist in G at the end of forming the maximal anticode without further puncturing in the first two copies of Sk. This matrix G is then transformed into systematic form [Ik:M], where M is a k×(n−k) matrix. In the SS construction, MMT=Ik when u1≥3.
(3) The final step is to find, from M, an (n−k)×k matrix N such that Ik+MN is invertible. This guarantees that the code D generated by [N:In−k] is complementary to C, i.e.,
C∩D={0},C+D=F2n.
Moreover, N is chosen so that d(D⊥)=d(C). It should be mentioned that the optimality is achieved precisely in this step. Indeed, since C is a Griesmer SS code, we have d(C)=dL(n,k). Therefore dLCP(C,D)=dL(n,k)=dLCP(n,k), so the resulting binary LCP is optimal.
Based on this explicit construction approach, Güneri [11] proved the following theorem by using that for any k and d≥⌈(k−1)/2⌉2k−1, there is a binary [g2(k,d),k,d] SS code, see [1].
Theorem 7. [11] For any k≥5 and d≥⌈(k−1)/2⌉2k−1, there exists an optimal binary [g2(k,d),k] LCP (C,D) with the security parameter d.
Finally, Li, Shi, and Ling [19] proved that if there exists a binary linear [n,k,d] code C with the all-one vector 1∈/Hull(C):=C∩C⊥, then there exists a binary [n,k] LCP with security parameters d.
October 20, 2026
Lemma 8. [19, Theorem 16] Assume that k≥2, d=h2k−1−∑i=1t2ui−1 with 1≤u1<u2<⋯<ut<k, and ∑i=1min{h+1,t}ut+1−i≤hk. Let C be a SS code with the parameters [g2(k,d),k,d] in Lemma 6. Then 1∈Hull(C) if and only if h=1, t=1, and u1=k−1.
The following theorem is obtained by combining Lemmas 6 and 8,
Theorem 9. [19, Corollary 15, Theorem 16] Assume that k≥2, d=h2k−1−∑i=1t2ui−1 with 1≤u1<u2<⋯<ut<k, and ∑i=1min{h+1,t}ut+1−i≤hk. If (h,t,u1)=(1,1,k−1), then there exists a binary [g2(k,d),k] LCP with security parameters d. As a direct consequence of this result, we obtain Theorem 7.
Observe that Theorem 9 gives an existence result because of Lemma 8. The problem of finding a specific construction method to generate LCPs from a given linear code remains difficult. In the next section, we will combine Güneri's idea with Belov codes to construct a broad new class of optimal binary LCPs.
IV. OPTIMAL LCPs VIA BELOV CODES BASED ON GÜNERI'S CONSTRUCTION
In this section, we will consider presenting more optimal LCPs by using Belov codes in a modified version of Güneri's construction.
Now we want to delete F1=W∖A to construct Belov code, where dimW=θ and ∣A∣∈{θ,θ+1}, ∣F1∣=∣W∣−∣A∣=2θ−1−θ, or ∣F1∣=∣W∣−∣A∣=2θ−1−(θ+1).
Lemma 10. Based on the Güneri’s construction, if h=1, then it is not possible to perform the Belov deletion F1=W∖A in [Sk∖U], where U is a subspace of F2k with dimension k−1.
Proof. Without loss of generality, we can take U=Uk−3 in Eq. (4). Note that θ≥3 from Lemma 3. Let {w1,w2,w3} be a set of linearly independent vectors of W.
(i) When all basis vectors are even-weight vectors, let A={w1,w2,w3}. Then F1={w1+w2,w1+w3,w2+w3,w1+w2+w3}, it is clear that the sum of any two even-weight vectors is still an even-weight vector, so F1∩Uk−3=∅.
(ii) When w1 and w2 are even-weight vectors and w3 is an odd-weight vector, put all even-weight vectors into A, i.e. A={w1,w2,w1+w2}. Although (W∖A)∩Uk−3=∅, the requirement that any set of ≤θ points in A are linearly independent is obviously not satisfied.
October 20, 2026
(iii) When w1 is an even-weight vector and w2,w3 are odd-weight vectors, put all even-weight vectors into A, i.e. A={w1,w2+w3,w1+w2+w3}. Although (W∖A)∩Uk−3=∅, the requirement that any set of ≤θ points in A are linearly independent is still not satisfied.
(iv) When all basis vectors are odd-weight vectors, put all even-weight vectors into A, i.e. A={w1+w2,w1+w3,w2+w3}, which is linearly dependent and does not satisfy the condition. In summary, there does not exist a subspace of W such that (W∖A)∩Uk−3=∅.
Due to Lemma 10, we can not perform the Belov deletion when h=1 and dimU=k−1. Next we always assume that h≥2 in the rest of this section. Although we cannot perform the additional deletion of F1 for the Belov code in the first simplex code, we can delete F1 in subsequent simplex codes such that F1∩U=∅ for some subspace U whose dimension is less than k−1. To satisfy the Griesmer bound, only one copy of F1 can be deleted from the simplex code, and we choose to perform the deletion in Uk−4 with dimension k−2.
In the construction method of Güneri with u1=3, we construct two classes of optimal binary LCP codes from Belov codes rather than SS codes in the following theorem.
Theorem 11. Let k≥2, h≥2, and let 1≤u1<u2<⋯<ut<k satisfy
i=1∑min{h+1,t}ut+1−i≤hk.
Assume that the corresponding Solomon–Stiffler code has minimum distance dSS=h2k−1−∑i=1t2ui−1, and that dSS≥⌈2k−1⌉2k−1. Consider the maximal anticode case, so that u1=3. Let θ=3, and since 3=θ≤u1<k, we have k≥4. Choose A⊂W with ∣A∣∈{3,4}, and put ε=θ+1−∣A∣∈{0,1}. Assume that the corresponding Belov code has minimum distance by
dBelov=dSS−i=1∑θ−22i−ε=dSS−2−ε.
Then there exists an optimal binary LCP (C, D) of length g2(k,dBelov) and dimension k, with security parameter dBelov, such that C is a Belov code with parameters [g2(k,dBelov),k,dBelov].
Proof. In this proof, matrix addition and multiplication are performed over F2. We want to delete more columns to use Belov construction, which means u1≥3 from Lemma 3.
Firstly, from our assumptions, we have h≥2 and let G=[Sk(h)∖F]=[Ik:M]. Let n be the length of the code and then
M=(m1,m2,…,mn−k),wheremi∈F2k×1for1≤i≤n−k.
October 20, 2026
Then we have MMT=Ik, when u1≥3 in Güneri's construction, meaning that any two distinct rows of M have even intersection weight, while each row has odd weight. However, if we remove F1 in M, then the equality MMT=Ik no longer holds.
Further deleting F1=W∖A yields the Belov code. For the resulting matrix M′, we have
In order to satisfy the condition that any set of at most θ vectors in A are linearly independent, we choose the basis of W to form the set A. Accordingly, we obtain F1 as shown below:
Let x3=(1,1,…,1,0,1,1)T and x4=(0,1,…,1,0,1,1)T be vectors of length n over F2. We denote by σ1(M′) the matrix resulting from swapping x3 and x4 in M′ and by
It follows that M′N′=M′(N′T)T=M′(P1σ1(M′))T=M′σ1(M′)TP1T. Notice that the matrix M′N′ can be obtained by cyclically shifting the columns of M′σ1(M′)T as follows:
Since M′N′ is a lower triangular matrix, all diagonal entries of Ik+M′N′ are equal to one and hence nonzero, which implies that Ik+M′N′ is invertible. By the Güneri's argument in Section III, our obtained code is optimal.
(ii). If ε=θ+1−∣A∣=0 for ∣A∣=θ+1, then we choose a basis for W as
Namely, the matrix M′N′ is obtained by cyclically permuting the columns of M′σ2(M′)T:
M′N′=00010⋮00100⋮0001⋮00⋯⋱⋯0⋮1⋱00.
It is easy to check that Ik+M′N′ is invertible. By the Güneri's argument in Section III, the resulting code is optimal. This completes the proof.
It is important comparing [g2(k,dSS),k,dSS] by Güneri's construction of maximal anticode cases with [g2(k,dBelov),k,dBelov] by our construction when k=4,5,6,7,8. The main purpose of Table I is to compare the minimum distance bounds of Belov construction with Güneri's previous Solomon-Stiffler (SS) construction across different dimensions k. In Güneri's construction, when restricted to u1≥3, the minimum distance d is required to be large (e.g., d≥36 for k=5), which severely limits the range of available parameters. In contrast, Belov construction successfully lowers the minimum distance lower bound under the same condition of u1≥3 (e.g., reduced to ≥33 for k=5). This Table I demonstrates that Belov codes not only cover the parameter regime of SS codes but also broaden the existence range of optimal LCPs, constructing LCPs with smaller distances that still achieve the Griesmer bound. It verifies the core contribution mentioned in our conclusion: relaxing the restriction of d≥⌈(k−1)/2⌉2k−1.
V. MORE NEW OPTIMAL BINARY LCPS
This section is devoted to constructing further binary optimal LCPs by employing SS codes and Belov codes with different integers h.
October 20, 2026
TABLE I
MINIMUM DISTANCE LOWER BOUNDS OF LCPS FROM SOLOMON-STIFFLER AND BELOV CODES
Solomon-Stiffler Code [10]
Belov Code
u1≥3
u1=2
u1=1
u1≥3,θ=3
k=4
≥9
k=5
≥36
≥34
≥33
≥33
k=6
≥100
≥98
≥97
≥97
k=7
≥196
≥194
≥193
≥193
k=8
≥516
≥514
≥513
≥513
First, we present two following examples by Magma, in cases of h=1 and h=2.
Example 12. Let h=1, k=6, d=21, and g2(k,d)=44. We can delete a 4-dimensional subspace U whose basis is B∖{(0,1,0,…,0,1)}, where B was defined in Equation (5). Choose other parameters as follows: Let ∣A∣=θ=3. We have ε=θ+1−∣A∣=1. Choose a basis for W as w1=(0,0,0,0,0,1)T, w2=(0,0,0,1,1,0)T, w3=(0,1,0,0,0,0)T. The number of columns deleted is ∣F1∣=∣W∖A∣=4, so that F1=W∖A can be written as
F1=000111010001010110010111.
In this case, we can obtain a Belov code with parameters [44, 6, 21]. We have
MMT=100000000000001000000010000100000000,
October 20, 2026 we swap columns x1=(1,1,1,1,1,1)T and x2=(0,1,1,1,1,1)T and denote by σ3(M) the matrix resulting from swapping x1 and x2. The matrix NT is constructed as follows:
This cyclic shift operation ensures that D⊥ maintains the same parameters as C. The resulting matrix MN is strictly lower triangular:
MN=001000000100100000000.
It is easy to see the matrix Ik+MN must be invertible. Since both C and D⊥ have parameters [44, 6, 21], the security parameter is dLCP=max{min{d(C),d(D⊥)}}=21.
Example 13. Let h=2, k=6, d=37, and g2(k,d)=76. Since h=2, we can delete a 4-dimensional subspace U1 and 5-dimensional subspace U2, and their bases are listed as follows: B∖{(0,1,0,…,0,1)}, where B was defined in Equation (5).
Choose a basis for W as w1=(0,1,0,0,0,0)T, w2=(0,0,1,0,0,0)T, w3=(0,0,0,0,1,1)T. The number of columns deleted is ∣F1∣=∣W∖A∣=4, and so F1=W∖A can be shown below:
F1=011000010011001011011011.
October 20, 2026
In this case, we can obtain a Belov code with parameters [76, 6, 37]. Then we have
MMT=100000000000000000000100000001000010,
we swap columns x1=(1,1,1,1,1,1)T and x2=(0,1,1,1,1,1)T and denote by σ3(M) the matrix resulting from swapping x1 and x2. The matrix NT is constructed as follows:
The resulting matrix MN is strictly lower triangular:
MN=00000000100000101000.
It is easy to see the matrix Ik+MN must be invertible. Since both C and D⊥ have parameters [76, 6, 37], the security parameter is dLCP=max{min{d(C),d(D⊥)}}=37.
Inspired by the above two examples, now we will try to give some constructions of LCPs by using SS codes and Belov codes according to the value of h.
Lemma 14. Assume that k≥2 and ⌈2k−1⌉2k−1≥d=h2k−1−∑i=1t2ui−1(d=2k−2) with 1≤u1<u2<⋯<ut<k and ∑i=1min{h+1,t}ut+1−i≤hk. Let F=∪i=1tUi with dim(Ui)=ui and F1=W∖A for some subspace W such that F∩F1=∅. Then we can find a generator matrix G=[Sk(h)∖F] or [Sk(h)∖(F∪F1)] of C with the following properties:
Proof. We first construct the Solomon–Stiffler code, and then we obtain the Belov code by further deleting F1 from the SS codes.
(i). h=1.
(1) (SS code) By Lemma 10, ut=k−1. To keep the identity Ik in G, we have to delete the subspaces of Uk−3 in Eq. (4). Consider the maximal anticode case, we can delete the space spanned by the set B∖{(0,1,0,…,0,1)}. This deletion of maximal subspace ensures the existence of Ik, x3, x4, x5 and x6.
(2) (Belov code) Choose θ=3, dim(W)=θ.
ε=θ+1−∣A∣=1 for ∣A∣=θ, then we choose a basis for W in the same manner as part (i) in the proof of Theorem 9, ensures the existence of x3, x4.
ε=θ+1−∣A∣=0 for ∣A∣=θ+1, then we choose a basis for W in the same manner as part (ii) in the proof of Theorem 9, ensures the existence of x5, x6.
(ii). 2≤h≤⌈2k−1⌉.
(1) (SS code) Let us consider the “maximal anticode” case for u1≥3 by deleting subspaces U1,…,Uk−3⊂F2k with dimensions
u1=3,u2=4,…,uk−4=k−2,uk−3=k−1
and ∑i=1min{h+1,t}ut+1−i≤hk.
We define the subspace Uk−3 of the largest dimension, and B is a basis for Uk−3. The next largest subspace Uk−4 of dimension k−2 as the space spanned by the set B∖
October 20, 2026
{(0,1,0,…,0,1)}. When h=2, the maximal anticode is u1=k−2, u2=k−1, it is clear that Ik∈/U2, and ensures {x1,x2,x3,x4,x7,x8}∈/U1, and so on.
(2) (Belov code) To satisfy the Griesmer code, only one copy of F1 can be deleted from the simplex code, and we choose to perform the deletion in U of dimension k - 2 for the maximal anticode case.
Remark 15. In Lemma 14 (i), if h=1, then d≤2k−1 which is not covered by Güneri's construction. In Lemma 14 (ii), if 2≤h≤⌈2k−1⌉, then 2k−1<d≤⌈2k−1⌉2k−1, which is the range below Güneri's bound assumption for d.
In Theorem 11, for h≥2 we provided an explicit optimal binary LCPs from Belov construction. By using Lemma 14, we cover the remaining cases h=1 and 2≤h≤⌈(k−1)/2⌉ in the following theorem.
Theorem 16. Assume that k≥2, d=h2k−1−∑i=1t2ui−1 with 3≤u1<u2<⋯<ut<k, and ∑i=1min{h+1,t}ut+1−i≤hk.
(i) When h=1, i.e. d≤2k−1, if (t,u1)=(1,k−1), then there exists an optimal binary [g2(k,d),k] LCP of Solomon–Stiffler or Belov type with security parameters d.
(ii) When 2≤h≤⌈2k−1⌉, i.e. 2k−1<d≤⌈2k−1⌉2k−1, there exists an optimal binary [g2(k,d),k] LCP of Solomon–Stiffler or Belov type with security parameters d.
Proof. We begin by constructing a Belov code C with parameters [g2(k,d),k,d], which satisfies the Griesmer bound. According to Lemma 6, such a code exists when we choose appropriate parameters θ, A, and subspaces Ui satisfying the required conditions.
Let G=[Sk(h)∖(F∪F1)] be a generator matrix of C, where F=⋃i=1tUi is the union of disjoint subspaces for SS codes and F1=W∖A is the additional puncturing for the Belov construction. Through suitable column permutations, we can transform G into systematic form G=[Ik:M′], where M′ is a k×(n−k) matrix.
October 20, 2026
The core of the proof lies in analyzing the structure of M′M′T and constructing an appropriate matrix N′ such that Ik+M′N′ is invertible.
Notice that if h≥⌈2k−1⌉, then the result follows from [11, Theorem 5] for SS codes and Theorem 10 for Belov codes. Next we proceed the proof by the rest two cases.
(i). h=1.
(1) (SS code) By Lemma 14, we can consider the maximal anticode case with t=1 and u1=k−2. Then take F1=∅ and we have M′M′T=Ik from [11, Theorem 4]. Then the result follows from [11, Theorem 5].
(2) (Belov code) By Lemma 14, choose dim(W)=θ=3. Let Δ=∑i∈F1mimiT=F1F1T. Then M′M′T=MMT+Δ=Ik+Δ.
If ε=θ+1−∣A∣=1 for ∣A∣=θ, then the argument follows identically to part (i) in the proof of Theorem 9 and we omit it here. We have
Since M′N′ is a lower triangular matrix, which implies that Ik+M′N′ is invertible.
If ε=θ+1−∣A∣=0 for ∣A∣=θ+1, then the argument follows identically to part (ii) in the proof of Theorem 9 and we omit it here. Then we have
M′N′=00010⋮00100⋮0001⋮00⋯⋱⋯0⋮1⋱00.
It is easy to check that Ik+M′N′ is invertible.
October 20, 2026
(ii). 2≤h≤⌈2k−1⌉.
(1) (SS code) By Lemma 14, we can consider the maximal anticode case with u1≥3. Then take F1=∅ and we have M′MT=Ik from [11, Theorem 4]. Then the result follows from [11, Theorem 5].
Let x3=(1,1,⋯,1,0,1,1)T and x4=(0,1,⋯,1,0,1,1)T for k=6. When k=6, the vector x4=(0,1,1,0,1,1)T∈F1 will be Belov deleted and in this case we can choose x1=(1,1,1,1,1,1)T, x2=(0,1,1,1,1,1)T in the generator matrix. We denote by σ3(M′) the matrix resulting from swapping x3, x4 or x1, x2 in M′. Let
Now, let D be the code generated by H=[N′:In−k]. Since Ik+M′N′ is invertible, (C,D) forms an LCP. Moreover, since N′T is obtained from M through column permutations and row shifts, D⊥ has the same parameters as C. This shows that both are optimal codes with minimum distance d. Therefore the security parameter min{d(C),d(D⊥)}=d achieves the theoretical maximum dL(n,k). This proves the optimality of the LCP (C,D), completing the proof.
Combining Theorem 16, Theorem 7, and Theorem 11, we have the following corollary:
Corollary 17. For every k≥2 and d≥2k−1, then there exists an optimal binary [g2(k,d),k] LCP of Solomon–Stiffler or Belov type with security parameters d.
October 20, 2026
Remark 18. (1) For h≤⌈2k−1⌉, the LCP (C,D) obtained in Theorem 13 are all new because Güneri only consider the case of h≥⌈2k−1⌉.
(2) Theorem 9 constructs optimal binary LCPs from Solomon–Stiffler (SS) codes, and its applicability is restricted by the condition d≥⌈2k−1⌉2k−1. In contrast, Theorem 15 constructs optimal binary LCPs from Belov codes by applying an additional puncturing operation to SS codes, namely d≥2k−1. Thus Theorem 15 relaxes the lower bound on d by a factor of ⌈2k−1⌉. Consequently, for a fixed k, Theorem 15 covers all distances
2k−1≤d<⌈2k−1⌉2k−1,
which are not covered by Theorem 9. Theorem 15 strictly extends the range of constructible optimal binary LCPs and provides more flexible parameters than Theorem 9.
Following the proof of Theorem 15, we obtain Algorithm 1. In Algorithm 1, the key step is to search a suitable σ and a permutation matrix P such that Ik+MN is invertible.
Theorem 19. The time complexity of Algorithm 1 is O(k2n), and its space complexity is O(kn).
Proof. For Algorithm 1, let the output length be n=g2(k,d). Let the final generator matrix be G∈F2k×n. Transform G into a systematic form of G=[Ik:M], M∈F2k×(n−k). The matrix NT is obtained from M by a fixed column swap and cyclic row shifts, hence N∈F2(n−k)×k. The algorithm finally checks whether Ik+MN is invertible over F2 or not.
(i). Time complexity: The dominant operations are standard F2 linear algebra routines.
(1) Transforming G (of size k×n) into a systematic form via Gaussian elimination costs O(k2n).
(2) Computing MN, where M∈F2k×(n−k) and N∈F2(n−k)×k, using matrix multiplication costs O(k2(n−k))=O(k2n).
(3) Invertibility testing of the k×k matrix Ik+MN by elimination costs O(k3).
The construction of NT from M (column swap and cyclic shifts) is a re-indexing/copy operation of cost at most O(k(n−k))=O(kn), which is negligible compared to the above terms. Therefore, the overall time complexity of Algorithm 1 is O(k2n), or more explicitly O(k2n)+O(k3), with the leading term O(k2n) when n is large.
(ii). Space complexity: The algorithm stores G∈F2k×n and matrices M∈F2k×(n−k), N∈F2(n−k)×k. Hence the memory usage is dominated by storing O(kn) field elements. The
October 20, 2026
Algorithm 1 Construction of Optimal Binary LCPs
Input: Target minimum distance d=h2k−1−∑i=1t2ui−1(d=2k−2), with 1≤u1<⋯<ut<k and ∑i=1min{h+1,t}ut+1−i≤hk
Our customized selection for Belov puncturing:
Choose subspace W⊆F2k with dim(W)=θ=3 using our dedicated basis selection method.
Select subset A⊂W such that:
θ−1<∣A∣≤θ+1;
every subset of at most θ vectors in A is linearly independent;
setε=θ+1−∣A∣∈{0,1}.
Construct Belov extra puncturing set F1=W∖A, enforce disjoint condition F∩F1=∅, where F=⋃i=1tUi is the column set to be deleted for Solomon-Stiffler codes.
Output: Optimal binary [n,k,d] LCPs (C,D) with n=g2(k,d) and G=[Sk(h)∖(F∪F1)]
Main Steps:
Compute h=⌈2k−1d⌉, and select puncturing location for F1:
a) h=1: Refer to (i) in Lemma 12 and Theorem 13 for concrete choice of basis of W, set F1=W∖A with F∩F1=∅.
b) 2≤h≤⌈2k−1⌉: Refer to (ii) in Lemma 12 and Theorem 13; place deletion F1 inside subspace Uk−4 of dimension k−2.
c) h≥⌈2k−1⌉: Refer to Güneri's idea and Theorem 9.
σ(M) from swap mi and mj:
a) Transform G into systematic form: G=(Ik:M), compute MMT.
b) σ(M) from swap mi and mj in M
c) Mσ(M)T=MMT+(mi+mj)(mi+mj)T
NT from circularary shift row of σ(M)
a) circularary shift row of σ(M) to obtain the matrix NT=Pσ(M), where P is a permutation matrix
b) MN=M(NT)T=M(Pσ(M))T=Mσ(M)TPT, MN is a lower triangular matrix
c) Ik+MN is invertible
October 20, 2026 auxiliary matrices MN and Ik+MN are of size k×k and require only O(k2) additional space. Consequently, the overall space complexity is O(kn).
This completes the proof.
As shown in Table II, Belov codes enable the construction of linear complementary pairs with smaller minimum distances d compared to SS codes. They extend the parameter range and expand the family of optimal binary LCPs.
Table III lists many optimal binary LCPs obtained by our method. To extend the construction to smaller values of d, we employ Belov's improvement as our core contribution: an additional puncturing operation on SS codes, namely puncturing the set F1. This enables the systematic construction of LCPs for smaller values of d, thereby extending the range of achievable parameters.
As shown in Table II and Table III, our Belov-based approach reduces the minimum-distance threshold from ⌈2k−1⌉2k−1 to 2k−1, covering a much wider range of parameters. More explicitly, for k=6, Güneri's construction requires the distance threshold d≥96 and code length n≥189 to construct a binary optimal LCP, whereas our method requires only d≥32 and n≥63. This demonstrates that our method substantially improves the existing results.
VI. SUMMARY AND CONCLUDING REMARKS
The main contributions of this paper are the following:
We demonstrated that the Belov construction, which additionally deletes columns F1 beyond those removed in SS codes, yields Griesmer codes with more flexible parameters. By carefully selecting subspaces Ui, the set F1, and by constructing appropriate column swaps and cyclic row shifts, we proved that for every k≥5 and d≥2k−1, there exists an optimal binary [g2(k,d),k] LCP whose security parameter attains the Griesmer bound. This significantly relaxes Güneri's condition d≥⌈(k−1)/2⌉2k−1. See Theorems 11 and 16.
We provided Algorithm 1, a concrete constructive procedure for generating such optimal LCPs, along with a complexity analysis showing O(k2n) time and O(kn) space. See Theorem 19.
Our construction produces many new optimal binary LCPs, as documented in Table III, substantially expanding the known families of such codes.
In conclusion, this work substantially expands the known families of optimal binary LCPs by integrating Belov codes into the construction framework, providing more flexible parameters
October 20, 2026
TABLE II
COMPARISON OF SOLOMON-STIFFLER AND BELOV CODE PARAMETERS FOR k≥5
Solomon-Stiffler Code [10]
Belov Code
k≥5,d≥⌈(k−1)/2⌉2k−1,h≥2
k≥5,d≥2k−1,h≥2
k=5
d≥32,n≥62
d≥16,n≥31
k=6
d≥96,n≥189
d≥32,n≥63
k=7
d≥192,n≥381
d≥64,n≥127
k=8
d≥512,n≥1020
d≥128,n≥255
k=9
d≥1024,n≥2044
d≥256,n≥511
k=10
d≥2560,n≥5115
d≥512,n≥1023
and smaller minimum distances than previously possible. As a future work, it is very interesting to present more binary optimal LCPs.
REFERENCES
[1] L. D. Baumert and R. J. McEliece, “A note on the Griesmer bound,” IEEE Trans. Inf. Theory, vol. IT-19, no. 1, pp. 134–135, Jan. 1973
[2] B. I. Belov, A conjecture on the Griesmer bound. Optimization Methods and Their Applications, (Russian), Sibirsk. Energet. Inst. Sibirsk. Otdel. Akad. Nauk SSSR, Irkutsk, 182: 100-106, 1974.
[3] B.I. Belov, V. Logachev and V.P. Sandimirov, Construction of a class of binary codes achieving the Varshamov-Griesmer bound, Problems Inform. Transmission (1974) 211-217.
[4] W. C. Huffman, V. Pless, Fundamentals of Error-Correcting Codes, Cambridge University Press, Cambridge, 2003.
[5] C. Carlet, Boolean functions for cryptography and coding theory. Cambridge University Press, 2021.
[6] C. Carlet, S. Mesnager, C. Tang, Y. Qi, and R. Pellikaan, Linear codes over Fq are equivalent to LCD codes for q>3, IEEE Trans. Inf. Theory, 64(4): 3010-3017, 2018.
[7] C. Carlet, C. Güneri, F. Özbudak, B. Özkaya, P. Solé, On linear complementary pairs of codes, IEEE Trans. Inf. Theory, 64: 6583–6589, 2018.
[8] C. Carlet, S. Mesnager, C. Tang, Y. Qi, On σ-LCD codes, IEEE Trans. Inf. Theory, 65: 1694-1704, 2019.
[9] W.-H. Choi, C. Güneri, J.-L. Kim, and F. Özbudak, Optimal binary linear complementary pairs of codes, Cryptogr. Commun., vol. 15, no. 2, pp. 469–486, Mar. 2023.
[10] J. H. Griesmer, A Bound for Error-Correcting Codes, in IBM Journal of Research and Development, vol. 4, no. 5: pp. 532-542, Nov. 1960.
[11] C. Güneri, Optimal binary linear complementary pairs from Solomon-Stiffler codes, IEEE Trans. Inf. Theory, 69: 6512–6517, 2023.
[12] C. Güneri, F. Özbudak, E. Saçıkara, A concatenated construction of linear complementary pair of codes, Cryptogr. Commun., 11(5): 1103-1114, 2019.
[13] T. Helleseth, A characterization of codes meeting the Griesmer bound, Information and Control, 50(2): 128-159, 1981.
[14] T. Helleseth, New constructions of codes meeting the Griesmer bound, IEEE Trans. Inf. Theory, 29(3), 434-439, 1983.
October 20, 2026
TABLE III
BINARY OPTIMAL LCPs FROM BELOV CODES FROM THEOREM 16
h
Optimal LCPs from Belov codes
Minimal Security Parameter dLCP
h=1
[20,5,9],[21,5,10],…,[28,5,14]
dmin=9
[44,6,21],[45,6,22],…,[60,6,30]
dmin=21
[92,7,45],[93,7,46],…,[124,7,62]
dmin=45
[188,8,93],[189,8,94],…,[252,8,126]
dmin=93
[380,9,189],[381,9,190],…,[501,9,250]
dmin=189
[764,10,381],[765,10,382],…,[1013,10,506]
dmin=381
h=2
[36,5,17],[37,5,18],…,[61,5,31]
when h>2, d>32, stop searching
[76,6,37],[77,6,38],…,[116,6,58]
[204,7,101],[205,7,102],…,[244,7,122]
[412,8,205],[413,8,206],…,[500,8,250]
[828,9,413],[829,9,414],…,[1012,9,506]
[1660,10,829],[1661,10,830],…,[2036,10,1018]
h=3
[163,6,81],[164,6,82],…,[179,6,90]
when h>3, d>96, stop searching
[324,7,161],[325,7,162],…,[371,7,186]
when h>3, d>192, stop searching
[652,8,325],[653,8,326],…,[755,8,378]
[1308,9,653],[1309,9,654],…,[1523,9,762]
[2620,10,1309],[2621,10,1310],…,[3059,10,1530]
h=4
[900,8,449],[901,8,450],…,[1010,8,506]
when h>4, d>512, stop searching
[1804,9,901],[1805,9,902],…,[2034,9,1018]
when h>4, d>1024, stop searching
[3612,10,1805],[3613,10,1806],…,[4082,10,2042]
h=5
[4620,10,2309],[4621,10,2310],…,[5105,10,2554]
when h>5, d>2560, stop searching
[15] T. Hellesth, Projective codes meeting the Griesmer bound, Discrete Math., 106: 265-271, 1992.
[16] T. Helleseth, Further classifications of codes meeting the Griesmer bound (Corresp.), IEEE Trans. Inf. Theory, 30(2): 395-403, 2003.
[17] T. Helleseth, and H. van Tilborg, A new class of codes meeting the Griesmer bound, IEEE Trans. Inf. Theory, 27(5): 548-555, 2003.
[18] P. Hu, X. Liu, Linear complementary pairs of codes over rings, Designs, Codes Cryptogr., 89(11): 2495-2509, 2021.
[19] S. Li, M. Shi, S. Ling, An open problem and a conjecture on binary linear complementary pairs of codes, IEEE Trans. Inf. Theory, 71: 219–226, 2025.
[20] X. Li, Z. Li, Two families of optimal binary linear complementary pairs of codes, Mathematics, 13(17): 2791, 2025.
[21] H. Liu, X. Liu, LCP of matrix product codes, Linear Multilinear Algebra, 70(22): 7611-7622, 2022.
[22] J. Liu, X. Liu, l-LCP of codes and their applications to EAQEC codes, Quantum Information Processing, 22(5): 2023.
[23] X. Liu, H. Liu, LCP of group codes over finite Frobenius rings, Designs, Codes Cryptogr., 91(3): 695-708, 2023.
[24] G. Solomon and J. J. Stiffler, Algebraically punctured cyclic codes, Inf. Control, 8(2): 170–179, 1965.