Gradual Parametricity, Revisited

07/12/2018
by   Matías Toro, et al.
0

Bringing the benefits of gradual typing to a language with parametric polymorphism like System F, while preserving relational parametricity, has proven extremely challenging: first attempts were formulated a decade ago, and several recent developments have been published in the past year. In addition to leaving some properties as conjectures or future work, we observe that all prior work improperly handle type instantiations when imprecise types are involved. This observation further suggests that existing polymorphic cast calculi are not well suited for supporting a gradual counterpart of System F. Consequently, we revisit the challenge of designing a gradual language with explicit parametric polymorphism, exploring the extent to which the Abstracting Gradual Typing methodology helps us derive such a language, GSF. We present the design and metatheory of GSF. In addition to avoiding the uncovered semantic issues, GSF satisfies all the expected properties of a gradual parametric language, save for one property: the dynamic gradual guarantee, which was left as conjecture in all prior work, is here proven to be simply incompatible with parametricity. We nevertheless establish a weaker property that allows us to disprove several claims about gradual free theorems, clarifying the kind of reasoning supported by gradual parametricity.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/12/2018

Gradual Parametricity, Revisited (with Appendix)

Bringing the benefits of gradual typing to a language with parametric po...
research
01/13/2021

Parametricity for Nested Types and GADTs

This paper considers parametricity and its consequent free theorems for ...
research
09/04/2023

Partial Proof of a Conjecture with Implications for Spectral Majorization

In this paper we report on new results relating to a conjecture regardin...
research
05/17/2021

Factoring Statutory Reasoning as Language Understanding Challenges

Statutory reasoning is the task of determining whether a legal statute, ...
research
05/05/2023

More properties of (β,γ)-Chebyshev functions and points

Recently, (β,γ)-Chebyshev functions, as well as the corresponding zeros,...
research
09/08/2023

Graded Modal Types for Integrity and Confidentiality

Graded type systems, such as the one underlying the Granule programming ...
research
05/25/2023

Interval estimation in three-class ROC analysis: a fairly general approach based on the empirical likelihood

The empirical likelihood is a powerful nonparametric tool, that emulates...

Please sign up or login with your details

Forgot password? Click here to reset