The SAT+CAS method for combinatorial search with applications to best matrices

Curtis Bright, Dragomir Z. Dokovic, Ilias S. Kotsireas, Vijay Ganesh · DOI

Abstract

This paper presents the SAT+CAS method, a hybrid computational framework that integrates Satisfiability (SAT) solvers with Computer Algebra Systems (CAS). By leveraging the search efficiency of SAT and the mathematical rigor of CAS, the authors address complex combinatorial problems that are otherwise computationally intractable. The method was successfully applied to verify the best matrix conjecture for order 57, a significant advancement over previous results.

Introduction

The search for combinatorial objects, such as matrices with specific symmetry and orthogonality properties, often involves navigating astronomical search spaces. For example, the search space for best matrices of order 57 is approximately $2^{156}$. While SAT solvers are adept at handling large-scale logic problems, they struggle with high-level mathematical constraints like Fourier transforms. Conversely, Computer Algebra Systems (CAS) excel at these calculations but lack optimized search capabilities.

The SAT+CAS method addresses this by using a programmatic SAT solver that can query a CAS during the search process. This approach has been used to solve various long-standing conjectures in combinatorics, as shown in the table below.

Methodology

The authors implement a DPLL(CAS) architecture, which extends the standard DPLL(T) framework used in SMT solvers. The process is divided into two primary phases:

1. Divide Phase (Preprocessing)

In this stage, the CAS is used to prune the search space before the SAT solver begins. Techniques such as sequence compression are employed, where a matrix is reduced in size by summing its entries. The CAS then applies mathematical filtering theorems, such as the Power Spectral Density (PSD) equality, to discard compressed versions that are mathematically impossible. This step can eliminate thousands of subproblems instantaneously.

2. Conquer Phase (Programmatic SAT)

The remaining subproblems are solved using a programmatic SAT solver (MapleSAT). During the search, the solver uses a callback interface to consult the CAS. If a partial assignment violates mathematical bounds—verified using the FFTW library for fast Fourier transforms—the CAS returns a conflict clause. This allows the SAT solver to prune entire branches of the search tree that are mathematically non-viable.

Key Results

The application of the SAT+CAS method to the study of best matrices yielded several landmark results:

  • Order 57 Construction: The authors successfully constructed best matrices of order 57, the largest ever found, surpassing the previous record of order 43.
  • Conjecture Verification: The results confirm that the "best matrix conjecture" holds for $r=7$ (where order $n = r^2 + r + 1$).
  • Computational Performance: The search for order 57 was completed in 162 CPU hours. Through parallelization across 200 cores, the "conquer" phase was reduced to less than one hour of wall-clock time.
  • New Skew Hadamard Matrices: By applying the Goethals–Seidel construction to the newly discovered best matrices, the authors generated new skew Hadamard matrices of order 228.

Discussion and Future Work

The primary insight of this research is that high-level mathematical filtering is significantly more effective at pruning search spaces than Boolean logic alone. By encoding domain-specific properties directly into the search—such as symmetry breaking and product relationships—the authors achieved massive reductions in complexity.

Future work will focus on scaling the method to $r=8$ and beyond. Challenges include the exponential growth of subproblems and the need for more automated translation of CAS theorems into SAT-compatible conflict clauses. The SAT+CAS method remains a promising tool for other difficult combinatorial problems, including the search for finite projective planes.

Summary updated

BibTeX
@article{bright2019sat,
  author = {Curtis Bright and Dragomir Z. Dokovic and Ilias S. Kotsireas and Vijay Ganesh},
  title = {{The SAT+CAS method for combinatorial search with applications to best matrices}},
  journal = {Ann. Math. Artif. Intell.},
  year = {2019},
  doi = {10.1007/s10472-019-09681-3},
}
Figure