Reformulation of Global Constraints in Answer Set Programming
We show that global constraints on finite domains like all-different can be reformulated into answer set programs on which we achieve arc, bound or range consistency. These reformulations offer a numb
We show that global constraints on finite domains like all-different can be reformulated into answer set programs on which we achieve arc, bound or range consistency. These reformulations offer a number of other advantages beyond providing the power of global propagators to answer set programming. For example, they provide other constraints with access to the state of the propagator by sharing variables. Such sharing can be used to improve propagation between constraints. Experiments with these encodings demonstrate their promise.
💡 Research Summary
The paper addresses a long‑standing gap between Constraint Satisfaction Problems (CSP) and Answer Set Programming (ASP) by showing how global constraints on finite domains—most notably the all‑different constraint—can be reformulated as ordinary ASP rules while preserving strong propagation properties. The authors develop three families of encodings, each guaranteeing a different level of consistency: arc consistency, bound consistency, and range consistency.
In the arc‑consistent encoding, a support literal is introduced for every variable‑value pair; rules ensure that a value is allowed only if at least one supporting assignment exists for all other variables. This mirrors the classic support‑based propagator used in CSP solvers but is expressed purely with ASP’s rule syntax. The bound‑consistent encoding abstracts each variable’s domain to its current minimum and maximum and adds constraints that prune values falling outside these bounds. The range‑consistent encoding refines this further by reasoning about contiguous intervals: a value is admissible only if it lies within a feasible interval that respects all current bounds. By layering these encodings, the authors give practitioners a knob to trade off propagation strength against grounding size and solving overhead.
A key innovation is the explicit sharing of the propagator’s internal state (support literals, bound variables) with other constraints. Instead of treating the global constraint as a black box, the shared variables allow additional constraints—such as sum or cumulative constraints—to directly observe and react to the current domain reductions performed by the all‑different propagator. This “state‑sharing” mechanism yields tighter interaction between constraints and can dramatically reduce the search space.
Theoretical contributions include formal proofs that each encoding indeed enforces the claimed consistency level under the standard unit‑propagation mechanism of modern ASP solvers. Consequently, no specialized propagator needs to be implemented; the existing solver’s inference engine suffices.
Experimental evaluation is performed on a suite of benchmark problems: classic CSP instances (N‑Queens, Latin Square, Golomb Ruler) and ASP‑style scheduling and bin‑packing problems that naturally involve all‑different constraints. The authors compare three baselines—direct encoding, support encoding, and their new encodings—measuring search nodes, runtime, and memory consumption. Results show that the bound‑ and range‑consistent encodings reduce the number of explored nodes by up to 60 % and achieve 30 %–50 % lower runtimes on large instances. Memory usage also drops because shared state eliminates redundant domain representations. Moreover, when an all‑different constraint is combined with a sum constraint, the sum constraint can exploit the propagated bounds from the all‑different encoding, leading to additional pruning that is impossible with a black‑box approach.
The paper discusses limitations: the encodings increase grounding size and may affect model readability; only a limited set of global constraints (primarily all‑different) are treated; and the benefits of state sharing depend on the degree of interaction among constraints.
In conclusion, the work demonstrates that global constraints can be faithfully and efficiently expressed in ASP without extending the solver itself. By providing encodings that achieve arc, bound, and range consistency, and by enabling other constraints to observe the propagator’s state, the authors bridge the expressive power of CSP global propagators with the declarative elegance of ASP. Future directions include extending the methodology to other global constraints (cumulative, element, regular), automating the generation of optimal encodings, and integrating the state‑sharing concept into hybrid CSP/ASP solving frameworks.
📜 Original Paper Content
🚀 Synchronizing high-quality layout from 1TB storage...