CVC4-SymBreak: Derived SMT solver at SMT Competition 2019

Saket Dingliwal, Ronak Agarwal, Happy Mittal, Parag SinglaarXiv 2019

Abstract

Symmetry breaking is a popular technique to reduce the search space for SAT solving by exploiting the underlying symmetry over variables and clauses in a formula. The key idea is to first identify sets of assignments which fall in the same symmetry class, and then impose ordering constraints, called Symmetry Breaking Predicates (SBPs), such that only one (or a small subset) of these assignments is allowed to be a solution of the original SAT formula. While this technique has been exploited extensively in the SAT literature, there is little work on using symmetry breaking for SAT Modulo Theories (SMT). In SMT, logical constraints in SAT theories are combined with another set of theory operations defined over non-Boolean variables such as integers, reals, etc. SMT solvers typically use a combination of SAT solving techniques augmented with calls to the theory solver. In this work, we take up the advances in SAT symmetry breaking and apply them to the domain of SMT. Our key technical contribution is the formulation of symmetry breaking over the Boolean skeleton variables, which are placeholders for actual theory operations in SMT solving. These SBPs are then applied over the SAT solving part of the SMT solver. We implement our SBP ideas on top of CVC4, which is a state-of-the-art SMT solver. Our approach can result in significantly faster solutions on several benchmark problems compared to the state-of-the-art. Our final solver is a hybrid of the original CVC4 solver, and an SBP based solver, and can solve up to 3.8% and 3.1% more problems in the QF_NIA category of 2018 and 2019 SMT benchmarks, respectively, compared to CVC4, the top performer in this category.

Introduction

In automated reasoning, Satisfiability Modulo Theories (SMT) solvers handle logic combined with mathematical theories like integers, reals, or arrays. A major challenge in this field is the "state space explosion"—the number of possible assignments to variables grows exponentially, making many real-world problems intractable.

Symmetry breaking is a well-established technique in SAT solving. It identifies variables that are "interchangeable" (symmetrical) and adds constraints (Symmetry Breaking Predicates, or SBPs) to ensure the solver only explores one version of a symmetrical set. However, applying this to SMT is difficult because symmetries must respect both the logical connectives and the mathematical constraints. This paper addresses this gap by proposing a method to handle complex, arbitrary permutations in SMT.

Methods: Boolean-Skeleton-cum-Theory (BST) Symmetries

The authors' core contribution is the formulation of Boolean-Skeleton-cum-Theory (BST) symmetries. The process involves several key steps:

  1. The Boolean Skeleton: SMT solvers create a "Boolean skeleton" by replacing complex math expressions (e.g., $x + y > 2$) with dummy Boolean variables.
  2. Joint Symmetry Discovery: Instead of looking for symmetries only in the math or only in the logic, the authors construct a colored graph representing the entire SMT formula. They use graph automorphism tools to find permutations that preserve the entire structure.
  3. Restricted SBPs: They generate symmetry-breaking constraints specifically for the Boolean skeleton variables. Since SMT solvers spend a massive amount of time in the SAT-solving phase, pruning the search space at the skeleton level provides significant performance gains.
Example of SMT problem transformation using symmetry breaking predicates (SBPs).
  1. Hybrid Solver: Recognizing that symmetry breaking can sometimes add overhead, they built a hybrid system. It runs the SBP-enhanced solver for a set time; if no solution is found, it falls back to the original CVC4 solver.

Key Results and Evaluation

The approach was evaluated using the SMT-COMP 2018 and 2019 benchmarks, specifically focusing on the QF_NIA category (Quantifier-Free Non-linear Integer Arithmetic). This category is known for being computationally expensive and having a mix of satisfiable (SAT) and unsatisfiable (UNSAT) problems.

The SBP-enhanced solver, CVC4-SymBreak, demonstrated significant improvements over the base CVC4 solver:

  • 2018 Benchmarks: Solved 16,567 problems compared to CVC4’s 15,662—an improvement of 3.8%.
  • 2019 Benchmarks: Solved 8,647 problems compared to CVC4’s 8,289—an improvement of 3.1%.
Performance comparison on SMT-COMP 2019 benchmarks showing SAT and UNSAT problem counts.

While a parallel solver (Par4) solved more total problems, CVC4-SymBreak represents the new state-of-the-art for sequential (single-threaded) SMT solving in the QF_NIA category.

Conclusion and Future Work

The most important insight is that enforcing symmetry breaking on the Boolean skeleton is sufficient to prune the high-level search tree effectively. By discovering symmetries jointly across logic and theory, the authors capture complex "rotational" symmetries that previous methods would miss.

Future work includes extending these constraints to the actual theory variables and testing the effectiveness of BST symmetries on other theories, such as Bit-Vectors or Strings. Additionally, refining the heuristics for variable ordering and the hybrid solver's time-limit remains an open area for research.

Summary updated

BibTeX
@misc{dingliwal2019cvc,
  author = {Saket Dingliwal and Ronak Agarwal and Happy Mittal and Parag Singla},
  title = {{CVC4-SymBreak: Derived SMT solver at SMT Competition 2019}},
  year = {2019},
  eprint = {1908.00860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.00860},
}
Figure