Actris: Session-Type Based Reasoning in Separation Logic

被引:25
作者
Hinrichsen, Jonas Kastberg [1 ]
Bengtson, Jesper [1 ]
Krebbers, Robbert [2 ]
机构
[1] IT Univ Copenhagen, Copenhagen, Denmark
[2] Delft Univ Technol, Delft, Netherlands
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2020年 / 4卷 / POPL期
关键词
Message passing; actor model; concurrency; session types; Iris;
D O I
10.1145/3371074
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Message passing is a useful abstraction to implement 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 distributed merge sort, a distributed load-balancing mapper, and a variant of the map-reduce model, using relatively simple specifications. Soundness of Actris is proved using a model of its protocol mechanism in the Iris framework. We mechanised the theory of Actris, together with tactics for symbolic execution of programs, as well as all examples in the paper, in the Coq proof assistant.
引用
收藏
页数:30
相关论文
共 50 条
[31]  
Krebbers Robbert, POPL
[32]  
Krogh-Jespersen Morten, 2019, ANERIS MECHANISED LO
[33]   A Static Verification Framework for Message Passing in Go using Behavioural Types [J].
Lange, Julien ;
Ng, Nicholas ;
Toninho, Bernardo ;
Yoshida, Nobuko .
PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2018, :1137-1148
[34]   Shared Contract-Obedient Endpoints [J].
Lozes, Etienne ;
Villard, Jules .
ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2012, (104) :17-31
[35]   A verified messaging system [J].
Mansky, William ;
Appel, Andrew W. ;
Nogin, Aleksey .
Proceedings of the ACM on Programming Languages, 2017, 1 (OOPSLA)
[36]   The KRAKATOA tool for certification of JAVA']JAVA/JAVA']JAVACARD programs annotated in JML [J].
Marché, C ;
Paulin-Mohring, C ;
Urbain, X .
JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2004, 58 (1-2) :89-106
[37]  
Mostrous D, 2014, LECT NOTES COMPUT SC, V8459, P115
[38]   A modality for recursion [J].
Nakano, H .
15TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2000, :255-266
[39]  
Nanevski A, 2014, LECT NOTES COMPUT SC, V8410, P290
[40]  
Ono Kosuke, 2011, SEFM