paperbot · PL 论文追踪

全部论文 待读 收藏

P2 On Extending Incorrectness Logic with Backwards Reasoning

论扩展 Incorrectness Logic 以支持反向推理
POPL 9(POPL)2025匹配度 2/10 · 该论文属于程序逻辑与形式化验证的基础理论工作,讨论 Incorrectness Logic 的反向推理扩展与 Isabelle/HOL 形式化;这与用户核心关注的“LLM/Agent 与静态分析/形式化验证交叉”没有直接关联,也未涉及浮点程序分析、贝叶斯程序分析或 Agentic 程序分析,仅在 PL/形式化验证背景上有微弱交集。引用 2 inbox
Freek Verbeek, Md Syadus Sefat, Zhoulai Fu, Binoy Ravindran
crossref: 2026-09-10

AI 速览

一句话:通过欠指定扩展 Incorrectness Logic,使其支持反向推理,并证明可靠性与部分完备性,且在 Isabelle/HOL 中形式化。

本文研究 O’Hearn 的 incorrectness logic(IL)的一个扩展,目标是使其支持反向推理。现有 IL 通常不能通用地进行反向推理;作者提出通过引入欠指定(underspecification)来缓解这一问题。扩展后的逻辑同时具备两项特征:后置条件(结果)只需对相关变量给出约束,且保持欠近似,从而聚焦于少于全部的执行路径。作者证明了该证明系统的可靠性,并针对一类所定义的 presumption 证明了完备性。文中还讨论了从给定 result 推导 presumption 的证明策略,并表明循环摘要(loop summaries)这一闭式符号表示对反向推理十分有用。该逻辑、证明系统及全部定理均已在 Isabelle/HOL 定理证明器中形式化。

问题
现有 incorrectness logic 不能通用地支持反向推理,即难以从给定结果反推前置假设(presumption)。
方法
通过引入欠指定(underspecification)扩展 IL,使其在保持欠近似的同 时,后置条件只需约束相关变量,并定义相应证明系统与证明策略。
评估
证明了证明系统的可靠性,以及对特定 presumption 子集的完备性;讨论了由 result 推导 presumption 的策略,并将全部定理在 Isabelle/HOL 中形式化验证。
原文摘要(Abstract)

This paper studies an extension of O’Hearn’s incorrectness logic (IL) that allows backwards reasoning. IL in its current form does not generically permit backwards reasoning. We show t at this can be mitigated by extending IL with underspecification. The resulting logic combines underspecification (the result, or postcondition, only needs to formulate constraints over relevant variables) with underapproximation (it allows to focus on fewer than all the paths). We prove soundness of the proof system, as well as completeness for a defined subset of presumptions. We discuss proof strategies that allow one to derive a presumption from a given result. Notably, we show that the existing concept of loop summaries- closed-form symbolic representations that summarize the effects of executing an entire loop at once- is highly useful. The logic, the proof system and all theorems have been formalized in the Isabelle/HOL theorem prover.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{VerbeekSFR25,
  title = {On Extending Incorrectness Logic with Backwards Reasoning},
  author = {Freek Verbeek and Md Syadus Sefat and Zhoulai Fu and Binoy Ravindran},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {POPL},
  year = {2025},
  doi = {10.1145/3704850}
}