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

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

计算机科学 > 计算复杂性

arXiv:2407.09154 (cs)
[提交于 2024年7月12日 (v1),最后修订于 2024年11月13日 (此版本, v2)]

标题:Simple Linear Loops: Algebraic Invariants and Applications

作者:Rida Ait El Manssour, George Kenison, Mahsa Shirmohammadi, Anton Varonka
查看论文《Simple Linear Loops: Algebraic Invariants and Applications》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The automatic generation of loop invariants is a fundamental challenge in software verification. While this task is undecidable in general, it is decidable for certain restricted classes of programs. This work focuses on invariant generation for (branching-free) loops with a single linear update. Our primary contribution is a polynomial-space algorithm that computes the strongest algebraic invariant for simple linear loops, generating all polynomial equations that hold among program variables across all reachable states. The key to achieving our complexity bounds lies in mitigating the blowup associated with variable elimination and Gr\"obner basis computation, as seen in prior works. Our procedure runs in polynomial time when the number of program variables is fixed. We examine various applications of our results on invariant generation, focusing on invariant verification and loop synthesis. The invariant verification problem investigates whether a polynomial ideal defining an algebraic set serves as an invariant for a given linear loop. We show that this problem is coNP-complete and lies in PSPACE when the input ideal is given in dense or sparse representations, respectively. In the context of loop synthesis, we aim to construct a loop with an infinite set of reachable states that upholds a specified algebraic property as an invariant. The strong synthesis variant of this problem requires the construction of loops for which the given property is the strongest invariant. In terms of hardness, synthesising loops over integers (or rationals) is as hard as Hilbert's Tenth problem (or its analogue over the rationals). When the constants of the output are constrained to bit-bounded rational numbers, we demonstrate that loop synthesis and its strong variant are both decidable in PSPACE, and in NP when the number of program variables is fixed.
评论: 29 pages, full version of a POPL 2025 paper
主题: 计算复杂性 (cs.CC); 代数几何 (math.AG)
引用方式: arXiv:2407.09154 [cs.CC]
  (或者 arXiv:2407.09154v2 [cs.CC] 对于此版本)
  https://doi.org/10.48550/arXiv.2407.09154

提交历史

来自:Anton Varonka
[v1] 2024年7月12日 星期五 10:38:04 UTC
[v2] 2024年11月13日 星期三 11:57:28 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-11
切换浏览方式为:
cs.CC
math.AG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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