arXiv:2610.38804math.GROct 2026

Manuscript Offprint

arXiv:2610.38804

Random Non-Commutative Error-Correcting Codes

Michael Best, Alexander Lubotzky

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

MICHAEL BEST AND ALEXANDER LUBOTZKY

ABSTRACT. Chapman, Dinur, and Lubotzky recently introduced the theory of non-commutative error-correcting codes [CDL24], generalizing classical coding theory to arbitrary groups via δ\delta-robust subsets used to detect proper subgroups. Building on this foundation, this paper systematically studies an analogue of random codes for arbitrary groups, exploring the extent to which the classical Gilbert–Varshamov (GV) bound holds in this non-commutative setting. While random universal codes of linear size in free groups are shown to be asymptotically bad, we establish a complete characterization for general families of finite groups. Specifically, a family of finite groups admits good random codes (forming a GV family) if and only if it exhibits uniform polynomial maximal-subgroup growth. Furthermore, we provide explicit quantitative bounds on the rate and optimal distance range based on intrinsic parameters, proving that families of finite solvable groups always form GV families and determining the exact probabilistic rate for direct powers of a fixed finite simple group.

1. INTRODUCTION

Let pp be a prime and let Fpn\mathbb{F}_p^n be the nn-dimensional vector space over the finite field Fp\mathbb{F}_p. An [n,k,d]p[n,k,d]_p linear code is a linear subspace C\mathcal{C} of Fpn\mathbb{F}_p^n of dimension kk and distance dd; that is, the Hamming weight of every nonzero vector v∈Cv \in \mathcal{C} is at least dd. A family of [ni,ki,di]p[n_i,k_i,d_i]_p codes Ci≤Fpni\mathcal{C}_i \leq \mathbb{F}_p^{n_i}, where ni⟶∞n_i \longrightarrow \infty, is called (asymptotically) good if there exist δ,ρ>0\delta, \rho > 0 such that di/ni≥δd_i/n_i \geq \delta and ki/ni≥ρk_i/n_i \geq \rho. We call ρ(Ci):=ki/ni\rho(\mathcal{C}_i) := k_i/n_i the rate of the code and δ(Ci):=di/ni\delta(\mathcal{C}_i) := d_i/n_i its normalized distance. The basic result of Shannon asserts:

Theorem 1.1 (Shannon). [Sha48, Theorem 11]. There exist good codes.

The second basic result of the theory of error-correcting codes is the Gilbert–Varshamov inequality.

Theorem 1.2 (Gilbert–Varshamov bound). [Gil52, Theorem 1, p. 507] and [Var57, condition (3), pp. 739–741]. Let 0<δ<1−1/p0 < \delta < 1-1/p and 0<ρ<1−Hp(δ)0 < \rho < 1-H_p(\delta). Then a random linear code in Fpn\mathbb{F}_p^n of rate ρ\rho has normalized distance at least δ\delta with high probability.

Here, for a real number s>1s > 1, we denote the ss-ary entropy by Hs(δ)H_s(\delta) for 0<δ<10 < \delta < 1, where

(1)

Hs(δ)=δlog⁡s(s−1)−δlog⁡sδ−(1−δ)log⁡s(1−δ).H_s(\delta) = \delta \log_s(s-1) - \delta \log_s \delta - (1-\delta) \log_s(1-\delta).

By a random code C\mathcal{C} of rate ρ\rho, we mean that k=⌊ρn⌋k = \lfloor \rho n \rfloor vectors in Fpn\mathbb{F}_p^n are chosen independently and uniformly at random and that C\mathcal{C} is the subspace they span. The condition δ<1−1/p\delta < 1-1/p is necessary because of the Plotkin bound.

Theorem 1.3 (Plotkin bound). [Plo60, Theorems 1–2, pp. 446–447] and [GRS25, Theorem 4.4.1]. If Ci≤Fpni\mathcal{C}_i \leq \mathbb{F}_p^{n_i}, ni⟶∞n_i \longrightarrow \infty, and δ(Ci)≥1−1/p\delta(\mathcal{C}_i) \geq 1-1/p, then ρ(Ci)⟶0\rho(\mathcal{C}_i) \longrightarrow 0.

In [CDL24], Chapman, Dinur, and the second author established a far-reaching extension of Theorem 1.1. To state it, we first need the following definition.

Definition 1.4. Let GG be any finitely generated group, let 0<δ<10 < \delta < 1, and let A\mathcal{A} be a finite tuple in GG, viewed as a multiset. We say that A\mathcal{A} is δ\delta-robust if every submultiset containing more than (1−δ)∣A∣(1-\delta)|\mathcal{A}| of its entries generates GG. All cardinalities and intersections involving sampled tuples are understood to count multiplicity.

For a finite tuple A\mathcal{A} in GG, its detection probability is

δ(A;G):=inf⁡{1−∣A∩H∣∣A∣:H⊈G}.\delta(\mathcal{A}; G) := \inf \left\{ 1 - \frac{|\mathcal{A} \cap H|}{|\mathcal{A}|} : H \not\subseteq G \right\}.

Date: October 30, 2026.

M. BEST AND A. LUBOTZKY

Thus A\mathcal{A} is δ\delta-robust if and only if δ(A;G)≥δ\delta(\mathcal{A}; G) \geq \delta. We write rk(G)\mathrm{rk}(G) for the minimal number of generators of GG.

Chapman, Dinur, and the second author established the following non-commutative analogue of Shannon's theorem.

Theorem 1.5. [CDL24, Theorem 1.8]. There are absolute constants δ>0\delta > 0 and C>1C > 1 such that every finitely generated group GG has a δ\delta-robust subset of size at most Crk⁡(G)C\operatorname{rk}(G).

Theorem 1.1 is a special case of Theorem 1.5. Indeed, apply Theorem 1.5 to G=FpkG = \mathbb{F}_p^k to obtain a robust subset A={α1,…,αn}⊆Fpk\mathcal{A} = \{\alpha_1, \ldots, \alpha_n\} \subseteq \mathbb{F}_p^k. Let C\mathcal{C} be the image of the linear map

T:Fpk⟶Fpn,T(β)=(⟨β,α1⟩,…,⟨β,αn⟩).T:\mathbb{F}_{p}^{k}\longrightarrow\mathbb{F}_{p}^{n},\qquad T(\beta)=(\langle\beta,\alpha_{1}\rangle,\ldots,\langle\beta,\alpha_{n}\rangle).

Here, for α=(a1,…,ak)\alpha = (a_1, \ldots, a_k) and β=(b1,…,bk)\beta = (b_1, \ldots, b_k), we put ⟨β,α⟩=∑j=1kajbj\langle\beta, \alpha\rangle = \sum_{j=1}^k a_j b_j. One easily checks that C=T(Fpk)≤Fpn\mathcal{C} = T(\mathbb{F}_p^k) \leq \mathbb{F}_p^n has dimension kk and normalized distance at least δ\delta. Since n≤Ckn \leq Ck, its rate is at least 1/C1/C.

Every k-generated group is a quotient of the free group FkF_k of rank k, and robustness is preserved under quotients. It therefore suffices to construct robust subsets in FkF_k; such subsets are called universal codes. The goal of this paper is to study random non-commutative codes systematically, and in particular to determine the extent to which an analogue of Theorem 1.2 holds for general groups.

Recall that a random linear code may be obtained from a random k×nk \times n generator matrix, considered in the binary case in [BF02, Section II-C]. Viewing the matrix by columns gives a random nn-tuple in Fpk\mathbb{F}_p^k. This suggests our general model: we ask when a random tuple in a group GG is robust.

To formalize this model, let G=(Gi)i≥1\mathcal{G} = (G_i)_{i \geq 1} be a family of nontrivial finitely generated groups, where each GiG_i is equipped with a probability measure Pi\mathbb{P}_i. For 0<ρ<10 < \rho < 1, put Ni(ρ):=⌈rk(Gi)/ρ⌉N_i(\rho) := \lceil \mathrm{rk}(G_i)/\rho \rceil and let Ai(ρ)A_i(\rho) be a tuple of Ni(ρ)N_i(\rho) independent Pi\mathbb{P}_i-distributed elements of GiG_i. We use the same notation Pi\mathbb{P}_i for the corresponding product measure on such tuples.

Definition 1.6 (( δ\delta, ρ\rho)-GV family). The family G\mathcal{G} is a (δ,ρ)(\delta, \rho)-Gilbert-Varshamov family, or a (δ,ρ)(\delta, \rho)-GV family, if

PG(δ,ρ):=lim inf⁡i→∞Pi[δ(Ai(ρ);Gi)≥δ]>0.\mathbb{P}_{\mathcal{G}}(\delta,\rho):=\liminf_{i\to\infty}\mathbb{P}_{i}[\delta(A_{i}(\rho);G_{i})\geq\delta]>0.

