A SAT + Computer Algebra System Verification of the Ramsey Problem R(3, 8) (Student Abstract)

Conor Duggan, Zhengyu Li, Curtis Bright, Vijay Ganesh

Presented as a student abstract at AAAI-24, this research marks a significant milestone in computational combinatorics: the first formally certifiable proof of the Ramsey number $R(3, 8)$. By synthesizing the brute-force search capabilities of SAT solvers with the mathematical sophistication of Computer Algebra Systems (CAS), the researchers have bridged the gap between raw computational results and verifiable mathematical proof.

The Ramsey Problem: R(3, 8)

Ramsey Theory explores the emergence of order within large structures. A Ramsey number $R(p, q)$ is defined as the smallest number of vertices $n$ such that any red/blue coloring of a complete graph with $n$ vertices must contain either a blue clique of size $p$ or a red clique of size $q$.

Specifically, $R(3, 8)$ asks for the smallest $n$ such that any coloring of $K_n$ contains a blue triangle or a red 8-clique. While this value was computationally determined to be 28 in 1992, the original result relied on custom, unverified code. In modern mathematics, a result is not considered fully "proven" until the computation generates a certificate that an independent party can verify.

A graph representation illustrating the Ramsey problem constraints, where edges are colored to avoid specific cliques.

Methodology: The SAT+CAS Paradigm

The researchers employed a SAT+CAS approach, combining two distinct computational tools:

  • SAT Solver (MapleSAT): Optimized for solving Boolean satisfiability problems, treating graph coloring as a massive logic puzzle.
  • Computer Algebra System (CAS): A system capable of understanding and manipulating high-level mathematical structures.

To solve the problem, the Ramsey constraints must be translated into a Boolean formula. The search space for $R(3, 8)$ is astronomical, requiring a robust encoding that the SAT solver can process efficiently.

The logical encoding used to translate the Ramsey problem into a SAT-solvable format, representing the conjunction of clique constraints.

Symmetry Breaking via Orderly Generation

The primary obstacle in Ramsey problems is symmetry. There are billions of isomorphic colorings that are essentially identical under vertex permutation. A standard SAT solver would redundantly check every variation, leading to exponential slowdowns.

The authors utilized the CAS to perform "orderly generation." As the SAT solver explores the search space, the CAS dynamically generates "blocking clauses." These logical constraints instruct the solver to skip branches that are merely isomorphic to previously explored states. This technique prunes the search space by several orders of magnitude.

Key Results and Verification

The effectiveness of the hybrid approach was first demonstrated through an ablation study on $R(3, 7)$. While a standard SAT solver failed to finish within 24 hours, the SAT+CAS method completed the task in just 2 minutes.

For the main $R(3, 8)$ problem, the results were definitive:

  • The Proof: The system formally verified that $R(3, 8) = 28$ by proving that no graph of size 28 exists without the required cliques (an "UNSAT" result).
  • Computational Effort: The search took 96 hours on a high-end AMD EPYC processor.
  • The Certificate: The process generated a 30 GiB DRAT (Delete Resolution Asymmetric Tautology) proof file, documenting every logical step.
  • Independent Verification: This massive certificate was verified in 63 hours using a modified DRAT-trim tool, providing the first certifiable proof of this Ramsey number.

Conclusion and Future Outlook

This work demonstrates that hybridization is the key to tackling hard combinatorial problems. While SAT solvers are fast but "mathematically blind," and CAS are "brilliant" but slow at searching, their combination allows for a "search with insight."

While $R(3, 8)$ is now verified, $R(3, 9)$ remains an open challenge due to the exponential growth of the search space. However, the "orderly generation" technique developed here is generalizable and offers a promising path forward for other combinatorial problems currently stalled by symmetry and complexity.

Summary updated

BibTeX
@inproceedings{duggan2024sat,
  author = {Conor Duggan and Zhengyu Li and Curtis Bright and Vijay Ganesh},
  title = {{A SAT + Computer Algebra System Verification of the Ramsey Problem R(3, 8) (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i21.30437},
}
Figure