首页> 外文期刊>Journal of Automated Reasoning >Effect Polymorphism in Higher-Order Logic (Proof Pearl)
【24h】

Effect Polymorphism in Higher-Order Logic (Proof Pearl)

机译:高阶逻辑中的效应多态(证明珍珠)

获取原文
获取原文并翻译 | 示例

摘要

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.
机译:由于类型系统的限制,monad的概念无法在高阶逻辑(HOL)中表达。我证明了,如果monad限于固定类型的值,则可以在HOL中将该概念形式化。基于这个想法,我开发了一个效果规范库以及monad和monad变压器的实现。因此,我可以对HOL定义中的具体monad进行抽象,从而对不同的(组合)效果使用相同的定义。我用单子解释器说明了效果多态性的有用性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号