Wiki
Wiki

Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.

Updated


Source. Published p. 263, Theorem 1.10, and p. 282, Section 9 (PDF).

Statement. Fix q≥2q\ge2 and 0<δ<1/20<\delta<1/2. There is c>0c>0 such that if a code C⊆{1,…,q}n\mathcal C\subseteq\{1,\ldots,q\}^n has no two words at distance dd, where δn≤d≤(1−δ)n\delta n\le d\le(1-\delta)n, and dd is even when q=2q=2, then ∣C∣≤qne−cn|\mathcal C|\le q^ne^{-cn}.

Proof. Suppose instead that ∣C∣≥qne−ϵn|\mathcal C|\ge q^ne^{-\epsilon n}, with ϵ>0\epsilon>0 sufficiently small. A type is the vector of letter counts (k1,…,kq)(k_1,\ldots,k_q). There are (n+q−1q−1)≤(n+1)q\binom{n+q-1}{q-1}\le(n+1)^q possible types, so some type contains at least ∣C∣/(n+1)q|\mathcal C|/(n+1)^q words. By the entropy estimate, for any fixed small τ>0\tau>0 these counts satisfy ∣ki−n/q∣≤τn|k_i-n/q|\le\tau n when ϵ\epsilon is small enough and nn is large. Its code family has relative density at least e−ϵn/(n+1)qe^{-\epsilon n}/(n+1)^q in the full type class.

We construct an integer matrix with row and column sums kik_i, all entries at least ηn\eta n for a fixed η=η(q,δ)>0\eta=\eta(q,\delta)>0, and trace n−dn-d. For q=2q=2, take off-diagonal entries d/2d/2 and diagonal entries ki−d/2k_i-d/2. These are integers precisely under the even-distance condition, and are positive with a proportional buffer when τ<δ/4\tau<\delta/4 and nn is large.

For q≥3q\ge3 and even dd, put a=⌊d/(q(q−1))⌋a=\lfloor d/(q(q-1))\rfloor in every off-diagonal entry. The remaining off-diagonal total is an even integer smaller than q(q−1)q(q-1). Add one to both entries of as many unordered pairs of indices as necessary. For odd dd, perform the same construction with d−3d-3, then add one to each entry of the directed cycle (1,2),(2,3),(3,1)(1,2),(2,3),(3,1). In either case the off-diagonal row sums equal the corresponding column sums, their total is dd, and each row sum is d/q+Oq(1)d/q+O_q(1). Set the iith diagonal entry to kik_i minus that row sum. Thus the marginals are correct and the trace is n−dn-d. Off-diagonal entries are d/(q(q−1))+Oq(1)d/(q(q-1))+O_q(1) and diagonal entries are (n−d)/q+(ki−n/q)+Oq(1)(n-d)/q+(k_i-n/q)+O_q(1). Taking τ\tau sufficiently small in terms of q,δq,\delta proves the claimed positive uniform buffer.

Identify a word with the ordered partition into its letter classes. Theorem 1.15, applied to two copies of the dense type family and this matrix, supplies a pair with that pattern once ϵ\epsilon is small enough; polynomial type losses are absorbed for large nn. Its Hamming distance is n−tr⁡M=d>0n-\operatorname{tr}M=d>0, so the words are distinct. This contradiction proves the exponential gap for large nn. In each remaining finite dimension the full code realizes every distance from one to nn. A code avoiding an admissible dd is therefore proper, and shrinking cc includes those dimensions. □\square

Source precision. Section 9 sketches the proof after assuming a positive matrix with the required trace and marginals. The explicit integer construction above supplies that assumption, including the binary parity restriction. Its printed type count (nq−1)\binom n{q-1} is replaced by the exact weak-composition count (n+q−1q−1)\binom{n+q-1}{q-1}; the polynomial loss is harmless but must be present. The binary even-weight code shows why odd dd cannot be included in the binary statement.

Dependencies. theorem_1_15, entropy_estimates.