理解用于精益形式化的工具增强代理:因子分析
Understanding Tool-Augmented Agents for Lean Formalization: A Factorial Analysis
AI总结:
本文通过因子分析评估三种工具类型在自然语言数学自动转换为Lean 4代码中的有效性,发现工具增强代理在编译成功率和语义等价性上有显著提升。
摘要:
自动将自然语言数学转换为忠实的Lean 4代码受到非正式集合论直觉与严格形式类型理论之间根本不和谐的影响。这种差距常常导致LLMs生成不存在的库定义,导致代码无法编译或缺乏语义忠实性。在本工作中,我们通过系统性地对三种不同的工具类别进行因子分析来研究工具增强代理的有效性:微调模型查询(访问专家草稿)、知识搜索(检索符号定义)和编译器反馈(通过Lean REPL验证代码)。我们首先将代理与一次基线进行基准测试,证明在编译成功率和语义等价性上取得了显著提升。然后我们使用因子分解来量化每种类别的影响,隔离每种工具类型对整体性能的边际贡献。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。