Handle with Care: Relational Interpretation of Algebraic Effects and Handlers
Algebraic effects and handlers have received a lot of attention recently, both from the theoretical point of view and in practical language design. This stems from the fact that algebraic effects give the programmer unprecedented freedom to define, combine, and interpret computational effects. This plenty-of-rope, however, demands not only a deep understanding of the underlying semantics, but also access to practical means of reasoning about effectful code, including correctness and program equivalence. In this paper we tackle this problem by constructing a step-indexed relational interpretation of a call-by-value calculus with algebraic effect handlers and row-based polymorphic type-and-effect system. Our calculus, while striving for simplicity, enjoys desirable theoretical properties, and is close to the cores of programming languages with algebraic effects used in the wild, while the logical relation we build for it can be used to reason about non-trivial properties, such as contextual equivalence and contextual approximation of programs. Our development has been fully formalised in the Coq proof assistant.
Wed 10 JanDisplayed time zone: Tijuana, Baja California change
10:30 - 12:10 | Types and EffectsResearch Papers at Watercourt Chair(s): Neel Krishnaswami Computer Laboratory, University of Cambridge | ||
10:30 25mTalk | Linear Haskell: practical linearity in a higher-order polymorphic language Research Papers Jean-Philippe Bernardy University of Gothenburg, Mathieu Boespflug Tweag I/O, Ryan R. Newton Indiana University, Simon Peyton Jones Microsoft Research, Arnaud Spiwack Tweag I/O Pre-print File Attached | ||
10:55 25mTalk | Polyadic Approximations, Fibrations and Intersection Types Research Papers | ||
11:20 25mTalk | Handling fibred algebraic effects Research Papers Danel Ahman Inria Paris | ||
11:45 25mTalk | Handle with Care: Relational Interpretation of Algebraic Effects and Handlers Research Papers Dariusz Biernacki University of Wrocław, Maciej Piróg University of Wrocław, Piotr Polesiuk University of Wrocław, Filip Sieczkowski University of Wrocław |