SPLASH 2023
Sun 22 - Fri 27 October 2023 Cascais, Portugal
Thu 26 Oct 2023 14:00 - 14:18 at Room I - type systems 2 Chair(s): Max S. New

Mainstream object-oriented programming languages such as Java, Scala, C#, or TypeScript have polymorphic type systems with subtyping and bounded quantification. Bounded quantification, despite being a pervasive and widely used feature, has attracted little research work on type-inference algorithms to support it. A notable exception is local type inference, which is the basis of most current implementations of type inference for mainstream languages. However, support for bounded quantification in local type inference has important restrictions, and its non-algorithmic specification is complex.

In this paper, we present a variant of kernel $F_{\le}$, which is the canonical calculus with bounded quantification, with implicit polymorphism. Our variant, called $F_{\le}^b$, comes with a declarative and an algorithmic formulation of the type system. The declarative type system is based on previous work on bidirectional typing for predicative higher-rank polymorphism and a greedy approach to implicit instantiation. This allows for a clear declarative specification where programs require few type annotations and enables implicit polymorphism where applications omit type parameters. Just as local type inference, explicit type applications are also available in $F_{\le}^b$ if desired. This is useful to deal with impredicative instantiations, which would not be allowed otherwise in $F_{\le}^b$. Due to the support for impredicative instantiations, we can obtain a completeness result with respect to kernel $F_{\le}$, showing that all the well-typed kernel $F_{\le}$ programs can type-check in $F_{\le}^b$. The corresponding algorithmic version of the type system is shown to be sound, complete, and decidable. All the results have been mechanically formalized in the Abella theorem prover.

Thu 26 Oct

Displayed time zone: Lisbon change

14:00 - 15:30
type systems 2OOPSLA at Room I
Chair(s): Max S. New University of Michigan
14:00
18m
Talk
Greedy Implicit Bounded Quantification
OOPSLA
Chen Cui University of Hong Kong, Shengyi Jiang University of Hong Kong, Bruno C. d. S. Oliveira University of Hong Kong
DOI
14:18
18m
Talk
Structural Subtyping as Parametric Polymorphism
OOPSLA
Wenhao Tang University of Edinburgh, Daniel Hillerström Huawei Zurich Research Center, James McKinna Heriot-Watt University, Michel Steuwer TU Berlin; University of Edinburgh, Ornela Dardha University of Glasgow, Rongxiao Fu University of Edinburgh, Sam Lindley University of Edinburgh
DOI Pre-print
14:36
18m
Talk
Simple Reference Immutability for System F<:
OOPSLA
Edward Lee University of Waterloo, Ondřej Lhoták University of Waterloo
DOI
14:54
18m
Talk
Mutually Iso-Recursive Subtyping
OOPSLA
Andreas Rossberg Independent
DOI
15:12
18m
Talk
Getting into the Flow: Towards Better Type Error Messages for Constraint-Based Type Inference
OOPSLA
Ishan Bhanuka Hong Kong University of Science and Technology, Lionel Parreaux Hong Kong University of Science and Technology, David Binder University of Tübingen, Jonathan Immanuel Brachthäuser University of Tübingen
DOI Pre-print