Affiliation:
1. University of Nottingham, UK
Abstract
Parametricity, in both operational and denotational forms, has long been a useful tool for reasoning about program correctness. However, there is as yet no comparable technique for reasoning about program
improvement
, that is, when one program uses fewer resources than another. Existing theories of parametricity cannot be used to address this problem as they are agnostic with regard to resource usage. This article addresses this problem by presenting a new operational theory of parametricity that is sensitive to time costs, which can be used to reason about time improvement properties. We demonstrate the applicability of our theory by showing how it can be used to prove that a number of well-known program fusion techniques are time improvements, including fixed point fusion, map fusion and short cut fusion.
Funder
Engineering and Physical Sciences Research Council
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference29 articles.
1. Sascha Böhme. 2007. Free Theorems for Sublanguages of Haskell. Master’s thesis. Technische Universität Dresden. Sascha Böhme. 2007. Free Theorems for Sublanguages of Haskell. Master’s thesis. Technische Universität Dresden.
2. Formally proving a compiler transformation safe
3. Quantitative classical realizability
4. Realizability models for a linear dependent PCF
5. Andrew J. Gill John Launchbury and Simon L. Peyton Jones. 1993. A Short Cut to Deforestation. In Functional Programming Languages and Computer Architecture. 10.1145/165180.165214 Andrew J. Gill John Launchbury and Simon L. Peyton Jones. 1993. A Short Cut to Deforestation. In Functional Programming Languages and Computer Architecture. 10.1145/165180.165214
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Call-by-need is clairvoyant call-by-value;Proceedings of the ACM on Programming Languages;2019-07-26