Typability and type checking in System F are equivalent and undecidable

被引:73
|
作者
Wells, JB [1 ]
机构
[1] Univ Glasgow, Dept Comp Sci, Glasgow G12 8RZ, Lanark, Scotland
基金
英国工程与自然科学研究理事会; 美国国家科学基金会;
关键词
System F; semi-unification; type inference; typability; type checking; lambda calculus;
D O I
10.1016/S0168-0072(98)00047-5
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
Girard and Reynolds independently invented System F (a.k.a. the second-order polymorphically typed lambda calculus) to handle problems in logic and computer programming language design, respectively. Viewing F in the Curry style, which associates types with untyped lambda terms, raises the questions of typability and type checking. Typability asks for a term whether there exists some type it can be given. Type checking asks, for a particular term and type, whether the term can be given that type. The decidability of these problems has been settled for restrictions and extensions of F and related systems and complexity lower-bounds have been determined for typability in F, but this report is the first to resolve whether these problems are decidable for System F. This report proves that type checking in F is undecidable, by a reduction from semi-unification and that typability in F is undecidable, by a reduction from type checking. Because there is an easy reduction from typability to type checking, the two problems are equivalent. The reduction from type checking to typability uses a novel method of constructing lambda terms that simulate arbitrarily chosen type environments. All of the results also hold for the lambda I-calculus. (C) 1999 Published by Elsevier Science B.V. All rights reserved.
引用
收藏
页码:111 / 156
页数:46
相关论文
共 50 条
  • [1] The Undecidability of System F Typability and Type Checking for Reductionists
    Dudenhefner, Andrej
    2021 36TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2021,
  • [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] 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
  • [5] TYPABILITY AND TYPE INFERENCE IN ATOMIC POLYMORPHISM
    Protin, M. Clarence
    Ferreira, Gilda
    LOGICAL METHODS IN COMPUTER SCIENCE, 2021, 18 (03) : 22:1 - 22:22
  • [6] Type Checking and Inference Are Equivalent in Lambda Calculi with Existential Types
    Kato, Yuki
    Nakazawa, Koji
    FUNCTIONAL AND CONSTRAINT LOGIC PROGRAMMING, 2010, 5979 : 96 - 110
  • [7] A Type System Equivalent to the Modal Mu-Calculus Model Checking of Higher-Order Recursion Schemes
    Kobayashi, Naoki
    Ong, C. -H Luke
    24TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2009, : 179 - +
  • [8] IS TYPE CHECKING PRACTICAL FOR SYSTEM CONFIGURATION
    INVERARDI, P
    MARTINI, S
    MONTANGERO, C
    LECTURE NOTES IN COMPUTER SCIENCE, 1989, 352 : 257 - 271
  • [9] Undecidable Cases of Model Checking Probabilistic Temporal-Epistemic Logic
    Van Der Meyden, Ron
    Patra, Manas K.
    ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2020, 21 (04)
  • [10] Combining Type-Checking with Model-Checking for System Verification
    Ren, Zhiqiang
    Xi, Hongwei
    2016 ACM/IEEE INTERNATIONAL CONFERENCE ON FORMAL METHODS AND MODELS FOR SYSTEM DESIGN (MEMOCODE), 2016, : 54 - 58