We call G\mathcal{G} a GVGV family if this holds for some 0<δ,ρ<10 < \delta, \rho < 1. We call G\mathcal{G} strong GVGV if, for every 0<δ<10 < \delta < 1, there is some 0<ρ<10 < \rho < 1 for which G\mathcal{G} is (δ,ρ)(\delta, \rho)-GV.

In other words, a GV family admits random robust tuples whose size is proportional to the generating rank, with a success probability bounded away from zero along the family. Being strong GV means that this remains possible for every target normalized distance below 1, although the rate may depend on the target distance.

There are two rather different settings. For free groups one must first choose a probability model, and the natural models considered here give a negative answer. For finite groups there is a canonical uniform measure, and the answer is governed by maximal-subgroup growth. These are the two main results of the paper.

1.1. Random universal codes. The first result concerns a question suggested in [CDL24, Problem 7.1]. For Fk=⟨x1,…,xk⟩F_k = \langle x_1, \ldots, x_k \rangle and S={i1<⋯<ir}⊆[k]S = \{i_1 < \cdots < i_r\} \subseteq [k], put xS=xi1⋯xirx_S = x_{i_1} \cdots x_{i_r} and Hk:={xS:S⊆[k]}\mathcal{H}_k := \{x_S : S \subseteq [k]\}. As shown in [CDL24, Theorem 3.3 and its proof], this universal Hadamard code has 2k2^k elements and detection probability at least 1/2. Thus its normalized distance is bounded away from zero, but its rate k/2kk/2^k tends to zero. In the classical abelian Hadamard setting, taking a random linear-size sample produces a good code. It was natural to ask whether the same procedure works for Hk\mathcal{H}_k.

Theorem 1.7. Let Pk\mathbb{P}_k be the uniform probability measure on Hk\mathcal{H}_k. For C>1C>1, let Ak(C)A_k(C) be a tuple of ⌈Ck⌉\lceil Ck \rceil independent Pk\mathbb{P}_k-distributed elements of FkF_k. Then

Pk[δ(Ak(C);Fk)=0]→k→∞1.\mathbb{P}_{k}[\delta(A_{k}(C);F_{k})=0]\xrightarrow[k\to\infty]{}1.

In particular, the family (Fk,Pk)k≥1(F_k, \mathbb{P}_k)_{k \geq 1} is not GV.

Thus a random linear-size sample from the universal Hadamard code is not a good universal code. This gives a negative answer to the question above, despite the positive normalized distance of the ambient Hadamard code. We obtain the same negative result for a linear-size random sample from word-metric balls; see Section 3.

1.2. Random codes in finite groups. For the remainder of this subsection, and throughout Section 4, the groups GiG_i are finite and, unless specified otherwise, Pi\mathbb{P}_i is the uniform probability measure on GiG_i.

To state our results for GV families of finite groups, write q(G)q(G) for the smallest index of a proper subgroup of GG, and put qG:=lim inf⁡i→∞q(Gi)q_{\mathcal{G}} := \liminf_{i \to \infty} q(G_i).

We say that G\mathcal{G} has uniform polynomial maximal-subgroup growth, or uniform PMSG, if there is a constant A≥0A \geq 0 such that, for all sufficiently large ii and every s≥2s \geq 2, the number of maximal subgroups of index ss in GiG_i is at most sArk(Gi)s^{A \mathrm{rk}(G_i)}. Thus the polynomial exponent is controlled uniformly by the generating rank.

Theorem 1.8 (GV characterization). Let G=(Gi)i≥1\mathcal{G} = (G_i)_{i \geq 1} be a family of nontrivial finite groups, and adopt the convention that 1/qG=01/q_{\mathcal{G}} = 0 if qG=∞q_{\mathcal{G}} = \infty. Then the following are equivalent:

(1) The family G\mathcal{G} is (δ,ρ)(\delta,\rho)-GV for some δ>0\delta>0 and 0<ρ<10<\rho<1.

(2) The family G\mathcal{G} has uniform PMSG.

(3) For every 0<δ<1−1/qG0 < \delta < 1 - 1/q_{\mathcal{G}}, there exists 0<ρ<10 < \rho < 1 such that G\mathcal{G} is (δ,ρ)(\delta, \rho)-GV.

This gives a complete group-theoretic characterization, rather than only a sufficient construction. The connection between maximal-subgroup growth and random generation was first observed by Lubotzky [Lub95] and studied systematically by Mann [Man96], who developed the theory of positively finitely generated profinite groups. Mann and Shalev [MS96] proved that positive finite generation is equivalent to polynomial maximal-subgroup growth for profinite groups. Lucchini and Moscatiello [LM20] provide the quantitative input used here.

