The Undecidability of System F Typability and Type Checking for Reductionists

被引:1
|
作者
Dudenhefner, Andrej [1 ]
机构
[1] Saarland Univ, Saarbrucken, Germany
关键词
lambda-calculus; system F; typability; type checking; undecidability; constructive mathematics; mechanization; EQUIVALENT;
D O I
10.1109/LICS52264.2021.9470520
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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.
引用
收藏
页数:10
相关论文
共 50 条
  • [1] Typability and type checking in System F are equivalent and undecidable
    Wells, JB
    ANNALS OF PURE AND APPLIED LOGIC, 1999, 98 (1-3) : 111 - 156
  • [2] Type checking and typability in domain-free lambda calculi
    Nakazawa, Koji
    Tatsuta, Makoto
    Kameyama, Yukiyoshi
    Nakano, Hiroshi
    THEORETICAL COMPUTER SCIENCE, 2011, 412 (44) : 6193 - 6207
  • [3] ABOUT THE PROBLEM OF TYPABILITY IN SYSTEM-F
    MALECKI, S
    COMPTES RENDUS DE L ACADEMIE DES SCIENCES SERIE I-MATHEMATIQUE, 1993, 316 (11): : 1111 - 1116
  • [4] THE UNDECIDABILITY OF TYPE RELATED PROBLEMS IN TYPE-FREE STYLE SYSTEM F
    Fujita, Ken-Etsu
    Schubert, Aleksy
    PROCEEDINGS OF THE 21ST INTERNATIONAL CONFERENCE ON REWRITING TECHNIQUES AND APPLICATIONS (RTA'10), 2010, 6 : 103 - 118
  • [5] A NON-TYPABILITY RESULT IN THE SYSTEM F-OMEGA
    ROZIERE, P
    COMPTES RENDUS DE L ACADEMIE DES SCIENCES SERIE I-MATHEMATIQUE, 1989, 309 (13): : 799 - 802
  • [6] Undecidability of Model Checking in Brane Logic
    Bacci, Giorgio
    Miculan, Marino
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2008, 192 (03) : 23 - 37
  • [7] The undecidability of type related problems in the type-free style System F with finitely stratified polymorphic types
    Fujita, Ken-etsu
    Schubert, Aleksy
    INFORMATION AND COMPUTATION, 2012, 218 : 69 - 87
  • [8] TYPABILITY AND TYPE INFERENCE IN ATOMIC POLYMORPHISM
    Protin, M. Clarence
    Ferreira, Gilda
    LOGICAL METHODS IN COMPUTER SCIENCE, 2021, 18 (03) : 22:1 - 22:22
  • [9] Undecidability of Type-Checking in Domain-Free Typed Lambda-Calculi with Existence
    Nakazawa, Koji
    Tatsuta, Makoto
    Kameyama, Yukiyoshi
    Nakano, Hiroshi
    COMPUTER SCIENCE LOGIC, PROCEEDINGS, 2008, 5213 : 478 - +
  • [10] Improving techniques for proving undecidability of checking cryptographic protocols
    Liang, Zhiyao
    Verma, Rakesh M.
    ARES 2008: PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON AVAILABILITY, SECURITY AND RELIABILITY, 2008, : 1067 - 1074