Twentieth Annual IEEE Symposium on

Logic in Computer Science (LICS 2005)

Paper: Generalizing Parametricity Using Information-flow (at LICS 2005)

Authors: Geoffrey Washburn Stephanie Weirich

Abstract

Run-time type analysis allows programmers to easily and concisely define operations based upon type structure, such as serialization, iterators, and structural equality. However, when types can be inspected at run time, nothing is secret. A module writer cannot use type abstraction to hide implementation details from clients: clients can determine the structure of these supposedly "abstract" data types. Furthermore, access control mechanisms do not help isolate the implementation of abstract datatypes from their clients. Buggy or malicious authorized modules may leak type information to unauthorized clients, so module implementors cannot reliably tell which parts of a program rely on their type definitions. Currently, module implementors rely on parametric polymorphism to provide integrity and confidentiality guarantees about their abstract datatypes. However, standard parametricity does not hold for languages with run-time type analysis; this paper shows how to generalize parametricity so that it does. The key is to augment the type system with annotations about information-flow. Implementors can then easily see which parts of a program depend on the chosen implementation by tracking the flow of dynamic type information.

BibTeX

  @InProceedings{WashburnWeirich-GeneralizingParamet,
    author = 	 {Geoffrey Washburn and Stephanie Weirich},
    title = 	 {Generalizing Parametricity Using Information-flow},
    booktitle =  {Proceedings of the Twentieth Annual IEEE Symp. on Logic in Computer Science, {LICS} 2005},
    year =	 2005,
    editor =	 {Prakash Panangaden},
    month =	 {June}, 
    pages =      {62--71},
    location =   {Chicago, USA}, 
    publisher =	 {IEEE Computer Society Press}
  }