Universe Types for Topology and Encapsulation

  • Authors:
  • Dave Cunningham;Werner Dietl;Sophia Drossopoulou;Adrian Francalanza;Peter Müller;Alexander J. Summers

  • Affiliations:
  • Imperial College London,;ETH Zurich,;Imperial College London,;University of Southampton,;ETH Zurich,;Imperial College London,

  • Venue:
  • Formal Methods for Components and Objects
  • Year:
  • 2008

Quantified Score

Hi-index 0.01

Visualization

Abstract

The Universe Type System is an ownership type system for object-oriented programming languages that hierarchically structures the object store; it is used to reason modularly about programs. We formalise Universe Types for a core subset of Java in two steps: We first define a Topological Type System that structures the object store hierarchically into an ownership tree, and demonstrate soundness of the Topological Type System by proving subject reduction. Motivated by concerns of modular verification, we then present an Encapsulation Type System that enforces the owner-as-modifier discipline; that is, that object updates are initiated by the owner of the object. The contributions of this paper are, firstly, an extensive type-theoretic account of the Universe Type System, with explanations and complete proofs, and secondly, the clean separation of the topological from the encapsulation concerns.