首页    期刊浏览 2024年11月29日 星期五
登录注册

文章基本信息

  • 标题:Efficient Type Checking for Path Polymorphism
  • 作者:Juan Edi ; Andr{\'e}s Viso ; Eduardo Bonelli
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2018
  • 卷号:69
  • 页码:6:1-6:23
  • DOI:10.4230/LIPIcs.TYPES.2015.6
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:A type system combining type application, constants as types, union types (associative, commutative and idempotent) and recursive types has recently been proposed for statically typing path polymorphism, the ability to define functions that can operate uniformly over recursively specified applicative data structures. A typical pattern such functions resort to is \dataterm{x}{y} which decomposes a compound, in other words any applicative tree structure, into its parts. We study type-checking for this type system in two stages. First we propose algorithms for checking type equivalence and subtyping based on coinductive characterizations of those relations. We then formulate a syntax-directed presentation and prove its equivalence with the original one. This yields a type-checking algorithm which unfortunately has exponential time complexity in the worst case. A second algorithm is then proposed, based on automata techniques, which yields a polynomial-time type-checking algorithm.
  • 关键词:lambda-calculus; pattern matching; path polymorphism; type checking
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有