Manuscript Offprint
arXiv:2608.20153FormalTCS: Benchmarking End-to-End Frontier Formal Theoretical Computer Science Research of Large Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Large language models (LLMs) have shown growing capabilities for automated theoretical computer science (TCS) research, while existing benchmarks remain far from realistic research settings. We introduce FormalTCS, a benchmark for evaluating LLMs on frontier, end-to-end TCS research. FormalTCS contains instances drawn from papers accepted to top-tier TCS conferences in 2025-2026. For each instance, we annotate the theorem statements and proof processes in both natural and formal languages to evaluate the main bottlenecks of existing LLMs in TCS. Evaluations of leading LLMs reveal that current models remain far from reliably completing the full TCS research pipeline. In particular, we reveal that autoformalization is the sharpest bottleneck of TCS auto research, where the best model achieves only for translating natural-language claims into formal theorem statements, compared with Pass@8 when proving human-provided formal statements. Building on FormalTCS, we further develop an automated TCS research framework that generates, formalizes, filters, and proves new claims. Of generated claims, only ultimately pass expert evaluation and proof verification, indicating that beyond formalization, limited research taste remains another major barrier to autonomous TCS research.
1 Introduction
Theoretical computer science (TCS) studies the fundamental principles of computation through mathematical methods, including models of computation, algorithms, computational complexity, and the limits of computability (van Leeuwen, 1990; Wigderson, 2019). TCS is an important research topic, as it provides the theoretical foundation for understanding which problems can be computed and how efficiently they can be solved. Given the fundamental importance of TCS and the increasingly strong autonomous research capabilities demonstrated by large language models (LLMs) (Chen et al., 2025), a growing body of work has begun to investigate how well LLMs can perform TCS-related research tasks. For example, LCS-Bench (Feng et al., 2026b) constructs a benchmark from TCS knowledge extracted from textbooks, while TCS-Bench (Cohen-Addad et al., 2026) evaluates LLMs in generating proofs of TCS theorems from natural-language statements.
However, existing TCS benchmarks still have a gap from real-world TCS research due to the following: (i) Incomplete research process. Existing TCS benchmarks primarily evaluate isolated capabilities, such as autoformalization or proof generation. They do not provide an end-to-end evaluation of whether LLMs can conduct TCS research from scratch, making it difficult to identify where current models fail throughout the research process. (ii) Outdated TCS content. Existing benchmarks are largely constructed from textbook material or theorems already available in libraries such as Mathlib (Moura and Ullrich, 2021). As a result, they provide limited insight and may also suffer from the fact that related material has appeared in the model’s training data. (iii) Simplified theorem settings. Existing benchmarks typically focus on relatively self-contained theorems with complete and explicit definitions. In contrast, real TCS papers involve paper-specific definitions and assumptions, as well as multi-layered dependencies among lemmas and theorems. Existing benchmarks, therefore, fall short of measuring whether LLMs can conduct real-world TCS research.
To bridge these gaps, we introduce FormalTCS, a benchmark designed to provide a more realistic evaluation of frontier TCS research. We employ five human experts to collect and annotate theorems from papers accepted by top conferences in TCS. Compared with existing benchmarks, FormalTCS provides a more faithful evaluation of TCS research capabilities: (i) End-to-end evaluation. FormalTCS decomposes TCS research into five stages and evaluates, step by step, an LLM’s ability to transform a natural-language TCS core claim into a corresponding rigorous Lean proof. This design enables a fine-grained diagnosis of the capabilities and bottlenecks of LLMs throughout the TCS research process. (ii) Frontier research content. FormalTCS is constructed from papers accepted to FOCS, STOC, SODA, and COLT in 2025 and 2026. We additionally filter the source papers based on whether they are likely to have been previously exposed to the evaluated LLMs, thereby maintaining the timeliness of the benchmark while reducing the risk of data contamination. (iii) Realistic research theorems. FormalTCS evaluates core theorems drawn directly from real TCS papers while preserving their paper-specific definitions, assumptions, and proof dependencies. It therefore measures the ability to reason about and prove research-level results more accurately.
Table 1: The main findings revealed by FormalTCS.
| Finding | Evidence |
|---|---|
| Current LLMs remain far from TCS research end-to-end | §4.2 |
| Autoformalization is the sharpest bottleneck of automatic TCS research | §4.2 |
| Current LLMs struggle to generate novel and valuable claims of TCS | §5 |
We evaluate a range of leading LLMs on FormalTCS, with the findings summarized in Table 1. Overall, current LLMs still struggle to perform end-to-end TCS research effectively, demonstrating the necessity of FormalTCS. In particular, we find that the primary bottleneck lies in translating a natural-language core claim into appropriate formal definitions and theorem statements, where the current most advanced LLMs can only achieve the performance of . This suggests that the mathematical modeling capabilities of current LLMs remain a major limitation for TCS research. In addition, building on FormalTCS, we develop an end-to-end TCS research framework that supports the complete pipeline from proposing a TCS core claim to producing a rigorous Lean proof. Our experiments show that existing LLMs can produce rigorous proofs for the core claims they propose themselves. However, human inspection reveals that most of these claims exhibit limited novelty, suggesting that the research taste of current models remains underdeveloped.
Our contributions can be summarized as follows:
- We introduce FormalTCS, a benchmark based on real research theorems for evaluating the end-to-end capabilities of LLMs in frontier TCS research.
- Our experiments reveal that a key bottleneck for current LLMs is translating natural-language core claims into appropriate formal definitions and theorem statements, indicating that mathematical modeling remains a major weakness of current LLMs.
- Building on FormalTCS, we develop an end-to-end research framework for TCS and find that the ability of current LLMs to formulate novel and meaningful research claims remains limited.
2.1 Overall Statistics
26211016999888766Learning Theory Optimization Statistics & Testing Complexity & Lower Bounds Fairness & Privacy Algorithms & Data Struct. Online Learning & Bandits Econ. & Game Theory Coding & Communication Algebra & CSP Graphs & Combinatorics Geometry & Clustering Neural & Generative Models
Figure 1: The distribution of research areas covered by FormalTCS.
FormalTCS is designed to evaluate the capabilities of LLMs in frontier end-to-end TCS research. It consists of instances, each derived from a distinct research paper, covering papers in total. We use Lean 4.32.2 (Moura and Ullrich, 2021) together with the corresponding version of Mathlib, which is the latest version available at the time of annotation. We ensure the quality of FormalTCS along the following dimensions: (i) High difficulty. Across all instances, the expert-validated Lean proofs contain an average of statements, nodes, and proof lines, indicating that the benchmark involves substantial formalization and proof complexity. (ii) High diversity. As shown in Figure 1, FormalTCS spans major research areas in TCS. This broad coverage enables the benchmark to evaluate LLM research capabilities across a diverse range of TCS research.
2.2 Data Format
Table 2: Data fields of FormalTCS.
| Category | Name | Type | Meaning |
|---|---|---|---|
| Metainfo | id | string | Data id. |
| conference | string | Conference of the accepted paper. | |
| year | int | Accepted year of the paper. | |
| paper | string | Name of the paper. | |
| core_label | string | LaTeX label in the paper of claim used. | |
| Natural Language | core_claim | string | Core finding of core_label claim. |
| nl_theorem | string | Full statement of core_label claim. | |
| nl_proof | string | Proof sketch of core_label claim. | |
| Formal Language | fl_theorem | Lean file | Theorem to be proved of core_label claim. |
| fl_proof | Lean project | Full Lean-format proof of core_label claim. |
The data format of FormalTCS is summarized in Table 2. Each instance contains information corresponding to the different stages of the end-to-end TCS research pipeline, enabling us to diagnose the capabilities and bottlenecks of current LLMs at each stage of the research process. Importantly, every instance is accompanied by a rigorous Lean proof that has been manually verified by experts, which ensures the correctness and reliability of the formalization and, consequently, the overall quality of FormalTCS. We provide representative cases from FormalTCS in Appendix C.1.
3 Annotation of FormalTCS

