Abstract
Williamson matrices are a critical tool in the construction of Hadamard matrices, yet their study has historically focused on odd orders due to computational constraints. This paper presents a novel SAT+CAS method that enables the first exhaustive enumeration of even-order Williamson matrices up to order 64. By integrating a programmatic SAT solver with Power Spectral Density (PSD) filtering, the authors achieve a performance increase of several orders of magnitude over standard CNF encodings. The resulting data reveals an unexpected abundance of Williamson matrices in even orders, leading to the proposal of a new existence conjecture.
Introduction
Hadamard matrices—square matrices with $\pm1$ entries and orthogonal rows—are foundational in digital communications and error-correcting codes. The Hadamard conjecture posits their existence for all orders divisible by 4. Williamson matrices offer a constructive path to these matrices, but finding them is a significant computational challenge. While odd-order Williamson matrices have been extensively studied, even-order matrices remained largely unexplored due to the lack of specialized algorithms. This work fills that gap using a hybrid computational approach.
The SAT+CAS Paradigm
The authors utilize a hybrid approach combining the systematic search power of SAT solvers with the mathematical depth of Computer Algebra Systems (CAS). The core innovation is "Programmatic SAT," where the solver interacts with a custom C++ callback function. This function evaluates the Power Spectral Density (PSD) of partial solutions, allowing the solver to "learn" conflict clauses and prune search branches that cannot lead to valid Williamson matrices.
As shown in the performance comparison above, the programmatic approach is essential for scalability. For order $n=50$, the standard CNF encoding requires nearly 100 hours, whereas the programmatic method completes the task in approximately 100 seconds (0.03 hours). For orders $n \ge 52$, the standard method fails to complete within reasonable time limits, while the programmatic SAT solver continues to perform efficiently.
Experimental Results
The primary contribution of this research is the exhaustive list of inequivalent Williamson matrices for all even orders $n \le 64$. The search confirmed the existence of these matrices for every even order tested, contrasting with odd orders where "holes" (orders with no matrices, such as 35 or 47) are common.
The data reveals a striking "abundance" of matrices in even orders. For example, at $n=64$, the search identified 95,504 inequivalent matrices. This trend suggests that even-order Williamson matrices are far more common than their odd-order counterparts. Additionally, the authors identified a "shift" equivalence operation unique to even orders that had been overlooked in previous literature.
Conclusion
The successful enumeration of even-order Williamson matrices up to $n=64$ provides strong empirical evidence for a new conjecture: Williamson matrices of order $t$ exist for all even $t$. While the "matching" step remains a memory bottleneck for higher orders (requiring 6 GB for $n=64$), the SAT+CAS paradigm offers a powerful framework for further exploration of the Hadamard conjecture. Future work will focus on optimizing the matching procedure to push the search to $n=128$ and beyond.
Summary updated