Large Language Models Take On Theoretical Computer Science: Evaluating Frontier Reasoning and Automated Theorem Proving
A recent study evaluates nine frontier large language models on formal theorem proving and constructive mathematical tasks under strict machine verification. It finds steep disparities among models, shows that scaffold-style hints can substantially improve success rates, and highlights construction cases that exceed previously cited human records. The results identify planning as a key bottleneck and offer practical lessons for evaluation design, verifier-first workflows, staged reasoning, and AI-assisted research.
1. Background: When LLMs Meet Theoretical Computer Science
In recent years, evaluation of large language models has gradually shifted from applied tasks such as code generation and math competitions toward genuinely open problems in theoretical computer science. These tasks have several distinctive features. First, the problems often have no known answer, or only a very small number of experts understand the solution. Second, although formal proof tools can verify results with strict correctness, solving the problems requires long-chain, multi-step deep reasoning. Third, many construction problems—such as extremal constructions in graph theory or codeword design in coding theory—have search spaces that grow combinatorially, making brute-force and heuristic methods ineffective.
For these reasons, the research community has begun to use such problems as a touchstone for measuring the “real reasoning ability” of AI. A recent research effort co-authored by senior and early-career researchers systematically evaluated nine frontier models on formal theorem proving and constructive mathematical problems. The results reveal both major weaknesses in current models and surprising cases in which they exceed human results.
2. Evaluation System: Theorem Proving Under Strict Verification
2.1 Why Formal Verification
The biggest challenge in evaluating AI mathematical reasoning is judging whether an answer is correct. Manual review is time-consuming and error-prone. Looking only at the final answer cannot rule out guessing or pattern matching. Formal proof systems offer a way out: the model must produce proof code that can be verified line by line by a proof checker. Any logical leap, uncited lemma, or implicit assumption is rejected directly by the machine. This evaluation method sharply distinguishes “looks correct” from “actually correct” and is widely regarded as one of the most reliable ways to measure capability.
2.2 Score Distribution: A Steep Head Effect
The evaluation results show that the gap between models is far larger than in typical benchmark tests. The best-performing model achieved a success rate close to 40%, and the second-best model reached 38.3%. Most other models achieved only single-digit success rates, and some solved no problems at all. This steep distribution indicates that on tasks requiring long-horizon planning and rigorous logical deduction, model capability does not improve linearly with parameter scale. Differences in training objectives, data quality, and reasoning strategies are greatly amplified.
3. The “Hint Sheet” Experiment: The Power of Scaffold Hints
The most illuminating finding came from a set of controlled experiments. Researchers provided models with intermediate lemmas and proof ideas—equivalent to the scaffolding humans build when solving a problem—and then observed changes in success rates.
The results were striking:
- The top model’s number of solved problems increased from 3 to 7, more than doubling.
- Models that had previously scored zero solved 6 problems after receiving hints.
This phenomenon has several important technical implications:
- AI does not entirely lack reasoning ability; it lacks planning ability. The underlying logical inference of many models is basically reliable, but when faced with a complex theorem, they cannot autonomously complete the planning process of problem decomposition, intermediate goal setting, and step-by-step approximation.
- Error accumulation in long-chain reasoning. Without any hints, a model must complete the entire reasoning chain in a single generation, and a small deviation at any step can cause the whole chain to collapse. Intermediate lemmas act as checkpoints inserted into the long chain, allowing the model to focus attention on local subproblems.
- Implications for prompt engineering. In complex reasoning scenarios, rather than expecting a model to produce a complete answer in one pass, it is better to build a reasoning scaffold through multi-turn interaction and staged verification. This approach aligns closely with common best practices such as chain-of-thought prompting, decomposed problem solving, and self-consistency verification.
4. Construction Tasks: AI Begins to Exceed Human Records
If AI is still catching up with humans in theorem proving, there are already cases in construction tasks where AI exceeds existing human records.
4.1 Extremal Graph Construction
In a classic extremal combinatorics problem, the task is to construct a graph that is as dense as possible while containing no short cycles. The strongest model produced a construction with 124 vertices and 630 edges that contains neither triangles nor quadrilaterals, exceeding the 629-edge reference record cited by the study. Such problems suit AI because the combinatorial structure of the solution space is extremely large. Human mathematicians usually rely on intuition, analogy, and local adjustment, while models can explore regions humans have not tried through large-scale search and learned construction patterns.
4.2 Quantum Error-Correcting Code Design
Another case of exceeding prior results occurred in quantum information. The model constructed a quantum error-correcting code that raised the minimum distance—a key metric—from the reference record of 5 to 6. Minimum distance directly determines the number of errors a code can correct, and every increment represents a substantial improvement in error-correction capability. This result shows that large models can not only reproduce existing mathematical knowledge but also provide incremental contributions to research on specific structured search problems.
5. Technical Interpretation: Why Construction Tasks Suit AI
Comparing theorem proving and construction tasks reveals several insights:
- The symmetry of verification difficulty differs. Theorem proving requires a model to derive step by step from axioms, and one wrong step ruins the whole proof. A construction problem only requires a candidate object, and a verifier can immediately determine whether it satisfies all constraints. The latter has a shorter generation-verification loop and is better suited to combination with search-based methods.
- The search space is samplable. Construction problems naturally fit a loop of generating many candidates, machine verification, and feedback iteration. The model can act as a high-quality candidate generator.
- The sparsity of human priors becomes an opportunity. In niche directions with less human research, models are less anchored by existing solutions in training data and may explore novel structures.
6. Implications for Developers and Engineering Practice
This study offers several lessons for practical AI engineering:
- Evaluate on “hard” tasks. On saturated traditional benchmarks, differences among top models are minimal. Capability differences only become visible on difficult tasks that require genuine reasoning. When selecting models, enterprises should focus on high-difficulty evaluation sets that can be strictly verified.
- Build verifiers before generators. Whether for code generation or mathematical reasoning, an automated verification and feedback loop can significantly improve final output quality.
- Staged reasoning is better than single-shot generation. Decomposing complex tasks into independently verifiable subgoals, then solving and assembling them, is an effective architecture for dealing with error accumulation in long-chain reasoning.
- AI already has practical value as a research assistant. In combinatorial search, parameter optimization, counterexample construction, and similar directions, AI can become a “super assistant” for researchers rather than a simple knowledge question-answering tool.
7. Conclusion
The core message from this round of evaluation is twofold. On one hand, large models still have clear shortcomings in rigorous reasoning that requires autonomous planning, and most models can barely complete frontier theorem proofs independently without hints. On the other hand, with appropriate scaffolding, and in construction tasks coupled with machine verification, models can already match or even exceed published human records. As reasoning strategies, verification loops, and human-AI collaboration paradigms continue to evolve, AI’s role in theoretical computer science and mathematical research will gradually move from “problem solver” to “exploration partner.” For the technical community, now is the right time to pay attention to and participate in this direction.
