Syntactically Restricting Bounded Polymorphism for Decidable Subtyping

Julian Mackay*, Alex Potanin, Jonathan Aldrich, Lindsay Groves

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference Paperpeer-review

3 Citations (Scopus)

Abstract

Subtyping of Bounded Polymorphism has long been known to be undecidable when coupled with contra-variance. While decidable forms of bounded polymorphism exist, they all sacrifice either useful properties such as contra-variance (Kernel F< :), or useful metatheoretic properties (F<:⊤). In this paper we show how, by syntactically separating contra-variance from the recursive aspects of subtyping in System F< :, decidable subtyping can be ensured while also allowing for both contra-variant subtyping of certain instances of bounded polymorphism, and many of System F< :’s desirable metatheoretic properties. We then show that this approach can be applied to the related polymorphism present in D< :, a minimal calculus that models core features of the Scala type system.

Original languageEnglish
Title of host publicationProgramming Languages and Systems - 18th Asian Symposium, APLAS 2020, Proceedings
EditorsBruno C. Oliveira
Place of PublicationFukuika, Japan
PublisherSpringer Science+Business Media B.V.
Pages125-144
Number of pages20
ISBN (Electronic)978-3-030-64437-6
ISBN (Print)978-3-030-64436-9
DOIs
Publication statusPublished - 2020
Externally publishedYes
Event18th Asian Symposium on Programming Languages and Systems, APLAS 2020 - Fukuoka, Japan
Duration: 30 Nov 20202 Dec 2020

Publication series

NameLecture Notes in Computer Science
Volume12470 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference18th Asian Symposium on Programming Languages and Systems, APLAS 2020
Country/TerritoryJapan
CityFukuoka
Period30/11/202/12/20

Fingerprint

Dive into the research topics of 'Syntactically Restricting Bounded Polymorphism for Decidable Subtyping'. Together they form a unique fingerprint.

Cite this