Bauer, Andrej and Pretnar, Matija - An Effect System for Algebraic Effects and Handlers

lmcs:1153 - Logical Methods in Computer Science, December 10, 2014, Volume 10, Issue 4
An Effect System for Algebraic Effects and Handlers

Authors: Bauer, Andrej and Pretnar, Matija

We present an effect system for core Eff, a simplified variant of Eff, which is an ML-style programming language with first-class algebraic effects and handlers. We define an expressive effect system and prove safety of operational semantics with respect to it. Then we give a domain-theoretic denotational semantics of core Eff, using Pitts's theory of minimal invariant relations, and prove it adequate. We use this fact to develop tools for finding useful contextual equivalences, including an induction principle. To demonstrate their usefulness, we use these tools to derive the usual equations for mutable state, including a general commutativity law for computations using non-interfering references. We have formalized the effect system, the operational semantics, and the safety theorem in Twelf.


Source : oai:arXiv.org:1306.6316
DOI : 10.2168/LMCS-10(4:9)2014
Volume: Volume 10, Issue 4
Published on: December 10, 2014
Submitted on: June 25, 2015
Keywords: Computer Science - Programming Languages,Computer Science - Logic in Computer Science


Share

Browsing statistics

This page has been seen 76 times.
This article's PDF has been downloaded 46 times.