arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.15149cs.PL
收藏

SteelCore:一种可扩展的并发依赖类型程序的分离逻辑

SteelCore: An Extensible Concurrent Separation Logic for Effectful Dependently Typed Programs

Nikhil Swamy, Aseem Rastogi, Aymeric Fromherz, Denis Merigoux, Danel Ahman, Guido Martínez

摘要:

最近的许多研究都致力于在类型论中对效应进行建模。在这项工作的基础上,我们观察到,有效的类型论可以提供一个基础上建立更复杂的编程结构和程序逻辑的语义,扩展的推理原则,适用于主机有效的类型论本身。具体地说,我们的主要贡献是一个语义的并发分离逻辑(CSL)内的F* 证明助手的方式,使依赖类型,有效的F* 程序利用并发性和指定和验证使用功能齐全,可扩展的CSL。与以前的方法相比,我们直接从非确定性交织原子动作的有效语义中的计算表示中推导出CSL的部分正确性Hoare规则。展示我们的语义的灵活性,我们建立通用的,验证库,支持各种并发结构,从动态分配,可存储的自旋锁,协议索引的通道。我们的结论是,我们有效的语义提供了一个简单而富有表现力的基础上,层域特定的语言和逻辑验证,并发编程。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