Parametric Subtyping for Structural Parametric Polymorphism

07/25/2023
by   Henry DeYoung, et al.
0

We study the interaction of structural subtyping with parametric polymorphism and recursively defined type constructors. Although structural subtyping is undecidable in this setting, we describe a notion of parametricity for type constructors and then exploit it to define parametric subtyping, a conceptually simple, decidable, and expressive fragment of structural subtyping that strictly generalizes nominal subtyping. We present and prove correct an effective saturation-based decision procedure for parametric subtyping, demonstrating its applicability using a variety of examples. An implementation of this decision procedure is available in an online repository.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset