English

On the Number of Quantifiers Needed to Define Boolean Functions

Logic in Computer Science 2025-08-01 v3 Computational Complexity

Abstract

The number of quantifiers needed to express first-order (FO) properties is captured by two-player combinatorial games called multi-structural games. We analyze these games on binary strings with an ordering relation, using a technique we call parallel play, which significantly reduces the number of quantifiers needed in many cases. Ordered structures such as strings have historically been notoriously difficult to analyze in the context of these and similar games. Nevertheless, in this paper, we provide essentially tight upper bounds on the number of quantifiers needed to characterize different-sized subsets of strings. The results immediately give bounds on the number of quantifiers necessary to define several different classes of Boolean functions. One of our results is analogous to Lupanov's upper bounds on circuit size and formula size in propositional logic: we show that every Boolean function on nn-bit inputs can be defined by a FO sentence having (1+ε)nlog(n)+O(1)(1 + \varepsilon)n\log(n) + O(1) quantifiers, and that this is essentially tight. We reduce this number to (1+ε)log(n)+O(1)(1 + \varepsilon)\log(n) + O(1) when the Boolean function in question is sparse.

Keywords

Cite

@article{arxiv.2407.00688,
  title  = {On the Number of Quantifiers Needed to Define Boolean Functions},
  author = {Marco Carmosino and Ronald Fagin and Neil Immerman and Phokion Kolaitis and Jonathan Lenchner and Rik Sengupta},
  journal= {arXiv preprint arXiv:2407.00688},
  year   = {2025}
}

Comments

Full version of version that is to appear in Proceedings of 49th International Symposium on Mathematical Foundations of Computer Science, 2024. arXiv admin note: substantial text overlap with arXiv:2402.10293

R2 v1 2026-06-28T17:24:01.135Z