Coherence of subsumption, minimum typing and type-checking in F ≤
- 4 March 1992
- journal article
- Published by Cambridge University Press (CUP) in Mathematical Structures in Computer Science
- Vol. 2 (1) , 55-91
- https://doi.org/10.1017/s0960129500001134
Abstract
A subtyping relation ≤ between types is often accompanied by a typing rule, called subsumption: if a term a has type T and T≤U, then a has type U. In presence of subsumption, a well-typed term does not codify its proof of well typing. Since a semantic interpretation is most naturally defined by induction on the structure of typing proofs, a problem of coherence arises: different typing proofs of the same term must have related meanings. We propose a proof-theoretical, rewriting approach to this problem. We focus on F≤, a second-order lambda calculus with bounded quantification, which is rich enough to make the problem interesting. We define a normalizing rewriting system on proofs, which transforms different proofs of the same typing judgement into a unique normal proof, with the further property that all the normal proofs assigning different types to a given term in a given environment differ only by a final application of the subsumption rule. This rewriting system is not defined on the proofs themselves but on the terms of an auxiliary type system, in which the terms carry complete information about their typing proof. This technique gives us three different results:— Any semantic interpretation is coherent if and only if our rewriting rules are satisfied as equations.— We obtain a proof of the existence of a minimum type for each term in a given environment.— From an analysis of the shape of normal form proofs, we obtain a deterministic typechecking algorithm, which is sound and complete by construction.Keywords
This publication has 5 references indexed in Scilit:
- An extension of system F with subtypingPublished by Springer Nature ,1991
- The coherence of languages with intersection typesPublished by Springer Nature ,1991
- A confluent reduction for the λ-calculus with surjective pairing and terminal objectPublished by Springer Nature ,1991
- A modest model of records, inheritance, and bounded quantificationInformation and Computation, 1990
- On understanding types, data abstraction, and polymorphismACM Computing Surveys, 1985