Abstract
CONSAT is a constraint-based programming language designed to bridge the gap between general-purpose constraint systems and efficient filtering algorithms. By propagating sets of possible values rather than single assignments, it significantly reduces the search space for complex problems, such as combinatorial puzzles and diagnostic systems.
Introduction
In the late 1970s and early 1980s, constraint satisfaction systems were divided into two categories: "Alpha systems," which were domain-independent but often inefficient, and "Beta systems," which were highly efficient but tied to specific applications like computer vision. Hans Werner Guesgen identified the need for an "alphabeta" system—a programming language independent of specific applications that employs powerful filtering techniques to avoid "combinatorial explosion."
Methodology: The CONSAT System
Implemented in Common Lisp, CONSAT introduces several core innovations to improve search efficiency:
Set-Based Propagation
Unlike standard logic programming that relies on backtracking one value at a time, CONSAT propagates entire sets of potential values through a network. As values are found to be inconsistent with neighboring constraints, they are filtered out, pruning the search space early.
Hybrid Constraint Descriptions
Users can define constraints extensionally (listing valid tuples) or intensionally (using patterns and Lisp functions). This flexibility allows for the representation of both finite and infinite relations.
Constraint Compilation and LPB
To optimize performance, CONSAT compiles constraints at definition time to minimize expensive Cartesian product computations. For problems where local filtering is insufficient, the system employs a hybrid strategy called Local Propagation + Backtracking (LPB). LPB performs local propagation to prune the search space, sets a "choice point" (a guess), and repeats the process.
Evaluation: The Nine-Triangle Puzzle
The system was evaluated using the Nine-Triangle Puzzle, a combinatorial game with over 7 billion possible configurations ($9! \times 3^9$).
Beyond puzzles, CONSAT has been applied to real-world tasks such as process diagnosis (maintaining functional relationships in physical units) and musical composition (harmonization of chorales).
Key Insights and Results
The primary innovation of CONSAT is the emphasis on local consistency (arc consistency). By ensuring every value in a variable's set is consistent with at least one value in its neighbor's set, the system eliminates the majority of "dead ends" in a search tree.
Quantitatively, the LPB algorithm demonstrated significant efficiency. In the Nine-Triangle Puzzle, local propagation applied after each choice point reduced the depth of the search tree by a factor of 2. In combinatorial search, such a reduction leads to an exponential decrease in the number of nodes explored.
Conclusion and Future Work
CONSAT successfully provides a domain-independent constraint language integrated into the BABYLON hybrid knowledge representation system. While local propagation is powerful, the author acknowledges that complex puzzles still require the more expensive LPB strategy. Future work involves exploring alternative control strategies, such as recursive indices, to further optimize propagation in high-complexity search spaces.
Summary updated