首页    期刊浏览 2024年11月08日 星期五
登录注册

文章基本信息

  • 标题:Extending Equational Monadic Reasoning with Monad Transformers
  • 本地全文:下载
  • 作者:Affeldt, Reynald ; Nowak, David
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2021
  • 卷号:188
  • 页码:2:1-2:21
  • DOI:10.4230/LIPIcs.TYPES.2020.2
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:There is a recent interest for the verification of monadic programs using proof assistants. This line of research raises the question of the integration of monad transformers, a standard technique to combine monads. In this paper, we extend Monae, a Coq library for monadic equational reasoning, with monad transformers and we explain the benefits of this extension. Our starting point is the existing theory of modular monad transformers, which provides a uniform treatment of operations. Using this theory, we simplify the formalization of models in Monae and we propose an approach to support monadic equational reasoning in the presence of monad transformers. We also use Monae to revisit the lifting theorems of modular monad transformers by providing equational proofs and explaining how to patch a known bug using a non-standard use of Coq that combines impredicative polymorphism and parametricity.
  • 关键词:monads; monad transformers; Coq; impredicativity; parametricity
国家哲学社会科学文献中心版权所有