skip to main content
10.1145/96709.96714acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
Article
Free Access

A formulae-as-type notion of control

Authors Info & Claims
Published:01 December 1989Publication History

ABSTRACT

The programming language Scheme contains the control construct call/cc that allows access to the current continuation (the current control context). This, in effect, provides Scheme with first-class labels and jumps. We show that the well-known formulae-as-types correspondence, which relates a constructive proof of a formula α to a program of type α, can be extended to a typed Idealized Scheme. What is surprising about this correspondence is that it relates classical proofs to typed programs. The existence of computationally interesting “classical programs” —programs of type α, where α holds classically, but not constructively — is illustrated by the definition of conjunctively, disjunctive, and existential types using standard classical definitions. We also prove that all evaluations of typed terms in Idealized Scheme are finite.

References

  1. 1.M. Felleisen. The calculi of A~-CS conversion: a syntactic theory of control and state in imperatire higher.order programming languages. PhD thesis, Indiana University, 1987. Technical Report No. 226. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2.M. Felleisen and D. Friedman. Control operators, the secd-machine, and the )~-calculus. In Formal Description of Programming Concep~ III, pages 131-141, North-Holland, 1986.Google ScholarGoogle Scholar
  3. 3.M. Felleisen, D. Friedman, E. Kohlbecker, and B. Duba. Reasoning with continuations. In Proceedings of the First Symposium on Logic in Computer Science, pages 131-141, IEEE, 1986.Google ScholarGoogle Scholar
  4. 4.M. Felleisen, D. Friedman, E. Kohlbecker, and B. Duba. A syntactic theory of sequential control. Theoretical Computer Science, 52(3):205- 237, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5.A. Filinski. Declarative continuations: an investigation of duality in programming language semantics. In Summer Conference on Category Theory and Computer Science, Manchester, UK, Springer-Verlag, 1989. to appear in the Lecture Notes in Computer Science. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6.A. Filinski. Declarative Continuations and Categorical Duality. Master's thesis, University of Copenhagen, Copenhagen, Denmark, August 1989. DIKU Report 89/11, Computer Science Department.Google ScholarGoogle Scholar
  7. 7.M. J. Fischer. Lambda calculus schemata, in Proc. A CM Conference on Proving Assertions About Programs, pages 104-109, 1972. SIG- PLAN Notices 7.1. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8.J. Girard, P. Taylor, and Y. Lafont. Proofs and Types. Volume 7 of Cambridge Tracts in Computer Science, Cambridge University Press, 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9.R. }. Hindley and .1. Seldin. Introduction to Combinators and A-Calculus. London Mathematical Society Student Tezts, Cambridge University Press, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10.W. Howard. The formulae-as-types notion of construction, in J. P. Seldin and J. R. Hind- Icy, editors, To H. B. Curry: Essays on Comb~. natory Logic, Lambda-Calculus, and Formalism, pages 479-490, Academic Press, NY, 1980.Google ScholarGoogle Scholar
  11. 11.P. Landin. The mechanical evaluation of expressions. Computer Journal, 6(4), 1964.Google ScholarGoogle ScholarCross RefCross Ref
  12. 12.P. Landin. The next 700 prograrnmmg languages. Commun. ACM, 9(3):157-166, 1966. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. 13.A. R. Meyer and M. Wand. Continuation semantics in typed lambda-calculi (summary). In R. Parikh, editor, Logics of Programs, pages 219- 224, Springer-Verlag, 1985. Lecture Notes in Computer Science, Volume 193. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. 14.G. Plotkin. Call-by-name, call-by-value and the A-calculus. Theoretical Computer Science, } :125-159, 1975.Google ScholarGoogle Scholar
  15. 15.D. Prawitz. Natural Deduction. Almquist and Wiksell, 1965.Google ScholarGoogle Scholar
  16. 16.J. Rees and W. Clinger. The revised3 report on the algorithmic language scheme. SIGPLAN Notices, 21( 12):37-79, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. 17.G. L. Steele. Common Lisp: The Language. Digital Press, Bedford, MA, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. 18.S. Stenlund. Combinators, Lambda-Terms and Proof Theory. D. Reidel, Dordrecht, Holland, 1972.Google ScholarGoogle Scholar

Index Terms

  1. A formulae-as-type notion of control

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in
            • Published in

              cover image ACM Conferences
              POPL '90: Proceedings of the 17th ACM SIGPLAN-SIGACT symposium on Principles of programming languages
              December 1989
              401 pages
              ISBN:0897913434
              DOI:10.1145/96709

              Copyright © 1989 ACM

              Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 1 December 1989

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • Article

              Acceptance Rates

              Overall Acceptance Rate824of4,130submissions,20%

              Upcoming Conference

              POPL '25

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader