paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Generically Automating Separation Logic by Functors, Homomorphisms, and Modules

通过函子、同态与模通用地自动化分离逻辑
POPL 9(POPL)2025匹配度 3/10 · 该论文属于形式化验证与分离逻辑自动化,与静态分析相关,但未涉及 LLM/Agent 或浮点/贝叶斯程序分析,与用户核心的 PL 与 AI 交叉方向匹配度较低。引用 0 inbox
Qiyuan Xu, David Sanan, Zhe Hou, Xiaokun Luan, Conrad Watt, Yang Liu
crossref: 2026-09-10

AI 速览

一句话:提出基于函子、同态与环上模的抽象代数理论,通用自动化分离逻辑,并自动实例化数据结构推理器。

基础验证用 Coq/Isabelle 等证明助手认证程序正确性,但复杂程序需要表达力强的分离逻辑(SL),超出符号堆等自动证明理论范围,导致自动化依赖缺乏系统元理论且扩展性差的启发式。本文提出用抽象代数(函子、同态、环上模)规约 SL 谓词的理论,并据此设计通用 SL 自动推理算法,处理可由这些代数刻画的数据结构。作者还给出自动实例化算法,将代数模型组合式地实例化到真实数据结构并保持数据抽象。案例研究在形式化命令式语义上自动实例化多种复杂数据结构;实验表明自动实例化的推理器与手工定制规则的最新系统效果相近。理论、证明与验证框架均在 Isabelle/HOL 中形式化。

问题
形式化验证中,分离逻辑的自动化缺乏系统元理论,现有工具依赖 ad-hoc 启发式,难以扩展到符号堆之外的复杂数据结构。
方法
提出用函子、同态与环上模等抽象代数规约 SL 谓词,并设计通用自动化算法;进一步给出可组合的自动实例化算法,从组件结构模型生成真实数据结构的推理器,所有理论、证明与框架在 Isabelle/HOL 中形式化。
评估
在形式化命令式语义上对多种复杂数据结构进行案例研究,自动实例化推理器;实验与基于手工定制规则的最新系统对比,效果相近。
原文摘要(Abstract)

Foundational verification considers the functional correctness of programming languages with formalized semantics and uses proof assistants (e.g., Coq, Isabelle) to certify proofs. The need for verifying complex programs compels it to involve expressive Separation Logics (SLs) that exceed the scopes of well-studied automated proof theories, e.g., symbolic heap. Consequently, automation of SL in foundational verification relies heavily on ad-hoc heuristics that lack a systematic meta-theory and face scalability issues. To mitigate the gap, we propose a theory to specify SL predicates using abstract algebras including functors, homomorphisms, and modules over rings. Based on this theory, we develop a generic SL automation algorithm to reason about any data structures that can be characterized by these algebras. In addition, we also present algorithms for automatically instantiating the algebraic models to real data structures. The instantiation works compositionally, reusing the algebraic models of component structures and preserving their data abstractions. Case studies on formalized imperative semantics show our algorithm can instantiate the algebraic models automatically for a variety of complex data structures. Experimental results indicate the automatically instantiated reasoners from our generic theory show similar results to the state-of-the-art systems made of specifically crafted reasoning rules. The presented theories, proofs, and the verification framework are formalized in Isabelle/HOL.

链接与引用

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

BibTeX
@article{paperbot3235,
  title = {Generically Automating Separation Logic by Functors, Homomorphisms, and Modules},
  author = {Qiyuan Xu and David Sanan and Zhe Hou and Xiaokun Luan and Conrad Watt and Yang Liu},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {POPL},
  year = {2025},
  doi = {10.1145/3704903}
}