Manuscript Offprint
arXiv:2608.25716Quantitative tiling stability from quadratic discrepancy in Hamming spaces
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 . 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 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 . 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 , let denote the cardinality of a radius-e Hamming ball. Given a code , let count the radius-e balls centered at codewords that contain the ambient word , and put
When , the radius-e summand of the discrepancy is exactly
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 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 . 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 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 , 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.
| Input | Origin in the present paper | Role here |
|---|---|---|
| Spectral and moment identities; Lloyd support | Reproduced from [25] in Appendix A | One- and two-error defect comparisons |
| Formal two-error quadrature and comparison | Reproduced from [25] in Appendix C | Reference distribution for the conditional two-error theorem |
| Ternary slope and exact Golay benchmarks | Reproduced from [25] in Appendices B and E | Uniform one-error floor and Golay benchmark evaluation |
| Coercive minorants, quantitative constants and ratios, and consequences | Present paper | Stability 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 of order and a bijection from to . 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 without restricting the alphabet size.
Parameter scope. In the one-error result, put
Here is the volume of a radius-one Hamming ball, is the cardinality forced by sphere packing, and is the root of the radius-one Lloyd polynomial . We assume that and are integers and that .
For the two-error result, put
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
where is the volume of a radius-two Hamming ball, and define the radius-two Lloyd polynomial by
We assume that , that is an integer, and that has two distinct integral roots in . 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 subject to these arithmetic hypotheses; it does not assert that an admissible parameter pair exists for each alphabet size. For 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.
For a nonempty code of size , its total quadratic ball discrepancy is
This normalization agrees with [2, 25]. For fixed parameters, write
Fix an integer with and assume throughout this section that
The code itself need not correct any errors. For convenient reference, the ball multiplicity and squared tiling defect introduced above are
Let
be the number of holes, and let
be the number of defective ambient points. For , denotes its indicator function. We use natural logarithms and the conventions and when has full support. The symbols and denote relative entropy and order-two Rényi divergence.
The overlap identity below is the fixed-radius form of [2, Theorem 2.1 and Eq. (8)]. The smoothing identities are equivalent to the convolution formulas in [19, Propositions 6.3 and A.1] and [25, Proposition 6.1]. We record them together with the hole decomposition needed for the stability estimates.
Lemma 2.1 (Defect, overlaps, and smoothing). Under (3),
Consequently,
Let X be uniform on C, let E be independent of X and uniform on , and put . If is the law of Y and U is uniform on , then
Moreover,
It vanishes if and only if C is a perfect e-error-correcting code.
Proof. Equation (3) gives . Therefore
Double counting triples with shows that the right side is precisely the sum of the ordered overlaps with , proving (5).
The deviations sum to zero. Every negative deviation is exactly -1, so
Expanding each positive square as gives (6). The first inequality in (7) follows. The second follows pointwise from for every nonnegative integer .
The convolution of the uniform measures on C and gives (8). Since ,
which is (9). The total negative deviation is and equals the total positive deviation, so the distance is , proving (10). Finally, and the deviations sum to zero, hence
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
is even. If it is positive, (5) gives distinct centers whose radius-e balls meet. Their intersection contains at least two points: if their distance is at most e, it contains both centers; if it lies strictly between e and 2e, two successive points on a shortest path lie in both balls; and at distance 2e there are at least two midpoints. The ordered center pair and its reverse therefore contribute at least four in total. This proves (11). Vanishing is exactly the perfect-tiling identity.
The next proposition translates every stability estimate below into combinatorial bounds and bounds on the divergences just defined.
Proposition 2.2 (From a discrepancy certificate to smoothing). Suppose that a parameter-only benchmark and a constant satisfy
for every N-word code, where . Put . Then
Moreover,
Also,
If C is not perfect, then
Proof. Equations (13)–(15) follow from Lemma 2.1, (12), and . The identity and monotonicity of Rényi divergence in its order give (16). If is not perfect, then (11) gives , proving (17).
We call a perfect code nontrivial if it is neither the full space correcting zero errors nor a one-word code. Theorem 2.3 of [25] established the corresponding exact equality characterization; the theorem below re-establishes it as a consequence of stronger coercive inequalities. Its ingredients occur in proof order: Theorem 4.1 treats one-error parameters, Corollary 5.10 treats two-error parameters, Theorem 5.8 treats odd binary repetition codes, and Proposition 6.1 treats the binary Golay parameters. The first two results require only arithmetic admissibility; the classification is used at the end to exhaust the actual perfect codes.
Theorem 2.3 (Global tiling-defect stability). Let be a finite abelian group of order and let be a nontrivial perfect code correcting errors. Put . There is an explicit parameter-only constant such that every -word code satisfies
The proof supplies the following choices:
(1) for every one-error perfect code;
(2) for every two-error perfect code, take the positive coefficient stated in Corollary 5.10;
(3) for binary repetition codes with ;
(4) for the binary Golay code.
Consequently, all conclusions of Proposition 2.2 hold with . Moreover, if and only if is itself a perfect e-error-correcting code.
For a one-error perfect code P, the coefficient-one case has the particularly transparent form
The subtracted term is exactly the radius-one summand of , while it vanishes for . Thus the other radii alone still favor the perfect-code benchmark. The competitors are arbitrary subsets of the prescribed cardinality. The conclusion concerns their ball multiplicities; it does not assert edit-distance closeness to the particular code .
3. SPECTRAL INPUTS
The stability inequalities compare discrepancy excess with the fixed-radius tiling defect. Fourier expansion writes total discrepancy and the defect as sums over the same nonnegative frequency coordinates, weighted respectively by total-discrepancy weights and squared ball coefficients. After subtracting the benchmark, the relevant moment constraints or formal reference distribution express the discrepancy excess in these same coordinates. The one- and two-error arguments compare the resulting weights, and summing over the common coordinates returns the desired inequality for the original code. We record only the parts of the Fourier–Krawtchouk theory needed for this comparison. Standard background on the Hamming association scheme and finite Fourier analysis can be found in [12, 17, 22].
For , the q-ary Krawtchouk polynomial in our normalization is
The distance distribution of an N-word code is
Thus and . Its MacWilliams–Delsarte transform is
Let be the character group of . A frequency determines the character . If is the trivial character, set
We use the unnormalized Fourier transform
For nonlinear codes, is a transform rather than the distribution of a dual code. It is nonnegative and has the Fourier expression
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Define the Fourier coefficient of a radius-t ball and the spectral discrepancy weight by
The Fourier and moment identities below are standard in the Hamming association scheme and were also used, in the present normalization, in [25]. We keep their statements next to the stability argument and reproduce their proofs in Appendix A, so that every input can be checked within the present article without obscuring the new comparison estimates. For functions , use the unnormalized convolution
With the Fourier normalization above,
Lemma 3.1 (Fourier transform of a Hamming ball). For and ,
Moreover, .
Its proof is reproduced in Appendix A.
Proposition 3.2 (Spectral Parseval identities). Every nonempty code satisfies
If , then
The proof of (21) is reproduced in Appendix A. The fixed-radius identity is the bridge from the inherited spectral framework to the tiling defect, so we prove it here.
Proof of (22). Put
The hypothesis makes its trivial Fourier coefficient zero, while
Since , Plancherel and the definition of give (22).
For a real polynomial , write
and put
Proposition 3.3 (Coefficient norm and spectral convexity). For ,
If , then, for ,
(24)
Thus is strictly discretely convex. For , it is also strictly decreasing.
Its proof is reproduced in Appendix A.
At the admissible one-error Lloyd root , we also use
For this follows from Proposition 3.3. For it follows from the explicit binary formula of [2, Equation (37)]; the ternary coefficient and its positive recurrence are proved in Appendix B.
For , write
for the falling factorial.
Lemma 3.4 (Factorial dual moments). For every N-word code ,
Moreover, for ,
Its proof is reproduced in Appendix A.
Proposition 3.5 (Lloyd support). Let , and let be a perfect e-error-correcting code. Then
Thus the nonconstant Fourier spectrum of P is supported on the integer roots of its Lloyd polynomial.
Its proof is reproduced in Appendix A.
We will also need the one-error moments.
Lemma 3.6 (One-error moments). Assume , , and are integers. For every N-word code,
Moreover,
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
and hence
Proof. The inherited moment calculation proving (28)–(30) is reproduced in Appendix A. It remains to identify the quadratic moment with the tiling defect. Two distinct radius-one balls meet in q points when their centers are at distance one, in two points when their centers are at distance two, and not at larger distance. Therefore (5) gives
Combining the last two identities proves (32).
4. ONE-ERROR STABILITY
Let be a finite abelian group of order . Assume throughout this section that , , and
are integers. Put and
No perfect code is assumed to exist.
We begin with the clean form of the result. The remainder of the section proves it and then identifies a sharper parameter-dependent coefficient.
Theorem 4.1 (Sharp uniform one-error stability). Under (33), every N-word code satisfies
The benchmark is attained exactly when C is a perfect one-error-correcting code. If no perfect one-error code exists, then
The coefficient one in (35) is best possible uniformly over the admissible parameter sets.
The proof has one guiding observation. Since , the defect formula (22) is a centered second spectral moment. We therefore seek a quadratic minorant of W that touches it at the two adjacent weights and .
Let
and define
Strict convexity makes every ratio in (37) positive. Set
For the upper comparison, put
Theorem 4.2 (Parameter-dependent one-error comparison). Under (33), every N-word code satisfies
In particular, the benchmark is attained if and only if C is a perfect one-error-correcting code.
Proof. Write . The definition of gives the pointwise minorant
At this is an equality; away from those two integers, and (41) is exactly the definition of .
Put and
By (21), (28), and (34),
Summing (41) and using (29) gives
For the other direction, (39) gives directly
Now use (32) and to obtain (40). Its outer terms vanish simultaneously exactly when , which is perfect tiling by Lemma 2.1.
The lower coefficient in Theorem 4.2 has a clean parameter-free estimate. This is the step that makes the final stability constant independent of the alphabet. To estimate it, we express W as a coefficient norm: the first difference at k controls , while the second differences control . The two estimates then combine through the definition of . Proposition 3.3 supplies both the coefficient norm and the required curvature identity.
Proposition 4.3 (One-error coefficient). Let , , , and . Define
Then
If , the minimum in (37) is attained uniquely at , and
(45)
These inequalities do not require to be an integer.
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Proof. For , the polynomial inside the norm in (24) has nonzero coefficients at two distinct degrees: its constant and leading terms have absolute values 1 and . Hence its squared norm is at least two, proving .
It remains to bound the local slope. The relations between give and . Set and
Then
(46)
Applying to adjacent coefficients gives
For , this is at least , and therefore .
For , write . The closed binary formula [2, Equation (37)] yields
because the expression equals 4 at and its ratio at to its value at is . For , the exact ternary coefficient formula and positive recurrence proved in Appendix B give
Finally, write . The curvature bound says . If with , then
If with , then
These are exactly the two sides of the minimum in (37), so . Together with (38) and the two bounds already proved, this establishes (44).
It remains to prove the exact assertion when . If has nonzero constant and leading coefficients, then
(47)
Applying this first to shows that is strictly decreasing. Applying it to in (24) shows that
is strictly decreasing in .
For , the ratio in (37) at is
These weighted averages decrease strictly with . Indeed, if , , and , then
which is equivalent to . On the other side, the ratio at is
Each of and is one half of a convex combination of the corresponding curvature values. Since every curvature index in lies strictly to the left of every curvature index in and decreases strictly, for every admissible . Hence the unique minimum is , attained at . Since , this minimum is smaller than , proving the first line of (45). Finally, substitute (24) into (48) with and change variables to obtain the second line.
TABLE 2. Certified lower and upper coefficients at admissible one-error parameter sets. Numerical entries are rounded to three significant digits.
| (2,3) | 1 | 1 | 1 |
| (2,7) | 2 | ||
| (3,4) | 1 | 6.42 | 6.42 |
| (3,13) | |||
| (4,5) | 3 | ||
| (4,21) |
Table 2 shows two distinct features of the comparison. The uniform floor one can be much smaller than the certified parameter-dependent lower coefficient, and the two certified coefficients can differ by many orders of magnitude. The table contains only parameter sets satisfying both integrality conditions in (33); values of the analytic coefficient outside that class are not instances of the stability theorem.
Proof of Theorem 4.1. Theorem 4.2 and Proposition 4.3 prove (35). If no perfect code exists, every code has , proving (36). Uniform sharpness follows from either of the two examples below.
The smallest example illustrates the exact normalization. At ,
Every nonperfect two-word code has discrepancy gap one and , so both inequalities in (40) are equalities.
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Sharpness also occurs at a nonbinary perfect-code parameter set. Over , let
This nonperfect code has
Consequently,
Thus the uniform coefficient one is attained nontrivially also at the ternary Hamming parameters .
5. TWO-ERROR STABILITY
The two-error argument has a different shape from the one-error proof. We first state the conditional large-alphabet estimate, then construct the formal comparison distribution and prove the coefficient inequalities needed for it. The arithmetic hypotheses reduce q = 2, 3 to two explicit cases, giving an all-alphabet theorem at the end of the section.
5.1. The conditional large-alphabet estimate. Put
Assume , , is an integer, and the Lloyd polynomial
has two distinct integral roots in . Let
and define the formal discrepancy benchmark
These formal data are defined without assuming that a perfect code exists.
Put
and define
(52)
For , set
Theorem 5.1 (Large-alphabet two-error stability). Let be a finite abelian group of order and let . Assume that divides and that has two distinct integral roots in . Put . Then every code with satisfies
If a perfect two-error code exists, every perfect code with these parameters attains the benchmark. If no perfect two-error code exists, then
The theorem is conditional only on the two stated arithmetic assumptions. It asserts neither that an admissible parameter pair exists nor that the formal benchmark is realized by a code.
Remark 5.2 (Status of the large-alphabet branch). No nontrivial perfect two-error code is currently known for . Prime-power alphabets are excluded by the classical classification, while non-prime-power alphabets remain open under strong arithmetic restrictions [9, 4].
The arithmetic conditions are sparse even before the known nonexistence theorems are applied. An exact integer search over and found that both conditions hold only for and . Among the 123 pairs with in this range for which the Lloyd polynomial has two integral roots, none satisfies . The search used the exact quadratic identity
to test the discriminant, root integrality, and root range, followed by exact modular exponentiation for the divisibility condition. This bounded calculation does not exclude admissible parameters outside the searched rectangle.
Thus Theorem 5.1 is an existence-independent conditional certificate: it applies to every arithmetically admissible instance and, in particular, to any future candidate parameters.
Proposition 5.3 (Explicit large-alphabet coefficient). For every pair of integers and , the number in (53) is positive. For each fixed , this analytic expression satisfies, as ,
This is an asymptotic of the displayed expression, not an assertion that infinitely many admissible parameter pairs exist.
Proof. Appendix D derives (53). Positivity is immediate from (52), and the same calculation with Stirling's formula gives (56).
For centers at distance w, let be the intersection size of their radius-two balls. We compare the actual distance distribution with a formal reference obtained from dual mass at the two Lloyd roots. Once transformed back to distance coordinates, this formal reference has zero entries at distances 1, ..., 4, as for a perfect two-error code, although the reference need not be realizable. The formal comparison controls completely monotone moment gaps. The new step shows that the discrepancy-potential gap dominates times the -moment gap; the two gaps equal and , returning Theorem 5.1. A right-Newton expansion handles the higher moments, while the first four distances require regrouping.
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Define
This depends only on ; write for its value at distance . For a function , put for . We call completely monotone if
Put
and
The next proposition appeared in [25]; we retain its statement here because both parts feed directly into the two-error stability estimate.
Proposition 5.4 (Distance representation and complete monotonicity). Every N-word code satisfies
If , the function is completely monotone, and every positive-order alternating difference is strictly positive.
Its proof is reproduced in Appendix A.
For the rest of this subsection, assume and write . Define the formal dual vector by
Let be the Krawtchouk matrix, so that , and put
Thus is a formal reference vector; it is not assumed to be nonnegative or to arise from a code.
The following comparison combines Lemma 5.3 and the two-node quadrature in Lemma A.1 of [25]. We state it in the present normalization and include its proof in Appendix C, because it is a load-bearing input to the quantitative estimate.
Lemma 5.5 (Formal two-error quadrature and comparison). Under the assumptions of Theorem 5.1, the formal data above satisfy
and
If is the distance distribution of any -word code, then every completely monotone function satisfies
No nonnegativity is assumed for with .
The quadrature identity and comparison argument are proved in Appendix C. The new quantitative step begins with the following strengthening. The kernel identity equivalent to (58) is
Moreover, (59) and imply because . Substituting this formal transform into the preceding kernel identity gives
No code realizing is assumed.
Fix an arbitrary N-word code C and write for its distance distribution. The quantitative step that remains is to prove
The two identities that return this formal comparison to the quantities in the theorem are
They will be verified at the end of the proof. Thus (63) immediately yields (54).
A direct coordinate count gives, for ,
(66)
For , direct counting gives, respectively, , , , and : separate the choices supported on the differing coordinates from those using one common coordinate. The cases and are immediate.
For a function on , write
For , define
The right-Newton expansion
with an out-of-range binomial coefficient interpreted as zero, follows by iterating the difference recurrence and applying Pascal's identity; compare [10, Lemma 4]. A short normalization check is included in Appendix D. The same appendix evaluates the fourth diagonal difference and proves
The integral-root hypothesis forces when ; the short arithmetic argument is included in Appendix D. The proof below groups the first four Newton moments by the nonnegative low-distance coordinates .
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Proof of Theorem 5.1. Continue with the arbitrary code C and its distance distribution A fixed above. Set
and define
For these basis functions,
with an out-of-range binomial coefficient interpreted as zero. Hence the binomial basis functions are completely monotone, and Lemma 5.5 gives . The right-Newton expansion, with the fixed diagonal and total mass removed, is
For , (60) gives
Direct substitution of (66) gives
Since and , we have . This is the largest value of allowed by the coefficientwise regrouping below: the -coefficient is . Strict complete monotonicity of gives . Moreover, implies , so ; and for .
It remains to group the first four terms of (69). For , define
Equation (70) then gives
Since ,
Put . Substitution from (71) gives
Therefore
Since every is nonnegative and every remaining is nonnegative, (69) proves (63).
The distance form (58), equality of the total masses, and (62) give (64). On the other hand, double counting ordered pairs of radius-two balls gives
By (60) and the support of in (66), , which proves (65). Combining (63)–(65) proves (54). If is perfect, then Proposition 3.5 supports its nonconstant dual distribution on the two zeros of . Equations (26) and (27) with , together with , give
Thus
The spectral discrepancy formula now gives . If no perfect code exists, (11) gives , proving (55).
This gives a quantitative refinement of universal-optimality comparisons before realizability of the formal benchmark is known [1, 10].
The arithmetic reduction in the following lemma also appeared in [25]; its proof is reproduced in Appendix A.
Lemma 5.6 (The two smallest alphabets). Let and . Assume that is an integer and that has two distinct integral roots in . Then
For q = 2, 3, complete monotonicity fails, but Lemma 5.6 shows that the arithmetic hypotheses leave only the binary length-five and ternary Golay parameters. We treat them next.
5.2. The binary case and repetition codes. Let , put , and let . For a two-word binary code, an isometry leaves only the distance between its words. Write for the intersection size of two radius- balls at distance .
Keevash and Long prove an exact nonnegative decrement formula for these intersection numbers [15, Lemma 4.11]. We include a direct injection proof of the monotonicity needed here.
Lemma 5.7. For fixed n and every , the sequence is nonincreasing in d.
Proof. Normalize the two pairs of centers to , and , . A word in the latter intersection already belongs to the former unless it has a one in the newly changed coordinate and lies exactly on the boundary of the second ball. In that exceptional case, flip the new coordinate to zero. The image remains in both former balls. A flipped image cannot collide with a fixed image: the word with zero in the new coordinate would lie one step outside the latter second ball. This defines an injection from the distance- intersection into the distance-d intersection.
Theorem 5.8 (Exact repetition coefficient). Every two-word binary code satisfies
The coefficient one is best possible for every odd n.
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Proof. The threshold form of the distance kernel is
Indeed, counts the thresholds that separate a and b, and two radius-t balls have the same size. By Lemma 5.7,
because the two radius-e balls at antipodal centers are disjoint. The distance formula and the overlap identity give
Since N = 2, this proves (72).
Equality holds at both and . Indeed, for either distance and , the two radius- balls are disjoint, so . For , inclusion-exclusion and complementation reduce to the corresponding difference for balls of radius at the same center distances; these smaller balls are again disjoint. At , both balls are the whole space, so . Thus only the term contributes to (73). Direct counting gives
and hence
Therefore (72) is an equality at both distances, and the coefficient cannot be increased.
5.3. The ternary case and the all-alphabet theorem. The following proposition is a quantitative refinement of the exact ternary Golay result. The unperturbed quadratic below appeared in [25, Appendix D]; we reproduce its coefficients, all moment evaluations, and the complete finite comparison so that the argument here is self-contained.
Proposition 5.9 (Ternary Golay stability). Every code of size satisfies
Every perfect two-error-correcting code attains the benchmark on the left. Consequently,
and equality in this minimum holds precisely for perfect two-error-correcting codes.
Proof. At these parameters,
Define
and perturb the quadratic by
(75)
The exact finite calculation in Appendix E gives
Equations (26) and (27), specialized to , give
Hence (75) yields
Summing (76) against and using (21), (22), and (77) proves (74).
The exact perfect-code benchmark evaluation is reproduced in Appendix E. The classical ternary Golay code is a perfect code with these parameters [17], so the lower bound is attained. Conversely, if a code attains this benchmark, then (74) forces . Because , Lemma 2.1 shows that is perfect.
On the admissible two-error parameter sets, define
Corollary 5.10 (All-alphabet two-error stability). Let be a finite abelian group of order , and let . Assume that is an integer and that has two distinct integral roots in . Then every -word code satisfies
If no perfect two-error code exists, then the minimum is at least .
Proof. For , this is Theorem 5.1. For , Lemma 5.6 leaves only and . Theorem 5.8 and Proposition 5.9 give the estimates. Direct substitution in and identifies their left-hand benchmarks with and , respectively. The gap statement follows from Proposition 2.2.
6. THE REMAINING PERFECT CODES
The one-error theorem and the all-alphabet two-error theorem above cover every perfect code correcting one or two errors. It remains to record a certificate for the binary Golay code and then invoke the known parameter classification to complete Theorem 2.3.
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
The centered quartic used below is the exact-minimization certificate recorded in [25, Appendix E]. We include its falling-factorial expansion, moment evaluation, symmetry argument, and complete finite comparison.
Proposition 6.1 (Binary Golay stability). Every code of size satisfies
Every perfect three-error-correcting code attains the benchmark on the left. Consequently,
and equality in this minimum holds precisely for perfect three-error-correcting codes.
Proof. Here
and
Define
In the falling-factorial basis this is
Put
The mass identity and Lemma 3.4 give
Substitution in (82) gives
We also record the symmetry used in the finite check. When q = 2, equation (23) reads
The substitution interchanges the two factors and leaves the coefficient norm unchanged. Therefore
The polynomial is invariant under the same reflection, and . The exact values displayed in Appendix E consequently prove
Summing (89) and applying (21), (22), and (88) proves the result.
The exact perfect-code benchmark evaluation is reproduced in Appendix E. The classical binary Golay code is a perfect code with these parameters [17], so the lower bound is attained. Conversely, equality at the benchmark in (80) forces . Since , Lemma 2.1 shows that is perfect.
6.1. Completion of the global theorem
Proof of Theorem 2.3. For every perfect code correcting errors, sphere packing gives . When , Proposition 3.5 forces the root to be integral. When , Lloyd's theorem gives two distinct integral roots of in the Hamming weight range [17]; Proposition 3.5 gives their role as the nonconstant spectral support. Thus an actual nontrivial perfect code satisfies the arithmetic hypotheses of the corresponding stability theorem.
Theorem 4.1 treats every one-error perfect code. Corollary 5.10 treats every two-error parameter set. Theorem 5.8 treats the remaining odd binary repetition codes, and Proposition 6.1 treats the binary Golay parameters.
For prime-power alphabets, the classical parameter classification leaves only the Hamming, ternary Golay, binary Golay, repetition, and trivial families [23, 26]. For non-prime-power alphabets, the remaining cases correcting at least three errors are excluded by the known nonexistence results [20, 5, 14]; the radius-one and radius-two arguments above do not require a prime-power alphabet. Trivial full-space and one-word codes have no nonperfect competitors of the same cardinality and were excluded from the statement. The listed cases therefore exhaust all nontrivial perfect codes.
In every branch, the preceding local calculations identify the benchmark with and yield (18). Equality forces , so is perfect; conversely, every perfect code with the same parameters attains the parameter-only benchmark. This proves both the inequality and the equality characterization in the theorem.
7. CONSEQUENCES
We now translate the stability estimates through the defect dictionary of Section 2.
7.1. Near-perfect smoothing. The global stability theorem and Proposition 2.2 give the following bounds. For every nontrivial perfect code P and every competitor C of the same size,
The left side of (91) is exactly the fraction of uncovered ambient points, not merely bounded by it. Thus the discrepancy excess controls both an analytic smoothing error and a direct combinatorial failure of Hamming-ball coverage.
These are resolvability consequences, not a wiretap or cryptographic security theorem; the latter also requires a message-indexed encoder, a channel model, and separate reliability and secrecy analyses.
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
7.2. Close pairs. Let be the number of ordered codeword pairs at distance . Under (33), (31) reads
Consequently, Theorem 4.1 gives the explicit bound
In particular,
Unlike a minimum-distance condition, these estimates quantify all local overlaps in an arbitrary competitor.
8. CONCLUSION
Exact discrepancy minimization has a quantitative refinement. At every parameter set of a nontrivial perfect code, excess total quadratic discrepancy controls the corresponding tiling defect, and therefore holes, overlaps, close pairs, and the failure of uniform ball noise to smooth the code distribution. The sharp one-error inequality shows that the other radii cannot compensate for the radius-one tiling defect. Its certified parameter-dependent lower coefficient may be much larger than the sharp uniform floor, while the explicit upper estimate can be larger still by many orders of magnitude; the result is valid over every finite alphabet before existence is known. The two-error comparison likewise does not assume the existence of a perfect code and is valid over every finite alphabet for under the explicit sphere-packing and Lloyd conditions. The remaining perfect families complete the global theorem. For alphabets of size at least four, the parameter-dependent one-error minorant coefficient is evaluated at its unique endpoint. For the large-alphabet two-error branch, a low-distance regrouping gives an explicit coefficient and its fixed-alphabet asymptotics.
Does near-minimality force proximity to a perfect code?
The present estimates control the ball-multiplicity defect. A removal theorem would show that a sufficiently small defect also places the code close in symmetric difference to some perfect code. This would be a code-theoretic analogue of vertex-isoperimetric stability in the Hamming cube, where near-minimal boundary forces symmetric-difference proximity to a generalized Hamming ball [15].
What are the optimal stability constants?
Our coefficients come from explicit positivity certificates. In particular, is certified by a pointwise spectral minorant and moment constraints; it need not be the largest coefficient on the smaller class of dual distributions realizable by codes. Determining the optimal parameter-dependent constants, and their behavior along growing q-ary Hamming families, remains open.
What replaces perfect tiling when no perfect code exists?
Can one identify a natural reference multiplicity profile and a benchmark value such that excess discrepancy controls deviation from that profile? Deleting one word from an LP-universally optimal code preserves universal optimality [10], providing a concrete adjacent-cardinality test case. Nearly-perfect covering codes provide another natural reference profile when exact tiling is unavailable [7, 21]. For a binary covering code C of length n, cardinality N, and covering radius R, the multiplicity function considered in [21] is
Put , the mean covering multiplicity. Lemma 3.18 of [21] shows that every over-covered word is covered by exactly two codewords. Since the codes studied there are covering codes, it follows that for every . Since , the balancing principle for integer profiles of fixed mean—use only and —shows that this profile minimizes the centered sum of squares. Thus
Thus these codes minimize the radius-R discrepancy summand among binary codes of the same length and cardinality. Whether the other radii preserve this optimality, and hence whether total discrepancy is minimized, remains open.
Does the method extend to more general error patterns and spaces?
A direct existence-independent certificate for larger error-correction parameters would require new positivity arguments. The same is true for other association schemes; neither extension follows formally from the Hamming-space proof.
APPENDIX A. REPRODUCED PREREQUISITES
The statements proved in this appendix appeared in [25]. They are collected here to keep the present arXiv version self-contained while leaving the body focused on the new stability estimates. The statements themselves remain at their points of use, where their roles in the quantitative argument are visible.
Proof of Lemma 3.1. Put and . If , coordinatewise character orthogonality gives
Thus the Fourier transform of the weight-j sphere is . Summing its coefficients cumulatively,
The coefficient of is . The right-hand side has degree , so .
Proof of (21) in Proposition 3.2. For fixed t, define
Thus
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Its Fourier transform vanishes at the trivial character. At a nontrivial frequency it is
Plancherel, followed by summation over t, gives
where the radius-n term vanishes by Lemma 3.1. Grouping frequencies by weight proves (21).
Proof of Proposition 3.3. Lemma 3.1 shows that the coefficients of are , proving (23). Parseval for polynomial coefficients gives
On the unit circle,
Taking the second finite difference under the integral and applying Parseval again gives (24); its right-hand side is positive because the polynomial inside the norm is nonzero. Finally,
For this is nonnegative and positive on a set of positive measure, so the first-difference integral gives .
Proof of Lemma 3.4. Plancherel gives
The trivial frequency contributes , proving (26). For , expand the Fourier squares over ordered pairs:
The falling factorial counts ordered -tuples of distinct coordinates on which is nontrivial. If , character orthogonality makes the inner sum vanish unless those coordinates contain all nonzero coordinates of . For , the number of ordered choices is
and the character sum contributes
There are ordered codeword pairs at distance . Summing over and dividing by proves (27).
Proof of Proposition 3.5. Perfect tiling is the convolution identity
At every nontrivial character , Fourier transformation and Lemma 3.1 give
If , every Fourier coefficient of weight therefore vanishes. The definition of proves the claim.
Proof of the first three identities in Lemma 3.6. Since and , equations (26) and (27) with give
This proves (28) and (29). The case j = 2 gives
Using and expanding yields
which is (30).
Proof of Proposition 5.4. Write
where . Expanding the squares in the definition of gives
For fixed x, y, u, the threshold identity
shows that . The constant terms cancel in the preceding expansion, proving (58). This is Barg's invariance identity in the present normalization [2, Theorem 2.1].
For complete monotonicity, let be independent with
and put . Coordinatewise counting gives
where
For , the base of the power lies in , and hence
The integral is positive whenever . Since , all positive-order alternating differences of are strictly positive; order zero follows from the monotonicity of .
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Proof of Lemma 5.6. Suppose first that . Since divides , write . The identity
and the Ramanujan–Nagell theorem [18] leave . The two Lloyd roots are
Thus is excluded by root integrality, whereas gives and .
Now suppose that . Here . Writing gives
Ljunggren's theorem on [16, Satz 1], together with , gives and . Hence , and direct factorization gives
APPENDIX B. THE TERNARY LOCAL-SLOPE CERTIFICATE
This appendix reproduces the exact ternary coefficient certificate from [25, Appendix B]. We include the complete argument because the case is a load-bearing input to (25) and Proposition 4.3. For , define
Lemma B.1 (Coefficient formula for the ternary slope). For every ,
Proof. Set
The coefficient-norm identity (23), specialized to q = 3, gives
Since
on the unit circle, their difference divided by 3 is
where denotes constant-term extraction. Now
Using
the constant term is the negative of the difference between the coefficients at degrees and in
The polynomial is anti-reciprocal of degree , so these two coefficients are and , respectively. This proves (92).
To prove positivity, we first convert into a finite sum. The Parseval representation used in the proof of Proposition 3.3, specialized to , , and , gives, with ,
Together with (92), and using the two-to-one change of variables , this becomes
After , expand . Write for the beta function and , with . The termwise integral is
Using
we obtain
Define
For , all three quantities are positive. For , this is seen by writing :
Lemma B.2 (Telescoping recurrence). For every ,
Proof. Define
and set both quantities to zero outside . Thus (93) says
Let
and put
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
Define
Finally, put
The following rational identity is the required telescoping certificate. Exact simplification gives, for and ,
(95)
For a direct check, divide by , clear denominators, and use
After substitution, the difference between the two sides of (95) is the zero polynomial in . At the boundaries, and . Summing over proves
Multiplication by 16 and the definition of give (94).
Lemma B.3 (Positivity of the ternary slope coefficient). For every , the integer satisfies .
Proof. Direct coefficient extraction gives
and . Since for , (94), applied successively for , gives
Together with the displayed initial values, this proves for every .
APPENDIX C. FORMAL TWO-ERROR QUADRATURE AND COMPARISON
The two-node quadrature and the formal Delsarte comparison proved below are, respectively, Lemma A.1 and Lemma 5.3 of [25]. We reproduce their argument in the notation of the present paper because the comparison is a load-bearing input to the new quantitative estimate. The perturbative subtraction and coefficientwise regrouping in Section 5 are new.
Proof of Lemma 5.5. A direct expansion of the Lloyd polynomial around the binomial mean gives
Thus , whereas and . The integral roots therefore satisfy . Their sum and separation are
In particular, . Combining the root sum with (96) gives
The definitions in (50) now give .
We next establish the quadrature identity
The two sides agree on 1 and x by the definitions of . They agree on because
and the binomial average of is one. Hence they agree on every quadratic. Every polynomial of degree at most four can be written as
The second term vanishes at 0, r, s. Its binomial average also vanishes: using , this is the orthogonality of against polynomials of degree at most one. This proves (98). Applying it to for gives and . Finally, and the transform normalization give , proving (60).
It remains to prove the comparison. Let A be the distance distribution of an N-word code, and define its MacWilliams–Delsarte transform by
Then , every is nonnegative, and . For a completely monotone function , put . The Krawtchouk transform preserves complete monotonicity [10, Lemma 10]. Let be the cubic polynomial interpolating at
These nodes form a pair covering. The interpolation theorem of [10, Lemma 19], applied in the reverse node order, yields for and a Newton expansion with nonnegative coefficients in
Each nonconstant function in this list is positive definite. The first two cases follow from [10, Lemmas 12–14], and the cubic case follows from
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
because . Consequently,
Using , , and , we obtain
For , the only nonzero coordinates among are and , where , and (60) gives equality with . Adding the common coordinate at zero yields . Since
we conclude that , as required.
APPENDIX D. EVALUATION OF THE TWO-ERROR COEFFICIENT
We first prove the arithmetic implication used in Theorem 5.1. Let be the two integral Lloyd roots. The root identities in (97) imply . If is even, the first two possible positive values of are and ; the second expression in (97) is then and , respectively. The former is never an integral square. The latter is not an integral square unless ; in that case and have opposite parity, so the roots are not integral. The next possible value is , which already gives . If is odd, the first possible value is , and again is not an integral square. The next possible value is , which again gives . Thus the stated hypotheses force
For the coefficient evaluation below, assume only and . We now prove Proposition 5.3. Write and put . Recall the quantities and defined for in Section 5.1, and extend the same definitions to :
The recurrence
and Pascal's identity give the standard right-Newton formula [10, Lemma 4]
Taking recovers the right-Newton expansion (67) used in Section 5.1. Thus is completely monotone if and only if all its right-diagonal differences are nonnegative. Since vanishes from weight five onward, for . The corresponding are positive for , while .
For , define
The increment calculation in Proposition 5.4 gives
Expanding the integral and using the beta integral gives, for ,
Taking in (101) and writing gives
Using from (71), (102) proves (68), equivalently . The fixed-q asymptotics in (56) follow from
and the leading term of (52). This completes the proof of Proposition 5.3 and supplies the formulas used in Theorem 5.1.
APPENDIX E. GOLAY BENCHMARKS AND QUANTITATIVE FINITE CERTIFICATES
E.1. Reproduced benchmark evaluations. The exact benchmark calculations in this subsection appeared in the Golay appendices of [25]. We reproduce them here because the attainment assertions in Propositions 5.9 and 6.1 use their exact normalizations.
For the ternary parameters, let P be perfect. Proposition 3.5 restricts its nonconstant dual spectrum to the zeros 6, 9 of . Since its minimum distance is at least five, . The mass and first-moment identities therefore give
so and . Direct evaluation gives
and consequently
For the binary parameters, let P be perfect. Its minimum distance is at least seven, so . Proposition 3.5 restricts its nonconstant dual spectrum to . Equations (83)–(85) give
Moreover,
and the finite certificate has at these three weights. Thus
VALERY (BINYAMIN) GRISHIN AND ARYEH LEV ZABOKRITSKIY (YOHANANOV)
E.2. Quantitative ratio tables. All entries below follow by direct exact evaluation of , the displayed certificate polynomials, and the Lloyd factors. Thus the tables are part of the proof; the archived verifier provides an independent reproduction of the same arithmetic. The original certificate polynomials appeared in Appendices D and E of [25]; the perturbed ratios and their minimizing values are used for the quantitative bounds proved in the present paper.
For the ternary Golay parameters, using the polynomial from (75), put
The exact values are
| w | w | ||
|---|---|---|---|
| 1 | 72 612 403/3600 | 2 | 317 159/294 |
| 3 | 17 236/81 | 4 | 3656/45 |
| 5 | 46 | 7 | 274/9 |
| 8 | 92/3 | 10 | 274/9 |
| 11 | 638/15 |
At the Lloyd roots,
and . Hence the minimum nonzero ratio is , attained at , proving (76).
For the binary Golay parameters, the reflection symmetry proved in the body reduces the check to . With as in (81), put
For the nonroot weights in the reduced range,
| w | w | ||
|---|---|---|---|
| 1 | 26 299 411 704/29 645 | 2 | 190 752 843/4900 |
| 3 | 1 126 552/195 | 4 | 25 509/16 |
| 5 | 558 648/847 | 6 | 7023/20 |
| 7 | 4952/25 | 9 | 1608/7 |
| 10 | 731/4 | 11 | 4136/25 |
At , both and vanish; reflection gives the same statement at . The minimum nonzero ratio is at , and by reflection also at . This proves (89).
ACKNOWLEDGMENT
OpenAI ChatGPT and OpenAI Codex were used as assistive tools to explore proof strategies, check algebraic identities and small finite cases, identify relevant literature, and improve English and LaTeX presentation. The authors directed the research, critically evaluated the outputs, verified the final theorem statements, proofs, calculations, and citations, and take full responsibility for the content of the manuscript. The exact-arithmetic verifier archived on Zenodo, version 1.0.3, independently reproduces the finite Golay tables, factorial-moment coefficients, two-error coefficient identities, and bounded parameter search listed in its verification scope [24].
REFERENCES
[1] Alexei Ashikhmin and Alexander Barg. Binomial moments of the distance distribution: Bounds and applications. IEEE Transactions on Information Theory, 45(2):438–452, 1999.
[2] Alexander Barg. Stolarsky's invariance principle for finite metric spaces. Mathematika, 67(1):158–186, 2021.
[3] Alexander Barg and Maxim Skriganov. Bounds for discrepancies in the Hamming space. Journal of Complexity, 65:101552, 2021.
[4] Michael A. Bennett. Perfect 2-codes over arbitrary alphabets, 2026.
[5] Marc R. Best. Perfect codes hardly exist. IEEE Transactions on Information Theory, 29(3):349–351, 1983.
[6] Károly J. Böröczky and Alexey Glazyrin. Stability of optimal spherical codes. Monatshefte für Mathematik, 205:455–475, 2024.
[7] Avital Boruchovsky, Tuvi Etzion, and Ron M. Roth. On nearly perfect covering codes. IEEE Transactions on Information Theory, 71(4):2494–2504, 2025.
[8] Peter G. Boyvalenkov, Peter D. Dragnev, Douglas P. Hardin, Edward B. Saff, and Maya M. Stoyanova. Energy bounds for codes and designs in Hamming spaces. Designs, Codes and Cryptography, 82:411–433, 2017.
[9] Pedro-José Cazorla García. Perfect codes over non-prime power alphabets: An approach based on Diophantine equations. Mathematics, 12(11):1642, 2024.
[10] Henry Cohn and Yufei Zhao. Energy-minimizing error-correcting codes. IEEE Transactions on Information Theory, 60(12):7442–7450, 2014.
[11] Thomas Debris-Alazard, Léo Ducas, Nicolas Resch, and Jean-Pierre Tillich. Smoothing codes and lattices: Systematic study and new bounds. IEEE Transactions on Information Theory, 69(9):6006–6027, 2023.
[12] Philippe Delsarte. An algebraic approach to the association schemes of coding theory. Technical Report Philips Research Reports Supplements 10, Philips Research Laboratories, Eindhoven, 1973.
[13] Dean Doron, Tal Leonov, Jonathan Mosheiff, Henrique Navas, Nicolas Resch, and João Ribeiro. Discrepancy for random linear codes, 2026.
[14] Yiming Hong. On the nonexistence of unknown perfect 6- and 8-codes in Hamming schemes H(n,q) with q arbitrary. Osaka Journal of Mathematics, 21(3):687–700, 1984.
[15] Peter Keevash and Eoin Long. Stability for vertex isoperimetry in the cube. Journal of Combinatorial Theory, Series B, 145:113–144, 2020.
[16] Wilhelm Ljunggren. Noen setninger om ubestemte likninger avformen . Norsk Matematisk Tidsskrift, 25:17–20, 1943.
[17] Florence Jessie MacWilliams and Neil James Alexander Sloane. The Theory of Error-Correcting Codes. North-Holland, Amsterdam, 1977.
[18] Trygve Nagell. The Diophantine equation . Arkiv för Matematik, 4(2):185–187, 1961.
[19] Madhura Pathegama and Alexander Barg. Smoothing of binary codes, uniform distributions, and applications. Entropy, 25(11):1515, 2023.
[20] Henricus F. H. Reuvers. Some Non-existence Theorems for Perfect Codes over Arbitrary Alphabets. PhD thesis, Technische Hogeschool Eindhoven, 1977.
[21] Gabriel Sac Himelfarb and Moshe Schwartz. On nearly-perfect covering codes beyond radius one, 2026. Version 1, 12 August 2026.
[22] Audrey Terras. Fourier Analysis on Finite Groups and Applications, volume 43 of London Mathematical Society Student Texts. Cambridge University Press, 1999.
[23] Aimo Tietäväinen. On the nonexistence of perfect codes over finite fields. SIAM Journal on Applied Mathematics, 24(1):88–96, 1973.
[24] Aryeh Lev Zabokritskiy (Yohananov). Exact verification companion to “quantitative tiling stability from quadratic discrepancy in Hamming spaces”. Zenodo, version 1.0.3, 2026. Available at https://doi.org/10.5281/zenodo.22109975.
[25] Aryeh Lev Zabokritskiy (Yohananov). Perfect codes as exact minimizers of quadratic discrepancy in q-ary Hamming spaces, 2026. Version 1, 2 August 2026.
[26] V. A. Zinov'ev and V. K. Leont'ev. The nonexistence of perfect codes over Galois fields. Problems of Control and Information Theory, 2(2):123–132, 1973.
DEPARTMENT OF COMPUTER SCIENCE, TEL-HAI UNIVERSITY OF KIRYAT SHMONA AND THE GALILEE, KIRYAT SHMONA, ISRAEL
Email address: valerig.tech@gmail.com
DEPARTMENT OF COMPUTER SCIENCE, MIGAL – GALILEE RESEARCH INSTITUTE, KIRYAT SHMONA, ISRAEL
DEPARTMENT OF COMPUTER SCIENCE, TEL-HAI UNIVERSITY OF KIRYAT SHMONA AND THE GALILEE, KIRYAT SHMONA, ISRAEL
Email address: yuhanalev@telhai.ac.il