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 条
[1]   SOLVING REFLEXIVE DOMAIN EQUATIONS IN A CATEGORY OF COMPLETE METRIC-SPACES [J].
AMERICA, P ;
RUTTEN, J .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1989, 39 (03) :343-375
[2]   TIME, CLOCKS, AND ORDERING OF EVENTS IN A DISTRIBUTED SYSTEM [J].
LAMPORT, L .
COMMUNICATIONS OF THE ACM, 1978, 21 (07) :558-565
[3]  
Appel Andrew W., 2014, PROGRAM LOGICS CERTI, DOI DOI 10.1017/CBO9781107256552
[4]  
Atkey Robert, 2016, A List of Successes that can Change the World. Essays Dedicated to Philip Wadler on the Occasion of his 60th Birthday. LNCS 9600, P32, DOI 10.1007/978-3-319-30936-1_2
[5]  
Balzer S., 2017, PACMPL 1 ICFP 2017, V37, P29
[6]   Manifest Deadlock-Freedom for Shared Session Types [J].
Balzer, Stephanie ;
Toninho, Bernardo ;
Pfenning, Frank .
PROGRAMMING LANGUAGES AND SYSTEMS, ESOP 2019: 28TH EUROPEAN SYMPOSIUM ON PROGRAMMING, 2019, 11423 :611-639
[7]   FIRST STEPS IN SYNTHETIC GUARDED DOMAIN THEORY: STEP-INDEXING IN THE TOPOS OF TREES [J].
Birkedal, Lars ;
Mogelberg, Rasmus Ejlers ;
Schwinghammer, Jan ;
Stovring, Kristian .
LOGICAL METHODS IN COMPUTER SCIENCE, 2012, 8 (04)
[8]   Iron: Managing Obligations in Higher-Order Concurrent Separation Logic [J].
Bizjak, Ales ;
Gratzer, Daniel ;
Krebbers, Robbert ;
Birkedal, Lars .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (POPL)
[9]  
Bocchi L, 2010, LECT NOTES COMPUT SC, V6269, P162, DOI 10.1007/978-3-642-15375-4_12
[10]  
Coq development team, 2019, The Coq Proof Assistant Reference Manual