arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.24796cs.LOcs.AIcs.FLcs.LGmath.CT
收藏

LeanCat:Lean中的形式范畴论基准测试套件(第一部分:1-范畴)

LeanCat: A Benchmark Suite for Formal Category Theory in Lean (Part I: 1-Categories)

Yau Mathematical Sciences Center, Tsinghua University(清华大学尤洋数学科学中心);Iluvatar CoreX;Department of Mathematics, Southern University of Science and Technology(南方科技大学数学系);Westlake Institute for Advanced Study, Westlake University(西湖研究学院);Qiuzhen College, Tsinghua University(清华大学齐臻学院);Department of Physics, The Chinese University of Hong Kong(香港中文大学物理系);Yanqi Lake Beijing Institute of Mathematical Sciences and Applications (BIMSA)(燕琦湖北京应用数学研究所(BIMSA))

Rongge Xu, Hui Dai, Yiming Fu, Jiedong Jiang, Tianjiao Nie, Junkai Wang, Holiverse Yang, Zhi-Hao Zhang

AI总结:

LeanCat通过100个形式化范畴论任务测试模型的抽象能力,揭示了现有模型在组合泛化上的不足,提出LeanBridge通过迭代优化提升性能至24%。

摘要:

尽管大型语言模型(LLMs)在形式定理证明中展示了令人印象深刻的能力,但当前的基准测试未能充分衡量库基础的抽象能力——即使用高级接口和可重用结构进行推理的能力,这些结构是现代数学和软件工程的核心。我们介绍了LeanCat,一个包含100个完全形式化范畴论任务的具有挑战性的基准测试套件。与代数或算术不同,范畴论是结构和接口级别推理的严格压力测试。我们的评估揭示了一个严重的抽象差距:最先进的模型只解决了12.0%的任务,其在Easy任务上的表现为55.0%,而在High-difficulty任务上的表现则降至0.0%,突显了组合泛化能力的失败。为克服这一问题,我们评估了LeanBridge,一个采用检索生成验证循环的检索增强代理。LeanBridge实现了24.0%的最高成功率——是最佳静态基线的两倍。这些结果证明了迭代细化和动态库检索不仅是优化,而且是抽象领域神经符号推理的严格必要条件。LeanCat提供了一个紧凑、可重用的测试平台,用于跟踪向可靠的研究级形式化迈进的进展。

英文摘要:

While large language models (LLMs) have demonstrated impressive capabilities in formal theorem proving, current benchmarks fail to adequately measure library-grounded abstraction -- the ability to reason with high-level interfaces and reusable structures central to modern mathematics and software engineering. We introduce LeanCat, a challenging benchmark comprising 100 fully formalized category-theory tasks in Lean. Unlike algebra or arithmetic, category theory serves as a rigorous stress test for structural, interface-level reasoning. Our evaluation reveals a severe abstraction gap: the best state-of-the-art model solves only 12.0% of tasks at pass@4, with performance collapsing from 55.0% on Easy tasks to 0.0% on High-difficulty tasks, highlighting a failure in compositional generalization. To overcome this, we evaluate LeanBridge, a retrieval-augmented agent that employs a retrieve-generate-verify loop. LeanBridge achieves a peak success rate of 24.0% -- doubling the performance of the best static baseline. These results empirically demonstrate that iterative refinement and dynamic library retrieval are not merely optimizations but strict necessities for neuro-symbolic reasoning in abstract domains. LeanCat offers a compact, reusable testbed for tracking progress toward reliable, research-level formalization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