arXiv:2610.19960cs.ITOct 2026

Manuscript Offprint

arXiv:2610.19960

Nonlinear fixed-distance codes via real lifts of moment configurations

Sergey Yekhanin

Abstract

Let Aq(n,d)A_q(n, d) denote the largest size of a code of length nn and minimum Hamming distance dd over an alphabet of qq symbols. For fixed q≥2q \geq 2 and d≥4d \geq 4 we construct codes with redundancy n−log⁡qAq(n,d)≤(d−3)log⁡qn+O(log⁡n)n - \log_q A_q(n, d) \leq (d - 3) \log_q n + O(\sqrt{\log n}) for all large nn. No algebraic structure is imposed on the alphabet, and the codes are not linear. For d=4d = 4 and d=5d = 5 the coefficient of log⁡qn\log_q n matches the Hamming bound, so the redundancy is determined up to lower-order terms. At distance four the codes are provably better than every linear code: by the polynomial-method bound for cap sets, Fq\mathbb{F}_q-linear codes with q>2q > 2 require a strictly larger coefficient in front of log⁡qn\log_q n.

The construction imposes moment checksums over an auxiliary finite field, as BCH codes do, but one fewer than the distance would normally require. The affine-line theorem from prior work describes the dependencies left by these checks. We exclude them by placing the code positions inside a specially structured subset of the field, built from Behrend's sphere construction with the help of algebraic number theory.

Keywords. Nonlinear codes, fixed minimum distance, redundancy, cap sets, Behrend construction, number fields, Chebotarev density theorem.

1 Introduction

Let Aq(n,d)A_q(n, d) denote the largest size of a code of length nn and minimum Hamming distance at least dd over an alphabet of qq symbols. Throughout, q≥2q \geq 2 and dd are fixed integers and n→∞n \to \infty. The alphabet is Σq={0,1,…,q−1}\Sigma_q = \{0, 1, \ldots, q - 1\}; qq is not assumed to be a prime power, and codes are not assumed to be linear. We measure a code by its redundancy and write

ρq(n,d)=n−log⁡qAq(n,d),c(q,d)=lim inf⁡n→∞ρq(n,d)log⁡qn.\rho_{q}(n,d)=n-\log_{q}A_{q}(n,d),\qquad c(q,d)=\liminf_{n\to\infty}\frac{\rho_{q}(n,d)}{\log_{q}n}.

Unsubscripted logarithms are natural.

The fixed-distance problem asks how many check symbols are needed to protect a long word against a fixed number of errors. With t=⌊(d−1)/2⌋t = \lfloor (d - 1)/2 \rfloor, the Hamming bound

Aq(n,d)∑j=0t(nj)(q−1)j≤qnA_{q}(n,d)\sum_{j=0}^{t}\binom{n}{j}(q-1)^{j}\leq q^{n}

(1.1) gives ρq(n,d)≥tlog⁡qn−Oq,d(1)\rho_q(n,d) \geq t \log_q n - O_{q,d}(1). Over the binary alphabet, extended BCH codes attain the coefficient tt for every fixed dd. Over larger alphabets the picture is less complete [17], and that is the setting of this paper. Our main result imposes no algebraic structure on the alphabet.

Theorem 1.1. For every fixed pair of integers q≥2q \geq 2 and d≥4d \geq 4 there are constants Cq,d>0C_{q,d} > 0 and nq,dn_{q,d} such that for all n≥nq,dn \geq n_{q,d},

Aq(n,d)≥qnnd−3exp⁡(Cq,dlog⁡n).(1.2)A_{q}(n,d)\geq\frac{q^{n}}{n^{d-3}\exp\left(C_{q,d}\sqrt{\log n}\right)}. \tag{1.2}

In particular, c(q,d)≤lim sup⁡n→∞ρq(n,d)/log⁡qn≤d−3c(q, d) \leq \limsup_{n \to \infty} \rho_q(n, d) / \log_q n \leq d - 3.

Corollary 1.2. For every fixed integer q≥2q \geq 2,

ρq(n,4)=log⁡qn+Oq(log⁡n),ρq(n,5)=2log⁡qn+Oq(log⁡n),\rho_{q}(n,4)=\log_{q}n+O_{q}(\sqrt{\log n}),\qquad\rho_{q}(n,5)=2\log_{q}n+O_{q}(\sqrt{\log n}),

so the normalized redundancies at distances four and five converge to one and two.

Some words on what these statements do and do not say. The optimality in Corollary 1.2 is optimality of the coefficient of log⁡qn\log_q n. The construction loses a factor exp⁡(Oq,d(log⁡n))=no(1)\exp(O_{q,d}(\sqrt{\log n})) = n^{o(1)} in the number of codewords, so it does not give redundancy tlog⁡qn+O(1)t \log_q n + O(1), positive packing density, or asymptotically perfect codes. At distance six, Theorem 1.1 gives coefficient three where the Hamming bound has two, and as dd grows the gap between d−3d - 3 and the Hamming coefficient ⌊(d−1)/2⌋\lfloor(d - 1)/2\rfloor grows linearly.