To state our quantitative results, we record the rate and range of a family and introduce the technical parameters used here. We recall their precise maximal-subgroup definitions in Section 4.

Definition 1.9 (GV rate, range, and family parameters). For 0<δ<10 < \delta < 1, define

RG(δ):=sup⁡{ρ∈(0,1):G is (δ,ρ)−GV},Range(G):=sup⁡{δ∈(0,1):RG(δ)>0}.R_{\mathcal{G}}(\delta):=\operatorname*{s u p}\{\rho\in(0,1):\mathcal{G}\mathrm{~i s~}(\delta,\rho)\mathrm{-G V}\},\qquad\mathrm{R a n g e}(\mathcal{G}):=\operatorname*{s u p}\{\delta\in(0,1):R_{\mathcal{G}}(\delta)>0\}.

The supremum of the empty set is understood to be zero. For a nontrivial finite group Γ\Gamma, define, for each s≥2s \geq 2,

ms(Γ):=#{M<max⁡Γ:[Γ:M]=s}, and set M(Γ):=max⁡s≥2ms(Γ)>0log⁡ms(Γ)log⁡s.m_{s}(\Gamma):=\#\{M<_{\max}\Gamma:[\Gamma:M]=s\},\mathrm{~a n d~s e t~}\mathcal{M}(\Gamma):=\max_{\substack{s\geq2\\ m_{s}(\Gamma)>0}}\frac{\log m_{s}(\Gamma)}{\log s}.

Put ri:=rk(Gi)r_i := \mathrm{rk}(G_i) and define

μG:=max⁡{1,lim sup⁡i→∞M(Gi)ri},rkG:=lim inf⁡i→∞ri∈N∪{∞}.\mu_{\mathcal{G}}:=\max\left\{1,\limsup_{i\to\infty}\frac{\mathcal{M}(G_{i})}{r_{i}}\right\},\qquad\mathrm{r k}_{\mathcal{G}}:=\liminf_{i\to\infty}r_{i}\in\mathbb{N}\cup\{\infty\}.

The parameter μG\mu_{\mathcal{G}} is the optimal exponent in the uniform PMSG bound: it is the infimum of admissible exponents A≥1A \geq 1 for which ms(Gi)≤sArim_{s}(G_{i}) \leq s^{Ar_{i}} for every s≥2s \geq 2 and all sufficiently large ii, with μG=∞\mu_{\mathcal{G}} = \infty if no such exponent exists. In other words, μG\mu_{\mathcal{G}} measures the optimal polynomial growth rate of maximal subgroups relative to the generating rank. Thus G\mathcal{G} has uniform PMSG if and only if μG<∞\mu_{\mathcal{G}} < \infty.

For a fixed prime pp, Theorem 1.2 says that Gp:=(Fpk)k≥1\mathcal{G}_p := (\mathbb{F}_p^k)_{k \geq 1} is a GV family, while Theorem 1.3 shows that it is not strong GV. In fact,

