Publikationsansicht

and Reasoning about Programs—Mechanical verification (2008)

Abstract
Proof assistants based on dependent type theory are closely related to functional programming languages, and so it is tempting to use them to prove the correctness of functional programs. In this paper, we show how Agda, such a proof assistant, can be used to prove theorems about Haskell programs. Haskell programs are translated into an Agda model of their semantics, by translating via GHC’s Core language into a monadic form specially adapted to represent Haskell’s polymorphism in Agda’s predicative type system. The translation can support reasoning about either total values only, or total and partial values, by instantiating the monad appropriately. We claim that, although these Agda models are generated by a relatively complex translation process, proofs about them are simple and natural, and we offer a number of examples to support this claim.

Details der Publikation
Download http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.67.4934
Quelle http://www.tcs.informatik.uni-muenchen.de/~abel/haskell05.pdf
Mitarbeiter CiteSeerX
Archiv CiteSeerX - Scientific Literature Digital Library and Search Engine (United States)
Keywords General Terms Languages, Theory, Verification Keywords Haskell, GHC Core, Type Theory, Monadic Translation, Partiality, Verification
Typ text
Sprache Englisch
Verknüpfungen 10.1.1.43.4232, 10.1.1.47.1361, 10.1.1.39.3778, 10.1.1.40.9333, 10.1.1.44.965, 10.1.1.63.4242, 10.1.1.8.9817