paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SteelCore: an extensible concurrent separation logic for effectful dependently typed programs

SteelCore:面向带效果依赖类型程序的可扩展并发分离逻辑
ICFP 4(ICFP)2020匹配度 2/10 · 该论文属于程序验证与形式化方法,研究 F* 中效果化依赖类型下的并发分离逻辑,但未涉及用户核心的 PL 与 LLM/Agent 交叉、浮点程序分析或贝叶斯程序分析等方向,与画像匹配度较低。引用 31 inbox
Nikhil Swamy, Aseem Rastogi, Aymeric Fromherz, Denis Merigoux, Danel Ahman, Guido Martínez
dblp: 2026-09-10crossref: 2026-09-10arxiv: 2026-09-10

AI 速览

一句话:在 F* 的效果化依赖类型论中为并发分离逻辑给出语义,并据此构建可扩展的并发验证库。

近期研究致力于在类型论中建模效果。本文观察到效果化类型论可作为构建复杂编程构造与程序逻辑语义的基础,在 F* 证明助手中为并发分离逻辑(CSL)给出语义,使依赖类型且带效果的 F* 程序能使用并发并以可扩展的 CSL 进行规约与验证。与以往方法不同,作者直接从非确定性交错原子动作的效果语义中计算的指称,导出 CSL 的部分正确性 Hoare 规则。为展示灵活性,他们构建了通用且经验证的库,覆盖从动态分配的可存储自旋锁到协议索引通道等多种并发构造。结论是:该效果语义为分层构建面向已验证并发编程的领域特定语言与逻辑提供了简洁而有表达力的基础。

问题
如何在依赖类型与效果类型理论中,为并发程序提供可扩展的分离逻辑语义与验证原则,使带效果的依赖类型程序也能使用并发并得到验证。
方法
在 F* 中,从非确定性交错原子动作的效果语义所计算的指称直接导出并发分离逻辑的部分正确性 Hoare 规则,并据此实现通用、可重用的验证库。
评估
通过构建并验证覆盖多种并发构造(如动态分配的可存储自旋锁、协议索引通道)的通用库,展示该语义的灵活性、表达力与可扩展性。
原文摘要(Abstract)

Much recent research has been devoted to modeling effects within type theory. Building on this work, we observe that effectful type theories can provide a foundation on which to build semantics for more complex programming constructs and program logics, extending the reasoning principles that apply within the host effectful type theory itself. Concretely, our main contribution is a semantics for concurrent separation logic (CSL) within the F ⋆ proof assistant in a manner that enables dependently typed, effectful F ⋆ programs to make use of concurrency and to be specified and verified using a full-featured, extensible CSL. In contrast to prior approaches, we directly derive the partial-correctness Hoare rules for CSL from the denotation of computations in the effectful semantics of non-deterministically interleaved atomic actions. Demonstrating the flexibility of our semantics, we build generic, verified libraries that support various concurrency constructs, ranging from dynamically allocated, storable spin locks, to protocol-indexed channels. We conclude that our effectful semantics provides a simple yet expressive basis on which to layer domain-specific languages and logics for verified, concurrent programming.

链接与引用

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

BibTeX
@article{abs-2111-15149,
  title = {SteelCore: an extensible concurrent separation logic for effectful dependently typed programs},
  author = {Nikhil Swamy and Aseem Rastogi and Aymeric Fromherz and Denis Merigoux and Danel Ahman and Guido Martínez},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {4},
  number = {ICFP},
  year = {2020},
  doi = {10.1145/3409003}
}