paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Gradual parametricity, revisited

渐进参数性再探
POPL 3(POPL)2019匹配度 1/10 · 该论文属于纯类型论/形式语义领域,研究渐进参数多态与 System F 的元理论,未涉及 LLM/Agent、静态分析、浮点程序分析或贝叶斯程序分析,与研究画像的核心问题几乎没有交集。引用 3 inbox
Matías Toro, Elizabeth Labrada, Éric Tanter
crossref: 2026-09-10

AI 速览

一句话:提出渐进参数多态语言 GSF,给出设计、元理论与参考实现,并证明动态渐进保证与参数性不相容。

为将渐进类型引入 System F 等参数多态语言并保持关系参数性,已有方案常在不预期处报告参数性错误,并在涉及不精确类型时错误处理类型实例化;这暗示现有多态 cast 演算不适合作为 System F 的渐进对应。本文重新审视该问题,借助 Abstracting Gradual Typing 方法推导出显式参数多态的渐进语言 GSF,给出设计、元理论和参考实现。GSF 避免已知语义问题,满足渐进参数语言的大部分预期性质;但作者证明动态渐进保证与参数性根本不相容,只能建立较弱性质,从而否证若干渐进自由定理断言,厘清渐进参数性支持的推理形式。

问题
如何为 System F 式显式参数多态设计渐进语言,同时保持关系参数性,并避免已有方案在参数性错误与不精确类型实例化上的语义问题。
方法
采用 Abstracting Gradual Typing 方法推导 GSF 语言,给出其设计、元理论,并提供参考实现。
评估
通过元理论证明评估 GSF 的性质,表明其避免已知语义问题并满足多数渐进参数语言预期性质;同时证明动态渐进保证与参数性不相容,并建立较弱性质以反驳若干渐进自由定理断言。
原文摘要(Abstract)

Bringing the benefits of gradual typing to a language with parametric polymorphism like System F, while preserving relational parametricity, has proven extremely challenging: first attempts were formulated a decade ago, and several designs were recently proposed. Among other issues, these proposals can however signal parametricity errors in unexpected situations, and improperly handle type instantiations when imprecise types are involved. These observations further suggest that existing polymorphic cast calculi are not well suited for supporting a gradual counterpart of System F. Consequently, we revisit the challenge of designing a gradual language with explicit parametric polymorphism, exploring the extent to which the Abstracting Gradual Typing methodology helps us derive such a language, GSF. We present the design and metatheory of GSF, and provide a reference implementation. In addition to avoiding the uncovered semantic issues, GSF satisfies all the expected properties of a gradual parametric language, save for one property: the dynamic gradual guarantee, which was left as conjecture in all prior work, is here proven to be simply incompatible with parametricity. We nevertheless establish a weaker property that allows us to disprove several claims about gradual free theorems, clarifying the kind of reasoning supported by gradual parametricity.

链接与引用

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

BibTeX
@article{paperbot665,
  title = {Gradual parametricity, revisited},
  author = {Matías Toro and Elizabeth Labrada and Éric Tanter},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {3},
  number = {POPL},
  year = {2019},
  doi = {10.1145/3290330}
}