arXiv:2608.25716cs.ITAug 2026

Manuscript Offprint

arXiv:2608.25716

Quantitative tiling stability from quadratic discrepancy in Hamming spaces

Valery, Grishin, Aryeh Lev Zabokritskiy

VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)

ABSTRACT. Quadratic ball discrepancy defines an energy on codes in finite Hamming spaces. At perfect-code parameters, its exact minimizers are the perfect codes. We fix the alphabet size, length, and code cardinality and compare all codes with these parameters. We prove tiling-defect stability: excess discrepancy above the perfect-code benchmark controls the squared deviation of the distinguished ball-covering multiplicity from one. For one-error parameters satisfying sphere-packing and Lloyd integrality, the lower coefficient is κn,q/q2≥1\kappa_{n,q}/q^2 \geq 1. The uniform floor one is sharp, while the certified parameter-dependent coefficient can be much larger. An explicit parameter-dependent upper estimate is also available, and the two certified coefficients can be far apart. For any two-error parameter pair with n≥5n \geq 5 satisfying sphere-packing divisibility and having two distinct integral Lloyd roots in the Hamming weight range, we obtain an explicit positive coefficient without assuming that a perfect code exists. For alphabets of size at least four, this conditional coefficient has a closed form and fixed-alphabet asymptotics. Direct certificates for the repetition and Golay families, combined with perfect-code classification, give tiling-defect stability for every nontrivial perfect code. Here stability concerns the ball-covering multiplicity profile, not symmetric-difference proximity to a particular perfect code. The defect is also a normalized chi-square smoothing error under uniform ball noise, so excess discrepancy controls holes, overlaps, defective ambient points, total variation, and Rényi divergence from uniformity of the ball-noise output. Competing codes need not be linear or satisfy a distance or error-correction constraint.

1. INTRODUCTION

Stolarsky’s invariance principle turns quadratic discrepancy into an energy minimization problem. Barg developed this principle for finite metric spaces and gave its concrete Fourier–Krawtchouk form in the binary Hamming space [2]. In particular, he proved by linear programming that binary perfect codes minimize total quadratic ball discrepancy. Recent work of the second author extended the exact-minimizer statement to every finite alphabet and produced parameter-only benchmarks whose attainment is equivalent to perfect tiling [25, Theorems 2.1–2.3]. The competitors in these results are all subsets of the prescribed cardinality, rather than only linear codes or codes with a prescribed minimum distance. The present paper is a quantitative continuation of that work. We rederive the required spectral and moment identities and reproduce the formal two-error comparison before deriving the new coercive bounds and their consequences.

Energy minimization in Hamming spaces has also been studied through binomial moments and universal optimality [1, 10, 8]. Those results identify exact optimizers for broad classes of potentials. Our question is instead coercive: how much total discrepancy must be paid for a specified failure of perfect tiling?

To state the optimization problem precisely, fix a finite alphabet A of size q, a length n, and a cardinality N. The competitors are all N-element subsets of the Hamming space AnA^n. We do not

Date: August 26, 2026.

2020 Mathematics Subject Classification. Primary 94B65; Secondary 11K38, 94B25, 05E30.

Key words and phrases. quadratic discrepancy, perfect code, stability, code smoothing, Hamming space, Krawtchouk polynomial.

VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)

prescribe their minimum distance or the number of errors they correct. If these parameters are the parameters of a perfect code, that code may correct one, two, or another number e of errors; this value only selects the ball multiplicity whose defect is measured. It does not restrict the competing codes.

Barg’s exact-minimizer theorem and its q-ary extension leave the following robustness problem, posed explicitly in [25, Section 7, Question 1]. Suppose that the discrepancy of a code is only slightly above the perfect-code benchmark. Must the Hamming balls around its codewords form an approximate tiling? For fixed parameters, finiteness and the equality characterization imply that some positive gap exists. They do not provide an explicit, interpretable, or parameter-uniform estimate, nor do they explain how the discrepancy excess detects holes and overlaps.

