FORMALTCS
收藏资源简介:
FORMALTCS 是由哈尔滨工业大学构建的专家验证基准数据集,旨在评估大语言模型在前沿理论计算机科学(TCS)研究中的端到端能力。该数据集包含175个实例,每个实例源自2025-2026年STOC、FOCS、SODA和COLT会议录用的论文,涵盖13个TCS研究领域,平均每个实例的Lean证明包含22条语句。数据集通过人工专家与LLM协作的方式构建,从原始论文中提取核心主张、自然语言定理与证明、形式化定理与Lean证明,并经过多轮人工审核确保正确性。FORMALTCS主要用于诊断LLM在TCS研究全流程(包括定理提炼、自动形式化、证明生成等阶段)的能力瓶颈,特别是揭示当前模型在数学建模和形式化转化方面的核心短板。
FORMALTCS is an expert-validated benchmark dataset developed by Harbin Institute of Technology, designed to evaluate the end-to-end capabilities of large language models (LLMs) in cutting-edge theoretical computer science (TCS) research. This dataset includes 175 instances, each sourced from papers accepted at the 2025–2026 STOC, FOCS, SODA, and COLT conferences, spanning 13 TCS research domains. On average, each instance's Lean proof contains 22 statements. The dataset is constructed through collaboration between human experts and LLMs: core claims, natural language theorems and their proofs, formalized theorems, and Lean proofs are extracted from original papers, and multiple rounds of manual reviews are conducted to ensure correctness. FORMALTCS is primarily used to diagnose the capability bottlenecks of LLMs across the entire workflow of TCS research, including stages such as theorem extraction, automated formalization, proof generation and other relevant phases, and specifically to uncover the core shortcomings of current models in mathematical modeling and formalization transformation.
数据集概述
基本信息
- 数据集名称:FormalTCS Benchmark
- 数据集地址:https://github.com/zirui-HIT/FormalTCS
- 核心内容:包含 175 个来自理论计算机科学论文的核心定理的 Lean 4 形式化基准测试集,以及用于评估前沿模型和代理循环的评估框架。每项数据都包含自然语言描述和基于 Mathlib 的已验证 Lean 4 形式化证明。
数据构成
数据集包含两类条目:
- 100 个证明条目(
collection.json):提供参考 Lean 证明。 - 75 个陈述条目(
statements.json):仅提供形式化陈述,无参考证明。
每个条目以独立的 Lake 项目形式组织,存放于 benchmark/theorems/ 和 benchmark/proofs/ 目录下,每个项目包含定理文件(以 by sorry 占位)、Lake 配置及依赖清单。
四个评估任务
| 任务名称 | 输入 | 输出 | 评估指标 |
|---|---|---|---|
| 定理引出 (CC2NC) | 核心主张 | 自然语言主张 | LLM-Rubric |
| 自动形式化 (NC2FT) | 自然语言主张 | 形式化定理 | BEq+ |
| 证明引出 (C2NP) | 自然语言主张,形式化定理 | 自然语言证明 | LLM-Rubric |
| 定理证明 (FT2FP) | 形式化定理 | 形式化证明 | Pass@1 |
技术环境
- Python 版本:≥ 3.10
- Lean 工具链:
leanprover/lean4:v4.32.2,需安装elan - Mathlib 依赖:所有项目共享一个预构建的 Mathlib,固定在
905b95818eb32af7874a58b427f50c1711a5e96c提交版本 - 沙箱工具:
bwrap(bubblewrap)、git - 模型驱动:支持 Codex、Claude Code 和
dsh三种命令行工具
评估框架 (evaluate/)
- 支持运行、评分、状态查询、用量统计和结果报告等操作
- 包含可恢复的会话机制,中断后可继续
- 评分方式:
- LLM-Rubric:按逻辑性(0.4)、完整性(0.3)、正确性(0.2)、清晰性(0.1)加权评分
- BEq+:在单个 Lean 命令中证明候选陈述与参考陈述等价
- FT2FP:严格编译、环境级公理审计和内核重放三重验证
自动研究模块 (auto_research/)
采用“规划器 → 形式化器 → 评判器”的三代理循环结构:
- 规划器:提出研究目标
- 形式化器:将目标编译为 Lean 陈述(最多三轮编译器反馈)
- 评判器:将形式化陈述翻译回自然语言并过滤新颖性
- 接受的主张发布到
auto_research/results/,随后按 FT2FP 流程进行证明

- 1FormalTCS: Benchmarking End-to-End Frontier Formal Theoretical Computer Science Research of Large Language Models哈尔滨工业大学 · 2026年



