延迟单子中的评价归一化:通过Copattera和Sized类型的共诱导的案例研究
Normalization by Evaluation in the Delay Monad: A Case Study for Coinduction via Copatterns and Sized Types
摘要:
在本文中,我们提出了一个简单类型的lambda项的规范化的Agda形式化。正规化器由两个在延迟单子中共归纳定义的函数组成:一个是闭包的lambda项的标准求值器,另一个是从值到η-long beta-范式的类型定向具体化器。他们的组成,规范化的评价,被证明是一个总功能的后验,使用标准的逻辑关系参数。成功的形式化作为一个概念的证明共归纳编程和推理使用大小类型和copatteries,一个新的和目前的实验功能的Agda。
英文摘要:
In this paper, we present an Agda formalization of a normalizer for simply-typed lambda terms. The normalizer consists of two coinductively defined functions in the delay monad: One is a standard evaluator of lambda terms to closures, the other a type-directed reifier from values to eta-long beta-normal forms. Their composition, normalization-by-evaluation, is shown to be a total function a posteriori, using a standard logical-relations argument. The successful formalization serves as a proof-of-concept for coinductive programming and reasoning using sized types and copatterns, a new and presently experimental feature of Agda.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。