HALO: Haskell to Logic through Denotational Semantics
Artikel i vetenskaplig tidskrift, 2013

Even well-typed programs can go wrong in modern functional languages, by encountering a pattern-match failure, or simply returning the wrong answer. An increasingly-popular response is to allow programmers to write contracts that express semantic properties, such as crash-freedom or some useful post-condition. We study the static verification of such contracts. Our main contribution is a novel translation to first-order logic of both Haskell programs, and contracts written in Haskell, all justified by denotational semantics. This translation enables us to prove that functions satisfy their contracts using an off-the-shelf first-order logic theorem prover.

static contract checking

first-order logic

languages

verification

Författare

D. Vytiniotis

Microsoft Research

S. P. Jones

Microsoft Research

Dan Rosén

Chalmers, Data- och informationsteknik, Programvaruteknik

Koen Lindström Claessen

Chalmers, Data- och informationsteknik, Programvaruteknik

SIGPLAN Notices (ACM Special Interest Group on Programming Languages)

07308566 (ISSN)

Vol. 48 1 431-442

Ämneskategorier

Programvaruteknik

DOI

10.1145/2480359.2429121

Mer information

Senast uppdaterat

2018-09-06