Figure 2: The annotation pipeline of FormalTCS.
This section introduces the annotation pipeline used to construct FormalTCS, as illustrated in Figure 2. Five human experts participate in the annotation process. Each annotator has published multiple papers at top-tier TCS conferences and has substantial research experience in the field. Given the considerable difficulty of formalizing proofs from the selected papers, we employ GPT-5.6-sol alongside Codex to reduce annotation costs while maintaining data quality. It should be noted that although the LLM is used as an assistive tool, all final annotations are manually inspected and revised to ensure semantic faithfulness, type correctness, and concise formulations, rather than preserving stylistic artifacts introduced by the LLM. The prompts used during annotation are provided in Appendix B.1, while Appendix A reports information about the annotators and additional annotation details. Additional results on human verification pass rates are provided in Appendix E.
3.1 Source Paper
Our source-paper pool consists of papers accepted to STOC, FOCS, SODA, and COLT in 2025 and 2026. This selection is intended to ensure a high level of research quality while reducing the likelihood of benchmark contamination. We first use automated scripts to scan all accepted papers and perform an initial filtering step to identify works that appear to study TCS problems. Human experts then manually inspect every candidate paper to verify its relevance and determine whether it contains a suitable core result together with a rigorous proof of that result. We download the LaTeX source files of these papers from arXiv for subsequent annotation steps.
To ensure that FormalTCS genuinely evaluates TCS research capabilities, we conduct a black-box audit to assess whether the retained papers may have been exposed during model training. Specifically, we query GPT-5.6-sol and Claude-Opus-5 without retrieval access or paper metadata. The inputs consist of partial theorem statements, initial fragments of proofs, and anonymized descriptions of paper results, and the models are asked to reconstruct the missing content. We find that the completion similarity of both models is below , suggesting a relatively low risk of contamination for the selected data. The detailed black-box audit is discussed in Appendix G.
3.2 Core Claim
For each retained paper, human experts produce a concise summary of one of its central theoretical results as overall guidance for the evaluation. The summary must contain fewer than words and should avoid mathematical notation whenever it is not necessary so that the resulting claim is both compact and understandable without additional context. When multiple claims from the same paper could reasonably serve as the core claim, annotators select the one that best represents the paper’s central contribution. This criterion reflects the primary objective of FormalTCS, which is to evaluate whether an LLM can recover the relevant theorem and its proof from a given core claim, rather than whether the model can identify which result in a paper is the most important. For each paper, two experts independently write candidate core claims. A third expert then compares the two candidates and selects the stronger formulation as the final annotation.
3.3 Natural Language Theorem
We next construct a natural-language claim corresponding to the theorem in the source paper associated with the selected core claim. Experts first collect all definitions used by the theorem corresponding to the core claim in the source paper. They then rewrite the theorem while preserving its core conclusion to explicitly incorporate these definitions and obtain the natural-language theorem, ensuring that the annotated theorem is self-contained. Notably, the theorem corresponding to the core claim may rely on standard domain-specific notions that are not defined in the paper itself (e.g., the multivariate theta transform and the matrix Chernoff bound). We do not supplement such definitions so that FormalTCS can more faithfully evaluate LLMs’ capabilities for TCS research.
3.4 Formal Language Theorem and Proof
In this step, we construct the formal theorem to be proved and its corresponding Lean proof for each instance, providing a reliable basis for evaluating the TCS proof capabilities of LLMs. Following previous works (Khrulev, 2026; Zhang et al., 2026), we first use the LLM, together with the source-paper content, to generate a proof-blueprint DAG for the selected core claim. Human experts then verify that the resulting blueprint faithfully follows the proof structure of the original paper and that the statement associated with each node is consistent with its corresponding result in the source paper. We subsequently invoke the LLM to prove the nodes in the DAG one by one according to their dependency order based on the original paper. After each node is proved, a human expert checks that the Lean proof is rigorous and faithful to the corresponding argument in the original paper and verifies that no proof-bypassing constructs such as sorry or additional axioms are used. Once the complete Lean proof has been constructed, another human expert performs an independent end-to-end review and fixes any remaining issues. The resulting verified artifact is used as the final formal-language proof. Finally, we extract from this proof the formal theorem to be proved, together with the definition of closure required to state it, and replace the proof body with sorry. The resulting artifact constitutes the formal-language theorem provided to the model as the proof-generation task.
3.5 Natural Language Proof
Our preliminary experiments indicate that current LLMs often struggle to generate rigorous proofs directly from formal-language theorem statements. We therefore additionally annotate a natural-language proof sketch, allowing us to diagnose model limitations at a finer level of granularity. Each sketch summarizes the main proof ideas used in the source paper, enabling us to evaluate whether an LLM can identify an appropriate high-level proof strategy before carrying out the formal derivation. To obtain an initial draft, we provide the LLM with both the verified formal proof and the original paper and ask it to generate a natural-language proof sketch. A human expert then checks whether the generated sketch is faithful to the proof strategy in the source paper and whether its reasoning is sufficiently complete. Finally, unnecessary low-level derivations and details are removed so that the resulting sketch remains concise while faithfully capturing the overall argument.
4 Experiment
In this section, we evaluate a diverse set of mainstream LLMs on FormalTCS to investigate the extent to which current models are capable of conducting frontier TCS research. Rather than treating aggregate benchmark performance as the sole measure of success, we focus on the capabilities required at each stage of the research pipeline and the corresponding failure modes revealed by FormalTCS. This stage-wise evaluation provides a more fine-grained view of where current LLMs perform well in the TCS research workflow and where substantial challenges remain. All prompts used in our experiments are provided in Appendix B.2.
4.1 Experiment Setup
Models
Given the substantial difficulty of theoretical reasoning tasks, we evaluate three representative families of mainstream LLMs, including GPT (OpenAI, 2026), Claude (Anthropic, 2026), and DeepSeek (DeepSeek-AI, 2026), using their corresponding harnesses. The selected models cover a range of model scales across these families, enabling us to examine both cross-family differences and the relationship between model scale and TCS research performance. This allows for a more comprehensive characterization of the capabilities and limitations of current LLMs on TCS research. Detailed model snapshots and harness versions are provided in Appendix D.
Task
Table 3: Tasks in FormalTCS.
| Task | Input | Output |
|---|---|---|
| Theorem Elicitation (CC2NT) | Core Claim | NL Theorem |
| Autoformalization (NT2FT) | NL Theorem | FL Theorem |
| Proof Elicitation (T2NP) | NL Theorem, FL Theorem | NL Proof |
| Theorem Proving (FT2FP) | FL Theorem | FL Proof |
FormalTCS consists of four tasks that jointly cover the full process of TCS research. Table 3 provides detailed definitions of the four tasks. To evaluate each stage independently, we provide human-annotated inputs for every task rather than using predictions from the preceding stage as inputs. This design prevents errors introduced early in the pipeline from propagating to subsequent tasks, thereby allowing us to identify the sources of performance degradation more precisely. The results reported in Table 4 further motivate this stage-wise evaluation, as current LLMs remain unable to reliably complete the entire TCS research pipeline in an end-to-end manner.
Metrics
We adopt task-specific evaluation metrics to measure different aspects of capabilities:
- LLM-Rubric (Ma et al., 2026) (CC2NT, T2NP): We adopt an LLM-based rubric to evaluate the semantic consistency. Each response receives four scores normalized to the range, corresponding to logical validity (), completeness (), correctness (), and clarity (). The rubric is calculated as . To reduce evaluation bias, we use Qwen3.8-Max with QoderCLI (Qwen Team, 2026) as the rubric evaluator, which is distinct from all experimental LLMs. We additionally examine the rubric agreement between LLM-based and human evaluations in Appendix F.
- BEq+ (Poiroux et al., 2025) (NT2FT): For the autoformalization task, we adopt BEq+, which determines whether a Lean statement is equivalent to the reference statement through bidirectional proving. Given a reference theorem and a generated candidate theorem , the metric attempts to prove both and in Lean. Unlike evaluation methods based on LLM judges, this procedure relies on deterministic symbolic proof search. A candidate theorem is considered equivalent to the reference theorem only if proofs in both directions are successfully constructed.
- Pass@ (Dong et al., 2024) (FT2FP): For the theorem-proving task, we use Pass@, which measures the proportion of instances for which at least one of the sampled proofs is accepted by the Lean compiler. The metric therefore reflects the probability that the model produces at least one syntactically valid and formally verified proof across multiple generation attempts. To prevent bypassing proof obligations, our automated verification environment enables set_option warningAsError true and uses a custom linter or #print axioms with an explicit axiom whitelist, thereby ruling out sorry, custom axiom declarations, and similar shortcuts.
Generation Parameters
Following the experimental settings of prior work on formal reasoning (Ren et al., 2025; Lin et al., 2025), we generate candidate outputs for each instance in the NT2FT and FT2FP tasks to balance evaluation cost and reliability while using a single generation for CC2NT and T2NP. We adopt different generation settings because Lean outputs admit reliable automatic verification, allowing us to sample multiple formal candidates and evaluate them objectively using symbolic verification. In contrast, natural-language responses lack an equally reliable automatic verifier, making single-sample evaluation more appropriate for these tasks. For tasks requiring multiple generations, we use a temperature of and set top_p to . For single-generation experiments, we use deterministic decoding with a temperature of and top_p of .
4.2 Experimental Results
Table 4: Performance of mainstream LLMs with their corresponding harnesses on FormalTCS. The best performance on each task is marked in bold.
| Model | Harness | Scale | CC2NT | NT2FT | T2NP | FT2FP |
|---|---|---|---|---|---|---|
| GPT-5.6 | Codex | luna | ||||
| terra | ||||||
| sol | ||||||
| Claude | Claude Code | Haiku-4.5 | ||||
| Sonnet-5 | ||||||
| Opus-5 | ||||||
| DeepSeek-V4 | DeepSeek Harness | Flash | ||||
| Pro |
Table 4 reports the evaluation results. Overall, Claude-Opus-5 achieves the best performance on most tasks, indicating the strongest TCS research capability. Beyond the overall comparison, the results reveal several important findings about the capabilities and limitations of current LLMs.
Finding 1: Current LLMs Struggle with End-to-End TCS Research
Our results show that even the strongest current models remain limited when completing the full TCS research pipeline. For example, although the best-performing model, Claude-Opus-5, achieves scores of and on natural-language claim understanding and proof-strategy generation, respectively, substantial bottlenecks remain in the formal stages of the pipeline, with its final formal proof generation performance reaching only Pass@8. These results suggest that although current LLMs exhibit meaningful theoretical reasoning capabilities, they still struggle to reliably complete the end-to-end TCS research process from a high-level research claim to a machine-verifiable formal proof.
Finding 2: Formalization Tasks are more Difficult than Natural-Language Tasks
The results show that LLMs perform substantially better on natural-language tasks than on formalization tasks. For example, Claude-Opus-5 achieves on proof elicitation, whereas its performance on the corresponding theorem formalization task is only . Similarly, GPT-5.6-sol achieves on proof elicitation but only on theorem autoformalization. This substantial performance gap suggests that current LLMs can understand and articulate high-level theoretical ideas considerably better than they can translate those ideas into rigorous formal representations.
Finding 3: Autoformalization is the Primary Bottleneck for LLM-Based TCS Research
Across the entire pipeline, theorem autoformalization is the lowest-performing stage, with no evaluated model exceeding . In contrast, when provided with a human-annotated formal theorem statement, models achieve up to Pass@8 on the subsequent formal proof generation task. This result suggests that the primary difficulty for current models is not merely generating Lean proofs. Rather, the more fundamental challenge lies in correctly identifying the mathematical objects, assumptions, and logical structure underlying a natural-language claim and translating them into appropriate formal definitions and theorem statements. Improving autoformalization capabilities is therefore a key direction toward enabling LLMs to conduct automated end-to-end TCS research.
5 End-to-End Automated TCS Research with FormalTCS

