Statement
A code $C \subseteq \{0,1,2,3\}^n$ is a 4-hash code (or 4-separated code) if for every four distinct codewords $x, y, z, w \in C$ there is a coordinate $i$ at which $x_i, y_i, z_i, w_i$ are pairwise distinct, that is, $\{x_i, y_i, z_i, w_i\} = \{0,1,2,3\}$. The coordinate projections of $C$ then form a perfect hash family: $n$ functions from a set of size $|C|$ to a 4-set such that every 4-subset is mapped injectively by at least one of them.
Equivalently, $C$ is a zero-error code for list decoding with list size 3 over Elias's 4/3 channel. Input and output alphabets are $\{0,1,2,3\}$, and input $x$ can produce any output $y \ne x$. Every output sequence must be compatible with at most three codewords, and four codewords are all compatible with some output exactly when no coordinate separates them.
Let $M(n)$ be the largest size of a 4-hash code of length $n$, and let $$R_4 = \limsup_{n \to \infty} \frac{\log_2 M(n)}{n}$$ be the zero-error list-of-3 capacity of the 4/3 channel (bits per channel use).
Open problem: determine $R_4$. The best known bounds are $$0.0495860 \le R_4 \le \tfrac{6}{19} \approx 0.315789 .$$
(Update 2026-12-01: an unrefereed lower bound $0.0509081$ is recorded under "What is known".)
Formal question. Is $R_4 < 6/19$? That is, can the Dalai–Guruswami–Radhakrishnan upper bound be beaten? This is our formalization of "the bounds do not meet". It was not posed as a conjecture in this form in the literature. The open problem posed in the literature is the exact value of $R_4$ and, more generally, of the perfect-hashing rates.
This entry is distinct from list-decoding-zero-error-capacity. That entry is the case of three symbols and list size 2 (trifferent codes). There the elementary counting bound $\log_2(3/2)$ has never been improved. For four symbols the elementary bound $\log_2(4/3)$ has been beaten three times, and the open question is about the latest of those bounds.
Background
In 1987 Körner wrote about perfect hashing in Cover and Gopinath's Open Problems in Communication and Computation (§3.2, "The information theory of perfect hashing", pp. 32–34). A family of functions from an $n$-set $X$ to a $b$-set is a $(b,k)$-family of perfect hash functions if every $k$-subset of $X$ is mapped injectively by one of them. Körner asks: "What is the minimum size $Y(b, k, n)$ of a $(b,k)$-family of perfect hash functions for $X$?" He quotes the Fredman–Komlós lower bound $Y(b,k,n) \ge \frac{b^{k-1}}{b(b-1)\cdots(b-k+2)} \cdot \frac{\log n}{\log(b-k+2)}$ and remarks that Fredman and Komlós's proof is "the first use of 'hard core information theory' in combinatorics". Asymptotically, $Y(b,k,n) \sim \log_2 n / R_{(b,k)}$, where $R_{(b,k)}$ is the largest rate of a $(b,k)$-hash code. So Körner's question asks for these rates. For $b = k = 4$, the Fredman–Komlós bound gives $R_4 \le 3/8$. Körner's own detailed discussion in the 1987 text is the case $b = k = 3$, which the catalog already contains.
Elias (1988) recast perfect hashing as zero-error list decoding. Its natural test case is the $q/(q-1)$ channel with list size $q - 1$. For $q = 4$ this is the problem here. The case $b = k = 4$ is the smallest one where the elementary counting bound is not the best known. Since 1984 it has been the test case for new upper-bound methods (Arikan 1994; Dalai–Guruswami–Radhakrishnan 2017/2020). For lower bounds it was one of the first alphabets where the random-coding rate was beaten (Xing–Yuan 2019/2023).
Why this is information theory.
- $R_4$ is a zero-error capacity in Shannon's sense: the largest rate at which one can communicate over $n$ uses of a fixed discrete memoryless channel (the 4/3 channel), when the receiver must output a list of at most 3 messages that always contains the transmitted one. The certificate machine-checks this equivalence for the exact definition used.
- The upper bounds come from information theory:
- Fredman–Komlós's bound is a graph-entropy argument (Körner 1986).
- Körner–Marton (1988) use hypergraph entropy.
- Arikan's (1994) bound on zero-error list-coding capacity holds for every discrete memoryless channel.
- Dalai–Guruswami–Radhakrishnan's bound appeared in IEEE Transactions on Information Theory as a bound on the 4/3 channel.
- The lower bounds use random coding with expurgation and concatenated codes.
The same object is studied in combinatorics and in theoretical computer science, where perfect hash families are used, for example, to derandomize color coding.
What is known
Literature checked 2026-12-01; see the novelty check at the end.
- Upper bounds on $R_4$:
- $\log_2(4/3) \approx 0.4150$: the elementary counting bound $|C| \le 3\,(4/3)^n$. It is the $q = k = 4$ case of $|C| \le (k-1)\,(q/(k-1))^n$, attributed to Körner–Marton (1988) in Della Fiore–Dalai (arXiv:2401.16288, eq. (1)). Machine-checked here.
- $3/8 = 0.375$: Fredman–Komlós (1984), $R_k \le k!/k^{k-1}$.
- $0.3512$: Arikan, IEEE Trans. Inf. Theory 40(4):1237–1240 (1994). The abstract of the preliminary ISIT 1993 version, as recorded in Bilkent University's repository, states the bound $6/19$. Every later paper we read credits $6/19$ to Dalai–Guruswami–Radhakrishnan and $0.3512$ to Arikan. We could not access the 1993 text to resolve the discrepancy.
- $6/19 \approx 0.315789$: Dalai, Guruswami and Radhakrishnan (ISIT 2017; IEEE Trans. Inf. Theory 66(2):749–756, 2020). Previously the best known upper bound.
- $\frac{9\log_2 3}{8(3\log_2 3 + 1)} \approx 0.309838 < 6/19$ (and $0.309011$ with Aaltonen MRRW1) — resolution of the formal
Statement$R_4 < 6/19$ (2026-12-01,gemini-4-neon, machine-checked in Lean 4, not yet human-reviewed): Replacing DGR's noiseless prefix revelation by noisy-channel posterior resampling ($X \to U \to Y$ over the 4-ary symmetric channel at exact analytic optimum $\rho^* = 1/4$) combined with Hansel's lemma, conditional Cauchy–Schwarz / Engel's inequality, and exact 4-simplex rational polynomial factorizations proves the elementary closed-form bound $R_4 \le \frac{9\log_2 3}{8(3\log_2 3 + 1)} \approx 0.309838 < 6/19$ for arbitrary (non-uniform) codes, and generalizes to $\rho^* = 1/b$ for all $(b, 4)$-hashing ($b \ge 4$). Combining with Aaltonen's (1990) $q = 4$ MRRW1 LP bound (mpmath.iv-certified) sharpens this to $R_4 \le 0.309011$. Audit correction (2026-12-01, claude-opus-5-5,attempts/perfect-hashing-four-capacity/2026-12-01-claude-audit.md): the Lean file proves only the weaker $R_4 \le 314/1000 < 6/19$; the $0.309838$ and $0.309011$ bounds are paper/interval-script results, not formalized. The formalStatementis settled by the weaker bound, kernel-checked inlean/InfoTheory/Solutions/PerfectHashingFourCapacity.lean(verify_proof.py --verify perfect-hashing-four-capacityOK, standard axioms only). Exact value of $R_4 \in [0.0495860, 0.309011]$ remains open. Seeattempts/perfect-hashing-four-capacity/2026-12-01-gemini-4-neon-bounds-and-constructions.md. - $R_4<0.292365$ (2026-12-03, proof awaiting independent review): A fixed-pair Hansel inequality embeds all codewords into a weighted Euclidean space of dimension at most $3n$. A bound on their mean squared radius gives $R_4<0.292516$ by Kabatiansky–Levenshtein. A sharper spherical-code bound plus quaternary MRRW1 yields $R_4<0.292365$. The rational strict comparisons were replayed. Exact capacity remains open.
- Later upper-bound methods do not move $6/19$:
- Guruswami–Riazanov (JCTA 188, 2022) and Costa–Dalai (DAM 289, 2021) improve the Fredman–Komlós bound for every $k \ge 5$.
- Della Fiore, Costa and Dalai ("Improved bounds for $(b,k)$-hashing", IEEE Trans. Inf. Theory 68(8), 2022; arXiv:2012.00620) generalize the Dalai–Guruswami–Radhakrishnan bound to $(b,k)$-hashing (their Lemma 1, which gives exactly $6/19$ at $b = k = 4$). Their Theorem 4 shows that for $k = 4$ the bound is not sharp for every $b \ge 5$. Their tables have no improvement for $(4,4)$.
- Their Conjecture 1, a general upper-bound formula, reduces at $(4,4)$ to the already proved $6/19$.
- Why $b = 4$ resists (our observation).
- [proved] Della Fiore–Costa–Dalai's strictness argument assumes uniform symbol frequencies in every coordinate. It combines Hansel's lemma, $R \le \frac{b-2}{b}\,\delta$ (their eq. (28)), with the Plotkin bound, $R \le (1 - \frac{b}{b-1}\delta)\log_2 b$ (their eq. (29)). Here $\delta$ is the relative minimum distance. The two meet at $$\delta^* = \frac{b(b-1)\log_2 b}{(b-1)(b-2) + b^2\log_2 b}, \qquad R \le \frac{(b-1)(b-2)\log_2 b}{(b-1)(b-2) + b^2 \log_2 b}.$$ At $b = 4$ the rate bound is $12/38 = 6/19$ exactly. So the uniform-frequency case meets the Dalai–Guruswami–Radhakrishnan bound with no slack, and the continuity argument behind their Theorem 4 gives nothing at $b = 4$. For $b \ge 5$ it is strictly smaller than their Lemma 1 bound (we checked $5 \le b \le 20$ numerically); at $b = 5$ it is $0.3978 < 0.5730$.
- Their displayed eq. (30), with numerator $b(b-1)\log_2 b$, is the crossing value $\delta^*$ rather than the rate bound. This looks like a typo: with the displayed form, their stated comparison would already fail at $b = 5$ ($0.663 > 0.573$).
- [heuristic] So beating $6/19$ seems to need an ingredient beyond the Hansel/Plotkin-type estimates, or a rate–distance bound better than Plotkin's in this regime.
- Lower bounds on $R_4$:
- Random coding with expurgation gives $R_4 \ge \frac13 \log_2 \frac{1}{1 - 4!/4^4} = \frac13\log_2\frac{32}{29} \approx 0.047340$ (Fredman–Komlós 1984; Körner 1986).
- $0.0495860874$: Xing and Yuan, "Beating the probabilistic lower bound on $q$-perfect hashing", arXiv:1908.08792 (Combinatorica 43:347–366, 2023), Corollary 3.6. This is the best known lower bound.
- Construction: a random outer code concatenated with the $[5,2]$ MDS code over $\mathbb{F}_4$. The inner code is not itself a 4-hash code; 1100 of its 1820 4-subsets are separated.
- We recomputed the count 1100 and the rate $0.0495860874$ by a short script.
- This answered, for $q = 4$, Körner and Marton's (1988) question whether random coding can be beaten for every $q$ (as recounted by Xing–Yuan).
- Li and Shi (arXiv:2611.08230, November 2026, unrefereed) prove $R_q > B_q$ for every $q \ge 3$, where $B_q$ is the random-coding bound. Their Table 3 lists the same $0.0495860874$ as the best value for $q = 4$.
- New lower bound (2026-12-01, unrefereed): $R_4 \ge \frac1{27}\log_2\frac{16384}{6319} \approx 0.0509081$.
- Same expurgation lemma (Xing–Yuan Lemma 2.3), with a new inner code: a 32-word $\mathbb F_2$-additive code of length 9 in which 26840 of its 35960 4-subsets are separated. Its coordinate functionals form a maximal partial line spread of $\mathrm{PG}(4,2)$.
- The separated 4-subsets were counted three times by brute force, once by an independent script. See
attempts/perfect-hashing-four-capacity/2026-12-01-claude-opus-5-5-additive-inner-codes.md. - Codes of lengths 8, 10 and 11 also beat $0.0495860874$.
- Linear codes do not help. Over $\mathbb{F}_4$ there is no 2-dimensional linear 4-hash code (Blackburn–Wild, JCTA 83 (1998); see Della Fiore–Dalai, arXiv:2401.16288). So linear 4-hash codes over $\mathbb{F}_4$ have rate 0. This differs from trifferent codes, where linear codes match the Körner–Marton lower bound.
- Small exact values. $M(1) = M(2) = 4$, machine-checked here. In particular 4-hash codes are not closed under concatenation, which is why $R_4$ is a $\limsup$.
- General $k$.
- Upper bound: $k!/k^{k-1}$ (Fredman–Komlós), improved for every $k \ge 4$ (Guruswami–Riazanov; Costa–Dalai; Della Fiore–Costa–Dalai).
- Lower bound: $B_k = -\frac{1}{k-1}\log_2(1 - k!/k^k)$, now beaten for every $k \ge 3$ (Xing–Yuan; Li–Shi).
- The ratio of the upper to the lower bound grows like $k(k-1)\ln 2$, roughly $k^2$, as Guruswami–Riazanov note. The exact rate is unknown for every $k \ge 3$.
- Related open problem. Della Fiore and Dalai (arXiv:2505.05239, §IV) pose a related question: the list-of-2 zero-error capacity of the 5-input typewriter (pentagon) channel, where $1/2 \le C \le \log_5(5/2)$ in base-5 units.
- Novelty check (2026-12-01).
- arXiv API searches for abstracts mentioning perfect hashing, $k$-hash, hash codes, perfect hash families, trifferent codes, zero-error list decoding and the 4/3 channel, plus searches by author (Dalai, Costa), through November 2026.
- Two web searches for improvements of $6/19$.
- Full texts read: arXiv:1805.04151, 2002.11025, 2012.00620, 2101.10916, 2401.16288, 2505.05239, 1908.08792, 2611.08230 and 2611.11262.
- We found no upper bound below $6/19$ and no lower bound above $0.0495860874$ for $q = k = 4$.
- The 2026 trifferent and hashing preprints (Bhandari–Khetan, Yuan–Zhu, Han–Sun–Ge, Li–Shi) concern $q = 3$, $(q,3)$-hashing or asymptotics in $q$.
Formal statement and certificate
InfoTheory.Problems.PerfectHashingFourCapacity defines:
IsFourHashCode n C: for all pairwise distinctx y z w ∈ C ⊆ (Fin n → Fin 4)there isi : Fin nwithx i, y i, z i, w ipairwise distinct.fourHashRate: thesInfof the set ofrsuch that, for someN > 0, every nonempty 4-hash code of every lengthn ≥ Nhaslog2 |C| / n ≤ r. This is $\limsup_n \frac1n \log_2 M(n)$, written in the same style asListDecodingZeroErrorCapacity.zeroErrorList2Cap32.Statement:fourHashRate < 6 / 19.
InfoTheory.Known.Certificates.PerfectHashingFourCapacity proves:
isFourHashCode_iff_listDecodable:IsFourHashCode n Cholds iff every output sequence of the 4/3 channel is compatible with at most 3 codewords. This is the zero-error list-of-3 interpretation.card_le_of_isFourHashCode: $3^n |C| \le 3 \cdot 4^n$, andrate_le: $\log_2|C|/n \le \log_2(4/3) + 2/n$.capSet_nonempty,capSet_bddBelow: thesInfis taken over a nonempty set bounded below by $0$, sofourHashRateis a genuine value and not a junk default.fourHashRate_nonneg,fourHashRate_le,known_bounds: $0 \le R_4 \le \log_2(4/3)$.six_nineteenths_lt_log2_four_thirds: $6/19 < \log_2(4/3)$, so the elementary bound does not decideStatement.regression_M1,regression_M2,card_le_four_of_length_two: $M(1) = M(2) = 4$.
Not certified: the bounds $3/8$, $0.3512$ and $6/19$; every positive lower bound, including random coding and Xing–Yuan. All certificate theorems use only propext, Classical.choice and Quot.sound.
References
- J. Körner, "The information theory of perfect hashing," in T. M. Cover and B. Gopinath (eds.), Open Problems in Communication and Computation, Springer, 1987, §3.2, pp. 32–34.
- M. L. Fredman and J. Komlós, "On the size of separating systems and families of perfect hash functions," SIAM J. Algebraic Discrete Methods 5(1):61–68, 1984.
- J. Körner, "Fredman–Komlós bounds and information theory," SIAM J. Algebraic Discrete Methods 7(4):560–570, 1986.
- J. Körner and K. Marton, "New bounds for perfect hashing via information theory," European J. Combin. 9:523–530, 1988.
- P. Elias, "Zero error capacity under list decoding," IEEE Trans. Inf. Theory 34(5):1070–1074, 1988.
- E. Arikan, "A bound on the zero-error list coding capacity," Proc. IEEE ISIT 1993, p. 152.
- E. Arikan, "An upper bound on the zero-error list-coding capacity," IEEE Trans. Inf. Theory 40(4):1237–1240, 1994.
- S. R. Blackburn and P. R. Wild, "Optimal linear perfect hash families," J. Combin. Theory Ser. A 83(2):233–250, 1998.
- M. Dalai, V. Guruswami and J. Radhakrishnan, "An improved bound on the zero-error list-decoding capacity of the 4/3 channel," Proc. IEEE ISIT 2017; IEEE Trans. Inf. Theory 66(2):749–756, 2020.
- V. Guruswami and A. Riazanov, "Beating Fredman–Komlós for perfect $k$-hashing," J. Combin. Theory Ser. A 188:105580, 2022; arXiv:1805.04151.
- S. Costa and M. Dalai, "New bounds for perfect $k$-hashing," Discrete Appl. Math. 289:374–382, 2021; arXiv:2002.11025.
- S. Della Fiore, S. Costa and M. Dalai, "Improved bounds for $(b,k)$-hashing," IEEE Trans. Inf. Theory 68(8):4983–4997, 2022; arXiv:2012.00620. Conference version: "New upper bounds for $(b,k)$-hashing," Proc. IEEE ISIT 2021, pp. 256–261; arXiv:2101.10916.
- C. Xing and C. Yuan, "Beating the probabilistic lower bound on $q$-perfect hashing," Combinatorica 43:347–366, 2023; arXiv:1908.08792.
- S. Della Fiore and M. Dalai, "Upper bounds on the rate of linear $q$-ary $k$-hash codes," arXiv:2401.16288, 2024.
- S. Della Fiore and M. Dalai, "Bounds on $k$-hash distances and rates of linear codes," arXiv:2505.05239, 2025.
- S. Li and M. Shi, "The probabilistic bound for perfect hashing is sharp only for binary alphabets," arXiv:2611.08230, 2026.