paperbot · PL 论文追踪

全部论文 待读 收藏

P2 The Undecidability of System F Typability and Type Checking for Reductionists

面向归约主义者的 System F 可类型性与类型检查不可判定性
LICS 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)2021匹配度 2/10 · 论文是纯 PL 理论工作,研究 System F 可类型性/类型检查的不可判定性及 Coq 机器验证,未涉及 LLM/Agent、面向 ML 或 Agentic 程序的静态分析、浮点程序分析或贝叶斯程序分析等用户核心方向。虽与形式化验证/证明工程相关,但并非用户关注的“LLM/Agent 改进静态分析/形式化验证”交叉点。引用 2 inbox
Andrej Dudenhefner
crossref: 2026-09-12

AI 速览

一句话:给出从半统一到 System F 可类型性的直接归约,简化经典不可判定性证明并在 Coq 中机器验证。

论文重新审视 System F(多态 lambda 演算)的可类型性(typability)与类型检查(type checking)不可判定性。Wells 在 1990 年代证明二者不可判定,其中类型检查可归约自 semi-unification,而可类型性依赖复杂的 invariant type assumptions 演算,整体论证难以概览。本文给出从 semi-unification 到 System F 可类型性的更简单、直接归约:在存在式可类型性设定中,只需考虑特定类型推导,且只需闭类型、无嵌套量化。类型检查不可判定性则通过民间归约从可类型性得到。作者在 Coq 中机器验证该方法的正确性,并集成到现有不可判定性证明库;该库免费提供从图灵机停机到 System F 可类型性与类型检查的构造性多一归约。

问题
System F 的可类型性与类型检查是否不可判定,以及能否简化 Wells 的复杂证明并对其进行机器验证。
方法
从 semi-unification 直接归约到 System F 可类型性,限制所考虑的类型推导与闭类型范围;再由可类型性归约到类型检查。
评估
在 Coq 证明助手中机器验证归约正确性,并集成到现有不可判定性证明库,得到从图灵机停机出发的构造性多一归约。
原文摘要(Abstract)

The undecidability of both typability and type checking for System F (polymorphic lambda-calculus) was established by Wells in the 1990s. For type checking Wells gave an astonishingly simple reduction from semi-unification (first-order unification combined with first-order matching). For typability Wells developed an intricate calculus to control the shape of type assumptions across type derivations via term structure. This calculus of invariant type assumptions allows for a reduction from type checking to typability. Unfortunately, this approach relies on heavy machinery that complicates surveyability of the overall argument. The present work gives comparatively simple, direct reduction from semi-unification to System F typability. The key observation is as follows: in the existential setting of typability, it suffices to consider some specific (but not all, as for invariant type assumptions) type derivations. Additionally, the particular result requires only to consider closed types without nested quantification. The undecidability of type checking is obtained via a folklore reduction from typability. Profiting from its smaller footprint, correctness of the new approach is witnessed by a mechanization in the Coq proof assistant. The mechanization is incorporated into the existing Coq library of undecidability proofs. For free, the library provides constructive, mechanically verified many-one reductions from Turing machine halting to both System F typability and System F type checking.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6240,
  title = {The Undecidability of System F Typability and Type Checking for Reductionists},
  author = {Andrej Dudenhefner},
  booktitle = {LICS},
  year = {2021},
  doi = {10.1109/lics52264.2021.9470520}
}