Figure 3: Our automatic end-to-end TCS research framework using LLMs based on FormalTCS, which consists of three steps: (i) Agent-Loop Generation: Generating the candidate TCS claims. (ii) Human-Expert Evaluation: Filtering novel and valuable claims. (iii) Verification: Generating theorems and proofs based on claims, which is the same as in §4.
Although FormalTCS primarily focuses on evaluating theoretical reasoning capabilities rather than the quality of newly proposed research ideas, generating meaningful TCS core claims remains an essential component of a fully automated research framework. Directly evaluating such claims is challenging since determining whether a research idea is genuinely novel is still an open problem and lacks reliable evaluation metrics (Si et al., 2025; Si et al., 2026). To investigate this capability, we develop a multi-agent framework in this section that enables LLMs to propose candidate claims, translate them into formal statements, and automatically filter them before human evaluation. In contrast to §4, which primarily evaluates the bottlenecks of current LLMs in TCS research, this section investigates whether current LLMs, when guided by FormalTCS, can autonomously discover valuable TCS claims and produce correct end-to-end proofs for them. The overall system is illustrated in Figure 3 and the prompts used in this section are provided in Appendix B.3.
5.1 Framework Design
5.1.1 Agent-Loop Generation
Our framework is inspired by the iterative nature of real-world TCS research. Researchers typically do not commit to a fixed theorem formulation from the outset. Instead, they repeatedly revise assumptions, definitions, modeling choices, and proof directions until they identify a result worth pursuing. We simulate this iterative process using three agents: a planner, a formalizer, and a judger.
Planner.
Based on the examples of FormalTCS and the derivations accumulated so far, the planner proposes a new TCS research objective. The objective is not restricted to extending the current line of reasoning. The planner may reformulate the objective, introduce auxiliary concepts, strengthen or relax assumptions, or explore alternative analytical directions. This flexibility allows the system to search over a diverse space of potential theoretical research directions while keeping each objective plausibly formalizable in Lean 4 with Mathlib.
Formalizer.
The formalizer translates the proposed research objective into a precise Lean statement and repeatedly queries the Lean compiler to identify and correct formalization errors, ensuring that the objective can be strictly formalized. For each proposal, we allow at most three rounds of compiler feedback. Candidate claims that still fail to compile within this interaction budget are discarded from the subsequent pipeline, and the failure information is returned to the planner.
Judger.
Once a formal statement successfully compiles, the judge translates it back into a concise natural-language claim that summarizes its potential theoretical significance and assesses the value of the proposed result. If the claim is judged to lack sufficient novelty, it is discarded, and the corresponding feedback is returned to the planner. Claims that pass this filtering stage are added to a candidate pool and subsequently evaluated by human experts.
All agents operate within a shared workspace using GPT-5.6-sol together with Codex. At initialization, the workspace contains only data from FormalTCS as the guidance. Each agent can freely read or write to the shared workspace while proposing and validating new claims. For each claim, every agent maintains exactly one persistent session, allowing the corresponding context to be reused throughout the iterative process. To ensure the generation quality and diversity, each run generates only one claim. To encourage diversity across generated claims in different runs, at the beginning of each new generation run, we randomly sample instances from FormalTCS, place them in the workspace, and use a temperature of and set top_p to .
5.1.2 Human-Expert Evaluation
We next conduct a human evaluation of the candidate claims retained after the agent-based generation and filtering process. As an initial screening step, human experts remove candidates whose conclusions have already been established in the existing literature. The remaining claims are then evaluated according to two criteria: whether they provide a sufficiently novel observation and whether that observation has potential value for TCS research. Each candidate claim is independently reviewed by two experts to reduce subjectivity in the evaluation process. Since automatically and reliably estimating novelty and research value is itself a difficult research problem, we do not incorporate an automated claim-quality evaluator into the current framework. We instead view this capability as an important direction for future work. For every claim retained after expert evaluation, we subsequently follow the stage-wise procedure introduced in §4 to construct its corresponding formal statement and formal proof, ensuring that the resulting claims are rigorously and reliably verified.
5.2 Experimental Results
64 generated cases8 cases passed human-expert evaluation39Lack of novelty 17Lack of value 2No proof 6Proof available 8Remaining zoom-in of the8 remaining
Figure 4: The distribution of generated TCS cases using our framework.
Based on the framework described above, we use the agent loop to synthesize core claims, of which remain after human-expert evaluation and proof verification. The pass rates at each stage are shown in Figure 4. We also present two representative cases of the accepted claims in Appendix C.2. These results indicate that, for current LLMs, the primary bottleneck in conducting end-to-end TCS research lies in generating claims that are both novel and valuable, suggesting that their research taste remains limited. Therefore, in addition to improving autoformalization capabilities as discussed in §4.2, advancing the end-to-end TCS research capabilities of LLMs also requires a substantially stronger research taste. Interestingly, among the claims that pass human-expert evaluation, the proof success rate is substantially higher than the FT2FP performance reported in Table 4. The explanation is that these claims are generated by the LLMs themselves, making it easier for the LLMs to construct proofs for claims that align with their own reasoning trajectories.
6 Related Work
LLM for TCS refers to the use of LLMs, together with tools such as formal proof assistants, program execution, and search algorithms, to assist with or automate theorem proving, algorithm discovery, and research exploration in theoretical computer science. Its development can be roughly divided into three stages. Early works, including Autoformalization (Wu et al., 2022), Draft, Sketch, and Prove (Jiang et al., 2023), LeanDojo (Yang et al., 2023), and DeepSeek-Prover (Xin et al., 2024; Xin et al., 2025), primarily explored the translation of natural-language mathematics into formal proofs, as well as the use of retrieval, proof-assistant feedback, and search to improve machine-verifiable reasoning capabilities. Meanwhile, FunSearch (Romera-Paredes et al., 2024) began combining LLMs with program search to automatically discover new constructions and algorithms for problems in combinatorics and algorithms. Since 2025, research has increasingly targeted TCS directly. AlphaEvolve (Novikov et al., 2025) combines LLMs with evolutionary search for the discovery of algorithms and combinatorial structures. Lean Meets TCS (Zhang et al., 2025b) introduced a systematic evaluation of formal reasoning capabilities on TCS problems. Related work has further used automated search to improve gadgets and hardness bounds in complexity theory (Nagda et al., 2026). More recently, LLM for TCS has begun to enter the research-level stage. Systems such as Gemini (Woodruff et al., 2026), Aletheia (Feng et al., 2026a), and Bolzano (Balko et al., 2026) attempt to solve open problems in mathematics and TCS through long-horizon reasoning, multi-agent collaboration, and automated verification. Meanwhile, works such as AlphaProof Nexus (Tsoukalas et al., 2026) and TCS-Bench (Cohen-Addad et al., 2026) have extended evaluation toward research-level formal proofs and theorems drawn from actual conference papers. Overall, LLM for TCS is evolving from reasoning about and proving existing theorems toward the discovery of algorithms and combinatorial structures, and ultimately toward automated research on open problems.
Despite this progress, existing LLM-for-TCS studies remain disconnected from realistic TCS research by evaluating only partial research pipelines, relying largely on textbook, synthetic, or potentially memorized problems, and simplifying research theorems into relatively self-contained tasks that omit paper-specific definitions, assumptions, and multi-level proof dependencies. To bridge these gaps, FormalTCS provides an end-to-end, fine-grained evaluation pipeline grounded in recent STOC, FOCS, SODA, and COLT papers with leakage-aware filtering while preserving the structure of real research problems and providing expert-verified Lean formalizations and proofs.
7 Conclusion
We introduce FormalTCS, a benchmark for evaluating LLMs across the end-to-end frontier TCS research. Our experiments show that current LLMs perform substantially better at understanding and reasoning about TCS problems in natural language than at expressing them formally, with autoformalization emerging as the primary bottleneck. Moreover, our automated research experiments show that models can often prove claims that survive expert screening, but only a small fraction of their proposed claims are sufficiently novel and valuable. Together, these results suggest that progress toward autonomous TCS research requires advances along two complementary dimensions, including accurately translating research ideas into rigorous formal objects and developing a stronger research taste for identifying meaningful theoretical claims.
References
Anthropic Claude Opus 5 System Card. External Links: Link Cited by: §4.1.
M. Balko, J. Grebík, P. Hubáček, M. Koutecký, M. Kripner, V. Rozhoň, R. Šámal, and A. Zámečník Bolzano: case studies in llm-assisted mathematical research. External Links: 2604.16989, Link Cited by: §6.
Q. Chen, M. Yang, L. Qin, J. Liu, Z. Yan, J. Guan, D. Peng, Y. Ji, H. Li, M. Hu, Y. Zhang, Y. Liang, Y. Zhou, J. Wang, Z. Chen, and W. Che AI4Research: a survey of artificial intelligence for scientific research. External Links: 2507.01903, Link Cited by: §1.
V. Cohen-Addad, D. Paparas, E. van Wijland, M. Springer, J. Canitrot-Paradis, H. Lin, D. Woodruff, A. Kumarappan, R. Jayaram, R. Das, L. Jain, O. Svensson, S. Lattanzi, M. Balunovic, T. Weber, and V. Mirrokni TCS-bench: benchmarking state-of-the-art generative ai theoretical computer science research ability. External Links: 2608.09538, Link Cited by: §1, §6.
DeepSeek-AI DeepSeek-v4: towards highly efficient million-token context intelligence. Cited by: §4.1.
K. Dong, A. V. Mahankali, and T. Ma Formal theorem proving by rewarding LLMs to decompose proofs hierarchically. In The 4th Workshop on Mathematical Reasoning and AI at NeurIPS’24, External Links: Link Cited by: 3rd item.
T. Feng, T. H. Trinh, G. Bingham, D. Hwang, Y. Chervonyi, J. Jung, J. Lee, C. Pagano, S. Kim, F. Pasqualotto, S. Gukov, J. N. Lee, J. Kim, K. Hou, G. Ghiasi, Y. Tay, Y. Li, C. Kuang, Y. Liu, H. Lin, E. Z. Liu, N. Nayakanti, X. Yang, H. Cheng, D. Hassabis, K. Kavukcuoglu, Q. V. Le, and T. Luong Towards autonomous mathematics research. External Links: 2602.10177, Link Cited by: §6.
Y. Feng, F. Pu, O. An, O. Bastani, L. Zhang, J. Huang, X. Si, and Z. Li Theory-scale auto-formalization of logics for computer science. External Links: 2606.26525, Link Cited by: §1.
S. Golchin and M. Surdeanu Time travel in llms: tracing data contamination in large language models. CoRR abs/2308.08493. External Links: Link, Document, 2308.08493 Cited by: Appendix G.
S. Hallinan, J. Jung, M. Sclar, X. Lu, A. Ravichander, S. Ramnath, Y. Choi, S. P. Karimireddy, N. Mireshghallah, and X. Ren The surprising effectiveness of membership inference with simple n-gram coverage. External Links: 2508.09603, Link Cited by: Appendix G.
A. Q. Jiang, S. Welleck, J. P. Zhou, T. Lacroix, J. Liu, W. Li, M. Jamnik, G. Lample, and Y. Wu Draft, sketch, and prove: guiding formal theorem provers with informal proofs. In The Eleventh International Conference on Learning Representations, External Links: Link Cited by: §6.
R. Khrulev BlueprintRepair: typed local edits for failed lean proof blueprints. External Links: 2607.28110, Link Cited by: §3.4.
Y. Lin, S. Tang, B. Lyu, J. Wu, H. Lin, K. Yang, J. LI, M. Xia, D. Chen, S. Arora, and C. Jin Goedel-prover: a frontier model for open-source automated theorem proving. In Second Conference on Language Modeling, External Links: Link Cited by: §4.1.
W. Ma, A. Cojocaru, N. Kolhe, H. Zhang, V. Zhuang, M. Zaharia, and S. Min Reliable fine-grained evaluation of natural language math proofs. In The Fourteenth International Conference on Learning Representations, External Links: Link Cited by: 1st item.
L. d. Moura and S. Ullrich The lean 4 theorem prover and programming language. In Automated Deduction – CADE 28: 28th International Conference on Automated Deduction, Virtual Event, July 12–15, 2021, Proceedings, Berlin, Heidelberg, pp. 625–635. External Links: ISBN 978-3-030-79875-8, Link, Document Cited by: §1, §2.1.
A. Nagda, P. Raghavan, and A. Thakurta Reinforced generation of combinatorial structures: hardness of approximation. External Links: 2509.18057, Link Cited by: §6.
A. Novikov, N. Vũ, M. Eisenberger, E. Dupont, P. Huang, A. Z. Wagner, S. Shirobokov, B. Kozlovskii, F. J. R. Ruiz, A. Mehrabian, M. P. Kumar, A. See, S. Chaudhuri, G. Holland, A. Davies, S. Nowozin, P. Kohli, and M. Balog AlphaEvolve: a coding agent for scientific and algorithmic discovery. External Links: 2506.13131, Link Cited by: §6.
OpenAI GPT-5.6 Sol Model. External Links: Link Cited by: §4.1.
A. Poiroux, G. Weiss, V. Kunčak, and A. Bosselut Reliable evaluation and benchmarks for statement autoformalization. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, C. Christodoulopoulos, T. Chakraborty, C. Rose, and V. Peng (Eds.), Suzhou, China, pp. 17947–17969. External Links: Link, Document, ISBN 979-8-89176-332-6 Cited by: 2nd item.
Qwen Team Qwen3.8-Max: a new bar for coding and cowork. External Links: Link Cited by: 1st item.
Z. Z. Ren, Z. Shao, J. Song, H. Xin, H. Wang, W. Zhao, L. Zhang, Z. Fu, Q. Zhu, D. Yang, Z. F. Wu, Z. Gou, S. Ma, H. Tang, Y. Liu, W. Gao, D. Guo, and C. Ruan DeepSeek-prover-v2: advancing formal mathematical reasoning via reinforcement learning for subgoal decomposition. External Links: 2504.21801, Link Cited by: §4.1.
B. Romera-Paredes, M. Barekatain, A. Novikov, M. Balog, M. P. Kumar, E. Dupont, F. J. R. Ruiz, J. S. Ellenberg, P. Wang, O. Fawzi, P. Kohli, and A. Fawzi Mathematical discoveries from program search with large language models. Nature 625 (7995), pp. 468–475. External Links: ISSN 1476-4687, Document, Link Cited by: §6.
C. Si, T. Hashimoto, and D. Yang The ideation-execution gap: execution outcomes of LLM-generated versus human research ideas. In The Fourteenth International Conference on Learning Representations, External Links: Link Cited by: §5.
C. Si, D. Yang, and T. Hashimoto Can LLMs generate novel research ideas? a large-scale human study with 100+ NLP researchers. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: §5.
G. Tsoukalas, A. Kovsharov, S. Shirobokov, A. Surina, M. Firsching, G. Bérczi, F. J. R. Ruiz, A. Suggala, A. Z. Wagner, E. Wieser, L. Yu, A. Huang, M. Z. Horváth, A. Ferraiuolo, H. Michalewski, E. Lockhart, C. Grosu, T. Hubert, M. Balog, P. Kohli, and S. Chaudhuri Advancing mathematics research with ai-driven formal proof search. External Links: 2605.22763, Link Cited by: §6.
J. van Leeuwen (Ed.) Handbook of theoretical computer science, volume A: algorithms and complexity. Elsevier and MIT Press. External Links: ISBN 0-444-88071-2 Cited by: §1.
A. Wigderson Mathematics and computation: a theory revolutionizing technology and science. Princeton University Press, United States (English). External Links: ISBN 9780691189130 Cited by: §1.
D. P. Woodruff, V. Cohen-Addad, L. Jain, J. Mao, S. Zuo, M. Bateni, S. Branzei, M. P. Brenner, L. Chen, Y. Feng, L. Fortnow, G. Fu, Z. Guan, Z. Hadizadeh, M. T. Hajiaghayi, M. JafariRaviz, A. Javanmard, K. C. S., K. Kawarabayashi, R. Kumar, S. Lattanzi, E. Lee, Y. Li, I. Panageas, D. Paparas, B. Przybocki, B. Subercaseaux, O. Svensson, S. Taherijam, X. Wu, E. Yogev, M. Zadimoghaddam, S. Zhou, Y. Matias, J. Manyika, and V. Mirrokni Accelerating scientific research with gemini: case studies and common techniques. External Links: 2602.03837, Link Cited by: §6.
Y. Wu, A. Q. Jiang, W. Li, M. N. Rabe, C. Staats, M. Jamnik, and C. Szegedy Autoformalization with large language models. NIPS ’22, Curran Associates Inc., Red Hook, NY, USA. External Links: ISBN 9781713871088 Cited by: §6.
H. Xin, D. Guo, Z. Shao, Z.Z. Ren, Q. Zhu, B. Liu, C. Ruan, W. Li, and X. Liang Advancing theorem proving in LLMs through large-scale synthetic data. In The 4th Workshop on Mathematical Reasoning and AI at NeurIPS’24, External Links: Link Cited by: §6.
H. Xin, Z.Z. Ren, J. Song, Z. Shao, W. Zhao, H. Wang, B. Liu, L. Zhang, X. Lu, Q. Du, W. Gao, H. Zhang, Q. Zhu, D. Yang, Z. Gou, Z.F. Wu, F. Luo, and C. Ruan DeepSeek-prover-v1.5: harnessing proof assistant feedback for reinforcement learning and monte-carlo tree search. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: §6.
K. Yang, A. M. Swope, A. Gu, R. Chalamala, P. Song, S. Yu, S. Godil, R. Prenger, and A. Anandkumar LeanDojo: theorem proving with retrieval-augmented language models. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS ’23, Red Hook, NY, USA. Cited by: §6.
J. Zhang, D. Das, G. Kamath, and F. Tramer Position: Membership Inference Attacks Cannot Prove That a Model was Trained on Your Data . In 2025 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), Vol. , Los Alamitos, CA, USA, pp. 333–345. External Links: ISSN , Document, Link Cited by: Appendix G.
T. J. Zhang, W. Jiang, R. Liu, Y. Wang, N. M. Wang, J. Yang, Y. Huang, and M. Sachan Lean meets theoretical computer science: scalable synthesis of theorem proving challenges in formal-informal pairs. In 2nd AI for Math Workshop @ ICML 2025, External Links: Link Cited by: §6.
Y. Zhang, Y. Sun, T. Suzuki, J. D. Lee, and F. Liu LeanMarathon: toward reliable ai co-mathematicians through long-horizon lean autoformalization. External Links: 2606.05400, Link Cited by: §3.4.
Appendix A Human Annotation Information
A.1 Annotator Information
Annotator Recruitment, Expertise, and Training
Our annotation team consists of five human experts with PhD-level backgrounds in theoretical computer science. Each annotator has published multiple papers at top-tier TCS conferences and has substantial experience in reading, analyzing, and verifying TCS-based arguments. Collectively, the team covers the major theoretical research areas represented in FormalTCS and is able to reliably trace each benchmark instance back to the definitions, assumptions, theorem statements, and proof dependencies in its source paper. Before formal annotation begins, all annotators receive the annotation manual summarized in Table 5, which specifies the requirements for each field in FormalTCS as well as consistency constraints across fields. We additionally conduct pilot annotations on a set of papers drawn from different conferences and research subfields. The pilot annotations are jointly reviewed to calibrate the desired level of detail, resolve ambiguous cases, and establish shared standards for theorem selection, self-contained rewriting, and formalization. Throughout the annotation process, GPT-5.6-sol, accessed through Codex, is used only as an assistive tool for drafting and formalization. Any model-generated annotation must be manually inspected and, when necessary, corrected before it is accepted.
Compensation
All five PhD-level annotators are members of the research team, and their annotation work is conducted as part of this research project rather than as paid crowd workers. We therefore do not provide separate per-instance crowdsourcing compensation. Model assistance is used only to reduce repetitive annotation effort, while human annotators remain fully responsible for all labels included in the final release.
Quality Control and Agreement
Throughout the annotation pipeline, we apply field-specific human verification procedures rather than relying solely on a single final review.
- For core_claim, two experts independently write candidate summaries, after which a third expert compares the two candidates and selects the final version.
- For nl_theorem, an expert verifies that the rewritten theorem is self-contained and that all definitions, assumptions, quantifiers, and conclusions remain faithful to the source paper.
- For fl_theorem and fl_proof, experts compare the formalization against the source theorem and its proof dependencies, verify that auxiliary statements preserve their intended mathematical meaning, and confirm that all Lean proofs compile successfully in the specified Lean/Mathlib environment without using proof-bypassing constructs. The completed formal proof is subsequently reviewed by another expert, who corrects any remaining semantic, typing, dependency, or proof issues before release.
- For nl_proof, annotators verify that the proof sketch follows the main strategy of the source proof while preserving the key intermediate reasoning steps and omitting only routine derivations.
We additionally perform independent cross-checks on a subset of instances to measure agreement across annotators. Disagreements and difficult cases are resolved through discussion among the expert team, and recurring ambiguities are incorporated into subsequent updates of the annotation manual.
A.2 Annotation Manual
General Principles
Table 5: Annotation manual for each field of FormalTCS.
| Category | Field Annotation Requirement |
|---|---|
| Metainfo | id Assign a unique and stable identifier to the instance. The identifier is used only for indexing and must not encode information that changes the mathematical content of the sample. conference Record the venue in which the source paper was accepted. The value must be one of STOC, FOCS, SODA, or COLT and must match the source-paper metadata. year Record the acceptance year of the source paper. For the current release, the value must be 2025 or 2026 and must be consistent with conference. paper Record the exact title of the retained source paper. Preserve the official wording so that the benchmark instance can be unambiguously traced back to its source. core_label Record the exact label of the selected central result in the source paper, such as “Theorem 1.1” or “Lemma 3.2”. The label must identify the result from which all downstream annotations are derived; do not introduce a new benchmark-specific theorem label. |
| Natural Language | core_claim Write a concise summary of the main finding expressed by core_label. The summary must contain fewer than 36 words, avoid mathematical notation unless essential, remain understandable without surrounding prose, and preserve the scope and direction of the source result. When multiple central results are plausible, select the one most suitable for recovering a concrete theorem and proof from the claim. nl_theorem Provide a self-contained natural-language statement of the result identified by core_label. Retain the original theorem statement when it is already self-contained; otherwise add only the definitions and assumptions needed to interpret it independently. Preserve all material quantifiers, conditions, parameter ranges, and conclusions from the source paper, and do not include proof steps or unrelated background. nl_proof Write a concise proof sketch of nl_theorem that follows the proof strategy used in the source paper. Include the key construction, reduction, invariant, case split, intermediate claim, or dependency needed to understand why the theorem holds, while omitting routine algebraic or technical derivations. Do not introduce an alternative argument whose correctness is not supported by the source paper. |
| Formal Language | fl_theorem Construct a standalone Lean theorem-proving instance that formalizes nl_theorem. The target theorem must be semantically equivalent to the natural-language claim, with no additional assumptions and no weakened conclusion. Include only the imports and auxiliary definitions required to state and type-check the target. In the released theorem instance, the target theorem is the unique unresolved proof obligation, while the surrounding definitions and types must compile in the designated Lean/Mathlib environment. fl_proof Provide the complete Lean project proving the target in fl_theorem. The project must compile in the designated Lean/Mathlib environment and must not use sorry, admit, new axioms, or other mechanisms that bypass the proof obligation. Auxiliary lemmas may be introduced when needed, but they must preserve the semantics and dependencies of the source argument. Human reviewers verify both the formal theorem statement and the completed proof, including all nontrivial auxiliary nodes, before release. |
Each instance in FormalTCS corresponds to a retained source paper accepted to STOC, FOCS, SODA, or COLT in 2025 or 2026, and is grounded in an explicitly identified central theorem, proposition, lemma, or corollary from that paper. Throughout the annotation process, annotators follow three principles: (i) source faithfulness, meaning that no assumption, definition, conclusion, or substantive proof step may be altered without support from the source paper; (ii) self-containment, meaning that the annotated result should be understandable without relying on unstated paper-specific context; and (iii) cross-field consistency, meaning that the natural-language and formal-language fields must describe the same target result and use mutually compatible proof strategies. Table 5 provides detailed field-level annotation guidelines.
Cross-Field Consistency Check
Before an instance is finalized, annotators jointly inspect the complete annotation chain.
- core_claim must accurately summarize the result identified by core_label.
- nl_theorem must provide a self-contained statement of the same result.
- fl_theorem must formalize the proposition expressed by nl_theorem without strengthening the assumptions or weakening the conclusion.
- fl_proof must provide a complete, machine-verifiable proof of the formal theorem, and its main proof structure should remain consistent with the annotated argument. If a revision to any field changes the mathematical meaning of the instance, all downstream fields must be re-checked and revised accordingly.
- nl_proof must summarize the core proof strategy used in the source paper.
Appendix B Prompt
B.1 Annotation
Table 6: The prompt of annotating natural language proof.
Natural-Language Proof Annotation You are given a compact source context containing a completed Lean proof. Your task is to generate only the natural-language proof summary, nl_proof. Use only the supplied context. Do not request tools, inspect files, or search the workspace. The completed Lean proof is authoritative. Any selected paper result is background and a localization hint only. If it differs from the principal theorem actually proved in the Lean context, follow the source paper and its completed proof. Requirements: • Write everything in English. • Disclose no authors, affiliations, email addresses, usernames, local paths, credentials, session identifiers, or execution metadata. • Identify the principal completed Lean declaration represented by the compact context and summarize the proof of that declaration. • The nl_proof must faithfully describe the proof strategy and main reasoning steps actually implemented by the completed Lean proof. • Preserve the logical direction and dependencies of the Lean proof. Do not introduce arguments, assumptions, intermediate claims, or proof techniques that are not supported by the supplied context. • Prefer a concise, self-contained mathematical explanation over a line-by-line description of Lean tactics or implementation details. Return only the content of nl_proof, with no label, metadata, or additional text.
Table 7: The prompt of annotating blueprint of formal language proof.
Formal-Language Blueprint Annotation Role. You are LeanArchitect, an agent that converts an unorganized natural-language mathematical proof or proof sketch into a single Lean 4 blueprint. The blueprint is the canonical interface between mathematical reasoning and downstream formal proving. Objective. Produce a blueprint that simultaneously contains: 1. a rigorous, publication-quality natural-language proof encoded in LeanArchitect @[blueprint] annotations; and 2. a formally grounded Lean skeleton whose declarations accurately express the intended mathematics. Every proof body of a blueprint lemma or theorem must be exactly sorry or sorry_using. Core Principles. • Mathematical fidelity: preserve the source theorem, hypotheses, proof structure, and logical dependencies exactly. • Formal grounding: ensure every Lean declaration is correctly typed against the installed Mathlib. A type-correct but mathematically inaccurate statement is unacceptable. • High-quality exposition: write statements and proof explanations with explicit hypotheses, quantifiers, dependencies, and rigorous justification, at the standard of a research mathematics paper. • Repair-radius minimization: decompose the proof so that uncertain, incorrect, or incomplete source steps are isolated behind small declarations with as few dependents as possible. • Context discipline: inspect only information necessary for the current phase and avoid loading irrelevant material. Hard Constraints. • Do not repair, strengthen, or complete gaps in the source mathematics. Preserve questionable steps and isolate them structurally. • Do not formalize proofs with Lean tactics or proof terms. • Use the designated Mathlib retrieval interface as the authoritative source for declaration discovery and API verification. • Validate the working blueprint with Lean diagnostics and resolve statement-level typing errors before delivery. • Respect the provided workspace and tool boundaries; use only authorized tools for file editing, version control, and delivery. Workflow. Proceed sequentially through: First reconstruct the intended mathematical argument and dependency structure. Then retrieve and verify the relevant Mathlib concepts and declarations. Next design the decomposition to minimize repair radius, write the annotated natural-language proof and Lean skeleton, and finally run Lean diagnostics before delivery. Output Standard. The final blueprint must be self-contained, mathematically faithful, structurally modular, and formally well-typed. Its natural-language annotations should make the complete intended argument understandable to a mathematician, while its Lean declarations should provide precise and stable proof obligations for downstream provers.
Table 8: The prompt of annotating formal language proof.
Formal-Language Proof Annotation Role. You are a node-level Lean formalization agent. Your goal is to complete the assigned target_node: prove its fixed Lean statement and, when necessary, polish only its local title and natural-language statement/proof descriptions. Core Principles. • Context discipline: Load only the information required by the current workflow phase. Prioritize mathematical reasoning over unrelated context. • Strict local scope: Modify only the editable region associated with target_node. Never change unrelated declarations or the formal statement of the target. • Local refinement: When the proof is decomposable, introduce complete local helper nodes—such as intermediate lemmas, case analyses, algebraic identities, bounds, or API-bridge facts—inside the target’s refinement region. Preserve the global dependency DAG and keep the target as the unique terminal node. • Completion first: The target and every newly introduced helper node must contain no sorry. A long or difficult proof, or the absence of a convenient upstream lemma, is not by itself a valid blocker. Hard Constraints. • Never alter the target Lean statement. • Never introduce axioms or use native_decide. • Do not modify files outside the explicitly allowed Lean region and procedural state/delivery records. • Use the designated MCP interfaces for Lean verification, Mathlib retrieval, dependency analysis, editing, Git operations, and repository delivery; do not bypass them with shell-based alternatives. • Treat the designated Mathlib retrieval tool as the sole source for Mathlib API discovery and the DAG tracker as the sole oracle for blueprint dependencies. Workflow. Read the runtime inputs and procedural state, determine the active phase, and execute only that phase’s required work. Progress through validation, numerical analysis when needed, prose polishing, and Lean formalization. Verify the completed proof with the provided Lean tools before delivery. If the target can be completed under the current contracts, solve it directly or by adding complete local refinements. File an issue only when there is concrete evidence that completion is impossible under the fixed specification, such as a false target statement, a genuinely missing hypothesis, inconsistent Lean/Mathlib behavior, invalid runtime input, or an unrecoverable tool failure. Delivery. A successful result must contain a fully verified proof of target_node and all local refinement nodes, with no placeholders remaining. Deliver the completed changes through the prescribed Git and repository tools; otherwise report the concrete blocking defect through the prescribed issue workflow.
The prompts used for annotation are shown in Table 6, Table 7, and Table 8.
B.2 Evaluation
Table 9: The prompt of the theorem elicitation.
Theorem Elicitation input/core_claim.md contains a short informal claim describing the central result of a research paper. Turn it into a precise natural-language theorem statement. Deliverable: write the statement to output/nl_theorem.md. Requirements: • Read the input with your own tools. Never modify anything under input/. • State one theorem: quantify every object, name every hypothesis explicitly, and give the exact conclusion. A reader must be able to formalize it without access to the paper. • Keep it self-contained: define or characterize every non-standard notion you use. • Write the statement only. Do not include a proof, a proof sketch, or commentary. • English only. Mathematical notation is allowed. • Finish only after output/nl_theorem.md exists and contains the final statement.
Table 10: The prompt of the autoformalization
Autoformalization input/nl_theorem.md contains a natural-language theorem statement. input/imports.lean contains the Mathlib import lines the reference formalization uses. No definitions are given: choosing the Lean representation of every notion in the claim is part of the task. Deliverable: write one self-contained Lean 4 file to output/statement.lean. Requirements: • Read the inputs with your own tools. Never modify anything under input/. • output/statement.lean must hold, in this order: the import lines, then every auxiliary def, abbrev, notation, or instance your formalization needs, then exactly one top-level theorem that formalizes the claim and ends with :=, with no proof. Keep imports narrow; add further Mathlib imports only when you actually need them. • Formalize the claim faithfully: every hypothesis and the exact conclusion of the informal statement must appear, with no extra assumptions that weaken it and no definition that makes it vacuous. • project/candidate.lean is a scratch file seeded with the same imports. Develop there, append := by sorry to your theorem, and run ./check.sh to type-check against the shared Mathlib build. The script compiles concurrently, so run it as often as you need. A declaration uses ’sorry’ warning is expected; any error is not. • Equivalence with the reference formalization is checked mechanically in both directions, so a file that merely type-checks but weakens, strengthens, or trivializes the claim scores zero. • Finish only after output/statement.lean type-checks (with := by sorry appended) and holds the statement without its proof.
Table 11: The prompt of the proof elicitation
Proof Elicitation input/nl_theorem.md contains a natural-language theorem statement and input/theorem.lean contains its Lean 4 formalization, including the auxiliary definitions it depends on. The Lean proof itself is withheld (by sorry). Deliverable: write a complete natural-language proof to output/nl_proof.md. Requirements: • Read the inputs with your own tools. Never modify anything under input/. • Prove the stated theorem, using the Lean definitions as the authoritative meaning of every notion that appears in it. • Justify every step. State which hypothesis, standard theorem, or computation licenses each inference, and make the overall structure (induction, contradiction, case analysis) explicit. • Cover every case: the proof must be complete, not a sketch, and must not assume the result. • Lean code is neither required nor forbidden; mathematical rigour is what is graded. • English only. Finish only after output/nl_proof.md contains the final proof.
Table 12: The prompt of the theorem proof.
Theorem Proving project/ is a ready-to-build Lake project. project/theorem.lean holds narrow Mathlib imports, the auxiliary definitions of this problem, and exactly one theorem whose proof is by sorry. The shared prebuilt Mathlib is already linked into project/.lake/packages, so never download, copy, or rebuild Mathlib or any dependency. Deliverable: write the complete proved file to output/proof.lean. Requirements: • Prove the theorem by replacing sorry with a real proof. Work in project/theorem.lean. • Do not change the theorem statement, its name, its binders, or the existing definitions. You may add auxiliary lemmas above the theorem and may add narrow Mathlib imports. • Forbidden anywhere in the file: sorry, admit, stop, sorryAx, axiom, native_decide, and any set_option that relaxes warn.sorry or warningAsError. Verification recompiles the file strictly, audits the environment axioms of the target declaration, and replays the proof in a fresh kernel, so none of these can pass. • ./check.sh compiles project/theorem.lean with -Dwarn.sorry=true -DwarningAsError=true and with parallel workers. Iterate with it until it reports no errors and no warnings. • Then copy the final file verbatim to output/proof.lean. • Partial credit does not exist: only a fully verified proof counts. If time runs out, still copy your best complete-file attempt to output/proof.lean.
The prompts used for evaluation are shown in Table 9, Table 10, Table 11, and Table 12.
B.3 Generation
Table 13: The prompt of the planner.
Prompt of Planner You are the planner of an autonomous theoretical-computer-science research loop. The workspace is shared with the other agents of this loop. Workspace layout: • benchmark/<id>/ — one sampled benchmark instance per directory, holding core_claim.md, nl_theorem.md (the natural-language theorem), and theorem.lean (its formal statement). • accepted/claim-<k>/ — claims already accepted by the judger earlier in this run, holding claim.md (natural-language summary) and theorem.lean. • feedback/claim-<k>.md — why earlier attempts were discarded, written by the loop. • objectives/claim-<k>.md — the research objectives you have proposed so far. Your job this turn: propose exactly one new research objective and write it to the objective file named in the instructions. Base it on the benchmark content and everything accumulated in the workspace so far. You are not restricted to extending the current line of reasoning: you may reformulate the problem, introduce auxiliary concepts, strengthen or relax assumptions, or explore an alternative analytical direction. The objective must be a self-contained result that is plausible to state precisely and to formalize in Lean 4 with Mathlib. The objective file must be markdown with these sections: • ## Motivation — why this result is worth pursuing and how it relates to what is in the workspace. • ## Informal Claim — the precise mathematical statement you want, with all symbols defined. • ## Assumptions — every assumption on the setting, explicitly listed. • ## Proof Direction — a sketch of how the result could be proven. • ## Novelty — what distinguishes it from the benchmark instances and the accepted claims. Write the file, then stop. Do not write any other file.
Table 14: The prompt of the formalizer.
Prompt of Formalizer You are the formalizer of an autonomous theoretical-computer-science research loop. Your working directory holds one proposed research objective: • objective.md — the objective you must formalize now. • project/ — a ready-to-build Lake project. project/theorem.lean is where you write the formal statement. The shared prebuilt Mathlib is already linked into project/.lake/packages, so never download, copy, or rebuild Mathlib or any dependency. • ./check.sh — compiles project/theorem.lean with parallel workers. Run it as often as you need from your working directory. Deliverable: a compiling project/theorem.lean that contains • narrow Mathlib imports (never import Mathlib), • any auxiliary definitions the statement needs, • exactly one main theorem or lemma, as the last declaration, whose proof is exactly by sorry, and no other sorry anywhere in the file. Requirements: • Do not prove the theorem. The main declaration must end with := by sorry. • You may adjust the informal claim’s internal representation (definitions, naming, auxiliary lemmas) to keep the formalization tractable, but the overall conclusion must match the objective. • Forbidden anywhere in the file: axiom, native_decide, sorryAx, admit, stop, and any set_option that relaxes warn.sorry or warningAsError. • Keep iterating with ./check.sh until it reports no errors. Only warnings about the sorry of the main declaration are acceptable. • If you conclude the objective cannot be formalized within your budget, write failure.md in your working directory explaining precisely what failed and why, and stop.
Table 15: The prompt of the judger.
Prompt of Judger You are the judger of an autonomous theoretical-computer-science research loop. Your working directory holds one candidate formal claim: • objective.md — the research objective that was formalized. • project/theorem.lean — the formal Lean statement that compiles; its last declaration is the main theorem and its proof is by sorry. • ../.. — the shared workspace, whose benchmark/ holds the sampled benchmark instances and whose accepted/ holds claims already accepted in this run. Your job this turn: translate the formal statement back into one concise natural-language claim that summarizes what it asserts and its potential theoretical significance, then judge whether the proposed result is worth keeping. Deliverable: write a JSON object with exactly these keys to judgement.json in your working directory, and make your final message exactly that JSON object:{ "nl_theorem": "...", "significance": "...", "novel": true, "rationale": "..." } • nl_theorem: the concise natural-language claim, self-contained and precise. • significance: one or two sentences on the potential theoretical significance. • novel: true only if the claim is sufficiently novel and valuable to keep — not a trivial restatement of a benchmark instance or an accepted claim, not a degenerate or vacuous statement, and not an elementary exercise. • rationale: the reasoning behind the novel verdict.
The prompts used by our auto research framework are shown in Table 13, Table 14, and Table 15.
Appendix C Case Study
C.1 Cases of FormalTCS
Table 16: The case of FormalTCS from STOC.
| Field | Content |
|---|---|
| Case ID | FAPMCBEMF_266999 |
| Conference | STOC 2026 |
| Source paper | Faster All-Pairs Minimum Cut: Bypassing Exact Max-Flow |
| Core claim | A single linear-time transformation converts access to a friendly cut sparsifier and vertex degrees into a sparse all-pairs minimum-cut representation. |
| NL Theorem | For every unweighted graph with no degree-one vertices, given explicit access to a -friendly cut sparsifier, there is a linear-time construction of an all-pairs minimum-cut sparsifier. For every pair , the output preserves the value of a minimum – cut and contains a minimum cut whose restriction to is minimum in . Its number of edges is at most the input sparsifier size plus . |
| NL Proof | The construction augments the friendly sparsifier by a star structure encoding vertex degrees. A structural lemma shows that every minimum – cut is either directly friendly or becomes friendly after removing one terminal, and hence lies within the sparsifier’s preservation range. Star-lifting preserves such cuts and their values. Minimality then implies equality of the original and transformed minimum-cut values, while the construction adds only edges and work. |
Table 17: The case of FormalTCS from FOCS.
| Field | Content |
|---|---|
| Case ID | SPLEW_704476 |
| Conference | FOCS 2026 |
| Source paper | Shortest Paths with Linear Edge Weights |
| Core claim | Every affine-weighted DAG has a shortest-path cover of quasipolynomial size in the number of vertices, with exponent linear in the parameter dimension. |
| NL Theorem | There is an absolute constant such that, for every -vertex DAG whose edge weights are affine functions of a parameter in , one can choose at most source-to-sink paths so that, for every parameter value, at least one chosen path is a shortest source-to-sink path. |
| NL Proof | Starting from one-edge paths, repeatedly double the maximum represented path length by concatenating shortest subpaths. At each level, parameter space is partitioned according to the signs of finitely many affine comparisons; a sign-pattern bound limits the number of resulting regions. After rounds every path in the DAG is covered, since an acyclic path contains at most vertices. Multiplying the per-level region bounds gives a cover of size . |
Table 18: The case of FormalTCS from SODA.
| Field | Content |
|---|---|
| Case ID | OOVR_302847 |
| Conference | SODA 2026 |
| Source paper | Online Orthogonal Vectors Revisited |
| Core claim | A deterministic data structure solves online orthogonal vectors with an explicit trade-off between query time, space, and preprocessing time. |
| NL Theorem | For every and a database of Boolean vectors in dimension , there is a deterministic online orthogonal-vectors data structure with query time encoded space and preprocessing time |
| NL Proof | The construction proceeds by induction on the trade-off parameter . The base cases either store the database directly or tabulate all answers. For larger , the database is pseudorandomly partitioned and reduced to recursive instances with roughly vectors and smaller dimension. Dedicated recurrence bounds show that correctness is preserved while the query, space, and preprocessing costs satisfy the claimed formulas. |
Table 19: The case of FormalTCS from COLT.
| Field | Content |
|---|---|
| Case ID | ACOHDDIT_776575 |
| Conference | COLT 2026 |
| Source paper | Accelerated Convex Optimization via Hamiltonian Dynamics with Deterministic Integration Time |
| Core claim | A discretized Hamiltonian-flow method with averaging minimizes smooth convex objectives at a geometrically accelerated rate under an admissible discretization schedule. |
| NL Theorem | Let be convex and -smooth with minimizer , and let . Under the prescribed Hamiltonian extragradient iteration and an admissible inner-step schedule with , the -th iterate satisfies $$f(x_{K})-f(x^{\star})\leq\left(\frac{\sqrt{3}+1}{3}\right)^{K}\left(f(x_{0})-f(x^{\star})+\frac{\sqrt{3}-1}{60\eta^{2}}\ |
| NL Proof | Define a Lyapunov potential combining the objective gap and a scaled squared distance to . One outer iteration contracts this potential by , while the admissibility condition on ensures that changes in the distance coefficient are absorbed. Induction gives geometric contraction, and substituting yields the stated initial potential and final bound. |
In this part, we show several representative cases of each conference in Table 16, Table 17, Table 18, and Table 19. Due to the page limit, we omit the natural-language claims and proof.
C.2 Synthesized Cases of Our Framework
Table 20: The TCS cases discovered by our framework, which are simplified due to space limit.
| Core Claim | NL Theorem |
|---|---|
| Adaptive damping achieves the asymptotic coefficient for sparse-state shift-recall loss. | If and , then the specified diagonal linear RNN with adaptive damping satisfies . |
| Cutoff calibration error controls monotone-recalibration excess risk with the sharp constant . | For any threshold , the excess cost-sensitive risk of relative to the best monotone recalibration is at most , where ranges over order-connected sets. The coefficient is optimal. |
We show two synthesized cases that pass expert checking in Table 20.
Appendix D LLM and Harness Version
Table 21: The versions of LLMs and harnesses used in our evaluation and auto research.
| Type | Name | Snapshot / Version |
|---|---|---|
| LLM | GPT-5.6 Luna | gpt-5.6-luna |
| GPT-5.6 Terra | gpt-5.6-terra | |
| GPT-5.6 Sol | gpt-5.6-sol | |
| Claude Haiku 4.5 | claude-haiku-4-5-20251001 | |
| Claude Sonnet 5 | claude-sonnet-5 | |
| Claude Opus 5 | claude-opus-5 | |
| DeepSeek-V4 Flash | DeepSeek-V4-Flash-0731 | |
| DeepSeek-V4 Pro | DeepSeek-V4-Pro | |
| Harness | Codex | v0.146.0 |
| Claude Code | v2.1.220 | |
| DeepSeek Harness | v0.1.0-rc.8 |
The versions of LLMs and harnesses used in our evaluation and auto research are shown in Table 21.
Appendix E Annotation Agreement
Table 22: The annotation agreement of FormalTCS. Inter-Expert Agreement denotes the percentage of annotations on which two experts independently reach the same judgment or result. Expert Modification of LLM Output denotes the percentage of LLM-generated annotations that require substantive correction by an expert.
| Annotation Step | Inter-Expert Agreement () | Expert Modification of LLM Output () |
|---|---|---|
| Core Claim | – | |
| Natural Language Claim | – | |
| Proof Blueprint / DAG | – | |
| Formal Language Theorem | – | |
| Formal Language Proof | ||
| Natural Language Proof | – |
To assess the reliability of the annotation process of FormalTCS, we measure agreement both among human experts and between experts and LLM-assisted annotations, as reported in Table 22. Overall, our annotation pipeline exhibits high inter-expert agreement and relatively low rates of substantive human revision. For annotation stages requiring independent expert cross-validation, the agreement rates for core claims, natural language claims, and formal language proof reach , , and , respectively, indicating that different experts largely agree on the identification of central research results, theorem semantics, and the correctness of formal proofs. For annotations generated with LLM assistance, the proportion requiring substantive expert revision ranges from to . Specifically, the revision rates for natural language proofs and formal language proofs are only and , respectively, while the proof blueprint requires revision in of cases, and the formal language theorem has the highest revision rate at . This difference suggests that, compared with generating complete proofs, accurately translating mathematical statements from research papers into type-correct formal theorems with complete assumptions and equivalent semantics remains more prone to errors that require expert correction. Overall, these results show that LLM assistance can substantially reduce the manual effort required during annotation while also confirming that expert review remains indispensable for ensuring semantic faithfulness in formalization and the quality of the final benchmark.
Appendix F Rubric Agreement
Table 23: The rubric agreement between LLMs and human experts. Considering the cost, for the human-rubric, we randomly sample examples from FormalTCS in this table. is calculated as to measure the difference between human and LLMs.
| Model | Harness | Scale | CC2NT | T2NP | ||||
|---|---|---|---|---|---|---|---|---|
| LLM | Human | LLM | Human | |||||
| GPT-5.6 | Codex | luna | ||||||
| terra | ||||||||
| sol | ||||||||
| Claude | Claude Code | Haiku-4.5 | ||||||
| Sonnet-5 | ||||||||
| Opus-5 | ||||||||
| DeepSeek-V4 | DeepSeek Harness | Flash | ||||||
| Pro |
Table 23 compares the LLM-based rubric scores with human expert evaluations on the randomly sampled examples. Overall, the LLM-based evaluator exhibits strong consistency with human judgments across both CC2NT and T2NP. Although the LLM evaluator systematically assigns slightly higher scores than human experts, the relative discrepancy remains limited, ranging from to on CC2NT and from to on T2NP, with average discrepancies of and , respectively. More importantly, the LLM and human evaluations produce exactly the same ranking of all evaluated model configurations on both tasks, identifying GPT-5.6-sol as the best-performing model on CC2NT and Claude-Opus-5 as the best-performing model on T2NP. This rank-level agreement indicates that, despite a modest difference in absolute score calibration, the LLM-based rubric reliably preserves the relative performance differences among models. The somewhat larger discrepancy on T2NP also suggests that evaluating proof-strategy generation may involve greater judgment ambiguity than evaluating natural-language claim understanding. Overall, these results support the use of the LLM-based rubric as a scalable proxy for human evaluation in our main experiments.
Appendix G Black-Box Audit for Paper Leakage
Because the training corpora of proprietary LLMs are not publicly available, we perform an output-only audit following prior contamination and membership-inference studies that probe memorization by reconstructing held-out text from partial context (Golchin and Surdeanu, 2023; Hallinan et al., 2026). For each retained paper, we construct three complementary probes: (i) theorem completion, where the model receives only an initial fragment of a theorem statement; (ii) proof continuation, where only the beginning of a proof is provided; and (iii) result reconstruction, where the model is given a short anonymized description of a main result. We remove titles, author names, venue information, theorem numbers, citations, and other identifying metadata, and query GPT-5.6-sol and Claude-Opus-5 without retrieval access. Each generated response is compared only against the withheld source content using token-level lexical similarity (ROUGE-L/LCS). We deliberately emphasize lexical rather than semantic similarity since near-verbatim reconstruction provides a more specific signal of memorization, whereas an independently derived but semantically equivalent answer does not. The aggregate completion similarity is below for both models, providing no strong evidence of memorized reconstruction in the retained papers. We treat this audit as evidence of relatively low contamination risk rather than proof of non-exposure since failure to reproduce a passage cannot rule out its presence in the training data (Zhang et al., 2025a).