PCF的混合交集类型(扩展版)
Hybrid Intersection Types for PCF (Extended Version)
AI总结:
本文提出了一种针对PCF的可靠且完备的定量交集类型系统PCFH,首次使传名调用和传值调用的操作行为在混合计算模型中共存,并提供归约序列长度的精确上界。
摘要:
交集类型系统已被独立应用于不同的求值策略,如传名调用(CBN)和传值调用(CBV)。这些类型系统随后被推广到不同的包含范式中,特别是能够在一个统一的框架中对CBN和CBV进行编码。然而,目前尚没有交集类型系统能够在不编码到公共目标框架的情况下,明确地使CBN和CBV共存。本文提出了一种针对PCF的交集类型系统,具有一种特定的求值概念,称为PCFH。PCFH中的求值实际上具有混合性质,即CBN和CBV的操作行为共存。事实上,PCFH将类似CBV的函数应用操作行为与类似CBN的递归行为相结合。这种混合性质反映在类型系统中,该系统相对于PCFH是可靠且完备的:不仅可类型化意味着可规范化,反之亦然。此外,该类型系统是定量的,即类型推导的大小为归约序列到范式的长度提供了上界。随后,该类型系统被细化为一个紧密类型系统,提供了关于规范化序列长度的精确信息。这是首次为混合计算模型设计可靠且完备的定量类型系统。
英文摘要:
Intersection type systems have been independently applied to different evaluation strategies, such as call-by-name (CBN) and call-by-value (CBV). These type systems have been then generalized to different subsuming paradigms being able, in particular, to encode CBN and CBV in a unique unifying framework. However, there are no intersection type systems that explicitly enable CBN and CBV to cohabit together without making use of an encoding into a common target framework. This work proposes an intersection type system for PCF with a specific notion of evaluation, called PCFH. Evaluation in PCFH actually has a hybrid nature, in the sense that CBN and CBV operational behaviors cohabit together. Indeed, PCFH combines a CBV-like operational behavior for function application with a CBN-like behavior for recursion. This hybrid nature is reflected in the type system, which turns out to be sound and complete with respect to PCFH: not only typability implies normalization, but also the converse holds. Moreover, the type system is quantitative, in the sense that the size of typing derivations provides upper bounds for the length of the reduction sequences to normal form. This type system is then refined to a tight one, offering exact information regarding the length of normalization sequences. This is the first time that a sound and complete quantitative type system has been designed for a hybrid computational model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。