按名调用就是带分隔控制的按值调用
Call-By-Name Is Just Call-By-Value with Delimited Control
AI总结:
本文提出扩展了分隔控制算子 shift0 和分隔符 $ 的按值调用 lambda 演算 Λ_$,证明它能同构嵌入带 beta 和 eta 归约的 lambda 演算,并实现双向模拟,从而揭示按名调用等价于带分隔控制的按值调用。
摘要:
分隔控制算子 shift0 展现出多方面的能力:它可以表达分层单子效应,或等价地,代数效应。我们未曾想到它也能表达 lambda 演算!我们提出 Λ_$,一个扩展了 shift0 和分隔符 $ 的按值调用 lambda 演算,并精心设计了归约理论,使得带有 beta 和 eta 归约的 lambda 演算可以通过续延传递风格翻译的右逆同构嵌入到 Λ_$ 中。虽然 lambda 演算的按名调用归约可以平凡地模拟其按值调用版本,我们证明添加 shift0 和 $ 是表达能力的黄金分割,足以模拟 beta 和 eta 归约,同时仍允许反向模拟。作为推论,演算 Λμ_v、λ_$、Λ_$ 和 λ 在等式上都对应。
英文摘要:
Delimited control operator shift0 exhibits versatile capabilities: it can express layered monadic effects, or equivalently, algebraic effects. Little did we know it can express lambda calculus too! We present $ Λ_\$ $, a call-by-value lambda calculus extended with shift0 and control delimiter $ \$ $ with carefully crafted reduction theory, such that the lambda calculus with beta and eta reductions can be isomorphically embedded into $ Λ_\$ $ via a right inverse of a continuation-passing style translation. While call-by-name reductions of lambda calculus can trivially simulate its call-by-value version, we show that addition of shift0 and $ \$ $ is the golden mean of expressive power that suffices to simulate beta and eta reductions while still admitting a simulation back. As a corollary, calculi $ Λμ_v $, $ λ_\$ $, $ Λ_\$ $ and $ λ$ all correspond equationally.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。