Skip to main content

Discovering needed reductions using type theory

  • Conference paper
  • First Online:
Theoretical Aspects of Computer Software (TACS 1994)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 789))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. H.P. Barendregt. The Lambda Calculus: Its Syntax and Semantics, North-Holland, 1984.

    Google Scholar 

  2. 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.

    Google Scholar 

  3. C. Baker-Finch. Relevance and Contraction: A Logical Basis for Strictness and Sharing Analysis, Information Sciences Technical Report, University of Canberra, 1993.

    Google Scholar 

  4. F. Cardone and M. Coppo. Two Extensions of Curry's Type Inference System, Logic and Computer Science, ed. P. Odifreddi, pp 19–75, 1990.

    Google Scholar 

  5. M. Coppo, M. Dezani-Ciancaglini, and B. Venneri. Principal Type Schemes and Lambda Calculus Semantics, in [19], 1980.

    Google Scholar 

  6. M. Coppo and A. Ferrari. Type Inference, Abstract Interpretation and Strictness Analysis, manuscript.

    Google Scholar 

  7. J.M. Dunn. Relevant Logic and Entailment, Handbook of Philosophical Logic, eds. D. Gabbay and F. Guenthner, Vol. 3, pp 117–224, 1984.

    Google Scholar 

  8. P.A. Gardner. Discovering Needed Reductions Using Type Theory, full paper, in preparation, 1993.

    Google Scholar 

  9. P.A. Gardner. Strictness and Sharing Analysis using Type Theory, in preparation, 1993.

    Google Scholar 

  10. J.Y. Girard. Linear Logic, Theoretical Computer Science, Vol. 50, pp 1–102, 1987.

    Google Scholar 

  11. 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.

    Google Scholar 

  12. G. Gonthier, M. Abadi and J-J. Lévy. Linear Logic Without Boxes, Logic in Computer Science, 1992.

    Google Scholar 

  13. J.W. Klop. Term Rewriting Systems, Handbook of Logic in Computer Science, Vol. 2, pp 1–116, 1992.

    Google Scholar 

  14. J. Lamping. An Algorithm for Optimal Lambda Calculus Reduction, Seventeenth Annual ACM Symposium on Principals of Programming Languages, pp 16–30, 1990

    Google Scholar 

  15. J-J. Lévy. Optimal Reductions in the lambda calculus, in [19], pp 159–192, 1980.

    Google Scholar 

  16. S. Ronchi della Rocca. Principal Type Scheme and Unification for Intersection Type Discipline, Theoretical Computer Science, Vol. 59, pp 181–209, 1988.

    Google Scholar 

  17. S. Ronchi della Rocca and B. Venneri. Principal Type Schemes for an Extended Type Theory, Theoretical Computer Science, Vol. 29, pp 151–209, 1984.

    Google Scholar 

  18. J.P. Seldin and J.R. Hindley, editors. To H.B. Curry: Essays in Combinatory Logic, Lambda Calculus and Formalism, Academic Press, 1980.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Philippa Gardner .

Editor information

Masami Hagiya John C. Mitchell

Rights and permissions

Reprints 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

Publish with us

Policies and ethics