Skip to main content

A Curry-Howard Isomorphism for Compilation and Program Execution

  • Conference paper
  • First Online:

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

Abstract

This paper establishes a Curry-Howard isomorphism for compilation and program execution by showing the following facts. (1) The set of A-normal forms, which is often used as an intermediate language for compilation, corresponds to a subsystem of Kleene’s contraction-free variant of Gentzen’s intuitionistic sequent calculus. (2) Compiling the lambda terms to the set of A-normal forms corresponds to proof transformation from the natural deduction to the sequent calculus followed by proof normalization. (3) Execution of an A-normal form corresponds to a special proof reduction in the sequent calculus. Different from cut elimination, this process eliminates left rules by converting them to cuts of proofs corresponding to closed values. The evaluation of an entire program is the process of inductively applying this process followed by constructing data structures.

This work was partly supported by the Japanese Ministry of Education Grant-in-Aid for Scientific Research on Priority Area no. 275 “Advanced databases,” and by the Parallel and Distributed Processing Research Consortium, Japan.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. S. Abramsky. Computational interpretation of linear logic. Theoretical Computer Science, 3(57), 1993.

    Google Scholar 

  2. B. Breazu-Tannen, D. Kesner, and L. Puel. A typed pattern calculus. In Proc. IEEE Symposium on Logic in Computer Science, pages 262–274, 1993.

    Google Scholar 

  3. H. B. Curry and R. Feys. Combinatory Logic, volume 1. North-Holland, Amsterdam, 1968.

    MATH  Google Scholar 

  4. V. Danos, J-B. Jointe, and H. Schellinx. A new deconstructive logic: linear logic. Journal of Symbolic Logic, 63(3):755–807, 1997.

    Google Scholar 

  5. O. Danvy. Back to direct style. In Proc. European Symposium on Programming, volume 582 of Lecture Notes in Computer Science, pages 130–150, 1992.

    Google Scholar 

  6. C. Flanagan, A. Sabry, B.F. Duba, and M. Felleisen. The essence of compiling with continuation. In Proc. ACM PLDI Conference, pages 237–247, 1993.

    Google Scholar 

  7. J. Gallier. Constructive logics part I: A tutorial on proof systems and typed λ-calculi. Theoretical Computer Science, 110:249–339, 1993.

    Article  MATH  MathSciNet  Google Scholar 

  8. G. Gentzen. Investigation into logical deduction. In M.E. Szabo, editor, The Collected Papers of Gerhard Gentzen. North-Holland, 1969.

    Google Scholar 

  9. T. Griffin. A formulae-as-types notion of control. In Conference Record of the Seventeenth Annual ACM Symposium on Principles of Programming Languages, pages 47–58, 1990.

    Google Scholar 

  10. H. Herbelin. A λ-calculus structure isomorphic to Gentzen-style sequent calculus structure. In Proc. European Association for Computer Science Logic, Lecture Notes in Computer Science 933, pages 61–74, 1994.

    Google Scholar 

  11. W. Howard. The formulae-as-types notion of construction. In To H. B. Curry: Essays on Combinatory Logic, Lambda-Calculus and Formalism, pages 476–490. Academic Press, 1980.

    Google Scholar 

  12. G. Kahn. Natural semantics. In Proc. Symposium on Theoretical Aspects of Computer Science, pages 22–39. Springer Verlag, 1987.

    Google Scholar 

  13. S. Kleene. Introduction to Metamathematics. North-Holland, 1952. 7th edition.

    Google Scholar 

  14. S. Kobayashi. Monads as modality. Theoretical Computer Science, 175(1):29–74, 1997.

    Article  MATH  MathSciNet  Google Scholar 

  15. E. Moggi. Computational lambda-calculus and monads. In Proceedings of the Symposium on Logic in Computer Science, 1989.

    Google Scholar 

  16. I. Ogata. Cut elimination for classical proofs as continuation passing style computation. In Proc. ASIAN Computing Science Conference, LNCS 1538, 1998.

    Google Scholar 

  17. G. Pottinger. Normalization as a homomorphic image of cut-elimination. Ann. Math. Logic, 12:323–357, 1977.

    Article  MATH  MathSciNet  Google Scholar 

  18. D. Prawitz. Natural Deduction. Almqvist & Wiksell, 1965.

    Google Scholar 

  19. A. Sabry and M. Felleisen. Reasoning about programs in continuation-passing style. J. Lisp and Symbolic Computation, 6(3):287–358, 1993.

    Google Scholar 

  20. W. Tait. Intensional interpretations of functionals of finite type i. Journal of Symbolic Logic, 32(2), 1966.

    Google Scholar 

  21. J. Zucker. The correspondence between cut-elimination and normalization. Ann. Math. Logic, 7:1–112, 1974.

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1999 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Ohori, A. (1999). A Curry-Howard Isomorphism for Compilation and Program Execution. In: Girard, JY. (eds) Typed Lambda Calculi and Applications. TLCA 1999. Lecture Notes in Computer Science, vol 1581. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-48959-2_20

Download citation

  • DOI: https://doi.org/10.1007/3-540-48959-2_20

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-65763-7

  • Online ISBN: 978-3-540-48959-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics