Abstract
This paper explores a powerful synergy in computational mathematics: the integration of Boolean satisfiability (SAT) solvers with Computer Algebra Systems (CAS). By combining the brute-force search efficiency of SAT solvers with the deep mathematical "intuition" of CAS, the authors demonstrate a hybrid approach capable of solving complex conjectures previously considered computationally untouchable. This paradigm, embodied in the tool MathCheck, has successfully resolved or provided new counterexamples for long-standing problems in combinatorics, graph theory, and number theory.
Introduction
Automating mathematical discovery typically falls into two distinct computational camps. On one hand, SAT and SMT solvers are highly efficient at navigating astronomical search spaces using simple logic. However, they lack "domain knowledge" and struggle with problems requiring complex mathematical filtering, such as Fourier transforms or group theory. On the other hand, Computer Algebra Systems (CAS) like Maple or Mathematica possess deep repositories of mathematical algorithms but lack the specialized, high-performance search heuristics needed to prune massive combinatorial trees.
Many mathematical problems—such as finding specific types of matrices or verifying graph properties—require both capabilities. They present search spaces too large for a CAS to exhaust and mathematical constraints too complex for a SAT solver to encode efficiently in Boolean logic. The authors address this gap by creating a programmatic feedback loop between the two systems.
The SAT+CAS Paradigm
The authors introduce the SAT+CAS paradigm, primarily implemented through their tool, MathCheck. The workflow establishes a dynamic interaction where the SAT solver provides the "brawn" (efficiently navigating $2^n$ spaces) while the CAS provides the "brains" (advanced filtering).
The process typically follows these steps:
- Problem Splitting: The main problem is split into many independent sub-problems that can be solved in parallel.
- Search and Call: The SAT solver begins exploring a search space. When it finds a partial assignment (a potential solution), it "calls" the CAS.
- Mathematical Filtering: The CAS checks the partial solution against advanced mathematical criteria. For example, in matrix theory, it might check the Power Spectral Density (PSD).
- Conflict Clause Generation: If the CAS determines the partial solution is mathematically impossible, it generates a "conflict clause"—a logical constraint that instructs the SAT solver to skip that entire branch of the search tree.
- Symmetry Breaking: The CAS identifies "equivalent" solutions (isomorphisms), allowing the SAT solver to avoid redundant computations.
Case Studies and Results
The SAT+CAS approach has produced significant results across several domains of mathematics:
- Williamson Matrices: The system searched spaces for orders up to $n=70$. By using the PSD criterion as a filter, the authors pruned the search space by 25 orders of magnitude, finding over 100,000 new sets of matrices and verifying $n=35$ as the smallest counterexample.
- Good and Best Matrices: The tool discovered three new counterexamples to the Good Matrix conjecture ($n=51, 63, 69$) and extended the verification of the Best Matrix conjecture up to $n=57$.
- Graph Theory: MathCheck provided the first-ever verifications for the Ruskey–Savage conjecture (for $n=5$ hypercubes) and the Norine conjecture (for $n=6$ hypercubes).
- Matrix Multiplication: The authors identified over 13,000 new, inequivalent algorithms for $3 \times 3$ matrix multiplication using only 23 scalar multiplications. They used SAT to find solutions in a finite field ($\mathbb{F}_2$) and then used CAS (Gröbner basis calculation) to "lift" those solutions to work in any ring.
Conclusion and Future Directions
The core insight of this work is that "programmatic" constraints provided on the fly by a CAS are far more efficient than attempting to translate complex math into millions of static Boolean clauses. While successful, the approach faces challenges such as encoding bottlenecks for certain mathematical concepts and potential overhead if the CAS checks are too slow.
Future work aims to apply this paradigm to formal verification of software and hardware, where complex data structures might benefit from CAS-style reasoning. Additionally, the authors seek to further automate the "lifting" process for moving solutions from finite fields to general mathematical rings.
Summary updated