pith. sign in

arxiv: 1711.09286 · v1 · pith:GGGKYLDSnew · submitted 2017-11-25 · 💻 cs.PL

Total Haskell is Reasonable Coq

classification 💻 cs.PL
keywords haskellprogramsexistinghs-to-coqtooltotalamenableapplies
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.