Finite Domain Bounds Consistency Revisited

Chiu Wo Choi, Warwick Harvey, Jimmy Ho-Man Lee, Peter J. Stuckey

Introduction

In the field of Constraint Programming (CP), the efficiency of solving Constraint Satisfaction Problems (CSPs) hinges on the ability to prune variable domains—removing values that cannot participate in any valid solution. While domain consistency (or arc consistency) is the gold standard for pruning, it is often computationally prohibitive for complex constraints. As a practical compromise, researchers and practitioners frequently employ bounds consistency, which focuses on pruning only the minimum and maximum values of a variable's domain.

Despite its widespread use, the term "bounds consistency" has historically been used to describe several distinct concepts. This paper addresses this ambiguity by formally defining three incompatible versions of bounds consistency, establishing a hierarchy of their pruning power, and analyzing their computational complexity.

Three Definitions of Bounds Consistency

The paper identifies three primary interpretations of what constitutes a "support" for a domain bound. These definitions vary based on whether they consider the actual values in a domain or the interval between the bounds, and whether they require integer or real-number solutions.

  1. bounds($D$) consistency: A bound is supported if there exists an integer solution using only the values currently present in the variables' actual domains. This version respects "holes" in domains created by previous pruning steps.
  2. bounds($Z$) consistency: A bound is supported if there exists an integer solution within the range $[min, max]$ of the domains. This version ignores any internal holes, treating the domain as a continuous range of integers.
  3. bounds($R$) consistency: A bound is supported if there exists a real number solution within the range $[min, max]$ of the domains.

The Strength Hierarchy and Complexity

The authors provide a theoretical framework to compare these definitions, proving a strict hierarchy of pruning power:

$bounds(D) \implies bounds(Z) \implies bounds(R)$

In this hierarchy, $bounds(D)$ is the most aggressive at shrinking the search space, while $bounds(R)$ is the most permissive. However, this increased pruning power comes at a significant computational cost. One of the paper's most critical findings is the "Complexity Trap": checking for $bounds(Z)$ or $bounds(D)$ consistency is NP-complete even for simple linear equations, as demonstrated via a reduction to the Subset Sum problem.

In contrast, $bounds(R)$ consistency can typically be checked in linear time. This explains why many high-performance constraint solvers default to the theoretically weaker $bounds(R)$—the speed of propagation allows for more nodes to be explored in the search tree, often outweighing the benefits of more exhaustive pruning.

Monotonicity and Equivalence

A key contribution of the paper is explaining why these three definitions were often conflated in earlier literature. For monotonic constraints—where the underlying function always increases or decreases with respect to its variables (e.g., $x + y \leq z$)—all three definitions of bounds consistency, and even domain consistency, become equivalent. Because many common arithmetic constraints are monotonic, the differences between the definitions only become apparent when dealing with non-monotonic constraints or specific global constraints.

Practical Implications

The distinction between these consistencies is not merely academic. The paper highlights that $bounds(R)$ can fail or become ill-defined for constraints that do not have a natural mapping to real numbers, such as the alldifferent global constraint or modular arithmetic ($x = y \mod z$).

Furthermore, the paper establishes several key propositions:

  • Proposition 12: Formally proves the NP-completeness of $bounds(Z)$ and $bounds(D)$ for linear equalities.
  • Proposition 17: Shows that for $n$-ary monotonic constraints, all three bounds consistencies are equivalent to domain consistency.
  • Proposition 20: Identifies that for linear equations where coefficients are predominantly 1 or -1, $bounds(R)$ and $bounds(Z)$ are equivalent, providing a safe zone for solver optimization.

Conclusion

By clarifying the formal definitions of bounds consistency, this research provides a necessary foundation for the development and verification of future constraint solvers. While the choice of which consistency to implement remains a trade-off between pruning strength and computational overhead, this paper ensures that developers can make that choice with a clear understanding of the theoretical and practical consequences.

Summary updated

BibTeX
@inproceedings{choi2006finite,
  author = {Chiu Wo Choi and Warwick Harvey and Jimmy Ho-Man Lee and Peter J. Stuckey},
  title = {{Finite Domain Bounds Consistency Revisited}},
  booktitle = {Australian Conference on Artificial Intelligence},
  year = {2006},
  doi = {10.1007/11941439\_9},
}
Figure