Abstract
This paper presents a hybrid computational approach to solving complex combinatorial problems by integrating the exhaustive search capabilities of SAT solvers with the mathematical reasoning of Computer Algebra Systems (CAS). By applying this "SAT+CAS" paradigm to the Williamson conjecture, the authors successfully enumerated Williamson matrices up to order 70. The results provide empirical evidence for a new "Even Williamson Conjecture," identify previously unknown matrices of order 63, and demonstrate significant performance improvements over traditional Boolean encoding methods.
Introduction
The search for Williamson matrices—mathematical objects essential for constructing Hadamard matrices—has long been a challenge in combinatorial design theory. As the order $n$ of these matrices increases, the search space grows exponentially at a rate of $2^{4n}$, making exhaustive search a "needle in a haystack" problem. While the original Williamson conjecture suggested these matrices existed for all orders, it was famously disproven for $n=35$.
This research utilizes a programmatic SAT solver approach, often referred to as DPLL(CAS), to bridge the gap between brute-force search and high-level mathematical constraints. By teaching a SAT solver to utilize Fourier analysis and sum-of-squares decomposition, the authors have pushed the boundaries of known combinatorial structures.
Problem Definition
Williamson matrices are defined as four symmetric, circulant $n \times n$ matrices ($A, B, C, D$) with entries from $\{-1, 1\}$ that satisfy the sum-of-squares identity:
$$A^2 + B^2 + C^2 + D^2 = 4nI_n$$
where $I_n$ is the identity matrix of order $n$. These matrices are highly valued because they can be plugged into the Williamson construction to produce a Hadamard matrix of order $4n$. Hadamard matrices have critical applications in error-correcting codes, digital communication, and signal processing.
Methodology: The SAT+CAS Paradigm
The authors' approach moves beyond standard Boolean logic by implementing a "programmatic" SAT solver (MapleSAT) that interacts with a CAS (Maple) and specialized libraries. The workflow consists of four primary stages:
- Sum-of-Squares Decomposition: The CAS is used to determine all possible ways to represent $4n$ as a sum of four squares. This provides the target rowsums for the matrices, effectively pruning the search space before the SAT solver begins.
- Compression: The technique of $m$-compression is applied to reduce the length of the sequences. By searching for compressed versions first, the initial complexity is significantly lowered.
- Programmatic SAT Solving: Instead of a static encoding, the solver uses a custom callback function. As the solver assigns values, it uses a Fast Fourier Transform (FFT) library to calculate the Power Spectral Density (PSD) of the sequences. If the PSD values violate known mathematical constraints (the "PSD test"), the solver immediately generates a conflict clause to prune that branch of the search tree.
- String Sorting and Matching: A specialized algorithm matches compressed sequences before the SAT solver attempts to "uncompress" them into the final $n \times n$ matrices.
Key Results and Discoveries
The hybrid SAT+CAS approach yielded several significant contributions to the field of combinatorics:
Complete Enumeration and the Even Williamson Conjecture
The authors completed the enumeration of all Williamson matrices for even orders up to $n=70$. A striking pattern emerged: while Williamson matrices are rare or non-existent in many odd orders (such as 35, 47, 53, and 59), they were found to exist for every even order tested. This led the authors to propose the Even Williamson Conjecture: Williamson matrices exist for every even order $n$.
New Matrices of Order 63
The search successfully identified a previously unknown set of Williamson matrices of order 63. This represents the first discovery of a new set of odd-order Williamson matrices in over a decade, demonstrating the efficacy of the PSD-filtering technique.
Performance Benchmarks
The efficiency of the programmatic approach was compared against traditional Conjunctive Normal Form (CNF) encodings. For order $n=50$, a standard SAT encoding required over 53 hours to complete. In contrast, the SAT+CAS approach finished the same task in just 0.02 hours (approximately 72 seconds), representing a speedup of several orders of magnitude.
Discussion and Future Work
The research highlights that domain-specific mathematical knowledge is the most effective tool for optimizing search algorithms. By integrating Fourier analysis directly into the SAT solver's logic, the authors transformed an intractable problem into a manageable one.
However, computational bottlenecks remain. In large even orders, the sorting and matching of vectors becomes the primary constraint. In large odd orders, the "uncompression" step remains the most difficult phase for the SAT solver. Future work may involve refining these specific steps or applying the SAT+CAS framework to other open problems in combinatorial design, such as the search for complex Hadamard matrices or Barker sequences.
While the empirical evidence for the Even Williamson Conjecture is strong, a formal mathematical proof remains an open challenge for the community.
Summary updated