Abstract
Combinatorial mathematics represents a significant challenge for automated reasoning systems. While Large Language Models (LLMs) have shown promise in algebra and number theory, their performance in combinatorics remains largely unassessed due to a lack of specialized benchmarks. We introduce CombiBench, a dataset of 100 combinatorial problems formalized in Lean 4. Our evaluation of state-of-the-art models reveals a substantial performance gap, with the best-performing model solving only 7% of the problems, highlighting a critical frontier for mathematical AI.
Introduction
Recent advancements in neurosymbolic AI, such as Google DeepMind’s AlphaProof, have achieved human-level performance in several mathematical domains. However, combinatorics remains a "final frontier" for automated reasoning. This difficulty stems from three primary factors: a scarcity of combinatorial content in existing benchmarks, gaps in formal mathematical libraries like Lean's mathlib, and the inherent complexity of formalizing combinatorial logic, which often requires unique, problem-specific definitions rather than standard templates.
Methodology
We present CombiBench, a benchmark comprising 100 problems ranging from middle school to International Mathematical Olympiad (IMO) and university levels. Notably, 45% of these are "fill-in-the-blank" problems, requiring models to both discover a numerical or symbolic solution and prove its correctness. The problems are sourced from diverse high-level materials, including Brualdi’s Introductory Combinatorics (42 problems) and the IMO (36 problems).
To evaluate these open-ended tasks, we developed Fine-Eval (Fill-in-the-blank in Lean Evaluation). Fine-Eval employs a two-stage verification process. Stage 1 utilizes exact string matching and simple Lean tactics (e.g., rfl, norm_num). If these fail, Stage 2 prompts the LLM to generate a formal proof demonstrating the mathematical equivalence of its output to the ground truth.
The Complexity of Combinatorial Formalization
Our analysis highlights that combinatorial formalization is exceptionally "verbose." While problems in other benchmarks like FIMO or miniF2F usually fit within 15 lines of code, CombiBench problems frequently exceed 30 or even 60 lines. This complexity is exacerbated by the lack of pre-built lemmas in mathlib, forcing models to construct foundational structures from scratch. This often leads to high failure rates during compilation as models attempt to "reinvent the wheel" for every proof.
Results
Evaluation of state-of-the-art reasoning models and theorem provers indicates that combinatorial math is a major pain point for current AI.
As shown in Table 2, the Kimina-Prover Preview (72B) achieved the highest success rate, yet solved only 7 out of 100 problems. General-purpose reasoning models like DeepSeek-R1 and Gemini-2.5-pro solved between 2 and 4 problems, while smaller theorem provers (≤7B) generally failed to solve any problems. These results suggest that combinatorial reasoning requires a high degree of model scale and general intelligence.
Conclusion
The results on CombiBench underscore a massive gap in automated reasoning for combinatorics. Current LLMs tend to be either perfectly right or completely wrong, suggesting that improving the model's ability to generate a valid reasoning path is more critical than sophisticated answer-checking. Future work will focus on expanding Lean's mathlib with dedicated combinatorial theorems and improving auto-formalization techniques to bridge the gap between natural language and formal proofs.
Summary updated