arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1902.06097cs.PLcs.LOmath.LO
收藏

推值调用和极化λ演算的求值归一化

Normalization by Evaluation for Call-by-Push-Value and Polarized Lambda-Calculus

Andreas Abel, Christian Sattler

摘要:

我们观察到,标准化评估简单类型的λ演算与弱余积可以进行在一个弱双carbohydrate封闭范畴的预层配备了单子,使我们能够执行的情况下区分中性条款的总和类型。单子的位置影响我们得到的范式:例如,把单子放在余积上,我们得到η长的β-π范式,其中π是指排除位置之外的格区别的排列。我们进一步观察到,将单子放在每一个联积上是相当浪费的,单子的最佳放置可以通过考虑受聚焦启发的极化简单类型来确定。极化将类型分为正类型和负类型,将正类型嵌入负类型时放置单子就足够了。我们考虑两个基于极化类型的演算:纯推值调用(CBPV)和极化的λ演算,自然演绎演算对应于聚焦递归演算。对于这两个结石,我们提出的算法进行规范化的评价。我们进一步讨论了不同的实现单子和它们的关系,现有的规范化证明的λ演算和。我们的发展已部分正式在阿格达证明助手。

英文摘要:

We observe that normalization by evaluation for simply-typed lambda-calculus with weak coproducts can be carried out in a weak bi-cartesian closed category of presheaves equipped with a monad that allows us to perform case distinction on neutral terms of sum type. The placement of the monad influences the normal forms we obtain: for instance, placing the monad on coproducts gives us eta-long beta-pi normal forms where pi refers to permutation of case distinctions out of elimination positions. We further observe that placing the monad on every coproduct is rather wasteful, and an optimal placement of the monad can be determined by considering polarized simple types inspired by focalization. Polarization classifies types into positive and negative, and it is sufficient to place the monad at the embedding of positive types into negative ones. We consider two calculi based on polarized types: pure call-by-push-value (CBPV) and polarized lambda-calculus, the natural deduction calculus corresponding to focalized sequent calculus. For these two calculi, we present algorithms for normalization by evaluation. We further discuss different implementations of the monad and their relation to existing normalization proofs for lambda-calculus with sums. Our developments have been partially formalized in the Agda proof assistant.

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

↑