Hostname: page-component-6766d58669-nqrmd Total loading time: 0 Render date: 2026-05-14T23:17:50.339Z Has data issue: false hasContentIssue false

Proofs for free

Parametricity for dependent types

Published online by Cambridge University Press:  30 March 2012

JEAN-PHILIPPE BERNARDY
Affiliation:
Chalmers University of Technology & University of Gothenburg, Sweden (e-mail: bernardy@chalmers.se, patrikj@chalmers.se)
PATRIK JANSSON
Affiliation:
Chalmers University of Technology & University of Gothenburg, Sweden (e-mail: bernardy@chalmers.se, patrikj@chalmers.se)
ROSS PATERSON
Affiliation:
City University, London, UK (e-mail: ross@soi.city.ac.uk)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Reynolds' abstraction theorem (Reynolds, J. C. (1983) Types, abstraction and parametric polymorphism, Inf. Process.83(1), 513–523) shows how a typing judgement in System F can be translated into a relational statement (in second-order predicate logic) about inhabitants of the type. We obtain a similar result for pure type systems (PTSs): for any PTS used as a programming language, there is a PTS that can be used as a logic for parametricity. Types in the source PTS are translated to relations (expressed as types) in the target. Similarly, values of a given type are translated to proofs that the values satisfy the relational interpretation. We extend the result to inductive families. We also show that the assumption that every term satisfies the parametricity condition generated by its type is consistent with the generated logic.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2012
Submit a response

Discussions

No Discussions have been published for this article.