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

Actris 2.0:分离逻辑中的异步会话类型推理

Actris 2.0: Asynchronous Session-Type Based Reasoning in Separation Logic

Jonas Kastberg Hinrichsen, Jesper Bengtson, Robbert Krebbers

AI总结:

本文提出Actris 2.0,一种基于会话类型的分离逻辑,用于在混合并发范式下证明消息传递程序的功能正确性,并通过子协议增强异步推理,已在Coq中机械化验证。

摘要:

消息传递是实现并发程序的一种有用抽象。然而,对于现实世界的系统,它通常与其他编程和并发范式相结合,例如高阶函数、可变状态、共享内存并发和锁。我们提出Actris:一种用于证明使用上述特性组合的程序的功能正确性的逻辑。Actris将现代并发分离逻辑的力量与一流的协议机制——基于会话类型——相结合,用于在其他并发范式存在的情况下推理消息传递。我们通过证明各种示例的功能正确性,包括基于通道的归并排序、基于通道的负载均衡映射器以及map-reduce模型的一个变体,展示了Actris提供了合适的抽象级别,并使用简洁的规范。虽然Actris已在会议论文(POPL'20)中提出,但本文显著扩展了先前的表述。此外,它将Actris扩展为Actris 2.0,引入子协议的概念——基于会话类型子类型——允许在组合通道端点时提供额外的灵活性,并充分利用Actris中消息传递的异步语义。Actris 2.0的可靠性通过其在Iris框架中的协议机制模型得到证明。我们已在Coq证明助手中机械化Actris的理论,连同自定义策略,以及论文中的所有示例。

英文摘要:

Message passing is a useful abstraction for implementing concurrent programs. For real-world systems, however, it is often combined with other programming and concurrency paradigms, such as higher-order functions, mutable state, shared-memory concurrency, and locks. We present Actris: a logic for proving functional correctness of programs that use a combination of the aforementioned features. Actris combines the power of modern concurrent separation logics with a first-class protocol mechanism -- based on session types -- for reasoning about message passing in the presence of other concurrency paradigms. We show that Actris provides a suitable level of abstraction by proving functional correctness of a variety of examples, including a channel-based merge sort, a channel-based load-balancing mapper, and a variant of the map-reduce model, using concise specifications. While Actris was already presented in a conference paper (POPL'20), this paper expands the prior presentation significantly. Moreover, it extends Actris to Actris 2.0 with a notion of subprotocols -- based on session-type subtyping -- that permits additional flexibility when composing channel endpoints, and that takes full advantage of the asynchronous semantics of message passing in Actris. Soundness of Actris 2.0 is proven using a model of its protocol mechanism in the Iris framework. We have mechanised the theory of Actris, together with custom tactics, as well as all examples in the paper, in the Coq proof assistant.

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

↑