计算机科学 > 软件工程
[提交于 2026年4月16日]
标题:Understanding Tool-Augmented Agents for Lean Formalization: A Factorial Analysis
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Automatic translation of natural language mathematics into faithful Lean 4 code is hindered by the fundamental dissonance between informal set-theoretic intuition and strict formal type theory. This gap often causes LLMs to hallucinate non-existent library definitions, resulting in code that fails to compile or lacks semantic fidelity. In this work, we investigate the effectiveness of tool-augmented agents for this task through a systematic factorial analysis of three distinct tool categories: Fine-tuned Model Querying (accessing expert drafts), Knowledge Search (retrieving symbol definitions), and Compiler Feedback (verifying code via a Lean REPL). We first benchmark the agent against one-shot baselines, demonstrating large gains in both compilation success and semantic equivalence. We then use the factorial decomposition to quantify the impact of each category, isolating the marginal contribution of each tool type to overall performance.
提交历史
来自:Ke Zhang[v1] 2026年4月16日 星期四 21:15:46 UTC