Revisiting Decidable Bounded Quantification, via Dinaturality

12/09/2022
by   James Laird, et al.
0

We use a semantic interpretation to investigate the problem of defining an expressive but decidable type system with bounded quantification. Typechecking in the widely studied System Fsub is undecidable thanks to an undecidable subtyping relation, for which the culprit is the rule for subtyping bounded quantification. Weaker versions of this rule, allowing decidable subtyping, have been proposed. One of the resulting type systems (Kernel Fsub) lacks expressiveness, another (System Fsubtop) lacks the minimal typing property and thus has no evident typechecking algorithm. We consider these rules as defining distinct forms of bounded quantification, one for interpreting type variable abstraction, and the other for type instantiation. By giving a semantic interpretation for both in terms of unbounded quantification, using the dinaturality of type instantiation with respect to subsumption, we show that they can coexist within a single type system. This does have the minimal typing property and thus a simple typechecking procedure. We consider the fragments of this unified type system over types which contain only one form of bounded quantifier. One of these is equivalent to Kernel Fsub, while the other can type strictly more terms than System Fsubtop but the same set of beta-normal terms. We show decidability of typechecking for this fragment, and thus for System Fsubtop typechecking of beta-normal terms.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/19/2018

On sets of terms with a given intersection type

We are interested in how much of the structure of a strongly normalizabl...
research
07/03/2023

On the Definition of the Eta-long Normal Form in Type Systems of the Cube

The smallest transitive relation < on well-typed normal terms such that ...
research
12/03/2019

On the Herbrand Functional Interpretation

We show that the types of the witnesses in the Herbrand functional inter...
research
12/05/2019

Isomorphism Revisited

Isomorphism is central to the structure of mathematics and has been form...
research
10/27/2017

Intensional and Extensional Semantics of Bounded and Unbounded Nondeterminism

We give extensional and intensional characterizations of nondeterministi...
research
02/20/2018

Degrees of extensionality in the theory of Böhm trees and Sallé's conjecture

The main observational equivalences of the untyped lambda-calculus have ...
research
08/19/2020

Transpension: The Right Adjoint to the Pi-type

Presheaf models of dependent type theory have been successfully applied ...

Please sign up or login with your details

Forgot password? Click here to reset