arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1201.1101cs.PL
收藏

全称量词的扩展

Expansion for Universal Quantifiers

Sergueï Lenglet, J. B. Wells

摘要:

扩展是对类型的操作(即,成对的类型化环境和结果类型)最初在具有交集类型的微积分的类型系统中定义以便获得主体(即,信息量最大、最强的)打字。在类型推断场景中,扩展允许推迟关于是否以及如何使用非语法驱动的类型规则(例如,直到收集到足够的信息来做出正确的决定。此外,这些选择可以等效于在类型派生中的深度嵌套位置处插入对这种类型规则的使用,而不需要实际检查或修改(或甚至具有)类型派生。近年来,由于使用了扩展变量(例如,在系统E中)。本文将扩张和扩张变量推广到具有forall量词的系统。我们提出了系统Fs,系统F的扩展与扩展,并证明了它的主要性质。该系统将类型推断转化为一个约束求解问题,这将有助于将来为System F类型设计一个模块化的类型推断算法。

英文摘要:

Expansion is an operation on typings (i.e., pairs of typing environments and result types) defined originally in type systems for the lambda-calculus with intersection types in order to obtain principal (i.e., most informative, strongest) typings. In a type inference scenario, expansion allows postponing choices for whether and how to use non-syntax-driven typing rules (e.g., intersection introduction) until enough information has been gathered to make the right decision. Furthermore, these choices can be equivalent to inserting uses of such typing rules at deeply nested positions in a typing derivation, without needing to actually inspect or modify (or even have) the typing derivation. Expansion has in recent years become simpler due to the use of expansion variables (e.g., in System E). This paper extends expansion and expansion variables to systems with forall-quantifiers. We present System Fs, an extension of System F with expansion, and prove its main properties. This system turns type inference into a constraint solving problem; this could be helpful to design a modular type inference algorithm for System F types in the future.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