Abstract
The identification of the needed redexes in a term is an undecidable problem. We introduce a (partially decidable) type assignment system, which distinguishes certain redexes called the allowable redexes. For a well-typed term e, allowable redexes are needed redexes. In addition, with principal typing, all the needed redexes of a normalisable term are allowable. Using these results, we are able to identify all the needed reductions of a principally typed normalisable term. Possible applications of these results include strictness and sharing analysis for functional programming languages, and a reduction strategy for well-typed terms which satisfies Lévy's notion of optimal reduction.
This research was supported by a SERC Research Grant.
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
H.P. Barendregt. The Lambda Calculus: Its Syntax and Semantics, North-Holland, 1984.
H.P. Barendregt, J.R. Kennaway, J.W. Klop and M.R. Sleep. Needed Reduction and Spine Strategies for the Lambda Calculus, Information and Computation, Vol. 75, pp 191–231, 1987.
C. Baker-Finch. Relevance and Contraction: A Logical Basis for Strictness and Sharing Analysis, Information Sciences Technical Report, University of Canberra, 1993.
F. Cardone and M. Coppo. Two Extensions of Curry's Type Inference System, Logic and Computer Science, ed. P. Odifreddi, pp 19–75, 1990.
M. Coppo, M. Dezani-Ciancaglini, and B. Venneri. Principal Type Schemes and Lambda Calculus Semantics, in [19], 1980.
M. Coppo and A. Ferrari. Type Inference, Abstract Interpretation and Strictness Analysis, manuscript.
J.M. Dunn. Relevant Logic and Entailment, Handbook of Philosophical Logic, eds. D. Gabbay and F. Guenthner, Vol. 3, pp 117–224, 1984.
P.A. Gardner. Discovering Needed Reductions Using Type Theory, full paper, in preparation, 1993.
P.A. Gardner. Strictness and Sharing Analysis using Type Theory, in preparation, 1993.
J.Y. Girard. Linear Logic, Theoretical Computer Science, Vol. 50, pp 1–102, 1987.
G. Gonthier, M. Abadi and J-J. Lévy. The Geometry of Optimal Lambda Reduction, Ninteenth Annual ACM Symposium of Principles of Programming Languages, pp 15–26, 1992.
G. Gonthier, M. Abadi and J-J. Lévy. Linear Logic Without Boxes, Logic in Computer Science, 1992.
J.W. Klop. Term Rewriting Systems, Handbook of Logic in Computer Science, Vol. 2, pp 1–116, 1992.
J. Lamping. An Algorithm for Optimal Lambda Calculus Reduction, Seventeenth Annual ACM Symposium on Principals of Programming Languages, pp 16–30, 1990
J-J. Lévy. Optimal Reductions in the lambda calculus, in [19], pp 159–192, 1980.
S. Ronchi della Rocca. Principal Type Scheme and Unification for Intersection Type Discipline, Theoretical Computer Science, Vol. 59, pp 181–209, 1988.
S. Ronchi della Rocca and B. Venneri. Principal Type Schemes for an Extended Type Theory, Theoretical Computer Science, Vol. 29, pp 151–209, 1984.
J.P. Seldin and J.R. Hindley, editors. To H.B. Curry: Essays in Combinatory Logic, Lambda Calculus and Formalism, Academic Press, 1980.
Author information
Authors and Affiliations
Corresponding author
Editor information
Rights and permissions
Copyright information
© 1994 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Gardner, P. (1994). Discovering needed reductions using type theory. In: Hagiya, M., Mitchell, J.C. (eds) Theoretical Aspects of Computer Software. TACS 1994. Lecture Notes in Computer Science, vol 789. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-57887-0_115
Download citation
DOI: https://doi.org/10.1007/3-540-57887-0_115
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-57887-1
Online ISBN: 978-3-540-48383-0
eBook Packages: Springer Book Archive