RGp(δ)={1−Hp(δ),0<δ<1−1p,0,1−1p≤δ<1,Range(Gp)=1−1p.R_{\mathcal{G}_{p}}(\delta)=\begin{cases}{1-H_{p}(\delta),}&{0<\delta<1-\frac{1}{p},}\\ {0,}&{1-\frac{1}{p}\leq\delta<1,}\\ \end{cases}\qquad\mathrm{R a n g e}(\mathcal{G}_{p})=1-\frac{1}{p}.

This classical family is the prototype for the finite-group theory developed below.

We also characterize the strong GV property; see Proposition 4.9. Beyond these qualitative characterizations, we obtain quantitative bounds on the GV rate and determine the optimal distance range in the relevant regimes. The formal parameters and precise statements are given in Section 4, and Table 1 summarizes the resulting characterization, distance ranges, and rate bounds.

M. BEST AND A. LUBOTZKY

μG\mu_{\mathcal{G}}qGq_{\mathcal{G}}rkG\mathrm{rk}_{\mathcal{G}}GV/strong GVRange(G\mathcal{G})RG(δ)R_{\mathcal{G}}(\delta)
∞\inftyarbitraryarbitraryG\mathcal{G} is not GV.0For every 0<δ<10<\delta<1, RG(δ)=0R_{\mathcal{G}}(\delta)=0.
<∞< \infty∞\infty∞\inftyG\mathcal{G} is strong GV.1For every 0<δ<10<\delta<1, RG(δ)=1−δμG.R_{\mathcal{G}}(\delta)=\frac{1-\delta}{\mu_{\mathcal{G}}}.
<∞< \infty∞\infty<∞< \inftyG\mathcal{G} is strong GV.1For every 0<δ<10<\delta<1, RG(δ)≥1−δμG+1/rkG.R_{\mathcal{G}}(\delta) \geq \frac{1-\delta}{\mu_{\mathcal{G}}+1/\mathrm{rk}_{\mathcal{G}}}.
<∞< \infty<∞< \infty∞\inftyG\mathcal{G} is GV but not strong GV.1−1qG1 - \frac{1}{q_{\mathcal{G}}}For 0<δ<1−1/qG0<\delta<1-1/q_{\mathcal{G}}, 1−HqG(δ)μG≤RG(δ)≤1−δμG\frac{1-H_{q_{\mathcal{G}}}(\delta)}{\mu_{\mathcal{G}}} \leq R_{\mathcal{G}}(\delta) \leq \frac{1-\delta}{\mu_{\mathcal{G}}}. For 1−1/qG<δ<11-1/q_{\mathcal{G}} < \delta < 1, RG(δ)=0R_{\mathcal{G}}(\delta)=0.
<∞< \infty<∞< \infty<∞< \inftyG\mathcal{G} is GV.≥1−1qG\geq 1 - \frac{1}{q_{\mathcal{G}}}For every 0<δ<1−1/qG0<\delta<1-1/q_{\mathcal{G}}, RG(δ)≥1−HqG(δ)μG+2/rkG.R_{\mathcal{G}}(\delta) \geq \frac{1-H_{q_{\mathcal{G}}}(\delta)}{\mu_{\mathcal{G}}+2/\mathrm{rk}_{\mathcal{G}}}.

TABLE 1. The GV characterization, distance range, and rate bounds in terms of the family parameters.

Two applications illustrate the characterization. First, every family of nontrivial finite solvable groups has uniform polynomial maximal-subgroup growth and is therefore a GV family. Using [LMM06], we also obtain explicit bounds on the GV rate; See Section 5 for details.

Second, the threshold can be computed exactly for direct powers of a fixed finite simple group HH. This example includes the classical case. Indeed, if HH is abelian, then H≅Cp≅(Fp,+)H \cong C_p \cong (\mathbb{F}_p, +) for some prime pp, so Hm≅FpmH^m \cong \mathbb{F}_p^m and random tuples in HmH^m correspond to random generator matrices for pp-ary linear codes. If HH is nonabelian, then rk(Hm)=log⁡∣H∣m+O(1)\mathrm{rk}(H^m) = \log_{|H|} m + O(1) as m→∞m \to \infty; see [Thé97, Proposition 3.4] and [Wie78, Lemma 2]. Moreover, the smallest index of a proper subgroup of HH is less than ∣H∣\sqrt{|H|}. Despite these differences, the probabilistic GV rate in both cases is given by the same formula.

Theorem 1.10 (Direct powers of a finite simple group). Let HH be a fixed finite simple group and let GH=(Hm)m≥1\mathcal{G}_H = (H^m)_{m \geq 1}. For every 0<δ<10 < \delta < 1,

RGH(δ)={log⁡∣H∣q(H)(1−Hq(H)(δ)),0<δ<1−1q(H),0,1−1q(H)≤δ<1.Range(GH)=1−1q(H).R_{\mathcal{G}_H}(\delta)=\begin{cases}\log_{|H|}q(H)\big(1-H_{q(H)}(\delta)\big),& 0<\delta<1-\frac{1}{q(H)},\\0,& 1-\frac{1}{q(H)}\leq \delta<1.\end{cases}\qquad \mathrm{Range}(\mathcal{G}_H)=1-\frac{1}{q(H)}.

For every 0<δ<1−1/q(H)0<\delta<1-1/q(H) and every 0<ρ<10<\rho<1,

PGH(δ,ρ)={1,ρ≤RGH(δ),0,ρ>RGH(δ).\mathbb{P}_{\mathcal{G}_H}(\delta,\rho)=\begin{cases}1,& \rho\leq R_{\mathcal{G}_H}(\delta),\\0,& \rho>R_{\mathcal{G}_H}(\delta).\end{cases}

Thus direct powers of every finite simple group satisfy the same entropy-based threshold formula as in the abelian case.

The paper is organized as follows. Section 2 collects the entropy estimates used throughout. In Section 3 we prove the negative results for the universal Hadamard code and word-metric balls in free groups. In Section 4 we prove the finite-group characterization and its quantitative refinements. Finally, Section 5 treats direct powers, finite solvable groups, and a family that fails the characterization.