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

Presburger arithmetic with threshold counting quantifiers is easy

Dmitry Chistikov, Christoph Haase, Alessio MansuttiarXiv 2021

Introduction

Presburger arithmetic (PA) is the first-order theory of integers equipped with addition and the inequality relation ($<, +$). As a fundamental logic in computer science, it serves as a cornerstone for formal verification, automated reasoning, and program analysis. Despite its utility, deciding the validity of a PA formula is computationally intensive, with the problem being 3ExpTime-complete. This paper investigates the extension of PA with threshold counting quantifiers, specifically addressing whether the ability to count solutions increases the inherent complexity of the logic.

Problem Formulation

A common requirement in formal methods is the ability to express "counting" properties, such as "there exist at least $c$ solutions for a variable $y$." While standard PA can express such properties by introducing $c$ distinct variables, this approach is only feasible when $c$ is small or encoded in unary. When the threshold $c$ is encoded in binary (e.g., $c = 2^{100}$), the formula size explodes exponentially. Previous research suggested that this "threshold counting" extension might elevate the complexity to 4ExpTime. The authors of this paper aim to resolve this gap, determining if counting is fundamentally more difficult than existential quantification in the context of Presburger arithmetic.

Quantifier Elimination Framework

The authors propose a novel Quantifier Elimination (QE) procedure to handle threshold counting quantifiers ($\exists^{\ge c} y$). QE involves transforming a formula containing quantifiers into an equivalent quantifier-free representation. The proposed algorithm follows a multi-step process:

  1. Normalization: Coefficients associated with the variable being counted are normalized to $\pm 1$.
  2. Disjoint Partitioning: Boolean combinations of inequalities are transformed into a disjoint disjunctive normal form. For a fixed number of variables, this transformation is achievable in polynomial time.
  3. Range Splitting: The domain of the integer variable $y$ is partitioned into segments defined by the boundary terms present in the formula.
  4. Segment Counting: The algorithm evaluates the formula over these segments using combinatorial methods to determine the number of solutions within each interval, rather than counting individual points.
  5. Parameter Tracking: A rigorous analysis of the growth of coefficients and constants (the "magnitude" of the formula) is performed. The authors establish a quadratic bound on the number of homogeneous terms, which is critical for preventing non-elementary complexity growth.

Theoretical Analysis

The paper highlights several key theoretical insights that enable the 3ExpTime result:

  • Unary vs. Binary Counting: The authors emphasize that counting quantifiers must remain unary—counting values for a single variable. Allowing binary counting quantifiers (counting pairs of values) would render the logic undecidable, as it would allow for the definition of multiplication.
  • Avoiding the "Schweikardt Blow-up": Unlike previous methods that introduced additional standard quantifiers during elimination, this approach avoids such introductions, thereby maintaining a tighter complexity bound.
  • The Quadratic Bound: The primary breakthrough is Lemma 21, which demonstrates that the number of homogeneous terms in the resulting formula grows only quadratically relative to the input. This "taming" of the growth ensures the total computation time remains within three exponentials.
  • Binary Encoding Efficiency: Remarkably, the authors show that treating the threshold $c$ as a binary-encoded value does not incur a higher computational cost than treating it as a simple constant.

Complexity Results

The paper establishes several significant bounds for the extended logic:

  • 3ExpTime Completeness: Deciding PA with threshold counting quantifiers ($\exists^{\ge c} y$) is in 3ExpTime, matching the complexity of standard PA.
  • Modulo Counting: The logic extended with generalized modulo counting ($\exists^{(x,q)} y$, indicating the number of solutions is congruent to $x \pmod q$) is also shown to be in 3ExpTime.
  • Space Complexity: The decision problem is shown to be in 2ExpSpace, consistent with the best-known bounds for standard PA.
  • Improved QE: The proposed QE procedure for general counting quantifiers ($\exists^{=x} y$) is more efficient than previous state-of-the-art methods.

Discussion and Future Directions

While the paper successfully places threshold counting within 3ExpTime, the most general form of counting quantifiers ($\exists^{\ge x} y$, where $x$ is a free variable) still exhibits non-elementary growth when applied iteratively. The authors have identified the specific mechanisms behind this blow-up but have not yet eliminated it for the general case. Future research may focus on establishing lower bounds for the general version of the logic or developing more refined complexity measures to fully characterize the boundaries of Presburger arithmetic extensions.

Summary updated

BibTeX
@misc{chistikov2021presburger,
  author = {Dmitry Chistikov and Christoph Haase and Alessio Mansutti},
  title = {{Presburger arithmetic with threshold counting quantifiers is easy}},
  year = {2021},
  eprint = {2103.05087},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.05087},
}
Figure