From Algol to polymorphic linear lambda-calculus

  • Authors:
  • Peter W. O'Hearn;John C. Reynolds

  • Affiliations:
  • Queen Mary & Westfield College, London, UK;Carnegie Mellon Univ., Pittsburgh, PA

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 2000

Quantified Score

Hi-index 0.01

Visualization

Abstract

In a linearly-typed functional language, one can define functions that consume their arguments in the process of computing their results. This is reminiscent of state transformations in imperative languages, where execition of an assignment statement alters the contents of the store. We explore this connection by translating two variations on Algol 60 into a purely functional language with polymorphic linear types. On the one hand, the translations lead to a semantic analysis of Algol-like programs, in terms of a model of the linear language. On the other hand, they demonstrate that a linearly-typed functional language can be at least as expressive as Algol.