The Logic of Demand in Haskell. Harrison, W. L. & Kieburtz, R. B. Journal of Functional Programming, 15(6):837-891, 2005.
The Logic of Demand in Haskell [pdf]Paper  abstract   bibtex   1 download  
Haskell is a functional programming language whose evaluation is lazy by default. However, Haskell also provides pattern matching facilities which add a modicum of eagerness to its otherwise lazy default evaluation. This mixed or \emphnon-strict semantics can be quite difficult to reason with. This paper introduces a programming logic, P-Logic, which neatly formalizes the mixed evaluation in Haskell pattern-matching as a logic, thereby simplifying the task of specifying and verifying Haskell programs. In P-Logic, aspects of demand are reflected or represented within both the predicate language and its model theory, allowing for expressive and comprehensible program verification.

Downloads: 1