Minimal linear codes from characteristic functions
Sihem Mesnager, Yanfeng Qi, Hongming Ru, Chunming Tang

TL;DR
This paper introduces a new method using characteristic functions to construct and analyze minimal linear codes, expanding existing classes and providing a characterization of such codes with applications in cryptography.
Contribution
It presents a novel approach using characteristic functions to generate and characterize minimal linear codes, generalizing previous results and introducing new classes.
Findings
More minimal binary linear codes derived from known codes.
Construction of many minimal linear codes from subspaces of _q.
A new characterization of minimal linear codes from the defining set method.
Abstract
Minimal linear codes have interesting applications in secret sharing schemes and secure two-party computation. This paper uses characteristic functions of some subsets of to construct minimal linear codes. By properties of characteristic functions, we can obtain more minimal binary linear codes from known minimal binary linear codes, which generalizes results of Ding et al. [IEEE Trans. Inf. Theory, vol. 64, no. 10, pp. 6536-6545, 2018]. By characteristic functions corresponding to some subspaces of , we obtain many minimal linear codes, which generalizes results of [IEEE Trans. Inf. Theory, vol. 64, no. 10, pp. 6536-6545, 2018] and [IEEE Trans. Inf. Theory, vol. 65, no. 11, pp. 7067-7078, 2019]. Finally, we use characteristic functions to present a characterization of minimal linear codes from the defining set method and present a class of minimal linear…
| Weight | Frequency |
|---|---|
| 0 | 1 |
| for and | |
| Weight | Frequency |
|---|---|
| 0 | 1 |
| for and | |
| Weight | Frequency |
|---|---|
| 0 | 1 |
| for | |
| Weight | Frequency |
|---|---|
| 0 | 1 |
| for | |
| Weight | Frequency |
|---|---|
| 0 | 1 |
| for | |
| Weight | Frequency |
|---|---|
| 0 | 1 |
| for | |
| for | |
| Weight | Frequency |
|---|---|
| 0 | 1 |
| for | |
| for | |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Minimal linear codes from characteristic functions
Sihem Mesnager
Yanfeng Qi
Hongming Ru
Chunming Tang This work was supported by the National Natural Science Foundation of China (Grant No. 11871058, 11531002, 11701129). S. Mesnager is supported by the ANR CHIST-ERA project SECODE. Y. Qi also acknowledges support from Zhejiang provincial Natural Science Foundation of China (LQ17A010008, LQ16A010005). C. Tang also acknowledges support from 14E013, CXTD2014-4 and the Meritocracy Research Funds of China West Normal University. S. Mesnager is with the Department of Mathematics, University of Paris VIII, 93526 Saint-Denis, France, with LAGA UMR 7539, CNRS, Sorbonne Paris Cité, University of Paris XIII, 93430 Paris, France, and also with Telecom ParisTech, 75013 Paris, France (e-mail: [email protected]).Y. Qi is with School of Science, Hangzhou Dianzi University, Hangzhou, Zhejiang, 310018, China (e-mail: [email protected]). H. Ru and C. Tang are with the School of Mathematics and Information, China West Normal University, Nanchong 637002, China ([email protected], [email protected]). C. Tang is also with the Department of Mathematics, The Hong Kong University of Science and Technology, Clear Water Bay, Kowloon, Hong Kong.
Abstract
Minimal linear codes have interesting applications in secret sharing schemes and secure two-party computation. This paper uses characteristic functions of some subsets of to construct minimal linear codes. By properties of characteristic functions, we can obtain more minimal binary linear codes from known minimal binary linear codes, which generalizes results of Ding et al. [IEEE Trans. Inf. Theory, vol. 64, no. 10, pp. 6536-6545, 2018]. By characteristic functions corresponding to some subspaces of , we obtain many minimal linear codes, which generalizes results of [IEEE Trans. Inf. Theory, vol. 64, no. 10, pp. 6536-6545, 2018] and [IEEE Trans. Inf. Theory, vol. 65, no. 11, pp. 7067-7078, 2019]. Finally, we use characteristic functions to present a characterization of minimal linear codes from the defining set method and present a class of minimal linear codes.
Index Terms:
Minimal linear code, characteristic function, subspace, weight distribution
I Introduction
Throughout this paper, let be a prime and , where is a positive integer. Let be the finite field with elements and let be the multiplicative group of . An linear code over is a -dimensional subspace of with minimum (Hamming) distance . Let be the number of codewords with Hamming weight in . The weight enumerator of is the polynomial and the weight distribution of is . The minimum distance determines the error-correcting capability of . The weight distribution contains important information for estimating the probability of error detection and correction. Hence, the weight distribution attracts much attention in coding theory and many papers focus on the determination of the weight distributions of linear codes. Let be the number of nonzero in the weight distribution. Then the code is called a -weight code. Linear codes can be applied in consumer electronics, communication and data storage system. Linear codes with few weights are important in secret sharing [11, 37], authentication codes [23, 26], association schemes [5] and strongly regular graphs [6].
For a vector , let be the support of and let be the Hamming weight of . Note that . A vector covers a vector if . A codeword in a linear code is minimal if covers only the codeword for all , but no other codewords in . A linear code is minimal if any codeword of is minimal. Minimal linear codes have interesting applications in secret sharing schemes [11, 25, 30, 37] and secure two-party computation [2, 16, 19]. A sufficient condition for a linear code to be minimal is given in the following lemma.
Lemma I.1
[1]** A linear code over is minimal if , where and denote the minimum and maximum nonzero Hamming weights in the code respectively.
Some minimal linear codes with few weights can be constructed by the defining set method [21, 22]. Let be a subset of . Then a linear code of length over is defined by
[TABLE]
where is called the defining set of and is the trace function from to . From this construction, many minimal linear codes can be constructed by different choices of . Most of them satisfy the sufficient condition . This sufficient condition is not necessary [7]. Chang and Hyun [17] made a breakthrough and constructed an infinite family of minimal binary linear codes with . Heng et al. [27] presented a sufficient and necessary condition for minimal linear codes in the following theorem.
Theorem I.2
Let be a linear code over . Then is minimal if and only if
[TABLE]
for any linearly independent codewords .
They also constructed an infinite family of minimal ternary linear codes with . Ding et al. [24] presented more necessary and sufficient conditions for minimal binary linear codes and constructed three infinite families of minimal binary linear codes. Zhang et al. [38] constructed four families of minimal binary linear codes from Krawtchouk polynomials. Xu and Qu [36] studied minimal linear codes for odd and presented three infinite families of minimal linear codes. Bartoli and Bonini [3] generalized the third class of minimal linear codes in [24] from binary case to odd characteristic case and presented a class of minimal linear codes in odd characteristic. Bonini and Borello [4] presented many minimal linear codes from particular blocking sets. These minimal linear codes are constructed from the following method [10, 17, 32, 34, 35]. Let be a function from to such that
[TABLE]
A linear code over can be defined by
[TABLE]
By the choice of , many linear codes with good properties can be defined.
Inspired by these recent results, we use the characteristic function of a subset of to construct minimal linear codes in (4). For binary case, by a simple property of characteristic functions, we can present more minimal binary linear codes from known minimal binary linear codes. Furthermore, we employ characteristic functions corresponding to some subspaces to construct minimal linear codes, which generalize [24] and [36].
The rest of this paper is organized as follows. In Section 2, we present some basic results on -ary functions, Krawchouk polynomials, and minimal linear codes. In Section 3, we present more minimal linear codes from characteristic functions. In Section 4, we use characteristic functions to present a characterization of minimal linear codes from the defining set method and obtain a class of minimal linear codes. Section 5 makes a conclusion.
II Preliminaries
In this section, we will introduce some results on -ary functions, Krawchouk polynomials, and minimal linear codes.
II-A -ary functions
A -ary function is a function from or to . The Walsh transform of a -ary function at a point is defined by
[TABLE]
where is the primitive -th root of unity and is the trace function from to . The Walsh transform of a -ary function at a point is defined by
[TABLE]
where is the inner product of and . A function is called a -ary bent function, if for any . When , a -ary (bent) function is just a Boolean (bent) function.
An important class of Boolean functions is the general Maiorana-McFarland class, which can be used to generate Boolean functions with good cryptographic properties [9, 12, 20, 29, 31]. Let be a positive integer and let be two positive integers such that . The function in the general Maiorana-McFarland class has the form
[TABLE]
where , , is a mapping from to , and is a Boolean function in variables.
Krawchouk polynomials [15, 28] are useful in bent functions and coding theory. Let be a positive integer. The Krawchouk polynomial is defined by
[TABLE]
where . The Krawchouk polynomials satisfy
- •
,
- •
,
- •
,
- •
for ,
- •
,
- •
.
- •
, where such that .
II-B Linear codes
In this subsection, we present some results on linear codes defined in (4).
Parameters of binary linear codes in (4) can be determined by the following Theorem.
Theorem II.1** ([24])**
Let and let be defined in (4) by a Boolean function satisfying (3). The code has length and dimension . The weight distribution of is given by the following multiset union
[TABLE]
A necessary and sufficient condition of a minimal binary linear code in (4) is given in the following theorem, which is more efficient than Theorem I.2.
Theorem II.2** ([24])**
Let and let be defined in (4) from a Boolean function satisfying (3). Then is minimal if and only if and for every pair of distinct elements and in .
Let be the -th cyclotomic field over the rational field . Then the field extension is Galois of degree and the Galois group is , where is an automorphism of defined by . Parameters of a linear code in (4) for odd can be given in the following lemma.
Lemma II.3** ([32])**
Let be an odd prime and let be defined in (4). Then is a code and the Hamming weight of a codeword is given by
[TABLE]
III Minimal linear codes from characteristic functions
In this section, we will present some minimal linear codes from characteristic functions associated with different subsets of .
Let . The characteristic function of is
[TABLE]
From the characteristic function , a linear code can be constructed by
[TABLE]
We first give some properties of characteristic functions.
Lemma III.1
Let and let . Then
[TABLE]
Proof:
[TABLE]
and
[TABLE]
Then
[TABLE]
Since for any , this lemma follows. ∎
Lemma III.2
Let and such that . Let . Then
[TABLE]
Proof:
Note that
[TABLE]
By , we have this lemma. ∎
Using these properties of characteristic functions, we can give more linear codes from . When , we have for any . If , , we also have for any . By Theorem II.1 and Lemma III.1, we have the following corollary.
Corollary III.3
Let . Let and such that their characteristic functions and satisfy (3). Then the code has length and dimension . The weight distribution of is given by the following multiset union
[TABLE]
Remark 1
Let be a bent or semi-bent function satisfying (3). Let . The Walsh transforms of are given in [18]. By Theorem II.2, the codes and are minimal. They satisfy that .
By Lemma II.3 and Lemma III.1, we have the following corollary.
Corollary III.4
Let be an odd prime. Let and such that their characteristic functions and satisfy (3). Then is a code and the Hamming weight of a codeword is given by
[TABLE]
Remark 2
By Corollary III.3 and Corollary III.4, we can obtain from known .
In the following, we will use concrete subsets to construct more minimal linear codes and .
III-A Some minimal binary linear codes from known minimal binary linear codes
In this subsection, we will present more minimal binary linear codes from known minimal binary linear codes in [24].
The following theorem generalizes Theorem 23 in [24] and obtains minimal linear codes from Boolean functions in the general Maiorana-McFarland class.
Theorem III.5
Let be an odd integer, , and . Let and let . Let be the Boolean function defined in (5), where , is an injection from to , and for any . Let . The code defined in (7) is a minimal code with . The weight distribution of is given in Table I (resp. Table II) when is odd (resp. even).
Proof:
Note that
[TABLE]
where runs from to , and . By Lemma III.1, we have
[TABLE]
Note that for any pair of distinct , . By Theorem II.2, The code is minimal. By Theorem II.1, we have the weight distribution of . Note that and . Then . This theorem follows. ∎
The following theorem generalizes Theorem 26 [24].
Theorem III.6
Let be a positive integer and let . The code defined in (7) has length , dimension , and the weight distribution in Table III.
Proof:
Note that
[TABLE]
where are Krawchouk polynomials defined in (6). By Theorem II.1, we have the distribution of in Table III. ∎
Remark 3
By Theorem II.2, conditions of to be minimal can be obtained.
III-B *Minimal linear codes from
characteristic functions corresponding to subspaces*
In this subsection, we will give some minimal linear codes from characteristic functions corresponding to some subspaces.
We first consider some subspaces in the following proposition.
Proposition III.7
Let be subspaces of such that
[TABLE]
where . Then one of the following conditions holds:
(i) ;
(ii) and ;
(iii) , is even and .
Proof:
Conditions (i) and (ii) can be obtained when or .
Suppose that . If , by , then we have , which makes a contradiction with . Hence, . Similarly, . By , we have and is even.
Hence, this proposition follows. ∎
Let , where are subspaces satisfying (8). Note that
[TABLE]
where . Then we have linear codes and in the following theorem.
Theorem III.8
Let , where satisfy (8). Let and be defined in (7). Then and are codes with the weight distributions in Table IV and Table V, respectively.
Proof:
By (III-B), Theorem II.1 and Corollary III.3, for , we have the weight distributions of and . By (III-B), Lemma II.3 and Corollary III.4, for odd, we have the weight distributions of and . Hence, this theorem follows. ∎
By choosing different subspaces in Theorem III.8, we can obtain many minimal linear codes, in which we can find minimal codes with . Note that the codes and can not be minimal if . We just consider Condition (ii) and Condition (iii) in Proposition III.7.
We first discuss linear codes satisfying Condition (iii). When and is even, we have the following theorem on minimal linear codes.
Theorem III.9** (Theorem 18, [24])**
Let , be even, and . Let , where satisfy (8), . Then and are minimal if and only if . Furthermore, if , the code satisfies that . If , then satisfies that .
For odd , the following theorem gives minimal linear codes.
Theorem III.10
Let be odd and be even. Let , where satisfy (8) and . If (resp. ), then (resp. ) is minimal. Furthermore, if (resp. ), the code (resp. ) satisfies that .
Proof:
By the weight distribution of in Table IV, we have weights of nonzero codewords of : , , , and . Obviously, . Let for . Take two linearly independent codewords , where and . Note that
[TABLE]
By Theorem I.2, we just need to verify (2) for different cases of .
Case 1: , where . Note that any two codewords in are linearly dependent and codewords with forms a one-weight code. Hence, (2) holds for or . We just consider or . When , then . There exists only one such that , and there exists at most one such that . Hence,
[TABLE]
Similarly, when , by ,
[TABLE]
Hence, (2) holds for for .
Case 2: , or . Suppose that . Then there exists only one such that . For other , .
[TABLE]
This also holds for .
Case 3: , . Then or , where . We have
[TABLE]
Case 4: , . There exists at most one such that . For other , or . We have
[TABLE]
Case 5: , . There exists only one such that . For other , or . We have
[TABLE]
Case 6: , . There exists at most one such that . If such exists, then and . For , .
[TABLE]
If such does not exist, then or .
[TABLE]
Hence, (2) holds. By Theorem I.2, the code is minimal. Furthermore, if , .
By the weight distribution of in Table V, we have weights of nonzero codewords of : , , , . By , . Results on can be similarly obtained. ∎
Remark 4
Let . A partial spread of is a set of pairwise supplementary -dimensional subspaces of . Let be a partial spread of , where are -dimensional subspaces of . Take subspaces from . Let . Then has the same parameters and weight distribution with the third family of minimal linear codes in [36].
In the following theorem, we will consider minimal linear codes satisfying Condition (ii) in Proposition III.7.
Theorem III.11
Let be a prime and let , where are two subspaces of satisfying (8), , and . Then the codes and defined in (7) are minimal codes such that .
Proof:
When , by (III-B), Theorem II.2, and Theorem III.8, the codes and defined in (7) are minimal codes such that .
When is odd, by Theorem III.8 and a similar proof with Theorem III.10, the codes and defined in (7) are minimal codes such that . ∎
Remark 5
Note that and can be identified as two linear codes over . By and , is a linear complementary pair (LCP) of codes over [7, 8]. We can take two subspaces and of , where and . Then is a linear complementary dual (LCD) code. There are many LCD codes constructed in [13, 14, 33, 39]. Those LCD codes can be used in Theorem III.11 to construct minimal linear codes.
Example 1
Let and let . Let be a primitive element of such that . Take and . Then and . The code is a minimal binary code with the weight enumerator . The code is a minimal binary code with the weight enumerator .
Example 2
Let and let . Let be a primitive element of such that . Take as a subspace of generated by and . Let . Then . The code is a minimal code with the weight enumerator . The code is a minimal code with the weight enumerator .
For some subspaces which do not satisfy (8), we have the following theorem on minimal linear codes.
Theorem III.12
Let be a prime and let , where are three subspaces of , for , , and . Let be the dimension of for . Then the codes and defined in (7) are codes, whose weight distributions are in Table VI and Table VII, respectively. Furthermore, the code is minimal such that .
Proof:
Note that
[TABLE]
where . By a similar proof, this theorem follows. ∎
Example 3
Let and let . Let be a primitive element of such that . Take , and . Then for , , , , , , and . The code is a minimal binary code with the weight enumerator . The code is a binary code with the weight enumerator .
Example 4
Let and let . Let be a primitive element of such that . Take , and . Then for , , , , , , and . The code is a minimal binary code with the weight enumerator . The code is a minimal binary code with the weight enumerator .
IV Minimal linear codes from the defining set method
In this section, by a defining set , we use the characteristic function to give a characterization of a minimal linear code in (1). For any , let . For , note that
[TABLE]
For any two and , we have . By Theorem I.2, we have the following theorem.
Theorem IV.1
Let and let be a linear code of dimension over defined in (1). Then is a minimal code if and only if
[TABLE]
for any linearly independent .
Remark 6
Take as a subset of . By the defining method, we can also define a linear code from , where the trace function is replace by the inner product. For any , the weight of a codeword can also be determined by the Walsh transform of the characteristic function of in (IV). Hence, Theorem IV.1 also holds for a subset of .
When , we have a characterization of minimal linear codes and .
Theorem IV.2
Let . Let and let be a linear code of dimension over defined in (1). Then is a minimal code if and only if for any . Furthermore, if for any , then is minimal.
Corollary IV.3
Let . Let and let be a linear code of dimension over defined in (1), where . The code is a minimal code if and only if for any .
In the following, we will give minimal linear codes from subsets of . Define
[TABLE]
Then
[TABLE]
For a , let , and . We have and
[TABLE]
Note that for and for . We have
[TABLE]
We have , , and
[TABLE]
Hence, the weight of the codeword is determined by the weight . Given and , we can determine the minimum and maximum nonzero Hamming weights. We need the following lemma to prove that the code is minimal.
Lemma IV.4
Let be a subset of satisfying for any . Then for any ,
[TABLE]
Proof:
For any , . We have
[TABLE]
∎
Using Theorem IV.2, we have the following theorem on minimal linear codes .
Theorem IV.5
Let be defined in (15). Then the code is a minimal linear code. Further, when , the code satisfies .
Proof:
By Theorem IV.1, we just need to prove that satisfies (14). For any linearly independent , define
[TABLE]
Note that satisfies Lemma IV.4, , and , where . We have
[TABLE]
where , and . Note that
[TABLE]
By Lemma IV.4, we have
[TABLE]
Hence, we need to prove that . Since are linearly independent, there exist and such that and are linearly independent, where . Then there exist such that . Take a vector , where , , and for . Then or , and such that . Hence, and . By Theorem IV.1, is a minimal linear code.
The weight of the codeword is determined by the weight . When , . When , . When and , we can verify that . When and , we have
[TABLE]
Hence, this theorem follows. ∎
Remark 7
When , these codes have been studied in [38].
Example 5
Let and let . Take . Then for any . The code is a minimal binary code with the weight enumerator . The code is a minimal binary code with the weight enumerator .
Example 6
Let and let . Take The code is a minimal code with the weight enumerator , and it satisfies that .
Example 7
Let and let . Take The code is a minimal code with the weight enumerator , and it satisfies that .
V Conclusion
By characteristic functions of subsets of , we can construct more minimal linear codes, which generalizes results in [24] for the binary case and [36] for odd. These minimal linear codes satisfy . It is interesting to construct more minimal linear codes. We also use characteristic functions to present a characterization of minimal linear codes from the defining set method. Theorem II.2 is efficient to determine a minimal binary linear code. Theorem I.2 is not efficient enough for a minimal linear code for odd. It would be interesting to present more efficient results to determine minimal linear codes for odd.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. Ashikhmin and A. Barg, “Minimal vectors in linear codes,” IEEE Trans. Inf. Theory, vol. 44, no. 5, pp. 2010-2017, 1998.
- 2[2] A. Ashikhmin, A. Barg, G. Cohen, and L. Huguet, “Variations on minimal codewords in linear codes,” in: Applied Algebra, Algebraic Algorithms and Error-Correcting Codes (AAECC-11) (Lecture Notes in Computer Science, vol. 948), G. Cohen, M. Giusti, and T. Mora, Eds. Berlin: Springer-Verlag, pp. 96-105, 1995.
- 3[3] D. Bartoli and M. Bonini, “Minimal linear codes in odd characteristic,” IEEE Trans. Inf. Theory, vol. 65, no. 7, pp. 4152-4155, 2019.
- 4[4] M. Bonini, M. Borello, “Minimal linear codes arising from blocking sets,” https://arxiv.gg 363.site/abs/1907.04626 v 1.
- 5[5] A. R. Calderbank and J. M. Goethals, “Three-weight codes and association schemes,” Philips J. Res., vol. 39, no. 4-5, pp. 143-152, 1984.
- 6[6] A. R. Calderbank and W. M. Kantor, “The geometry of two-weight codes,” Bull. London Math. Soc., vol. 18, no. 2, pp. 97-122, 1986.
- 7[7] C. Carlet et al., “Optimized linear complementary codes implementation for hardware trojan prevention,” in Proc. 22nd Eur. Conf. Circuit Theory Design (ECCTD), 2015, pp. 1-4.
- 8[8] C. Carlet and S. Guilley, “Complementary dual codes for countermeasures to side-channel attacks,” J. Adv. Math. Commun., vol. 10, no. 1, pp. 131 C 150, 2016.
