Efficient Decoding of Double-circulant and Wozencraft Codes from Square-root Errors
- arXiv
- 2507.13548v1 · PDF · 17 July 2025
- Categories
- cs.IT, math.IT
- Licence
- CC BY 4.0 The site shows the text.
Abstract
We present efficient decoding algorithms from square-root errors for two known families of double-circulant codes: A construction based on Sidon sets (Bhargava, Taveres, and Shiva, IEEE IT 74; Calderbank, IEEE IT 83; Guruswami and Li, IEEE IT 2025), and a construction based on cyclic codes (Chen, Peterson, and Weldon, Information and Control 1969). We further observe that the work of Guruswami and Li implicitly gives a transformation from double-circulant codes of certain block lengths to Wozencraft codes which preserves that distance of the codes, and we show that this transformation also preserves efficiency of decoding. By instantiating this transformation with the first family of double-circulant codes based on Sidon sets, we obtain an explicit construction of a Wozencraft code that is efficiently decodable from square-root errors. We also discuss limitations on instantiating this transformation with the second family of double-circulant codes based on cyclic codes.
Items 38
Conjecture 1.1
YO30For any fixed prime power q, there does not exist an infinite family of cyclic codes over \mathbb{F}_q with both constant relative distance and constant relative dual distance.
Proposition 2.1
PDNKLet q be a prime power, and let k be a prime so that q is a primitive root modulo k. Then the polynomial p_k(x):=\sum_{i=0}^{k-1}x^i is an irreducible polynomial over \mathbb{F}_q.
Fact 2.2
MNXZLet C \subseteq \mathbb{F}^n be a cyclic code of dimension k with check polynomial h(x) \in \mathbb{F}_{\leq k}[x]. Then C^\perp is a cyclic code with generator polynomial h^{\mathrm{rev}}(x).
Fact 2.3
GV1FThe Reed-Muller code \mathrm{RM}(r,m) has distance 2^{m-r}, and is decodable up to half the minimum distance in time \mathrm{poly}(2^m). Moreover, \mathrm{RM}(r,m)^\perp = \mathrm{RM}(m-r-1,m).
Proposition 2.4
S0D1Let m,r be positive integers, let \varphi: \mathbb{F}_{2^m} \to \mathbb{F}_2^m be an \mathbb{F}_2-linear bijection, and let \alpha be a generator of the multiplicative group of the field \mathbb{F}_{2^m}. Then the punctured RM code \mathrm{RM}^*(r,m) is cyclic when the evaluation points are ordered as \varphi(\alpha^i) for i=0,1, \ldots, 2^m-1.
Claim 2.5
TX4WLet a := (a_0, a_1, \ldots, a_{k-1}) \in \mathbb{F}^k denote the first column of A. Then for any m \in \mathbb{F}^k, A \cdot m is the length k coefficient vector of the polynomial a(x) \cdot m(x) \; (\bmod \; x^k-1) \in \mathbb{F}_{<k}[x].
Definition 3.1 (Sidon set)
2TVVLet S=\{s_1,s_2,\dots ,s_d\} \subseteq \mathbb{N} be a subset of d distinct integers. We say that S is a Sidon set if its pairwise differences are all distinct, that is, for any i,j,k,\ell\in [d] so that i\neq j and k\neq \ell, it holds that s_i-s_j=s_k-s_\ell if and only if i=k and j=\ell.
Definition 3.2 (Balanced weight)
HDKQLet \mathbb{F} be a finite field. We define the balanced weight \mathrm{wt}_\mathrm{bal}(w) of a string w \in \mathbb{F}^n as \min_{\alpha \in \mathbb{F}} |\{i \in [n] \mid w_i \neq \alpha\}|. Note that \mathrm{wt}_\mathrm{bal}(w) \geq d if any element \alpha \in \mathbb{F} appears at most n-d times in w, and that \mathrm{wt}(w) \geq \mathrm{wt}_\mathrm{bal}(w). We say that a code C \subseteq \mathbb{F}^k is d-balanced if \mathrm{wt}_\mathrm{bal}(c) \geq d for any non-zero codeword c. For an integer t \geq 2, we say that a code C \subseteq \mathbb{F}^{t \cdot k} is (t,d)-balanced if for any non-zero codeword c=(c_0, c_1, \ldots,c_{t-1} ) \in C, where c_0, c_1, \ldots, c_{t-1} \in \mathbb{F}^k, we have that \mathrm{wt}(c_0)+\sum_{i=1}^{t-1}\mathrm{wt}_\mathrm{bal}(c_i) \geq d.
Theorem 3.3 (Efficient decoding of double-circulant codes based on Sidon sets)
7AT4Suppose that there exists an explicit construction of an infinite sequence of sets \mathcal{S}=\{S_k\}_{k \in I}, where S_k \subseteq [k] is a Sidon set of size d=d(k).
Then for any prime power q, there exists an explicit family of codes \mathcal{D}=\{D_k\}_{k\in I}, where D_k \subseteq \mathbb{F}_q^{2 k} is a double-circulant code of distance at least \frac d 2+1 that can be decoded from less than \frac d 4 errors in time \mathrm{poly}(k, \log q). Moreover, D_k is (2,d')-balanced for d'=\min\{\frac {d} {2}+1, \frac{k} {d}\}.
Theorem 3.4 (Explicit Sidon Set)
013TFor any prime power q, there exists a Sidon set S \subseteq [q^2] of size q that can be constructed in time \mathrm{poly}(q).
Corollary 3.5
STK8For any prime power q, there exists an explicit family of codes \mathcal{D}=\{D_k\}_{k\in \mathbb{N}}, where D_k \subseteq \mathbb{F}_q^{2 k} is a double-circulant code of distance at least d=\Omega(\sqrt{k}) that can be decoded from less than \frac d 2 errors in time \mathrm{poly}(k, \log q). Moreover, D_k is (2,\Omega(\sqrt{k}))-balanced.
Construction
AM7MFix k \in I, the code D_k is constructed as follows. Let a=(a_1, a_2, \ldots, a_k) \in \{0,1\}^k be the indicator vector of S_k \subseteq [k], that is, a_i=1 if and only if i \in S_k. Let A be the binary k \times k circulant matrix whose first column is a, and let D_k be a double-circulant code with generator matrix G=\begin{pmatrix} I_k \\ A \end{pmatrix}.
Definition 3.6 (Design matrix)
U9ANWe say that a matrix A over a field \mathbb{F} is a (d,b)-design matrix if each column of A has weight at least d, and the intersection of the supports of any pair of columns of A has size at most b.
Lemma 3.7
EXYDSuppose that C \subseteq \mathbb{F}_q^{2k} is a linear code with generator matrix of the form G=\begin{pmatrix} I_k \\ A \end{pmatrix}, where A is a k \times k matrix over \mathbb{F}_q. Then if A is a (d,b)-design matrix, then C has distance at least \frac{d} {b}+1. Moreover, if A is circulant, and each row in A has weight at most r, then A is (2,d')-balanced for d'=\min\{\frac {d} {b}+1, \frac{k} {r}\}.
Proof of Lemma 3.7
Let c=(c_0,c_1) \in C be a non-zero codeword, where c_0, c_1 \in \mathbb{F}_q^k, we shall show that wt(c) \geq \frac{d} {b} +1. To see this, note that c is a non-zero linear combination of columns of G. Suppose that this linear combination has \ell non-zero entries i_1, \ldots, i_\ell \in [k] for some \ell \in [k].
Then by the structure of G, we have that \mathrm{wt}(c_0) = \ell. Moreover, since A is a (d,b)-design matrix, we have that the i_1 column of G has weight at least d, and the support of any other column from i_2, \ldots, i_\ell intersects the support of i_1 in at most b entries. Consequently, we have that \mathrm{wt}(c_1) \geq \max\{0,d - (\ell-1) \cdot b\}. But this implies in turn that
Finally, note that the righthand expression is minimized when \ell = \frac{d} {b}+1, in which case it equals \frac{d} {b}+1.
For the moreover part, let a \in \mathbb{F}_q^k denote the first column of A, and note that since A is circulant, \mathrm{wt}(a) \leq r. Let c=(c_0,c_1) \in C be a non-zero codeword, where c_0, c_1 \in \mathbb{F}_q^k. Then by Claim 2.5 and the structure of G, we have that c_1 is the length k coefficient vector of a(x) \cdot c_0(x) \; (\bmod\; x^k -1). Suppose that \mathrm{wt}(c_0)=\ell. Then \mathrm{wt}(c_1) \leq \mathrm{wt}(a) \cdot \mathrm{wt}(c_0) \leq r \cdot \ell, and so c has at least \max\{0,k-\ell \cdot r\} zero entries. But this means that
where the righthand expression is minimized when \ell = \frac kr, in which case it equals \frac kr. Finally, note that
\blacksquare
Lemma 3.8
9WZ4Let a=(a_1, a_2, \ldots, a_k) \in \{0,1\}^k be the indicator vector of a Sidon set S \subseteq [k] of size d, and let A be the binary k \times k circulant matrix whose first column is a. Then A is a (d,2)-design matrix.
Proof of Lemma 3.8
Since A is circulant and \mathrm{wt}(a)=d, we clearly have that each column of A has weight d. Next we show that the intersection of the supports of any pair of columns of A has size at most 2.
Fix 1\leq i<j \leq k, we shall show that the intersection of the supports of the i-th and j-th columns of A has size at most 2.
Suppose on the contrary that the intersection has size at least 3.
Then by the circulant structure of A, there exist distinct s_1, s_2, s_3 \in S and distinct s'_1, s'_2, s'_3 \in S so that
or equivalently,
Furthermore, since S \subseteq [k], we have that -k+1\leq s_1-s'_1,s_2-s'_2,s_3-s'_3\leq k-1, therefore they are all equal j-i or j-i-k, since 1\leq j-i\leq k-1. Furthermore, we have that s_1 \neq s'_1, s_2 \neq s'_2, and s_3 \neq s'_3.
Consequently, by the pigeonhole principle, there exist two values out of the three values s_1-s'_1,s_2-s'_2,s_3-s'_3 which are the same, without loss of generality, assume that s_1-s'_1=s_2-s'_2. But by the definition of a Sidon set, this implies in turn that s_1=s_2, which contradicts the assumption that s_1, s_2, s_3 are all distinct.
\blacksquare
Lemma 3.9
0LOLSuppose that C \subseteq \mathbb{F}_q^{2k} is a linear code with a generator matrix of the form G=\begin{pmatrix} I_k \\ A \end{pmatrix}, where A is a k \times k matrix over \mathbb{F}_q. Then if A is a (d,b)-design matrix, then C can be decoded from less than \frac{d} {2b} errors in time poly(k, \log q).
Proof of Lemma 3.9
The decoding algorithm for the code C is given in Figure ? below. For i \in [k], let S_i \subseteq [k] denote the support of the i-th column in A.
The running time of the algorithm is clearly \mathrm{poly}(k, \log q). To show correctness, let w=(w_0, w_1) \in \mathbb{F}_q^{2k} be a received word, where w_0, w_1 \in \mathbb{F}_q^k, and let c=(c_0, c_1) \in C be a codeword so that \mathsf{dist}(c,w) < \frac{d} {2b}, where c_0, c_1 \in \mathbb{F}_q^k. We shall show that the algorithm will output c.
To this end, it suffices to show that the string z which the algorithm computes on Step ? satisfies that z = w_0-c_0, as in this case the algorithm will clearly compute the correct codeword c on Step ?.
Let e=(e_0,e_1):=w-c \in \mathbb{F}_q^{2k}, where e_0, e_1 \in \mathbb{F}_q^k, and note that \mathrm{wt}(e) < \frac{d} {2b} by assumption that \mathsf{dist}(c,w) < \frac{d} {2b}. Moreover, we have that
We would like to show that z=e_0=w_0-c_0. To this end, fix i \in [k], we shall show that z_i = (e_0)_i. Let S := \bigcup_{\ell \in \mathrm{supp}(e_0)\setminus \{i\}} S_\ell. Note that for any j \in S_i so that j \notin S \cup \mathrm{supp}(e_1), we have that y_j = (e_0)_i. We shall show that the majority of j \in S_i satisfy that j \notin S \cup \mathrm{supp}(e_1), and consequently z_i = (e_0)_i.
To see the latter, note that since A is a (d,b)-design matrix, we have that |S_i| \geq d. Moreover, |S_\ell \cap S_i| \leq b for any \ell \neq i, and so
But this implies in turn that
So the majority of j \in S_i satisfy that j \notin S \cup \mathrm{supp}(e_1), and so z_i = (e_0)_i.
\blacksquare
Theorem 4.1 (Efficient decoding of double-circulant codes based on cyclic codes)
IGRPLet q be a prime power, and let I \subseteq \mathbb{N} be an infinite sequence of integers. Suppose that there exists an explicit family of codes \mathcal{C}=\{C_k\}_{k\in I}, where C_k \subseteq \mathbb{F}_q^k is a cyclic code of distance d=d(k) that can be decoded from \frac d 2 errors in time T=T(k), and C_k^\perp has distance d^\perp=d^\perp(k) and can be decoded from \frac {d^\perp} 2 errors in time T^\perp=T^\perp(k).
Then there exists an explicit family of codes \mathcal{D}=\{D_k\}_{k\in I}, where D_k \subseteq \mathbb{F}_q^{2k} is a double-circulant code of distance at least d':=\min\{d, d^\perp\} that can be decoded from \frac {d'} 2 errors in time O(T+ T^\perp+\mathrm{poly}(k, \log q)). Moreover, if \mathcal{C} is d-balanced, then \mathcal{D} is (2,d')-balanced.
Corollary 4.2
DEACLet I := \{2^m -1 \mid m \in \mathbb{N}\}. Then there exists an explicit family of codes \mathcal{D}=\{D_k\}_{k\in I}, where D_k \subseteq \mathbb{F}_2^{2k} is a double-circulant code of distance at least d:=\Omega(\sqrt{k}) that can be decoded from \frac d 2 errors in time \mathrm{poly}(k). Moreover, \mathcal{D} is (2,d)-balanced.
Proof of Corollary 4.2
For k=2^m -1 \in I, let C_k \subseteq \mathbb{F}_2^k be the dual of the punctured RM code \mathrm{RM}^*(\frac m 2, m). By Fact 2.2 and Proposition 2.4, both C_k = (\mathrm{RM}^*(\frac m 2, m))^\perp and C_k^\perp = \mathrm{RM}^*(\frac m 2, m) are cyclic codes. By Fact 2.3, C_k^\perp = \mathrm{RM}^*(\frac m 2, m) has distance at least d^\perp:=2^{\frac m 2} -1= \Omega(\sqrt{k}), and is decodable from \frac {d^\perp} 2-errors in time \mathrm{poly}(k). Further observe that C_k = (\mathrm{RM}^*(\frac m 2, m))^\perp is the code consisting of all codewords in \mathrm{RM}^*(\frac m 2 -1, m) which correspond to polynomials f(x_1, \ldots, x_m) with f(0)=0. Therefore by Fact 2.3, C_k has distance at least d:=2^{m/2+1}-1 \geq \sqrt{k}, and is decodable from \frac d 2 errors in time \mathrm{poly}(k).
Finally, we note that C_k is d-balanced. To see this, let c be a codeword in C_k = (\mathrm{RM}^*(\frac m 2, m))^\perp associated with some non-zero polynomial f(x_1, \ldots, x_m) of degree at most \frac m 2-1 which satisfies that f(0)=0. Then by the distance property, c has weight at least d, and so c has at least d non-zero entries. Furthermore, we have that 1-f(x_1, \ldots, x_m) is also a polynomial of degree at most \frac m 2 -1 which satisfies that f(0)=1, and so it is not the zero polynomial. So the codeword \bar c \in \mathrm{RM}^*(\frac m 2 -1, m) associated with this polynomial has weight at least d. But this implies in turn that c has at least d zero entries. So we have shown that any non-zero codeword in C_k has at least d non-zero entries, and at least d zero entries, and consequently C_k is d-balanced.
The conclusion then follows by applying Theorem 4.1 to the code family \mathcal{C}.
\blacksquare
Remark 4.3
YO1NWe could have also instantiated Theorem 4.1 with BCH codes [BR60], and achieve double-circulant codes with parameters similar to those stated in Corollary 4.2. However, since dual BCH are not known to be efficiently decodable, this would not lead to efficient decoding algorithms for the resulting double-circulant codes.
Construction
4J6KFix k \in I, the code D_k is constructed as follows. Let g(x) \in \mathbb{F}_q[x] be the generator polynomial for C_k \subseteq \mathbb{F}_q^k, and note that \deg(g(x)) < k. Let a \in \mathbb{F}_q^k be the length k coefficient vector of g(x), viewed as a polynomial in (\mathbb{F}_q)_{<k}[x], and let A be the k \times k circulant matrix whose first column is a. Finally, let D_k be a double-circulant code with generator matrix G=\begin{pmatrix} I_k \\ A \end{pmatrix}.
Lemma 4.4
Q1XSLet C \subseteq \mathbb{F}^n be a cyclic code of dimension k with generator polynomial g(x) \in \mathbb{F}_{\leq n-k}[x]. Then g^\mathrm{rev}(x) \in \mathbb{F}_{\leq n-k}[x] is a generator polynomial for C^\mathrm{rev}.
Proof of Lemma 4.4
It suffices to show that for any polynomial f(x) \in \mathbb{F}_{<k}[x],
where we view g(x)\cdot f(x) as a polynomial in \mathbb{F}_{<n}[x].
But the above follows since for any f(x) \in \mathbb{F}_{<k}[x],
\blacksquare
Lemma 5.1 (circulant codes to Weldon Ensemble)
O7MJLet q be a prime power, and let I \subseteq \mathbb{N} be an infinite sequence of primes so that q is a primitive root modulo any k \in I. Suppose that there exists an explicit family of codes \mathcal{D}=\{D_k\}_{k\in I}, where D_k \subseteq \mathbb{F}_q^{t \cdot k} is a (t,d)-balanced t-circulant code for d = d(k). Then there exists an explicit family of codes \mathcal{W}=\{W_k\}_{k \in I}, where W_k \subseteq \mathbb{F}_q^{t \cdot (k-1)} is a t-Weldon code of distance at least d.
Moreover, if \mathcal{D} can be decoded from \frac d 2 errors in time T=T(k), then \mathcal{W} can be decoded from \frac d 2 errors in time O(q^{t-1}\cdot (T+\mathrm{poly}(t,k, \log q)).
Construction
X92LCorollary 5.2
97EZLet q be a prime power, and let I \subseteq \mathbb{N} be an infinite sequence of primes so that q is a primitive root modulo any k \in I. Then there exists an explicit family of codes \mathcal{W}=\{W_k\}_{k \in I}, where W_k \subseteq \mathbb{F}_q^{2 \cdot (k-1)} is a Wozencraft code of distance at least d=\Omega(\sqrt{k}) that can be decoded from \frac d 2 errors in time \mathrm{poly}(k,\log q).
Conjecture 5.3 (Artin’s Conjecture on Primitive Roots)
4H1MFor any integer m that is neither a square number nor -1, it is a primitive root modulo infinitely many primes p. Moreover, the set of prime numbers p such that m is a primitive root modulo p has a positive asymptotic density inside the set of all primes.
Proposition 5.4
PLCBLet q be a prime power, and let n be a prime so that q is a primitive root modulo n. Then if C \subseteq \mathbb{F}_q^n is a cyclic code, then \min\{\Delta(C), \Delta(C^\perp)\}\leq 2.
Proof of Proposition 5.4
By Proposition 2.1, the assumption that q is a primitive root modulo n implies that p_n(x)=\sum_{i=0}^{n-1}x^i is an irreducible polynomial over \mathbb{F}_q. Consequently, x^n-1=(x-1)\cdot p_n(x) is the only non-trivial way to decompose x^n-1.
Let g(x), h(x) denote the generator and check polynomial of C, respectively. Then g(x) \cdot h(x) = x^n-1, and consequently either g(x) or h(x) divides x-1. In the case that g(x) divides x-1, we have that either g(x)=1, in which case C is the identity code of distance 1, or that g(x)=x-1, in which case C is the parity code of distance 2. In the case that h(x) divides x-1, we have that either h^\mathrm{rev}(x) =1, in which case C^\perp is the identity code of distance 1, or that h^\mathrm{rev}(x) = -x+1, in which case C^\perp is the parity code of distance 2. So we have that in either cases, \min\{\Delta(C), \Delta(C^\perp)\}\leq 2.
\blacksquare
Proposition 5.5
0TQMLet q be a prime power, and let k,s be integers so that q^s \equiv 1 \; (\bmod \; k). Then if r(x) is an irreducible polynomial over \mathbb{F}_q which divides x^k-1, then \deg(r(x))\leq s.
Proof of Proposition 5.5
By assumption that q^s \equiv 1 \; (\bmod \; k), we have that k \mid q^s -1, and so x^k -1 \mid x^{q^s-1} -1. By assumption that r(x) \mid x^k-1, this implies in turn that r(x) \mid x^{q^s-1} -1. Next recall that the roots of x^{q^s-1} -1 are all elements in the multiplicative group of the field \mathbb{F}_{q^s}. Since r(x) \mid x^{q^s-1} -1, the same holds for all roots of r(x), and since r(x) is irreducible over \mathbb{F}_q, this implies in turn that \deg(r(x))\leq s.
\blacksquare
Conjecture 5.6
Q1LMFor any fixed prime power q, there does not exist an infinite family of asymptotically good cyclic codes over \mathbb{F}_q.
Proposition 5.7
UG3VAssuming Conjecture 5.6, for any fixed prime power q, and for any infinite family \mathcal{C}=\{C_n\}_n, where C_n \subseteq \mathbb{F}_q^n is a cyclic code, we have that \min\{\Delta(\mathcal{C}), \Delta(\mathcal{C}^\perp) \} = o(n).
Proof of Proposition 5.7
Let us assume by contradiction that \min\{\Delta(\mathcal{C}), \Delta(\mathcal{C}^\perp) \} = \Omega(n). We know that for any n \in \mathbb{N}, R(C_n)+R(C_n^\perp)=1, therefore either R(C_n)\geq 1/2 or R(C_n^\perp)\geq 1/2. But since both C_n and C_n^\perp are cyclic codes, this implies in turn the existence of an infinite family of cyclic codes of rate \frac 1 2 and constant relative distance, contradicting Conjecture 5.6.
\blacksquare
Source and licence
The text on this page is from arXiv:2507.13548v1 by Oren Dubin, Noam Oz and Noga Ron-Zewi, under the licence CC BY 4.0. The corpus made these changes: it read the items out of the LaTeX source, it expanded the macros of the paper, it put each proof after its statement, and it converted the text to HTML. The formulas are the TeX of the paper, and KaTeX renders them. A formula or a reference can look different from the PDF. The page is published under CC BY 4.0.
The record of each item is in analysis/objects/2507/2507.13548.jsonl.