Effect Polymorphism in Higher-Order Logic (Proof Pearl)

被引:0
|
作者
Andreas Lochbihler
机构
[1] Digital Asset (Switzerland) GmbH,
来源
关键词
Monad; Monad transformer; Effects; Polymorphism; Equational reasoning; Isabelle/HOL;
D O I
暂无
中图分类号
学科分类号
摘要
The notion of a monad cannot be expressed within higher-order logic (HOL) due to type system restrictions. I show that if a monad is restricted to values of a fixed type, this notion can be formalised in HOL. Based on this idea, I develop a library of effect specifications and implementations of monads and monad transformers. Hence, I can abstract over the concrete monad in HOL definitions and thus use the same definition for different (combinations of) effects. I illustrate the usefulness of effect polymorphism with a monadic interpreter.
引用
收藏
页码:439 / 462
页数:23
相关论文
共 50 条