计算机科学逻辑的理论级自动形式化
Theory-Scale Auto-Formalization of Logic for Computer Science
AI总结:
提出LCS-Bench基准,通过半自动化流水线构建包含327个教材条目、4076个Lean声明的理论级自动形式化数据集,评估14个模型,发现最先进模型仅达20.1%准确率。
摘要:
自动形式化对于可扩展的形式验证至关重要,但现有进展主要集中于孤立语句,而理论级自动形式化(即连贯翻译数百个相互依赖的定义、引理和定理)由于在一致性、忠实性、可扩展性和正确性方面的挑战,仍然是一个开放问题。本文基于计算机科学逻辑,引入了一个独立的、理论级基准LCS-Bench。LCS-Bench通过一种新颖的半自动化智能体流水线构建,该流水线利用概念图、形式签名规划、问题追踪、反例搜索的sorry填充,并辅以人类专家的忠实性审查。生成的工件包含327个教材条目、超过4076个Lean声明和超过8.5万行Lean代码。该数据集通过一个数据引擎支持广泛的评估,该引擎自动派生五个评估基准轨道,衡量自动形式化和定理证明能力的不同方面。我们还引入了一种新颖的评估协议,包含定义等价检查器,从而实现更细粒度和更忠实的评估。通过对14个模型的广泛评估,我们证明:(1)LCS-Bench具有高质量、一致性和忠实性;(2)该基准具有挑战性,最先进的模型在自动形式化任务上仅达到20.1%;(3)我们的分析揭示了关于理论级自动形式化的关键发现,并为未来工作指明了有前景的方向。
英文摘要:
Auto-formalization is critical for scalable formal verification, but existing progress largely focuses on isolated statements, while theory-scale auto-formalization, which coherently translates hundreds of interdependent definitions, lemmas, and theorems, remains open due to challenges in consistency, faithfulness, scalability, and correctness. In this paper, we introduce LCS-Bench, a stand-alone, theory-scale benchmark based on Logic for Computer Science. LCS-Bench is built through a novel semi-automated agentic pipeline that leverages concept graphs, formal signature planning, issue tracking, sorry-filling with counter-example search, complemented by faithfulness review from human experts. The resulting artifact covers 327 textbook items, over 4,076 Lean declarations, and more than 85K lines of Lean code. The dataset supports broad evaluation through a data engine that automatically derives five tracks of evaluation benchmarks, measuring different aspects of auto-formalization and theorem-proving capabilities. We also introduce a novel evaluation protocol featuring definitional equivalence checkers, enabling more fine-grained and faithful assessment. Through extensive evaluation on 17 models, we demonstrate that (1) LCS-Bench is of high quality, consistent, and faithful; (2) the benchmark is challenging, with state-of-the-art models achieving only 20.3% on auto-formalization tasks; and (3) our analysis reveals key findings regarding theory-scale auto-formalization and suggests promising directions for future work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。