Abstract
Modern SAT solvers are highly efficient but often suffer from a "semantic gap" when high-level problems are translated into low-level Conjunctive Normal Form (CNF). This paper introduces Boolean equi-propagation, a technique that optimizes SAT encodings by inferring equalities between Boolean variables during the compilation phase. By leveraging Binary Decision Diagrams (BDDs) and specialized propagators, the proposed method significantly reduces the size of SAT instances and improves solving performance across various combinatorial benchmarks.
Introduction
Boolean Satisfiability (SAT) solvers are the workhorses of automated reasoning, capable of handling massive logic puzzles. However, their input format—Conjunctive Normal Form (CNF)—is a collection of simple "OR" statements that often obscures the high-level structure of the original problem. This translation process creates a semantic gap where context, such as integer representations or global constraints, is lost.
In "Boolean Equi-propagation for Optimized SAT Encoding," Metodi et al. propose bridging this gap by performing optimizations before the final CNF generation. Their core technique, equi-propagation, identifies redundant variables and simplifies constraints, leading to more compact and faster-to-solve SAT instances.
Methodology: Boolean Equi-propagation
The authors focus on the order encoding, where an integer $X$ is represented by Boolean variables $x_i$ such that $x_i \iff X \ge i$. The optimization pipeline consists of several key steps:
- Equi-propagation: The compiler identifies equalities between literals (e.g., $a = b$) or constants ($a = \text{true}$).
- BDD-based Reasoning: For constraints with low arity, Binary Decision Diagrams (BDDs) are used to perform complete equi-propagation.
- Partial Evaluation: Discovered equalities are propagated throughout the model. For instance, if $x_2 = x_3$ is found, all occurrences of $x_3$ are replaced by $x_2$, potentially triggering further simplifications.
The theoretical foundation of this approach is captured in formal propositions that relate the original constraints to their unified forms, ensuring that the simplified model remains logically equivalent to the original.
Experimental Evaluation
The approach was tested on several classic benchmarks, including Quasigroup Completion Problems (QCP), Nonogram puzzles, Balanced Incomplete Block Design (BIBD), and DNA Word Design.
Key Results
- Massive Compression: In $25 \times 25$ QCP instances, the equi-propagation compiler reduced the number of clauses from 140,000 (standard Sugar compiler) to just 6,500.
- Performance Gains: On random Nonogram puzzles, the system outperformed specialized solvers. For many unsatisfiable instances, the compiler detected contradictions during the simplification phase, effectively "solving" the problem in 0.00 seconds.
- Scientific Impact: The method proved the non-existence of certain templates in DNA Word Design that were previously unreachable by other techniques.
Discussion and Insights
A critical insight is that equalities in order encoding represent "domain thinning." By setting $x_v = x_{v+1}$, the compiler effectively asserts that the integer $X$ cannot take the value $v$. Performing this reasoning upfront is more efficient than relying on the SAT solver's internal unit propagation, as it avoids redundant work during the search process.
However, the BDD-based approach is limited by the arity of constraints; as the number of variables grows, BDD size can become prohibitive. Future work aims to integrate more global constraints like cumulative or circuit and explore applications in Satisfiability Modulo Theories (SMT).
Conclusion
Boolean equi-propagation offers a powerful pre-encoding optimization strategy. By maintaining high-level semantic awareness during compilation, it produces SAT instances that are not only smaller but also structurally simpler, enabling significant speedups in automated reasoning tasks.
Summary updated