计算机科学 > 程序设计语言
[提交于 2017年11月25日]
标题:Total Haskell is Reasonable Coq
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We would like to use the Coq proof assistant to mechanically verify properties of Haskell programs. To that end, we present a tool, named hs-to-coq, that translates total Haskell programs into Coq programs via a shallow embedding. We apply our tool in three case studies -- a lawful Monad instance, "Hutton's razor", and an existing data structure library -- and prove their correctness. These examples show that this approach is viable: both that hs-to-coq applies to existing Haskell code, and that the output it produces is amenable to verification.
提交历史
来自:Joachim Breitner[v1] 2017年11月25日 星期六 20:49:58 UTC