MathCheck2: A SAT+CAS Verifier for Combinatorial Conjectures

Curtis Bright, Vijay Ganesh, Albert Heinle, Ilias S. Kotsireas, Saeed Nejati, Krzysztof Czarnecki

Abstract

MathCheck2 is a hybrid "SAT+CAS" system designed to tackle difficult combinatorial conjectures by combining the exhaustive search capabilities of SAT solvers with the domain-specific mathematical knowledge of Computer Algebra Systems (CAS). By implementing techniques such as programmatic SAT, compression-based filtering, and UNSAT core pruning, the system successfully discovered over 500 new Hadamard matrices and provided an independent verification of the non-existence of Williamson matrices of order 35. This approach demonstrates a significant performance improvement over traditional static SAT encoding methods.

Introduction

In combinatorial mathematics, many conjectures involve proving the existence or non-existence of specific structures, such as Hadamard matrices. While simple to state, these problems are notoriously difficult to solve because their search spaces grow exponentially. Traditional computational tools generally fall into two categories: SAT solvers, which are excellent at searching massive spaces but lack high-level mathematical context, and Computer Algebra Systems (CAS), which possess sophisticated algorithms but lack raw search efficiency. MathCheck2 bridges this gap by creating a "best of both worlds" architecture that uses mathematical theorems to prune the search space before and during the SAT solving process.

System Architecture and Methods

The core of MathCheck2 is a Generator that orchestrates the interaction between the SAT solver and the CAS. This hybrid approach allows the system to leverage high-level math (like Fourier transforms) as a "pre-filter" for low-level logic.

The MathCheck2 system architecture showing the interaction between the Generator, CAS, and SAT solver.

Key techniques implemented in the system include:

  • Divide-and-Conquer via Compression: The system splits the search space into subspaces based on "compressed" versions of sequences. The CAS checks these against filtering theorems (e.g., Power Spectral Density). If a compressed version fails, the entire subspace is discarded.
  • Programmatic SAT: Instead of generating a massive, static list of constraints at the start, MathCheck2 uses a feedback loop. As the SAT solver searches, it queries the CAS, which generates domain-specific constraints on-the-fly, keeping instances manageable.
  • UNSAT Core Pruning: If a subspace is proven unsatisfiable (UNSAT), the system identifies the minimal "UNSAT core" to immediately skip similar subspaces, preventing redundant work.
  • Symmetry Breaking: The authors enforce strict ordering and negation constraints to ensure the solver only searches for one unique representative of each equivalence class.

Experimental Evaluation

The system was evaluated against several benchmarks in combinatorial design theory:

  • The Hadamard Conjecture: Searching for matrices up to order 168.
  • Williamson Matrices: Verifying the non-existence of order 35.
  • The MAGMA Hadamard Database: Used as a benchmark to determine if discovered matrices were truly novel.

Results and Discussion

MathCheck2 achieved several significant milestones in combinatorial research. Most notably, the system discovered over 500 new Hadamard matrices not previously recorded in the MAGMA database. It also provided an independent verification that Williamson matrices of order 35 do not exist, a task that required checking over 21,000 SAT instances, which the system optimized down to 19,356 calls using UNSAT core pruning.

Efficiency gains were particularly evident when comparing the programmatic approach to original static methods. As the order of the matrices increases, the programmatic SAT approach shows consistent speedups.

Comparison of runtimes (in seconds) between the original implementation and the programmatic SAT approach across various matrix orders.

As illustrated in the performance data, for order 42, the programmatic approach was nearly 3x faster than the original implementation, reducing runtime from 112.51 seconds to 42.21 seconds.

Conclusion and Future Work

MathCheck2 demonstrates that high-level mathematical filtering can significantly enhance the efficiency of low-level SAT solvers. While the search space for Hadamard matrices continues to expand, the authors plan to adapt this tool for other combinatorial problems, such as those involving complex Golay sequences. Future work will also focus on improving explainability by analyzing UNSAT cores to provide human-readable proofs for why certain mathematical objects do not exist.

Summary updated

BibTeX
@inproceedings{bright2016mathcheck,
  author = {Curtis Bright and Vijay Ganesh and Albert Heinle and Ilias S. Kotsireas and Saeed Nejati and Krzysztof Czarnecki},
  title = {{MathCheck2: A SAT+CAS Verifier for Combinatorial Conjectures}},
  booktitle = {CASC},
  year = {2016},
  doi = {10.1007/978-3-319-45641-6\_9},
}
Figure