For a radius ee, let VeV_e denote the cardinality of a radius-e Hamming ball. Given a code C\mathcal{C}, let me,C(x)m_{e,\mathcal{C}}(x) count the radius-e balls centered at codewords that contain the ambient word xx, and put

Φe(C)≜∑x∈An(me,C(x)−1)2.\Phi_{e}(\mathcal{C})\triangleq\sum_{x\in\mathcal{A}^{n}}\left(m_{e,\mathcal{C}}(x)-1\right)^{2}.

When NVe=qnNV_e = q^n, the radius-e summand of the discrepancy is exactly

Φe(C)N2.\frac{\Phi_{e}(\mathcal{C})}{N^{2}}.

This identity alone does not give stability: a competitor could in principle lower the contributions of other radii below their perfect-code values and thereby compensate for the radius-e defect. The central point of this paper is that such compensation cannot cancel the defect quantitatively.

Related work treats weighted LpL_{p} ball discrepancy in the binary Hamming space [3] and uniform relative discrepancy for random linear codes over finite fields and translates of one ball [13]. These objectives differ from the all-radii quadratic excess studied here.

The same question has an information-theoretic interpretation. Code smoothing asks whether adding noise to a uniform codeword produces a distribution close to uniform. Ball and Bernoulli noise in the binary Hamming space, together with applications to resolvability and wiretap channels, were studied by Pathegama and Barg [19, Propositions 6.3, 7.2, and A.1]; a systematic code-and-lattice framework appears in [11]. At perfect-code cardinality, the known squared ball-multiplicity defect is precisely a chi-square smoothing error; a related multiscale identity appears in [25, Proposition 6.1]. The new bridge is a coercive comparison: excess total discrepancy controls that fixed-radius smoothing defect explicitly.

Our contribution. The main results are as follows.

(1) At every one-error parameter set satisfying the sphere-packing and Lloyd integrality conditions stated below, excess total discrepancy dominates the radius-one tiling defect with certified coefficient κn,q/q2≥1\kappa_{n,q}/q^2 \geq 1. The uniform floor one is sharp: even after the radius-one defect summand is removed, the remaining radii still favor the perfect-code benchmark, and no larger coefficient works uniformly over all admissible parameter sets. The parameter-dependent coefficient can be much larger. For q≥4q \geq 4 we evaluate it explicitly. An explicit upper coefficient is also available, although the two certified coefficients can differ by many orders of magnitude. The result is valid before a perfect code is known to exist.

(2) At every two-error parameter set with n≥5n \geq 5, sphere-packing integrality, and two distinct integral Lloyd roots, over every alphabet, we construct an explicit positive stability coefficient without assuming realization of the formal benchmark. This is a conditional arithmetic branch, not an existence assertion. For alphabet size at least four, the coefficient has a closed form and we determine its fixed-alphabet asymptotics. The arithmetic hypotheses leave exactly two small-alphabet cases, which are handled directly.

TABLE 1. Origin and role of the main mathematical inputs.

InputOrigin in the present paperRole here
Spectral and moment identities; Lloyd supportReproduced from [25] in Appendix AOne- and two-error defect comparisons
Formal two-error quadrature and comparisonReproduced from [25] in Appendix CReference distribution for the conditional two-error theorem
Ternary slope and exact Golay benchmarksReproduced from [25] in Appendices B and EUniform one-error floor and Golay benchmark evaluation
Coercive minorants, quantitative constants and ratios, and consequencesPresent paperStability inequalities and their applications

(3) For the remaining perfect-code parameters correcting at least three errors, a direct argument treats the remaining odd binary repetition codes and an exact certificate treats the binary Golay parameters.

(4) We translate the estimates into bounds on holes, overlaps, defective ambient points, chi-square divergence, total variation, and Rényi divergence. We also record the resulting discrete gap between attainment and nonattainment of the variational benchmark.

