Publikationsansicht

Verifying Haskell programs using constructive type theory (2005)

Abstract
Abstract Proof assistants based on dependent type theory are closely relatedto 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 translatedinto an Agda model of their semantics, by translating via GHC's Core language into a monadic form specially adapted to representHaskell's polymorphism in Agda's predicative type system. The translation can support reasoning about either total values only, ortotal and partial values, by instantiating the monad appropriately. We claim that, although these Agda models are generated by a rel-atively complex translation process, proofs about them are simple and natural, and we offer a number of examples to support thisclaim.

Details der Publikation
Download http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.70.8486
Quelle http://www.tcs.informatik.uni-muenchen.de/~abel/haskell05.ps.gz
Herausgeber ACM Press
Mitarbeiter CiteSeerX
Archiv CiteSeerX - Scientific Literature Digital Library and Search Engine (United States)
Typ text
Sprache Englisch
Verknüpfungen 10.1.1.43.4232, 10.1.1.100.6389, 10.1.1.86.8322, 10.1.1.61.6433, 10.1.1.61.7252