paperbot · PL 论文追踪

全部论文 待读 收藏

P2 A theory of higher-order subtyping with type intervals

带类型区间的更高阶子类型理论
ICFP 5(ICFP)2021匹配度 2/10 · 论文属于类型论与形式化验证范畴,虽然与 PL 形式化方法有间接关联,但并未涉及用户核心关注的静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析。引用 1 inbox
Sandro Stucki, Paolo G. Giarrusso
crossref: 2026-09-10

AI 速览

一句话:提出带区间 kind 的 F··ω,为 Scala 高阶类型提供统一的子类型理论基础。

针对 DOT 对类型级计算支持不足的问题,论文提出 F··ω,作为 Scala 高阶类型(higher-kinded types)的严谨理论基础。它在 F<:ω 上引入区间 kind(interval kinds),以统一方式刻画 Scala 中重要的类型层与 kind 层抽象机制,包括有界量化、有界算子抽象、半透明类型定义和一等子类型约束,从而形成灵活而通用的高阶子类型理论。作者证明 F··ω 的类型与 kind 安全性、类型的弱规范化以及子类型判定的不可判定性,并在 Agda 中采用基于 hereditary substitution 的完全语法方法机器化全部证明。

问题
DOT 的类型级计算能力不足,难以作为 Scala 高阶类型系统的完整理论基础。
方法
在 F<:ω 中引入区间 kind 来统一类型层与 kind 层抽象,得到 F··ω,并以基于 hereditary substitution 的语法方法在 Agda 中机器化证明。
评估
证明类型与 kind 安全性、类型的弱规范化以及子类型判定的不可判定性;全部证明经 Agda 机器检查。
原文摘要(Abstract)

The calculus of Dependent Object Types (DOT) has enabled a more principled and robust implementation of Scala, but its support for type-level computation has proven insufficient. As a remedy, we propose F ·· ω , a rigorous theoretical foundation for Scala’s higher-kinded types. F ·· ω extends F <: ω with interval kinds , which afford a unified treatment of important type- and kind-level abstraction mechanisms found in Scala, such as bounded quantification, bounded operator abstractions, translucent type definitions and first-class subtyping constraints. The result is a flexible and general theory of higher-order subtyping. We prove type and kind safety of F ·· ω , as well as weak normalization of types and undecidability of subtyping. All our proofs are mechanized in Agda using a fully syntactic approach based on hereditary substitution.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot1133,
  title = {A theory of higher-order subtyping with type intervals},
  author = {Sandro Stucki and Paolo G. Giarrusso},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {5},
  number = {ICFP},
  year = {2021},
  doi = {10.1145/3473574}
}