(5) Combining the preceding estimates with the classical classification and nonexistence results [23, 26, 20, 5, 14] yields tiling-defect stability for every perfect code other than the full-space and one-word codes.

Relation to the preceding paper. The exact minimization theorem and several intermediate identities used here appeared in [25]. To keep the present argument self-contained while separating inherited prerequisites from the new stability estimates, we retain the necessary statements in the body and collect their proofs in explicitly attributed appendices. These include the spectral and moment identities, Lloyd support, the formal two-error comparison, the ternary slope certificate, and the exact benchmark calculations underlying the Golay cases. The perturbed Golay ratio certificates belong to the present quantitative argument. The results specific to this paper are the coercive discrepancy–defect inequalities, their explicit constants and asymptotics, the realization-independent stability statements, and the combinatorial and smoothing consequences.

Table 1 summarizes the division between inherited inputs and the present contribution.

We call this tiling-defect stability. It controls the covering multiplicity function, not symmetric-difference distance from a particular perfect code. It is complementary to stability of Delsarte-tight spherical codes [6].

For the spectral arguments, choose a finite abelian group GG of order qq and a bijection from A\mathcal{A} to GG. Its coordinatewise extension is a Hamming isometry, so this relabeling preserves every discrepancy and tiling quantity in the paper. The group structure is used only for Fourier analysis. We may therefore write Xn=Gn\mathcal{X}_n = G^n without restricting the alphabet size.

Parameter scope. In the one-error result, put

V≜1+n(q−1),N≜qnV,k≜Vq.V\triangleq 1+n(q-1),\qquad N\triangleq \frac{q^{n}}{V},\qquad k\triangleq \frac{V}{q}.

Here VV is the volume of a radius-one Hamming ball, NN is the cardinality forced by sphere packing, and kk is the root of the radius-one Lloyd polynomial L1(w)=V−qwL_{1}(w)=V-qw. We assume that NN and kk are integers and that n≥3n\ge 3.

For the two-error result, put

V2≜1+n(q−1)+(n2)(q−1)2,N≜qnV2,V_{2}\triangleq 1+n(q-1)+\binom{n}{2}(q-1)^{2},\qquad N\triangleq \frac{q^{n}}{V_{2}}, ‘\text{‘}

VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)

where V2V_{2} is the volume of a radius-two Hamming ball, and define the radius-two Lloyd polynomial by

L2(w)≜(q−1)2(n−w2)−(q−1)(w−1)(n−w)+(w−12).L_{2}(w)\triangleq(q-1)^{2}\binom{n-w}{2}-(q-1)(w-1)(n-w)+\binom{w-1}{2}.

We assume that n≥5n \geq 5, that NN is an integer, and that L2L_2 has two distinct integral roots in {1,…,n}\{1, \ldots, n\}. These roots are the only possible nonconstant dual Hamming weights of a perfect two-error code. The conditions are necessary arithmetic conditions, not existence assumptions. The associated moment data are formal: they are forced algebraically by the perfect-code equations but need not be realized by an actual code. The theorem is formulated for every q≥2q \geq 2 subject to these arithmetic hypotheses; it does not assert that an admissible parameter pair exists for each alphabet size. For q=2,3q = 2, 3 the hypotheses force the binary length-five and ternary length-eleven cases. The unrestricted non-prime-power two-error existence problem remains open despite strong arithmetic exclusions [9, 4].

Organization. Section 2 identifies the tiling and smoothing defect and states the global theorem. Section 3 records the spectral ingredients. Section 4 proves the one-error inequalities. Section 5 proves the all-alphabet two-error theorem, treats the small-alphabet cases, and establishes the repetition-code estimate. Section 6 treats the binary Golay parameters and completes the global theorem. Section 7 gives the smoothing consequences. The appendices separate proofs reproduced from [25] from the new coefficient evaluation and the finite ratio tables used by the quantitative estimates.