We present a logic for algebraic effects, based on the algebraic representation of computational effects by operations and equations. We begin with the a-calculus, a minimal calculus which separates values, effects, and computations and thereby canonises the order of evaluation. This is extended to obtain the logic, which is a classical firstorder multi-sorted logic with higher-order value and computation types, as in Levy's call-by-push-value, a principle of induction over computations, a free algebra principle, and predicate fixed points. This logic embraces Moggi's computational λ-calculus, and also, via definable modalities, Hennessy-Milner logic, and evaluation logic, though Hoare logic presents difficulties.
A different logic for algebraic effects was proposed by Plotkin and Pretnar REF .
A Logic for Algebraic Effects
2008 23rd Annual IEEE Symposium on Logic in Computer Science
2008 23rd Annual IEEE Symposium on Logic in Computer Science
Computer Science