跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 人工智能

arXiv:2611.40707 (cs)
[提交于 2026年11月30日]

标题:OPAL: Optimizing Proofs at Library Scale via Metric-Driven Coding Agents

作者:Chengwu Liu, Zijin Feng, Ye Yuan, Yifang Qin, Botao Li, Jiaxuan Xie, Siqi Li, Pu Suo, Haoli Bai, Yichun Yin, Lifeng Shang, Ming Zhang
查看论文《OPAL: Optimizing Proofs at Library Scale via Metric-Driven Coding Agents》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Driven by rapid progress in autoformalization and automated theorem proving, formal mathematics is scaling up: mathematicians, often with AI assistance, advance large formalization projects around Lean blueprints, which tightly link a LaTeX proof plan to the Lean codebase. As mathlib and proof automation evolve, finished proofs accumulate optimization opportunities. Yet even in the mature mathlib library, 41% of commits add no new mathematics but improve existing proofs (shortening, deduplication, faster compilation), and 62% of these span multiple files, beyond the reach of theorem-level methods. We introduce OPAL, the first repository-level, metric-driven proof-optimization task, where an agent freely refactors a blueprint repository toward repository-level objectives. We instantiate OPAL with six metrics grounded in empirically mined human maintenance tendencies, including proof length, import closure, mathlib duplication, and elaboration cost. Optimizing these metrics freely, however, invites reward hacking, such as deleting a theorem to shorten the code, so evaluation needs a contract on what must stay intact. Our key observation is that blueprint structure itself supplies this contract: \lean{} links pin down which theorems constitute a project's final targets (5-19% of all declarations), whose statements must be preserved, while the remaining 81-95% of auxiliary code may be freely refactored. We implement this contract as an executable semantic-preservation checker. Building on it, we release OPAL-Bench, comprising 162 task instances from 18 real-world Lean blueprint projects, together with a sandboxed agent harness. Experiments show that coding agents can deliver genuine optimization gains beyond the level of single human commits, while ablations show that with the contract absent from the agent's world nearly half of accepted improvements do not survive semantic verification.
评论: 17 pages, 5 figures. Code and benchmark: https://github.com/liuchengwucn/opal
主题: 人工智能 (cs.AI); 计算机科学中的逻辑 (cs.LO)
引用方式: arXiv:2611.40707 [cs.AI]
  (或者 arXiv:2611.40707v1 [cs.AI] 对于此版本)
  https://doi.org/10.48550/arXiv.2611.40707

提交历史

来自:Chengwu Liu
[v1] 2026年11月30日 星期一 08:53:20 UTC (252 KB)
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.AI
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-12
切换浏览方式为:
cs
cs.LO

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站