[Paper Review] A Formal Proof of R(4,5)=25
This paper presents the first formal proof of the Ramsey number R(4,5) = 25 using the HOL4 interactive theorem prover, verifying the computational core of McKay and Radziszowski's 1995 proof by encoding gluing problems as SAT instances and leveraging the HOL4 interface to MiniSat. The key contribution is a verified generalization algorithm and a heuristic for selecting SAT-friendly graph abstractions, reducing proof complexity and ensuring trust via the small HOL4 kernel.
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 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.
Motivation & Objective
- To formally verify the computational core of the proof that R(4,5) = 25 using a trusted interactive theorem prover.
- To reduce reliance on unverified custom SAT solvers by interfacing with MiniSat through HOL4.
- To develop a verified generalization algorithm that groups isomorphic graphs to minimize the number of gluing problems.
- To design and validate a heuristic that predicts SAT solver runtime, guiding the selection of simpler gluing problem instances.
- To demonstrate that formal verification of large-scale combinatorial proofs is feasible using modern theorem prover infrastructure.
Proposed method
- Encoding Ramsey gluing problems as propositional logic formulas and calling the HOL4 interface to MiniSat for unsatisfiability proofs.
- Implementing a custom SAT solver extension with graph isomorphism checking to verify completeness of generalizations.
- Using a generalization algorithm that groups isomorphic R(3,5,d) and R(4,4,24−d) graphs into abstract representations to reduce case explosion.
- Applying a simplicity heuristic to estimate SAT solver runtime and guide the selection of generalizations that yield easier gluing problems.
- Leveraging the HOL4 kernel to verify all logical steps, trusting only the kernel and the MiniSat interface.
- Validating the proof structure via a theory graph loader that checks dependencies and ensures logical consistency across 828,857 ancestor theories.
Experimental results
Research questions
- RQ1Can the computational component of the R(4,5)=25 proof be formally verified using a trusted interactive theorem prover?
- RQ2How can graph generalizations be constructed and verified to cover all isomorphism classes while minimizing the number of gluing problems?
- RQ3Can a heuristic be developed to predict SAT solver performance on gluing problems and guide the selection of simpler instances?
- RQ4Is it feasible to replace custom SAT solvers with a standard solver via a trusted interface in a formal proof system?
- RQ5Can formalization of large combinatorial proofs be scaled using abstraction and symmetry reduction techniques?
Key findings
- The formal proof of R(4,5) = 25 was successfully completed in HOL4, with the entire computational chain verified through the trusted kernel.
- The authors verified that R(4,5) > 24 by constructing and formalizing an R(4,5,24)-graph, consistent with Kalbfleisch's 1965 construction.
- A generalization algorithm was implemented and verified, reducing the number of gluing problems by grouping isomorphic graphs.
- The heuristic for selecting generalizations based on predicted SAT solver runtime significantly improved performance, avoiding intractable cases.
- The proof structure was validated via a complete theory graph with 828,857 ancestor theories, ensuring logical consistency and dependency integrity.
- The formalization demonstrates that large-scale combinatorial proofs can be verified end-to-end in HOL4, even with petabyte-scale DRAT proof files.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.