Lune

OOPSLA2023顶会

Greedy Implicit Bounded Quantification

Chen Cui, Shengyi Jiang, Bruno C. d. S. Oliveira

2023年份
9被引次数
6顶会引用

摘要

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 𝐹 ≤ , which is the canonical calculus with bounded quantification, with implicit polymorphism. Our variant, called 𝐹 𝑏 ≤ , 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 𝐹 𝑏 ≤ if desired. This is useful to deal with impredicative instantiations, which would not be allowed otherwise in 𝐹 𝑏 ≤ . Due to the support for impredicative instantiations, we can obtain a completeness result with respect to kernel 𝐹 ≤ , showing that all the well-typed kernel 𝐹 ≤ programs can type-check in 𝐹 𝑏 ≤ . 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.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper6

问问它们各自怎么用它

它引用的顶会 Paper2

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