依赖类型理论的通用双向类型推导
Generic bidirectional typing for dependent type theories
AI总结:
本文为一般类别的依赖类型理论提出了通用双向类型推导框架,定义声明式与双向系统并证明等价,且对规范化理论确立可判定性,实现通用类型检查算法。
摘要:
双向类型推导是一种将类型判断显式分解为推断模式和检查模式的规范,从而能够控制类型信息在类型规则中的流动,并指定算法上应如何使用这些规则。双向类型推导已被富有成效地研究,且针对许多类型理论开发了双向系统。然而,迄今为止,双向类型推导的形式化发展仍局限于特定理论,通用指南仍是非正式的。在这项工作中,我们针对一般类别的依赖类型理论,给出了双向类型推导的通用描述。这首先通过给出类型理论(或等价地,逻辑框架)的一般定义来实现,为此我们定义了声明式类型系统和双向类型系统。然后,我们以与理论无关的方式证明了这两个系统是等价的。最后,我们建立了规范化理论的双向类型推导的可判定性,从而产生了一个通用的类型检查算法,该算法已在原型中实现,并在实践中应用于许多理论。
英文摘要:
Bidirectional typing is a discipline in which the typing judgment is decomposed explicitly into inference and checking modes, allowing to control the flow of type information in typing rules and to specify algorithmically how they should be used. Bidirectional typing has been fruitfully studied and bidirectional systems have been developed for many type theories. However, the formal development of bidirectional typing has until now been kept confined to specific theories, with general guidelines remaining informal. In this work, we give a generic account of bidirectional typing for a general class of dependent type theories. This is done by first giving a general definition of type theories (or equivalently, a logical framework), for which we define declarative and bidirectional type systems. We then show, in a theory-independent fashion, that the two systems are equivalent. Finally, we establish the decidability of bidirectional typing for normalizing theories, yielding a generic type-checking algorithm that has been implemented in a prototype and used in practice with many theories.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。