Journal of Functional Programming · 2012 · 86 citations · 19 references
ComputingComputer ScienceFormal MethodsLogicProgramming LanguagesModel TheoryPredicate LogicType CheckingType SystemsAbstractionDatatypes TheoryParametric PolymorphismParametricityPolymorphic Type SystemsPolymorphism StudiesPredicate Logic SemanticsType Theory
Reynolds' abstraction theorem establishes a foundational link between types, abstraction, and parametric polymorphism in programming languages. The study extends the abstraction theorem to inductive families. The authors translate source pure type system types into relational types in a target system. They demonstrate that a typing judgment in System F translates into a relational statement about type inhabitants, that every pure type system has a corresponding logic for parametricity, that values map to proofs of relational interpretation, and that assuming every term satisfies its parametricity condition is consistent with the generated logic. Process.
Abstract 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.
19
A formulation of the simple theory of types
Alonzo Church · Journal of Symbolic Logic · 1940 · 1.9K citations
Philip Wadler · 1989 · 776 citations
Types, Abstraction and Parametric Polymorphism.
John Reynolds · IFIP Congress · 1983 · 771 citations
How to make ad-hoc polymorphism less ad hoc
Philip Wadler, Stephen Blott · 1989 · 770 citations · Full text
Conor McBride, James McKinna · Journal of Functional Programming · 2004 · 327 citations · Full text