paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Fractional resources in unbounded separation logic

无界分离逻辑中的分数资源
OOPSLA 6(OOPSLA2)2022匹配度 3/10 · 论文属于分离逻辑与形式验证的形式语义研究,虽与形式化验证相关,但未涉及用户核心的 LLM/Agent 与静态分析/形式验证交叉、浮点程序分析或贝叶斯程序分析,也没有 AI/LLM 工具、工业落地或 benchmark 相关内容。引用 4 inbox
Thibault Dardinier, Peter Müller, Alexander J. Summers
crossref: 2026-09-10

AI 速览

一句话:提出允许断言求值期间持有超过完整权限的无界分离逻辑语义,统一语义与语法乘法并恢复分配、提取与合并性质。

许多分离逻辑用分数权限区分堆位置的读/写访问,并将分数乘法扩展到(余)归纳谓词和 magic wand 等复合断言。典型证明要求乘法满足分配性、可提取性和可合并性。已有语义定义通过模型定义乘法,导致 magic wand 等关键资源断言不满足这些性质,且无法从分离合取中提取分数;自动验证器则采用语法定义,其性质是否普遍成立尚不清楚。本文提出一种新的断言语义:在断言求值期间允许状态持有超过完整权限,并在语句边界重新施加每个位置权限的上界,从而保留框架规则等关键性质。该语义统一了语义乘法与语法乘法,使分配性、可提取性和可合并性成立,调和了分离逻辑理论与工具之间的差异。我们已在 Isabelle/HOL 中形式化该语义并证明其性质。

问题
既有分离逻辑对分数断言的乘法语义与验证器语法定义不一致:语义定义下 magic wand 等关键断言不满足分配性/可合并性,分数无法从分离合取中提取,而语法定义的性质普遍性未知。
方法
提出一种无界断言语义,允许求值期间状态持有超过完整权限,并在语句边界重新施加每位置权限上界;该语义统一语义与语法乘法,并用 Isabelle/HOL 形式化证明其性质。
评估
在 Isabelle/HOL 中机器化验证该语义满足分配性、可提取性、可合并性,并保留框架规则等分离逻辑关键性质,从而调和理论与工具间的差异。
原文摘要(Abstract)

Many separation logics support fractional permissions to distinguish between read and write access to a heap location, for instance, to allow concurrent reads while enforcing exclusive writes. Fractional permissions extend to composite assertions such as (co)inductive predicates and magic wands by allowing those to be multiplied by a fraction. Typical separation logic proofs require that this multiplication has three key properties: it needs to distribute over assertions, it should permit fractions to be factored out from assertions, and two fractions of the same assertion should be combinable into one larger fraction. Existing formal semantics incorporating fractional assertions into a separation logic define multiplication semantically (via models), resulting in a semantics in which distributivity and combinability do not hold for key resource assertions such as magic wands, and fractions cannot be factored out from a separating conjunction. By contrast, existing automatic separation logic verifiers define multiplication syntactically, resulting in a different semantics for which it is unknown whether distributivity and combinability hold for all assertions. In this paper, we present a novel semantics for separation logic assertions that allows states to hold more than a full permission to a heap location during the evaluation of an assertion. By reimposing upper bounds on the permissions held per location at statement boundaries, we retain key properties of separation logic, in particular, the frame rule. Our assertion semantics unifies semantic and syntactic multiplication and thereby reconciles the discrepancy between separation logic theory and tools and enjoys distributivity, factorisability, and combinability. We have formalised our semantics and proved its properties in Isabelle/HOL.

链接与引用

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

BibTeX
@article{paperbot1441,
  title = {Fractional resources in unbounded separation logic},
  author = {Thibault Dardinier and Peter Müller and Alexander J. Summers},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {6},
  number = {OOPSLA2},
  year = {2022},
  doi = {10.1145/3563326}
}