NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enumerating Complexity Revisited

Alexander Shekhovtsov, Georgii Zakharov · DOI

TL;DR

This paper tightens the theoretical bound on the complexity of enumerating sets of integers. By refining a classic "shadowing" technique, the authors prove that any efficiency gains found for describing finite sets also apply to infinite sets, effectively reducing the best-known upper bound for deterministic enumeration from a factor of 3 down to 2 relative to probabilistic methods.

What Problem Does This Paper Address?

In the world of Kolmogorov complexity, we often ask: "What is the shortest program that can produce a specific output?" This paper looks at enumerating complexity—the length of the shortest program that lists all elements of a set $S$ (which could be infinite) without necessarily halting.

There are two ways to measure this:

  1. Deterministic Complexity ($I(S)$): The length of the shortest input string that makes a universal machine list the elements of $S$.
  2. Probabilistic Complexity ($H(S)$): A measure based on the probability that a program using random bits will successfully enumerate $S$. Specifically, it's the negative log-probability.

For decades, a gap existed between these two. In 1977, Robert Solovay proved that $I(S) \leq 3 \cdot H(S) + \text{logarithmic terms}$. In 2007, Nikolay Vereshchagin improved this constant from 3 to 2, but only for finite sets. The challenge addressed here is whether that "2" holds for infinite sets as well, bridging the gap between finite and infinite enumeration.

Methods

The authors utilize a colorful mathematical metaphor involving "Cats and Ants" to model machine behavior on a directed graph of sets:

  • Cats: Represent deterministic programs. They move from one set to a superset as the program outputs new numbers.
  • Ants: Represent probabilistic programs. Because these programs use random bits, they "split" into smaller ants (representing different computation paths) as they request more bits.
  • Shadow Positions: This is the core trick. To prove the bound, the authors don't make the "cats" (deterministic) follow the "ants" (probabilistic) directly. Instead, they define "shadow positions" that follow the ants with a specific delay.

The primary technical contribution is a refinement of Solovay’s original method. While Solovay’s approach required significant auxiliary information to manage these shadows, the authors found a way to reduce this overhead to a logarithmic factor, allowing the tighter constant of 2 to carry over to infinite sets.

Datasets

Not discussed in the paper. As a work of pure theoretical computer science and computability theory, the paper relies on mathematical proofs and formal logic rather than empirical datasets or benchmarks.

Key Insights and Ideas

  • The Finite-to-Infinite Bridge: The authors prove a "Main Lemma" (Lemma 2.1) which demonstrates that if a shift occurs for every finite subset of an infinite set, a deterministic machine can eventually "catch" the infinite set.
  • Efficiency in Information: The "aha moment" lies in how they handle the parameter $\epsilon$ (the probability threshold). By using a randomized machine $M'$ to model shadow positions and carefully encoding the index of the "cat" that reaches a target set, they reduce the bits required for the proof from $H(S)$ to $O(\log H(S))$.
  • Randomization vs. Determinism: The result reinforces a fundamental theme in complexity theory: for the task of enumeration, randomized computation is not significantly more powerful than deterministic computation (at most a factor of 2).

Key Results

  • Theorem 1.3: The authors prove that if a bound $I(S) \leq \alpha \cdot H(S) + O(\log H(S))$ holds for all finite sets, it must also hold for all infinite sets.
  • Theorem 1.4: By applying Theorem 1.3 to Vereshchagin’s earlier work, they establish the new state-of-the-art bound for any set $S \subset \mathbb{N}$: $$I(S) \leq 2 \cdot H(S) + O(\log H(S)) + c$$
  • This successfully replaces Solovay’s constant of 3 with 2 for the general case of infinite sets.

Limitations and Future Work

  • The Lower Bound: While the upper bound is now 2, it is not yet proven that 2 is the best possible constant. The authors mention "Martin's game," a topological game used to study these complexities, where the quadratic bound is known to be tight, but it remains unclear if this translates directly to a lower bound for deterministic complexity.
  • Logarithmic Factors: The bound still includes an $O(\log H(S))$ term. Future research could investigate whether this can be reduced to a constant or if it is an inherent requirement of the "shadowing" technique.
  • Novel Techniques: The authors suggest that to improve the bound beyond 2, entirely new techniques beyond the "cats and ants" metaphor may be required.

Summary updated

Abstract

Consider a subset of positive integers $S$. In this paper, we reduce the upper bound on the length of a minimum program that enumerates $S$ in terms of the probability of $S$ being enumerated by a random program. So far, the best-known upper bound was given by Solovay. Solovay proved that the minimum length of a program enumerating $S$ is bounded by $3$ times minus binary logarithm of the probability that a random program enumerates $S$. Later, Vereshchagin showed that the constant can be improved from $3$ to $2$ for finite sets. By improving the method proposed by Solovay, we demonstrate that any bound for finite sets implies the same bound for infinite sets, modulo logarithmic factors. Thus, the constant can be replaced by $2$ for every set $S$ due to the result of Vereshchagin.
BibTeX
@misc{shekhovtsov2023enumerating,
  author = {Alexander Shekhovtsov and Georgii Zakharov},
  title = {{Enumerating Complexity Revisited}},
  year = {2023},
  eprint = {2312.04187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.04187},
}

Loading related content...

Figure