A Formal Proof of R(4,5)=25
Thibault Gauthier, Chad E. Brown
TL;DR
We address the decision problem $R(4,5)=25$ by providing a formal HOL4 proof that combines a high-level splitting argument with SAT-backed gluing lemmas. The key innovation is a verified generalization algorithm that reduces the search space and a simplicity heuristic that predicts SAT-solving difficulty, enabling a feasible, fully formalized verification. The authors rely on the HOL4 interface to MiniSat to prove gluing lemmas rather than reimplementing a solver, and they demonstrate the existence of a $\mathcal{R}(4,5,24)$-graph to establish the lower bound. This work advances formalizations in finite Ramsey theory and illustrates practical strategies for certifying large computational proofs.
Abstract
In 1995, McKay and Radziszowski proved that the Ramsey number R(4,5) is equal to 25. Their proof relies on a combination of high-level arguments and computational steps. The authors have performed the computational parts of the proof with different implementations in order to reduce the possibility of an error in their programs. In this work, we prove this theorem in the interactive theorem prover HOL4 limiting the uncertainty to the small HOL4 kernel. Instead of verifying their algorithms directly, we rely on the HOL4 interface to MiniSat SAT to prove gluing lemmas. To reduce the number of such lemmas and thus make the computational part of the proof feasible, we implement a generalization algorithm. We verify that its output covers all the possible cases by implementing a custom SAT-solver extended with a graph isomorphism checker.
