arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.03668cs.LOcs.AI
收藏

大语言模型能否帮助解决带有归纳定义的约束?

Can LLM Aid in Solving Constraints with Inductive Definitions?

Weizhi Feng, Shidong Shen, Jiaxiang Liu, Taolue Chen, Fu Song, Zhilin Wu

AI总结:

本文提出一种神经符号方法,利用大语言模型生成辅助引理,提升求解涉及归纳定义的约束的能力,实验表明其在证明任务上的有效性。

摘要:

解决涉及归纳(即递归)定义的约束是一项挑战。最先进的SMT/CHC求解器和一阶逻辑证明器对解决此类约束的支持有限,尤其是在涉及例如抽象数据类型时。在本工作中,我们利用结构化提示来引导大语言模型(LLMs)生成辅助引理,这些引理对于推断这些归纳定义至关重要。我们进一步提出了一种神经符号方法,该方法协同整合了LLMs与约束求解器:LLMs迭代生成猜想,而求解器检查它们的有效性及其在证明目标中的用处。我们评估了我们的方法在包含来自代数数据类型和递归关系的约束的多样化基准套件上的表现。实验结果表明,我们的方法能够提升最先进的SMT和CHC求解器,能够解决大约25%更多涉及归纳定义的证明任务,证明了其有效性。

英文摘要:

Solving constraints involving inductive (aka recursive) definitions is challenging. State-of-the-art SMT/CHC solvers and first-order logic provers provide only limited support for solving such constraints, especially when they involve, e.g., abstract data types. In this work, we leverage structured prompts to elicit Large Language Models (LLMs) to generate auxiliary lemmas that are necessary for reasoning about these inductive definitions. We further propose a neuro-symbolic approach, which synergistically integrates LLMs with constraint solvers: the LLM iteratively generates conjectures, while the solver checks their validity and usefulness for proving the goal. We evaluate our approach on a diverse benchmark suite comprising constraints originating from algebrai data types and recurrence relations. The experimental results show that our approach can improve the state-of-the-art SMT and CHC solvers, solving considerably more (around 25%) proof tasks involving inductive definitions, demonstrating its efficacy.

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

↑