A type system equivalent to flow analysis

  • Authors:
  • Jens Palsberg;Patrick O'Keefe

  • Affiliations:
  • Laboratory for Computer Science, Massachusetts Institute of Technology, Room NE43-340, 545 Technology Square, Cambridge, MA;151 Coolidge Avenue #211, Watertown, MA

  • Venue:
  • ACM Transactions on Programming Languages and Systems (TOPLAS)
  • Year:
  • 1995

Quantified Score

Hi-index 0.00

Visualization

Abstract

Flow-based safety analysis of higher-order languages has been studied by Shivers, and Palsberg and Schwartzbach. Open until now is the problem of finding a type system that accepts exactly the same programs as safety analysis. In this article we prove that Amadio and Cardelli's type system with subtyping and recursive types accepts the same programs as a certain safety analysis. The proof involves mappings from types to flow information and back. As a result, we obtain an inference algorithm for the type system, thereby solving an open problem.