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

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

计算机科学 > 程序设计语言

arXiv:2512.15816 (cs)
[提交于 2025年12月17日]

标题:A Neurosymbolic Approach to Loop Invariant Generation via Weakest Precondition Reasoning

作者:Daragh King, Vasileios Koutavas, Laura Kovacs
查看论文《A Neurosymbolic Approach to Loop Invariant Generation via Weakest Precondition Reasoning》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Loop invariant generation remains a critical bottleneck in automated program verification. Recent work has begun to explore the use of Large Language Models (LLMs) in this area, yet these approaches tend to lack a reliable and structured methodology, with little reference to existing program verification theory. This paper presents NeuroInv, a neurosymbolic approach to loop invariant generation. NeuroInv comprises two key modules: (1) a neural reasoning module that leverages LLMs and Hoare logic to derive and refine candidate invariants via backward-chaining weakest precondition reasoning, and (2) a verification-guided symbolic module that iteratively repairs invariants using counterexamples from OpenJML. We evaluate NeuroInv on a comprehensive benchmark of 150 Java programs, encompassing single and multiple (sequential) loops, multiple arrays, random branching, and noisy code segments. NeuroInv achieves a $99.5\%$ success rate, substantially outperforming the other evaluated approaches. Additionally, we introduce a hard benchmark of $10$ larger multi-loop programs (with an average of $7$ loops each); NeuroInv's performance in this setting demonstrates that it can scale to more complex verification scenarios.
主题: 程序设计语言 (cs.PL); 人工智能 (cs.AI); 计算机科学中的逻辑 (cs.LO)
引用方式: arXiv:2512.15816 [cs.PL]
  (或者 arXiv:2512.15816v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2512.15816

提交历史

来自:Daragh King
[v1] 2025年12月17日 星期三 14:16:59 UTC
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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